Error in new cpanel update script : Repairing Mailman Permissions IndentationError
AnsweredI have a new standard installed Whm/cpanel server which is giving me an error on the update script every day.
Any idea what could be causing this and how to resolve ?
[2024-01-09 02:02:16 +0100] Processing: Repairing Mailman Permissions
[2024-01-09 02:02:16 +0100] - Processing command `./check_perms -f --noarchives`
[2024-01-09 02:02:16 +0100] E [./check_perms] Traceback (most recent call last):
[2024-01-09 02:02:16 +0100] E [./check_perms] File "./check_perms", line 46, in <module>
[2024-01-09 02:02:16 +0100] E [./check_perms] from Mailman import mm_cfg
[2024-01-09 02:02:16 +0100] E [./check_perms] File "/usr/local/cpanel/3rdparty/mailman/Mailman/mm_cfg.py", line 49, in <module>
[2024-01-09 02:02:16 +0100] E [./check_perms] from Defaults import *
[2024-01-09 02:02:16 +0100] E [./check_perms] File "/usr/local/cpanel/3rdparty/mailman/Mailman/Defaults.py", line 36
[2024-01-09 02:02:16 +0100] E [./check_perms] True, False
[2024-01-09 02:02:16 +0100] E [./check_perms] ^
[2024-01-09 02:02:16 +0100] E [./check_perms] IndentationError: expected an indented block
[2024-01-09 02:02:16 +0100] E [./check_perms] The “./check_perms -f --noarchives” command (process 1847976) reported error number 1 when it ended.
[2024-01-09 02:02:16 +0100] The Administrator will be notified to review this output when this script completes
[2024-01-09 02:02:16 +0100] - Finished command `./check_perms -f --noarchives` in 0.022 seconds
[2024-01-09 02:02:16 +0100] - Finished in 0.023 seconds
-
Hey there! In the past, I've seen this happen due to a bad mailman update. Could you try this to resolve the issue?
rpm -e --nodeps cpanel-mailman
/usr/local/cpanel/scripts/check_cpanel_rpms --fix --targets=mailmanThat will remove and reinstall the package without touching anything else on the system. Can you try that and then let me know if the errors persist?
0 -
You are my hero of the day ! This resolved the error.
Thank you very much.0 -
I'm glad that helped!
0
Please sign in to leave a comment.
Comments
3 comments