Skip to main content

Cpanel service and upcp failure

Comments

6 comments

  • TechAmigo Support

    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_httpd

    4)  Run force upcp
     
    /scripts/upcp --force

    Let us know if those works.

    Thank you

    Regards,
    TechAmigo Support

    1
  • Kah Leong Chan

    My deepest thanks! I will wait till it's evening when there are no users and attempt this fix.

    0
  • Kah Leong Chan

    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 78 

     

    this is what is still showing

     

    0
  • cPRex Jurassic Moderator

    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
  • Kah Leong Chan

    No I didn't see any relating to a failure of any kind. Just file or directory not found

    0
  • cPRex Jurassic Moderator

    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 /proc
    0

Please sign in to leave a comment.