cpsrvd failed, unable to restart cpanel

gbh1935

Active Member
Jun 25, 2005
26
0
151
got the following message via email from my server about 100 times today.


cpsrvd failed @ Wed Sep 8 15:37:23 2010. A restart was attempted automagically.
Service Check Method: [tcp connect]

Failure Reason: Unable to connect to port 2086

I have tried to restart cpanel with

/usr/local/cpanel/startup

but the status still shows as stopped


#service cpanel status
cpsrvd is stopped
entropychat is stopped
melange is stopped
stunnel is stopped
interchange is stopped
qrunner is stopped

I have done a upcp -force to make sure it is up to date, rebooted, and tried to restart again. I see almost nothing in the cpanel error log besides a start up and shut down message.

I even tried a fixeverything for fun... no luck.

any ideas?
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
Please submit a ticket

It appears that you have covered all the basic troubleshooting steps. One last thing I would try would be to see if checkperlmodules reveals any problems:

Code:
# /scripts/checkperlmodules --full
Also, check to make sure that there is only one Perl binary file:

Code:
# ls -alh /usr/bin/perl
# ls -alh /usr/local/bin/perl
Only one should be a file, and the other should be a symlink to the file, like this:

Code:
# ls -alh /usr/bin/perl
-rwxr-xr-x 2 root root 15K Nov  8  2007 /usr/bin/perl*
# ls -alh /usr/local/bin/perl
lrwxrwxrwx 1 root root 13 May 30  2008 /usr/local/bin/perl -> /usr/bin/perl*
If both are files, move one (I usually move the one with the oldest date), create a symlink in its place, and run checkperlmodules again.

If none of the above helps, I recommend submitting a ticket so that we may log in and investigate and correct the problem in a timely manner. There are a variety of factors that can keep the cPanel service from starting, and it can be difficult to diagnose through forum posts exactly which one is the problem, especially with the lack of output you have described.
 

gbh1935

Active Member
Jun 25, 2005
26
0
151
Well, I got it back up.

I ended up trying to start it directly via

/usr/local/cpanel/cpsrvd

and it started after a bunch of messages, below are some of them.


Updating 'en' locale ...
... 'en' complete.

Updating 'es' locale ...
... 'es' complete.

Updating 'fr' locale ...
... 'fr' complete.

Updating 'hi' locale ...
... 'hi' complete.

Updating 'ja' locale ...
... 'ja' complete.

Updating 'nl' locale ...
... 'nl' complete.

Updating 'pt' locale ...
... 'pt' complete.

Updating 'pt_br' locale ...
... 'pt_br' complete.

Updating 'ru' locale ...
... 'ru' complete.

Updating 'zh' locale ...
... 'zh' complete.

info [build_locale_databases] Finished updating and modifying locales databases
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
Those are not error messages, and do not indicate a particular problem. This is simply the locale databases being updated, and it is normal to see it while cPanel starts. Unfortunately, with the lack of error output, I cannot say why the cPanel service was not starting for you, but I am glad to see that it is running now.