Got a VPS server on hostgator that the cpanel service / web gui keeps going down on. Last time it happened, hostgator support says they used the command /scripts/restartsrv_cpsrvd to restart the service. I ran that command and get this message.
Waiting for “cpsrvd” to start ……info [restartsrv_cpsrvd] systemd failed to start the service “cpanel” (The “/usr/bin/systemctl restart cpanel.service --no-ask-password” command (process 8659) reported error number 1 when it ended.): Job for cpanel.service failed because the control process exited with error code. See "systemctl status cpanel.service" and "journalctl -xe" for details.
send: Connection refused at /usr/local/cpanel/Cpanel/Linux/Netlink.pm line 150.
systemctl status cpanel.service
● cpanel.service - cPanel services
Loaded: loaded (/etc/systemd/system/cpanel.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2023-06-10 08:48:30 CDT; 4min 7s ago
Process: 460 ExecStart=/usr/local/cpanel/scripts/restartsrv_cpsrvd --no-verbose --notconfigured-ok --systemd-service=cpanel (code=exited, status=111)
Main PID: 460 (code=exited, status=111)
May 25 15:31:57 mail2.electsys.tech restartsrv_cpsrvd[8668]: send: Connection refused at /usr/local/cpanel/Cpanel/Linux/Netlink.pm line 150.
May 25 15:40:15 mail2.electsys.tech restartsrv_cpsrvd[470]: send: Connection refused at /usr/local/cpanel/Cpanel/Linux/Netlink.pm line 150.
May 25 16:02:42 mail2.electsys.tech restartsrv_cpsrvd[3311]: send: Connection refused at /usr/local/cpanel/Cpanel/Linux/Netlink.pm line 150.
May 25 16:10:01 mail2.electsys.tech restartsrv_cpsrvd[3948]: send: Connection refused at /usr/local/cpanel/Cpanel/Linux/Netlink.pm line 150.
May 25 16:11:02 mail2.electsys.tech restartsrv_cpsrvd[486]: send: Connection refused at /usr/local/cpanel/Cpanel/Linux/Netlink.pm line 150.
May 25 16:22:08 mail2.electsys.tech restartsrv_cpsrvd[2437]: send: Connection refused at /usr/local/cpanel/Cpanel/Linux/Netlink.pm line 150.
May 25 16:27:21 mail2.electsys.tech restartsrv_cpsrvd[2845]: send: Connection refused at /usr/local/cpanel/Cpanel/Linux/Netlink.pm line 150.
cpanel_and_whm: 11.110.0.7
operating_system_name: centos
operating_system_version: 7
What's the next step to try?
Waiting for “cpsrvd” to start ……info [restartsrv_cpsrvd] systemd failed to start the service “cpanel” (The “/usr/bin/systemctl restart cpanel.service --no-ask-password” command (process 8659) reported error number 1 when it ended.): Job for cpanel.service failed because the control process exited with error code. See "systemctl status cpanel.service" and "journalctl -xe" for details.
send: Connection refused at /usr/local/cpanel/Cpanel/Linux/Netlink.pm line 150.
systemctl status cpanel.service
● cpanel.service - cPanel services
Loaded: loaded (/etc/systemd/system/cpanel.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2023-06-10 08:48:30 CDT; 4min 7s ago
Process: 460 ExecStart=/usr/local/cpanel/scripts/restartsrv_cpsrvd --no-verbose --notconfigured-ok --systemd-service=cpanel (code=exited, status=111)
Main PID: 460 (code=exited, status=111)
May 25 15:31:57 mail2.electsys.tech restartsrv_cpsrvd[8668]: send: Connection refused at /usr/local/cpanel/Cpanel/Linux/Netlink.pm line 150.
May 25 15:40:15 mail2.electsys.tech restartsrv_cpsrvd[470]: send: Connection refused at /usr/local/cpanel/Cpanel/Linux/Netlink.pm line 150.
May 25 16:02:42 mail2.electsys.tech restartsrv_cpsrvd[3311]: send: Connection refused at /usr/local/cpanel/Cpanel/Linux/Netlink.pm line 150.
May 25 16:10:01 mail2.electsys.tech restartsrv_cpsrvd[3948]: send: Connection refused at /usr/local/cpanel/Cpanel/Linux/Netlink.pm line 150.
May 25 16:11:02 mail2.electsys.tech restartsrv_cpsrvd[486]: send: Connection refused at /usr/local/cpanel/Cpanel/Linux/Netlink.pm line 150.
May 25 16:22:08 mail2.electsys.tech restartsrv_cpsrvd[2437]: send: Connection refused at /usr/local/cpanel/Cpanel/Linux/Netlink.pm line 150.
May 25 16:27:21 mail2.electsys.tech restartsrv_cpsrvd[2845]: send: Connection refused at /usr/local/cpanel/Cpanel/Linux/Netlink.pm line 150.
cpanel_and_whm: 11.110.0.7
operating_system_name: centos
operating_system_version: 7
What's the next step to try?
Last edited by a moderator: