Failed to start cPanel services Issue
Hello,
I have 2 servers with cPanel that, after version 76, sometimes, cPanel stops and fails to restart, closing all doors 20XX (cPanel, WHM, webmail, etc).
I just "service cpanel restart" and all ok again. Any ideias?
Note 1: something (sw) stopped cPanel service. Only me have root access.
Note 2: one dedicated server, other VPS server.
Logs:
Nov 23 23:54:48 terra systemd: Stopping cPanel services...
Nov 23 23:54:48 terra restartsrv_cpsrvd: Gracefully terminating process: cpsrvd: inter with pid 21318 and owner root.
Nov 23 23:54:48 terra restartsrv_cpsrvd: Waiting for 21318 to shutdown ....... terminated.
Nov 23 23:54:48 terra systemd: Stopped cPanel services.
Nov 23 23:54:48 terra systemd: Cannot add dependency job for unit clamd.service, ignoring: Unit not found.
Nov 23 23:54:48 terra systemd: Starting cPanel services...
Nov 23 23:54:48 terra systemd: Starting mailman services...
Nov 23 23:54:48 terra restartsrv_mailman: (XID p2jd7g) The "mailman"
Nov 23 23:54:48 terra restartsrv_cpsrvd: Gracefully terminating process: restartsrv_cp with pid 21325 and owner root.
Nov 23 23:54:48 terra systemd: PID file /usr/local/cpanel/3rdparty/mailman/data/master-qrunner.pid not readable (yet?) after start.
Nov 23 23:54:48 terra systemd: Failed to start mailman services.
Nov 23 23:54:48 terra systemd: Unit mailman.service entered failed state.
Nov 23 23:54:48 terra systemd: mailman.service failed.
Nov 23 23:54:48 terra restartsrv_cpsrvd: Waiting for 21325 to shutdown ....... terminated.
Nov 23 23:54:49 terra restartsrv_cpsrvd: License is valid and has already updated recently.
Nov 23 23:54:49 terra restartsrv_cpsrvd: /usr/local/cpanel/libexec/cpsrvd-dormant: Waiting to bind to port 2082 (Address already in use)....
Nov 23 23:54:50 terra restartsrv_cpsrvd: /usr/local/cpanel/libexec/cpsrvd-dormant: Waiting to bind to port 2082 (Address already in use)....
Nov 23 23:54:51 terra restartsrv_cpsrvd: /usr/local/cpanel/libexec/cpsrvd-dormant: Waiting to bind to port 2082 (Address already in use)....
Nov 23 23:54:52 terra restartsrv_cpsrvd: /usr/local/cpanel/libexec/cpsrvd-dormant: Waiting to bind to port 2082 (Address already in use)....
** lots of above errors **
Nov 23 23:56:19 terra systemd: cpanel.service start operation timed out. Terminating.
Nov 23 23:56:19 terra systemd: Failed to start cPanel services.
Nov 23 23:56:19 terra systemd: Unit cpanel.service entered failed state.
Nov 23 23:56:19 terra systemd: cpanel.service failed.
Nov 23 23:56:19 terra systemd: Starting cPanel Greylisting Daemon...
Nov 23 23:56:19 terra systemd: Starting cPanel dav services...
Nov 23 23:56:19 terra systemd: Starting FPM service for cPanel Daemons...
Nov 23 23:56:19 terra systemd: Starting cPanel brute force detector services...
Nov 23 23:56:19 terra restartsrv_cpanel_php_fpm: (XID g424ws) The "cpanel_php_fpm"
Nov 23 23:56:19 terra systemd: cpanel_php_fpm.service: control process exited, code=exited status=255
Nov 23 23:56:19 terra systemd: Failed to start FPM service for cPanel Daemons.
Nov 23 23:56:19 terra systemd: Unit cpanel_php_fpm.service entered failed state.
Nov 23 23:56:19 terra systemd: cpanel_php_fpm.service failed.
Nov 23 23:56:19 terra restartsrv_cpgreylistd: (XID 8x2usu) The "cpgreylistd"
Nov 23 23:56:19 terra startcpdavd: (XID uvxq4g) The "cpdavd"
Nov 23 23:56:19 terra systemd: cpgreylistd.service: control process exited, code=exited status=255
Nov 23 23:56:19 terra systemd: Failed to start cPanel Greylisting Daemon.
Nov 23 23:56:19 terra systemd: Unit cpgreylistd.service entered failed state.
Nov 23 23:56:19 terra systemd: cpgreylistd.service failed.
Nov 23 23:56:19 terra systemd: cpdavd.service: control process exited, code=exited status=255
Nov 23 23:56:19 terra systemd: Failed to start cPanel dav services.
Nov 23 23:56:19 terra systemd: Unit cpdavd.service entered failed state.
Nov 23 23:56:19 terra systemd: cpdavd.service failed.
Nov 23 23:56:19 terra systemd: PID file /var/run/cphulkd_processor.pid not readable (yet?) after start.
Nov 23 23:56:19 terra systemd: Failed to start cPanel brute force detector services.
Nov 23 23:56:19 terra systemd: Unit cphulkd.service entered failed state.
-
Hi @Rogerio This issue is related to an internal case we have open CPANEL-23939 it may also be related to another issue we have subsequently opened. In order to find out can you run the following? grep "Use of uninitialized value $uri" /usr/local/cpanel/logs/error_log
Thanks!0 -
Hi @cPanelLauren. Yes: Use of uninitialized value $uri in transliteration (tr///) at /usr/local/cpanel/Cpanel/Server/Request.pm line 237, line 1. Use of uninitialized value $uri in transliteration (tr///) at /usr/local/cpanel/Cpanel/Server/Request.pm line 243, line 1. Use of uninitialized value $uri in index at /usr/local/cpanel/Cpanel/Server/Request.pm line 249, line 1. Use of uninitialized value $uri in index at /usr/local/cpanel/Cpanel/Server/Request.pm line 255, line 1. Use of uninitialized value $uri in split at /usr/local/cpanel/Cpanel/Server/Request.pm line 260, line 1. Use of uninitialized value $uri in index at /usr/local/cpanel/Cpanel/Server/Request.pm line 212, line 1. Use of uninitialized value $uri in transliteration (tr///) at /usr/local/cpanel/Cpanel/Server/Request.pm line 237, line 1. Use of uninitialized value $uri in transliteration (tr///) at /usr/local/cpanel/Cpanel/Server/Request.pm line 243, line 1. Use of uninitialized value $uri in index at /usr/local/cpanel/Cpanel/Server/Request.pm line 249, line 1. Use of uninitialized value $uri in index at /usr/local/cpanel/Cpanel/Server/Request.pm line 255, line 1. Use of uninitialized value $uri in split at /usr/local/cpanel/Cpanel/Server/Request.pm line 260, line 1.0 -
Hi @Rogerio Can you tell me what version of cPanel you're running? Thanks! 0 -
@cPanelLauren, sorry for the delay! Now running 76.0.10 but the problem didn't occur anymore since 11/24... maybe already fixed in latest release .10? Rogerio 0 -
Hi @Rogerio Yes, I believe this issue is related to CPANEL-23939 which was just fixed. I'm glad to hear that it's no longer occurring as well. 0
Please sign in to leave a comment.
Comments
5 comments