The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache fails to restart #2

Discussion in 'EasyApache' started by Kurieuo, Jul 20, 2011.

  1. Kurieuo

    Kurieuo Well-Known Member

    Joined:
    Dec 13, 2002
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Australia
    I experienced an issue where Apache just stopped working. Restarting Apache produced the error:
    Syntax error on line 11 of /usr/local/apache/conf/modsec2.conf:
    ModSecurity: Failed to open the audit log file: /usr/local/apache/logs/modsec_audit.log
    Restarting the server, I found myself unable to login as root. Came across the following post which is exactly what I experienced: http://forums.cpanel.net/f5/apache-fails-restart-102845.html

    After fsck was run onsite, I was able to get back in and check things out a little. My 'messages' log contained at the time of the error the follows:
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009632), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009633), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009635), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009660), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009657), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009672), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009684), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009670), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009696), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (15630368), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009701), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009706), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009708), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009709), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009710), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009723), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009668), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (15630369), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19009713), 0
    ... servername kernel: EXT3-fs warning (device md2): ext3_unlink: Deleting nonexistent file (19005677), 0
    ... servername kernel: EXT3-fs error (device md2): ext3_lookup: unlinked inode 19009397 in dir #19010775
    ... servername kernel: Aborting journal on device md2.
    ... servername kernel: __journal_remove_journal_head: freeing b_committed_data
    ... servername last message repeated 12 times​

    Running 'fdisk -l' shows invalid partition tables, something I believe was fine previous. So a bit puzzled there, but everything seems to be working:

    Disk /dev/md2: 231.0 GB, 231023312896 bytes
    ...
    Disk /dev/md2 doesn't contain a valid partition table

    Disk /dev/md3: 500.1 GB, 500105150464 bytes
    ...
    Disk /dev/md3 doesn't contain a valid partition table

    Disk /dev/md1: 16.7 GB, 16779444224 bytes
    ...
    Disk /dev/md1 doesn't contain a valid partition table

    Disk /dev/md0: 106 MB, 106823680 bytes
    ...
    Disk /dev/md0 doesn't contain a valid partition table ​

    fstab seems fine:

    /dev/md3 /backup ext3 defaults,noexec 0 0
    /dev/md2 / ext3 defaults,usrquota 1 1
    /dev/md1 /var ext3 defaults,usrquota 1 2
    /dev/md0 /boot ext3 defaults 1 2
    tmpfs /dev/shm tmpfs noexec,nosuid 0 0
    devpts /dev/pts devpts gid=5,mode=620 0 0
    sysfs /sys sysfs defaults 0 0
    proc /proc proc defaults 0 0
    LABEL=SWAP-sda3 swap swap defaults 0 0
    /usr/tmpDSK /tmp ext3 defaults,noauto 0 0
    /tmp /var/tmp ext3 defaults,usrquota,bind,noauto 0 0​

    Not sure if this is cPanel related, probably not, but I want to prevent this happening again. Any thoughts from other experienced server admins on what I should check or do?

    Thanks!
     
  2. mikegotroot

    mikegotroot Well-Known Member

    Joined:
    Apr 29, 2008
    Messages:
    85
    Likes Received:
    1
    Trophy Points:
    8
    These errors:

    Along with:

    Means that your file system became corrupt. ext3 itself is pretty solid, so this is occuring either because you have a hard drive failing or some other system component is causing your file system to be corrupt (bad memory, serious system glitch, etc). In general, if you see ext3fs errors its a hardware problem.
     
Loading...

Share This Page