upcp - Maintenance ended, however it did not exit cleanly

mvandemar

Well-Known Member
Jun 17, 2006
175
52
178
I know this is an old thread, but I am getting the exact same issue with upcp last night:

SOLVED - cPanel 68 - Maintenance ended, however it did not exit cleanly

Code:
# awk '$4=="E"' /var/cpanel/updatelogs/update.1534827841.log
[2018-08-21 05:04:54 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services] The “/usr/local/cpanel/scripts/find_outdated_services --auto” command (process 3012) reported error number 255 when it ended.
[2018-08-21 05:05:51 +0000] E Pre Maintenance ended, however it did not exit cleanly (256). The following events were logged: "scripts/find_outdated_services". Please check the logs for an indication of what happened
I manually ran /usr/local/cpanel/scripts/find_outdated_services which found and restarted 18 outdated services without any error. An earlier post suggested to then rebuild the rpm database and then run upcp --force twice.

According to one post I found, I should start this process with: "Take system to single user mode to avoid further damage and to make backup/restore process easy". This makes it seem to me like rebuilding the rpm database is a non-trivial process, is this correct? Or is there just some simple update command I should run?
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello @mvandemar,

Booting the server into single-user mode isn't required to solve this type of issue. Can you verify which version of cPanel & WHM is currently installed on this system? You can check by running the following command:

Code:
cat /usr/local/cpanel/version
Also, can you run "/scripts/upcp" again to see if the issue persists?

Thank you.