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.

Services crashing

Discussion in 'Database Discussions' started by autumnwalker, Jan 5, 2005.

  1. autumnwalker

    autumnwalker Member

    Joined:
    Jan 5, 2005
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Why when i go to service status, does many things fail quite often, and even things like apache and mysql and bind. I go to the website and apache isn't down, it's working. Yet this status window shows it is failed. one thing that never goes away is interchange. it has been on fail since the first i got my server. Is this a bug or something wrong with cpanel and my freebsd server?
     
    #1 autumnwalker, Jan 5, 2005
    Last edited: Jan 5, 2005
  2. dezignguy

    dezignguy Well-Known Member

    Joined:
    Sep 26, 2004
    Messages:
    534
    Likes Received:
    0
    Trophy Points:
    16
    you might try restarting chkservd to see if that helps the services shown as down but actually up problem.

    If you don't use interchange, you'll want to completely disable it, service manager and tweak settings... and anywhere else in the startup that it appears.

    Your problems could be a result of cpanel on freebsd too as it doesn't get updated as often. But new builds are coming out for the other platforms.
     
  3. ozarkhost

    ozarkhost Active Member

    Joined:
    Oct 9, 2003
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    chkservd continually show that the server has multiple failures even thou the services are up when I go to shell in and do a netstat -an and see that the ports are open for the services and functioning there seems to be a glitch in the chkservd anyone know the solution to this problem?
     
  4. nhant

    nhant Member

    Joined:
    Nov 27, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    If you enabel interchange then you need to check everything is correct.

    For your apache you can test it with; /etc/init.d/httpd configtest command.

    anyway try these commands;

    /etc/init.d/mysql restart
    /etc/init.d/cpanel restart
    /etc/init.d/chkservd restart


    * It always good to check if you are running cpanel lastest stable version.
     
  5. autumnwalker

    autumnwalker Member

    Joined:
    Jan 5, 2005
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    I am running
    WHM 9.9.8 cPanel 9.9.8-R118
    FreeBSD 4.9-RELEASE i386 - WHM X v3.1.0
    This is the latest for BSD.

    I get a error doing all your suggestions:.

    Code:
    cp# /etc/init.d/httpd configtest
    [Tue Jan 11 18:20:51 2005] [warn] NameVirtualHost xx.xx.xx.xx:80 has no VirtualHosts
    Syntax OK
    Segmentation fault (core dumped)
    Code:
    cp# /etc/init.d/cpanel restart
    Could not find functions file, your system may be broken
    cp# /etc/init.d/mysql restart
    /etc/init.d/mysql: Command not found.
    cp# /etc/init.d/chkservd restart
    /etc/init.d/chkservd: Command not found.

    Then a ls of inet.d from /etc shows:
    Code:
    cp# ls in*
    inetd.conf
    
    init.d:
    cpanel          filelimits      httpd           ipaliases

    Im confused, 2 of those commands there isn't even a file there. And segmentation fault on http test.





    Then my mysql errors are non stop. I get emails all day about mysql failing and automagicly restarting. When i click on change a user or database password, i usually get:
    error 2002: cant connect to local mysql server through socket '/tmp.mysql.sock' (2) OR i get:
    error 1045: Access denied for user: 'root@localhost' (Using password: YES) But sometime it goes through and shows up.
    When i try to do a reset of root password it says this:
    DBI connect('mysql:localhost','root',...) failed: Access denied for user: 'root@localhost' (Using password: YES) at /scripts/restartsrv_mysql line 75
    mysql has failed, please contact the sysadmin (result was "Warning, no valid mysql.sock file found.mysql has failed").


    Here is what i get using command top:
    last pid: 63396; load averages: 0.03, 0.05, 0.06 up 1+00:44:09 18:35:27
    326 processes: 1 running, 236 sleeping, 89 zombie
    CPU states: 0.4% user, 0.0% nice, 0.0% system, 0.0% interrupt, 99.6% idle
    Mem: 473M Active, 34M Inact, 126M Wired, 3692K Cache, 110M Buf, 348M Free
    Swap: 2048M Total, 2040M Used, 8M Free, 99% Inuse
    and here is df -h
    Filesystem Size Used Avail Capacity Mounted on
    /dev/ad4s1a 2.0G 123M 1.7G 7% /
    /dev/ad4s1h 85G 202M 78G 0% /home
    /dev/ad4s1e 1008M 56K 927M 0% /tmp
    /dev/ad4s1g 9.8G 1.3G 7.7G 15% /usr
    /dev/ad4s1f 9.8G 53M 9.0G 1% /var
    procfs 4.0K 4.0K 0B 100% /proc

    I don't understand why mysql and eximstats crash all day long, and why my swap file is in full use. And when i use phpMyAdmin it usually says "Wrong username/password. Access denied" and I have to keep refreshing over and over for it to go through.
     
    #5 autumnwalker, Jan 11, 2005
    Last edited: Jan 11, 2005
  6. PbG

    PbG Well-Known Member

    Joined:
    Mar 11, 2003
    Messages:
    241
    Likes Received:
    0
    Trophy Points:
    16
    Those commands apply only linux/centos. It's always best to state FreeBSD in your initial thread. Otherwise people will assume you are referring to linux/centos since most boxes run that.

     
  7. blee

    blee Registered

    Joined:
    May 29, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Helpful Information

    Goinging through all the forms, this bit of information helped out a great deal, thank you!!!

     
Loading...

Share This Page