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.

Server crash

Discussion in 'General Discussion' started by Hostprofil, Oct 29, 2013.

  1. Hostprofil

    Hostprofil Member

    Joined:
    Sep 10, 2013
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I get this error and does not start the server, why?

    Code:
    MySQL server PID file could not be found!                  [FAILED]Starting MySQL.....The server quit without updating PID fil[FAILED]lib/mysql/gazduire.mydomain.ro.pid).touch: cannot touch `/var/lock/subsys/mysql': No space left on device
     
    #1 Hostprofil, Oct 29, 2013
    Last edited: Oct 29, 2013
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    I believe this tells the reason:
    Check your disk space, probably /var is full.
     
  3. Hostprofil

    Hostprofil Member

    Joined:
    Sep 10, 2013
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator

    There are several folders, as I realize what's the problem?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. Hostprofil

    Hostprofil Member

    Joined:
    Sep 10, 2013
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I solved this error but can not start httpd, I get this error:
    Looking up localhost
    Making HTTP connection to localhost
    Alert!: Unable to connect to remote host.

    lynx: Can't access startfile http://localhost/whm-server-status
    root@gazduire [~]# service httpd start
    root@gazduire [~]# /etc/init.d/httpd status

    Looking up localhost
    Making HTTP connection to localhost
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Try rebuilding the Apache configuration file via:

    Code:
    /scripts/rebuildhttpdconf
    Let us know if you receive any specific error messages.

    Thank you.
     
  7. Hostprofil

    Hostprofil Member

    Joined:
    Sep 10, 2013
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Code:
    root@gazduire [~]# /scripts/rebuildhttpdconf
    [2013-10-31 20:37:09 +0200] warn [rebuildhttpdconf] Failed to create a temp file using get_tmp_file_by_name using templatefile: /usr/local/apache/conf/httpd.conf at /usr/local/cpanel/Cpanel/Rand.pm line 91
            Cpanel::Rand::get_tmp_file_by_name('/usr/local/apache/conf/httpd.conf') called at /scripts/rebuildhttpdconf line 47
            BuildHttpdConf::run() called at /scripts/rebuildhttpdconf line 97
    warn [rebuildhttpdconf] Failed to create a temp file using get_tmp_file_by_name using templatefile: /usr/local/apache/conf/httpd.conf
    Failed to get a temporary working file! at /scripts/rebuildhttpdconf line 48.
    
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Are you sure no other partitions are at 100% disk space or inode usage? You can check that with commands such as:

    Code:
    df -h
    df -i
    
    Thank you.
     
  9. brovine

    brovine Registered

    Joined:
    Jul 9, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Hi. I know this thread is old but the OP stopped replying and I'm having this same exact issue.

    root@shared [/home]# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/ploop18773p1 493G 7.9G 460G 2% /
    none 7.9G 4.0K 7.9G 1% /dev
    none 7.9G 0 7.9G 0% /dev/shm

    root@shared [/home]# df -i
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /dev/ploop18773p1 32768000 171005 32596995 1% /
    none 2048000 150 2047850 1% /dev
    none 2048000 1 2047999 1% /dev/shm

    Please advise
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page