cpanllogd won't restart
My server was down for about eight hours yesterday. Since it came back up I have been receiving messages every few minutes that say:
The subprocess "/usr/local/cpanel/scripts/restartsrv_cpanellogd" reported error number 255 when it ended.
Nov 10 04:28:10 vps systemd[1]: Starting cPanel Log services...
Nov 10 04:28:10 vps cpanellogd[2208]: ==> cPanel Log Daemon version 26.0
Nov 10 04:28:10 vps systemd[1]: Can't open PID file /var/run/cpanellogd.pid (yet?) after start: Too many levels of symbolic links
Nov 10 04:29:40 vps systemd[1]: cpanellogd.service start operation timed out. Terminating.
Nov 10 04:29:40 vps systemd[1]: Failed to start cPanel Log services.
Nov 10 04:29:40 vps systemd[1]: Unit cpanellogd.service entered failed state.
Nov 10 04:29:40 vps systemd[1]: cpanellogd.service failed.
Nov 10 12:36:33 vps systemd[1]: Starting cPanel Log services...
Nov 10 12:36:33 vps cpanellogd[3636]: ==> cPanel Log Daemon version 26.0
Nov 10 12:36:33 vps systemd[1]: Can't open PID file /var/run/cpanellogd.pid (yet?) after start: Too many levels of symbolic links
Nov 10 12:38:03 vps systemd[1]: cpanellogd.service start operation timed out. Terminating.
Nov 10 12:38:03 vps systemd[1]: Failed to start cPanel Log services.
Nov 10 12:38:03 vps systemd[1]: Unit cpanellogd.service entered failed state.
Nov 10 12:38:03 vps systemd[1]: cpanellogd.service failed.
If I try systemctl restart cpanellogd it does not restart.
I am having the same problem with another service (osmd) which I know is not a cpanel service but the error message is similar:
ConfigServer Outgoing Spam Monitor daemon starting - logging to /var/log/osmd.log
Nov 10 12:04:40 vps systemd[1]: Can't open PID file /var/run/osmd.pid (yet?) after start: Too many levels of symbolic links
Any idea what I should do to fix these issues?
-
Hello! This error typically only occurs when there is a recursive symbolic link configured. Can you provide me with the output of the following commands? ls -la /var/|grep run cd /run ; find -L ./ -type l df -h Please censor any hostnames or information that could trace your server back to us. 0 -
Here is the output. Thank you for your help! [root@ ~]# ls -la /var/|grep run lrwxrwxrwx 1 root root 11 Aug 31 2017 lock -> ../run/lock lrwxrwxrwx 1 root root 6 Aug 31 2017 run -> ../run [root@ ~]# cd /run ; find -L ./ -type l [root@ run]# df -h Filesystem Size Used Avail Use% Mounted on /dev/simfs 325G 200G 126G 62% / devtmpfs 4.0G 0 4.0G 0% /dev tmpfs 4.0G 0 4.0G 0% /dev/shm tmpfs 4.0G 50M 4.0G 2% /run tmpfs 4.0G 0 4.0G 0% /sys/fs/cgroup 0 -
I'm not seeing any recursive linking in place with this setup. I also saw that this issue can be caused by the server kernel not support the O_PATH flag with open(). This can cause service failures similar to the ones you are experiencing. Could you provide me the output from these commands to confirm? perl -E 'our $p = "/proc/self"; $! = 0;$fd = syscall 2, $p, 0x2e0000, 0x7fff98b7c438; ($!) ? say $! : say "Not UPS-177"' uname -a
0 -
[root@ ~]# perl -E 'our $p = "/proc/self"; $! = 0;$fd = syscall 2, $p, 0x2e0000, 0x7fff98b7c438; ($!) ? say $! : say "Not UPS-177"' Too many levels of symbolic links [root@ ~]# uname -a Linux vps 2.6.32-042stab128.2 #1 SMP Thu Mar 22 10:58:36 MSK 2018 x86_64 x86_64 x86_64 GNU/Linux 0 -
Thanks! It looks to me like your kernel is pretty outdated; the time stamp shows March of 2018. The recommended solution to this behavior is to update the server kernel to a more recent version. The following article explains this in greater detail and also provides a workaround in case you are not able to upgrade the server kernel: 0 -
It sounds like they run kernel care but they will not upgrade the base kernel. Short of migrating all 50+ accounts to another VPS do I have any other options? Is there no other way to clear this error? 0 -
My kernel is this one: Linux vps 2.6.32-042stab128.2 #1 SMP Thu Mar 22 10:58:36 MSK 2018 x86_64 x86_64 x86_64 GNU/Linux In the other post it said the fix was applicable to this: CentOS 7.7 and OpenVZ/Virtuozzo with kernels older than 2.6.32-042stab134.7 In any case I already tried it last night and it seemed to work perfectly. All services are back up and running. Eventually I am going to have to migrate but at least now I feel like I have some wiggle room on doing so. 0 -
Thanks for this confirmation! I am happy to see everything is working. 0
Please sign in to leave a comment.
Comments
11 comments