Symptoms
When starting cPanel via command-line, the following is shown:
# /scripts/restartsrv_cpsrvd
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 27232) reported error number 1 when it ended.): Job for cpanel.service failed because a timeout was exceeded. See "systemctl status cpanel.service" and "journalctl -xe" for details.
…Waiting for cpsrvd,cpaneld,webmaild,whostmgrd to shutdown ... not running.
info [restartsrv_cpsrvd] systemd failed to start the service “cpanel” (The “/usr/bin/systemctl restart cpanel.service --no-ask-password” command (process 27387) reported error number 1 when it ended.): Job for cpanel.service failed because a timeout was exceeded. See "systemctl status cpanel.service" and "journalctl -xe" for details.
…failed.
Cpanel::Exception::Services::StartError
Service Status
undefined status from Cpanel::ServiceManager::Services::Cpsrvd
Service Error
(XID xxxxx) The “cpsrvd” service failed to start.
Startup Log
Jan 01 00:00:00 server.hostname.com restartsrv_cpsrvd[27391]: /usr/local/cpanel/libexec/cpsrvd-dormant: Waiting to bind to /usr/local/cpanel/var/cpwrapd.sock (No space left on device)....
Jan 01 00:00:00 server.hostname.com restartsrv_cpsrvd[27391]: /usr/local/cpanel/libexec/cpsrvd-dormant: Waiting to bind to /usr/local/cpanel/var/cpwrapd.sock (No space left on device)....
Jan 01 00:00:00 server.hostname.com restartsrv_cpsrvd[27391]: /usr/local/cpanel/libexec/cpsrvd-dormant: Waiting to bind to /usr/local/cpanel/var/cpwrapd.sock (No space left on device)....
Jan 01 00:00:00 server.hostname.com restartsrv_cpsrvd[27391]: /usr/local/cpanel/libexec/cpsrvd-dormant: Waiting to bind to /usr/local/cpanel/var/cpwrapd.sock (No space left on device)....
Jan 01 00:00:00 server.hostname.com restartsrv_cpsrvd[27391]: /usr/local/cpanel/libexec/cpsrvd-dormant: Waiting to bind to /usr/local/cpanel/var/cpwrapd.sock (No space left on device)....
Jan 01 00:00:00 server.hostname.com restartsrv_cpsrvd[27391]: /usr/local/cpanel/libexec/cpsrvd-dormant: Waiting to bind to /usr/local/cpanel/var/cpwrapd.sock (No space left on device)....
Jan 01 00:00:00 server.hostname.com systemd[1]: cpanel.service start operation timed out. Terminating.
Jan 01 00:00:00 server.hostname.com systemd[1]: Failed to start cPanel services.
Jan 01 00:00:00 server.hostname.com systemd[1]: Unit cpanel.service entered failed state.
Jan 01 00:00:00 server.hostname.com systemd[1]: cpanel.service failed.
cpsrvd has failed. Contact your system administrator if the service does not automagically recover.
Description
This is due to no disk space being available on the device cPanel was installed on. You can review available storage with the "df" command.
# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 250M 3.6G 7% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/vda1 50G 50G 20K 100% /
/dev/loop0 1.1G 6.2M 975M 1% /tmp
tmpfs 783M 0 783M 0% /run/user/0
Additionally, if your storage capacity is not at 100%, cPanel still may be unable to write files due to your system having too many files. This can be seen based on the number of "inodes" used on your system.
# df -ih
Filesystem Inodes IUsed IFree IUse% Mounted on
devtmpfs 122K 378 122K 1% /dev
tmpfs 124K 1 124K 1% /dev/shm
tmpfs 124K 757 124K 1% /run
tmpfs 124K 7 124K 1% /sys/fs/cgroup
/dev/vda1 8.2M 347K 7.9M 5% /
/dev/loop0 126K 43 125K 1% /tmp
tmpfs 124K 1 124K 1% /run/user/0
Workaround
You will need to clean up any extra data that isn't needed to get cPanel started, then, optionally, you could add an additional drive to be used as a new /home2
directory to store your users.
This tool can be used to move accounts to the new drive once mounted and formatted.
Additionally, we have this article on finding and addressing inode usage.
Comments
0 comments
Article is closed for comments.