Cpanel service down systemd failed to start the service “cpanel”

electsystech

Registered
Jun 10, 2023
3
0
1
Missouri
cPanel Access Level
Root Administrator
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?
 
Last edited by a moderator:

vanessa

Well-Known Member
PartnerNOC
Sep 26, 2006
959
76
178
Virginia Beach, VA
cPanel Access Level
DataCenter Provider
Anything interesting in the cPanel logs? /usr/local/cpanel/logs

I'd perhaps try stopping cpanel entirely (systemctl stop cpanel), make sure nothing its listening on its ports (netstat -plan |grep LISTEN , look for 2087, 2083, etc) then start it up again cleanly. Also maybe try a /scripts/upcp --force to make sure all packages are properly installed.
 

electsystech

Registered
Jun 10, 2023
3
0
1
Missouri
cPanel Access Level
Root Administrator
Per Hostgator:
Your VPS is having issues due to the Virtuozzo plaform that it is on. I have applied a mitigation to allow the cPanel and WHM service to start.

And:
The Virtuozzo platform uses a shared kernel architecture. This kernel is very old because our legacy Virutozzo platform is old. We currently have plans to move all customers to the OpenStack platform however this will take some time. If you decide to migrate to a new VPS then it will already be on the OpenStack platform.

The change I have implemented on your server should resolve the issue going forward, but there are a number of benefits to our current generation of offerings over our legacy offerings, including that since you would have a fully virutalized kernel you would not have the same process restrictions, nor the shared memory restrictions that you have on Virtuozzo, and you would also get a fully virtualized filesystem, with a much larger allocation of inodes, and lastly you would be on SSD storage rather than rotatitional hard drives which would greatly improve IO performance.

And:
It appears as though your server was suffering from request floods from a number of IP addresses, which she blocked. This has made your server more stable after the reboot.

Please let us know if you have any further issues
 

armorer1984

Registered
Sep 4, 2023
1
0
0
Nebraska, USA
cPanel Access Level
Website Owner
I'm also battling repeated downtime from Hostgator for this same issue (Connection Refused, Netlink.pm line 150). Seems every week we have some sort of resource issue that grinds us to a halt and we are down for days while they try to bring us back. I'm looking to migrate to another hosting company.