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.

cPanel update has killed my server

Discussion in 'General Discussion' started by will_raymo2000, May 21, 2007.

  1. will_raymo2000

    Joined:
    Jul 4, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Updated yesterday to the latest current build and now everything is dead. Not even a restart has worked. I cant login via ssh, http, ftp, pop3, imap and telnet is all down yet the server is responding to a ping.

    I am extremely surprised this has happened due to an update and didnt believe it myself however it is the only thing that happens at the time of the murdering of said server.

    Can anyone suggest appropriate action ASAP as customers are starting to get unhappy with nothing working.

    Thanks,
    Will
     
  2. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    what OS is the box running? are you sure a kernel update isnt the cause of the problem over cpanel? core services would still start even if cPanel was f****d, sounds to me like its a kernel panic, as a lot of the time boxes will still reply to pings but nothing else works, get your DC to boot the machine in an older kernel and see if it boots
     
  3. will_raymo2000

    Joined:
    Jul 4, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    I got them to restart it and they replied with, 'Restart suceeded however SSH not responding.' which is useful I thought!!

    So I got them to restart it again and it seems to be working, apart from mysql is broken now in that it cant find mysql.sock and also eximstats is broken.

    Any suggestions?

    Thanks
     
  4. rone

    rone Well-Known Member

    Joined:
    Jan 14, 2007
    Messages:
    179
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    The Netherlands
    cPanel Access Level:
    Root Administrator
    You have to give much much more info if you wan't have help. What OS, what did you do and what not........ Now we can't give you any help it's just like "it is raining.....why?"
     
  5. will_raymo2000

    Joined:
    Jul 4, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    I have already explained the original situation and when they restarted the second time cpanel started working again. For no apparent reason as far as I can see. I have run upcp --force and mysqlup --force yet its still not working. I am running CentOS 4.5 with cpanel 11 current build.

    Thanks
     
  6. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    You need to symlink /tmp/mysql.sock -> ../../var/lib/mysql/mysql.sock
     
  7. will_raymo2000

    Joined:
    Jul 4, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    This is what is confusing me more. There is no file in /tmp called mysql.sock. or anything remotely similar. Is mysql.sock a standard file that I can manually make or not?
     
  8. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    you need to create a symbolic link from /tmp to the mysql socket located in /var/lib/mysql/mysql.sock

    look up the ln command ;)
     
  9. will_raymo2000

    Joined:
    Jul 4, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    [root@nh1 /]# ln -s /tmp ../var/lib/mysql/mysql.sock


    Is this correct? I have tried the above and also

    [root@nh1 /]# ln -s /tmp/mysql.sock ../var/lib/mysql/mysql.sock


    yet neither work, and mysql is still failing.

    Thanks
     
  10. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    Code:
    cd /tmp
    
    ln -s mysql.sock /var/lib/mysql/mysql.sock
    
    once youve done that: ls -l /tmp and make sure its valid

    symlink should show up as mysql.sock->../../var/lib/mysql/mysql.sock
     
  11. will_raymo2000

    Joined:
    Jul 4, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Tried that, didnt work. So i followed a guide on a complete reinstall which operated these commands:

    cp -fr /var/lib/mysql /var/lib/mysql.old

    rm -fr /var/lib/mysql

    rm -f /usr/sbin/mysqld

    /scripts/mysqlup --force


    Which should work fine, however it doesnt! I even tried the two commands you said and this has spurted out more errors,

    [root@nh1 /]# /etc/init.d/mysql start
    Starting MySQLCouldn't find MySQL manager or server [FAILED]

    :eek:
     
  12. ericgregory

    ericgregory Well-Known Member
    PartnerNOC

    Joined:
    Nov 27, 2002
    Messages:
    124
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Pennsylvania
    cPanel Access Level:
    DataCenter Provider
    If you're still having problems you need to send in a support ticket. As has been mentioned elsewhere we can not really provide support on the forums but are more then happy to help you out fully via our ticket system.

    For problems as severe as you said you're having your first priority should be to get a support ticket open with our technical staff rather then posting to the forum :)
     
Loading...

Share This Page