Installation ERROR /sbin/service: No such file or directory
AnsweredHello.
During a default cPanel & WHM installation on AlmaLinux 9 the following ERROR occurred:
2025-10-15 09:03:42 743 [16195] (DEBUG): - ssystem [BEGIN]: ps -U nscd -h 2>/dev/null || /sbin/service nscd start
2025-10-15 09:03:42 743 [16195] (DEBUG): sh: line 1: /sbin/service: No such file or directory
2025-10-15 09:03:42 743 [16195] (ERROR): ^[[1;31m - ssystem [EXIT_CODE] 'ps -U nscd -h 2>/dev/null || /sbin/service nscd start' exited with 127^[[0;m
2025-10-15 09:03:42 743 [16195] (DEBUG): - ssystem [END]
That was the only ERROR reported in the installation log.
No other references to /sbin/service are there in the log, and at the end of the SUCCESSFUL installation, the script /sbin/service exists:
# ls -l /sbin/service
-rwxr-xr-x 1 root root 4623 Aug 27 2024 /sbin/service
How significant can this error be, and how can it be avoided on a fresh default installation on AlmaLinux 9?
Thanks in advance
-
Hey there! It's not significant at all, and it seems in the few cases this has happened the issue has resolved itself. Has this happened frequently on your Alma9 environments?
0 -
Hi.
No, it was my first installation on AlmaLinux 9. I hope it's not a systematic error, in witch case it would be useful to know why it happens.
Thank you0 -
At this time I'm not able to reproduce, and my search yesterday only found two other tickets where this happened, although we weren't able to get much information from those users.
If you see this happen again please let me know and I can take a deeper look into this for you.
0 -
Ok, thank you
0 -
I just installed cPanel in an AlmaLinux 9 server, AlmaLinux v9.6.0 STANDARD kvm, and there is that error:
2025-10-16 13:33:08 743 [6107] (DEBUG): - ssystem [BEGIN]: ps -U nscd -h 2>/dev/null || /sbin/service nscd start
2025-10-16 13:33:08 743 [6107] (DEBUG): sh: line 1: /sbin/service: No such file or directory
2025-10-16 13:33:08 743 [6107] (ERROR): ESC[1;31m - ssystem [EXIT_CODE] 'ps -U nscd -h 2>/dev/null || /sbin/service nscd start' exited with 127ESC[0;m
2025-10-16 13:33:08 743 [6107] (DEBUG): - ssystem [END]0 -
Let me do some more homework on this and I'll get back with you guys!
0 -
I've created case CPANEL-49815 to have our team look into this and I'll be sure to post once I hear any updates. For now it seems like it's safe to ignore the issue as this doesn't affect the functionality of the server.
0 -
For anyone still seeing this issue, you can run the following command:
yum -y install initscripts-service
and that should take care of things!
0 -
Update - we just released a new installer that will keep this from happening in the future, so this is resolve now.
0
Please sign in to leave a comment.
Comments
9 comments