Cpanel service and upcp failure
Hello all
After a random spike to 100% CPU usage on almalinux 9, the cpanel service has failed. Everytime i try to restart the service i get
cpanel.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
when i try to run /scripts/upcp -- force i get this message:
Stale PID file '/var/run/upcp.pid' (pid=15504)
Cpanel::Exception::IO::FileReadError/(XID 3apuha) The system failed to read from the file “/proc/17560/stat” because of an error: No such file or directory
at /usr/local/cpanel/Cpanel/LoadFile.pm line 195.
Cpanel::LoadFile::_load_r(CODE(0x2017f70), "/proc/17560/stat") called at /usr/local/cpanel/Cpanel/LoadFile.pm line 92
Cpanel::LoadFile::load_if_exists("/proc/17560/stat") called at /usr/loca l/cpanel/Cpanel/UPID.pm line 139
Cpanel::UPID::_get_pid_start_delta(17560) called at /usr/local/cpanel/Cp anel/UPID.pm line 80
Cpanel::UPID::get(17560) called at /scripts/upcp line 864
scripts::upcp::_determine_logfile_path_if_running(17560) called at /scri pts/upcp line 224
scripts::upcp::upcp() called at /scripts/upcp line 78
Cpanel::Exception::IO::FileReadError/(XID 2sn8bs) The system failed to read from the file “/proc/17560/stat” because of an error: No such file or directory
at /usr/local/cpanel/Cpanel/LoadFile.pm line 195.
Cpanel::LoadFile::_load_r(CODE(0x2017f70), "/proc/17560/stat") called at /usr/local/cpanel/Cpanel/LoadFile.pm line 92
Cpanel::LoadFile::load_if_exists("/proc/17560/stat") called at /usr/loca l/cpanel/Cpanel/UPID.pm line 139
Cpanel::UPID::_get_pid_start_delta(17560) called at /usr/local/cpanel/Cp anel/UPID.pm line 80
Cpanel::UPID::get(17560) called at /scripts/upcp line 864
scripts::upcp::_determine_logfile_path_if_running(17560) called at /scri pts/upcp line 248
scripts::upcp::upcp() called at /scripts/upcp line 78
Any help would be appreciated!
-
Kah Leong Chan,
It is a common issue after a system crash or resource spike that leaves cPanel in an inconsistent state. There would be state PID files and processes that need removed.
Please follow the below steps and instructions.
1) Remove the state upcp PID file if there is anything
rm -f /var/run/upcp.pid
rm -f /var/run/cpanel/*
2) Kill state cPanel processes
ps aux | grep -i cpanel
ps aux | grep -i upcp#Kill any state processes (replace PID numbers)
kill -9 <state_pid_number>3) Restart cPanel services
systemctl restart cpanel# If that fails, try starting individual components
/scripts/restartsrv_cpanel
/scripts/restartsrv_httpd4) Run force upcp
/scripts/upcp --force
Let us know if those works.Thank you
Regards,
TechAmigo Support1 -
My deepest thanks! I will wait till it's evening when there are no users and attempt this fix.
0 -
No sorry it didn't work Cpanel::Exception::IO::FileReadError/(XID m6rknr) The system failed to read from the file “/proc/3301793/stat” because of an error: No such file or directory
at /usr/local/cpanel/Cpanel/LoadFile.pm line 195.
Cpanel::LoadFile::_load_r(CODE(0x24a72a8), "/proc/3301793/stat") called at /usr/local/cpanel/Cpanel/LoadFile.pm line 92
Cpanel::LoadFile::load_if_exists("/proc/3301793/stat") called at /usr/local/cpanel/Cpanel/UPID.pm line 139
Cpanel::UPID::_get_pid_start_delta(3301793) called at /usr/local/cpanel/Cpanel/UPID.pm line 80
Cpanel::UPID::get(3301793) called at /scripts/upcp line 864
scripts::upcp::_determine_logfile_path_if_running(3301793) called at /scripts/upcp line 224
scripts::upcp::upcp() called at /scripts/upcp line 78
Cpanel::Exception::IO::FileReadError/(XID 5zc5n9) The system failed to read from the file “/proc/3301793/stat” because of an error: No such file or directory
at /usr/local/cpanel/Cpanel/LoadFile.pm line 195.
Cpanel::LoadFile::_load_r(CODE(0x24a72a8), "/proc/3301793/stat") called at /usr/local/cpanel/Cpanel/LoadFile.pm line 92
Cpanel::LoadFile::load_if_exists("/proc/3301793/stat") called at /usr/local/cpanel/Cpanel/UPID.pm line 139
Cpanel::UPID::_get_pid_start_delta(3301793) called at /usr/local/cpanel/Cpanel/UPID.pm line 80
Cpanel::UPID::get(3301793) called at /scripts/upcp line 864
scripts::upcp::_determine_logfile_path_if_running(3301793) called at /scripts/upcp line 248
scripts::upcp::upcp() called at /scripts/upcp line 78this is what is still showing
0 -
You may want to perform a smart test on the server's disk to see if there are issues there. Do you see any messages in /var/log/messages on the machine?
0 -
No I didn't see any relating to a failure of any kind. Just file or directory not found
0 -
What is the output of "ls -ld /proc" on your machine? I'm expecting similar to this:
# ls -ld /proc
dr-xr-xr-x 194 root root 0 Oct 8 12:02 /proc0
Please sign in to leave a comment.
Comments
6 comments