cPanel upcp failure but completes to 100%
Hello,
Every day when the cpanel's upcp runs, I get a mail
cPanel & WHM update failure in upcp script
with the log saying [2017-11-30 13:45:18 +0530] [/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini] Processing ea-php56 ... [2017-11-30 13:45:18 +0530] [/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini] No local.ini. [2017-11-30 13:45:18 +0530] [/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini] ... done! [2017-11-30 13:45:18 +0530] [/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini] Processing ea-php70 ... [2017-11-30 13:45:18 +0530] [/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini] No local.ini. [2017-11-30 13:45:18 +0530] [/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini] ... done! [2017-11-30 13:45:18 +0530] - Finished command `/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini --run --verbose` in 0.078 seconds [2017-11-30 13:45:18 +0530] 93% complete [2017-11-30 13:45:18 +0530] - Finished in 0.014 seconds [2017-11-30 13:45:18 +0530] Processing: Ensuring an "Active" MySQL profile is set [2017-11-30 13:45:18 +0530] - Processing command `/usr/local/cpanel/scripts/check_mysql` [2017-11-30 13:45:18 +0530] [/usr/local/cpanel/scripts/check_mysql] "check_mysql" will complete in the background (process ID 26830). [2017-11-30 13:45:18 +0530] - Finished command `/usr/local/cpanel/scripts/check_mysql` in 0.082 seconds [2017-11-30 13:45:18 +0530] 94% complete [2017-11-30 13:45:18 +0530] Processing: Checking CloudLinux installation [2017-11-30 13:45:18 +0530] - Processing command `/usr/local/cpanel/bin/cloudlinux_update` [2017-11-30 13:45:19 +0530] - Finished command `/usr/local/cpanel/bin/cloudlinux_update` in 0.063 seconds [2017-11-30 13:45:19 +0530] Processing: Updating plugins data cache [2017-11-30 13:45:19 +0530] - Processing command `/usr/local/cpanel/bin/refresh_plugin_cache` [2017-11-30 13:45:19 +0530] - Finished command `/usr/local/cpanel/bin/refresh_plugin_cache` in 0.026 seconds [2017-11-30 13:45:19 +0530] 95% complete => Log closed Thu Nov 30 13:45:19 2017 ---------------------------------------------------------------------------------------------------- => Log opened from cPanel Update (upcp) - Slave (23743) at Thu Nov 30 13:45:19 2017 [2017-11-30 13:45:19 +0530] E Post Maintenance ended, however it did not exit cleanly (256). Please check the logs for an indication of what happened
I ran
and it says [2017-11-30 13:44:58 +0530] E [./check_perms] The "./check_perms" command (process 26604) reported error number 1 when it ended. [2017-11-30 13:45:19 +0530] E Post Maintenance ended, however it did not exit cleanly (256). Please check the logs for an indication of what happened
What is the error with check_perms? And how could I solve this? Regards, Vijai
with the log saying [2017-11-30 13:45:18 +0530] [/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini] Processing ea-php56 ... [2017-11-30 13:45:18 +0530] [/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini] No local.ini. [2017-11-30 13:45:18 +0530] [/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini] ... done! [2017-11-30 13:45:18 +0530] [/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini] Processing ea-php70 ... [2017-11-30 13:45:18 +0530] [/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini] No local.ini. [2017-11-30 13:45:18 +0530] [/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini] ... done! [2017-11-30 13:45:18 +0530] - Finished command `/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini --run --verbose` in 0.078 seconds [2017-11-30 13:45:18 +0530] 93% complete [2017-11-30 13:45:18 +0530] - Finished in 0.014 seconds [2017-11-30 13:45:18 +0530] Processing: Ensuring an "Active" MySQL profile is set [2017-11-30 13:45:18 +0530] - Processing command `/usr/local/cpanel/scripts/check_mysql` [2017-11-30 13:45:18 +0530] [/usr/local/cpanel/scripts/check_mysql] "check_mysql" will complete in the background (process ID 26830). [2017-11-30 13:45:18 +0530] - Finished command `/usr/local/cpanel/scripts/check_mysql` in 0.082 seconds [2017-11-30 13:45:18 +0530] 94% complete [2017-11-30 13:45:18 +0530] Processing: Checking CloudLinux installation [2017-11-30 13:45:18 +0530] - Processing command `/usr/local/cpanel/bin/cloudlinux_update` [2017-11-30 13:45:19 +0530] - Finished command `/usr/local/cpanel/bin/cloudlinux_update` in 0.063 seconds [2017-11-30 13:45:19 +0530] Processing: Updating plugins data cache [2017-11-30 13:45:19 +0530] - Processing command `/usr/local/cpanel/bin/refresh_plugin_cache` [2017-11-30 13:45:19 +0530] - Finished command `/usr/local/cpanel/bin/refresh_plugin_cache` in 0.026 seconds [2017-11-30 13:45:19 +0530] 95% complete => Log closed Thu Nov 30 13:45:19 2017 ---------------------------------------------------------------------------------------------------- => Log opened from cPanel Update (upcp) - Slave (23743) at Thu Nov 30 13:45:19 2017 [2017-11-30 13:45:19 +0530] E Post Maintenance ended, however it did not exit cleanly (256). Please check the logs for an indication of what happened
I ran
awk '$4=="E"' /var/cpanel/updatelogs/update.latest.log
and it says [2017-11-30 13:44:58 +0530] E [./check_perms] The "./check_perms" command (process 26604) reported error number 1 when it ended. [2017-11-30 13:45:19 +0530] E Post Maintenance ended, however it did not exit cleanly (256). Please check the logs for an indication of what happened
What is the error with check_perms? And how could I solve this? Regards, Vijai
-
I believe that this is a script used as part of the Mailman maintenance. See this page for a list of available commands and more information: Mailman FAQ - Version 68 Documentation - cPanel Documentation 0 -
Vijai, It may be the problem with your mailman permissions and it has not finished. Use following command to auto check all mailman permission. /usr/local/cpanel/3rdparty/mailman/bin/check_perms or use a command to fix mailman issue /scripts/fixmailman 0 -
Hello, Could you manually run the command below and let us know the output? /usr/local/cpanel/3rdparty/mailman/bin/check_perms
Thank you.0 -
Hello, Could you manually run the command below and let us know the output?
/usr/local/cpanel/3rdparty/mailman/bin/check_perms
Thank you.
I think the script has been modified. Here is the output /usr/local/cpanel/3rdparty/mailman/bin/check_perms Traceback (most recent call last): File "/usr/local/cpanel/3rdparty/mailman/bin/check_perms", line 46, in from Mailman import mm_cfg File "/usr/local/cpanel/3rdparty/mailman/Mailman/mm_cfg.py", line 49, in from Defaults import * File "/usr/local/cpanel/3rdparty/mailman/Mailman/Defaults.py", line 36 True, False ^ IndentationError: expected an indented block0 -
Hello, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you. 0 -
Hello, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.
Thank you! Opened a support request. Request ID 90771990 -
The issue is resolved. The Customer representative removed mailman using rpm -e --nodeps cpanel-mailman
and then installed mailman again using/usr/local/cpanel/scripts/check_cpanel_rpms --fix --targets=mailman
0 -
Hello, I'm glad to see the issue is now solved. Thank you for updating us with the outcome. 0 -
Great, I had the same problem and your answers also fixed my issue! 0 -
Same issue here. Thanks for posting the solution! 0 -
Same issue here. Thanks for posting the solution!
Hello, Do you know if the /usr/local/cpanel/3rdparty/mailman/Mailman/Defaults.py file on your system was manually modified in the past, or if any Mailman configuration changes in general were made on the affected system? Thank you.0
Please sign in to leave a comment.
Comments
11 comments