Symptoms
The cPanel service fails to start even though running /scripts/restartsrv_cpsrvd indicates that it has started successfully.
[root@server ~] cP# /scripts/restartsrv_cpsrvd
Waiting for “cpsrvd” to start ……waiting for “cpsrvd” to initialize ………finished.
Service Status
cpanel (cpsrvd (SSL) - dormant mode - accepting connections) is running as root with PID 26664 (systemd+/proc check method).
Startup Log
Jun 24 03:32:26 server8096 systemd[1]: cpanel.service failed.
Jun 24 04:05:57 server8096 systemd[1]: Starting cPanel services...
Jun 24 04:05:58 server8096 restartsrv_cpsrvd[29422]: lsof: can't fopen(/proc/mounts, "r"): Cannot allocate memory
Jun 24 04:05:59 server8096 restartsrv_cpsrvd[29422]: /usr/local/cpanel/libexec/cpsrvd-dormant: Waiting to bind to /usr/local/cpanel/var/cpdoveauthd.sock (Cannot allocate memory)....
Jun 24 04:05:59 server8096 restartsrv_cpsrvd[29422]: Starting PID 29422: /usr/local/cpanel/libexec/cpsrvd-dormant
Jun 24 04:05:59 server8096 systemd[1]: Started cPanel services.
Jun 24 04:06:00 server8096 restartsrv_cpsrvd[29422]: License is valid and has already updated recently.
Jun 24 04:44:15 server8096 systemd[1]: cpanel.service: main process exited, code=exited, status=127/n/a
Jun 24 04:44:15 server8096 systemd[1]: Unit cpanel.service entered failed state.
Jun 24 04:44:15 server8096 systemd[1]: cpanel.service failed.
cpsrvd started successfully.
[root@server ~] cP#
The cPanel error log (/usr/local/cpanel/logs/error_log) shows a line similar to the following when /scripts/restartsrv_cpsrvd is run.
Compress::Raw::Zlib object version 2.093 does not match $Compress::Raw::Zlib::XS_VERSION 2.103.
Description
Missing or corrupt cPanel packages will prevent the cPanel service from starting.
Workaround
Run the following commands to replace the missing or corrupt cPanel packages and restart the cPanel service.
/usr/local/cpanel/scripts/check_cpanel_pkgs --fix
/scripts/restartsrv_cpsrvd
Comments
0 comments
Article is closed for comments.