Mailman: unable to restore permissions

Created:

2016-11-16 12:59:44 UTC

Modified:

2017-08-08 13:34:00 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Mailman: unable to restore permissions

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Mailman is unable to check/fix wrong permissions:

# /usr/lib/mailman/bin/check_perms
Traceback (most recent call last):
File "/usr/lib/mailman/bin/check_perms", line 390, in <module>
checkall()
File "/usr/lib/mailman/bin/check_perms", line 205, in checkall
os.path.walk(d, checkwalk, STATE)
File "/usr/lib64/python2.6/posixpath.py", line 236, in walk
walk(name, func, arg)
File "/usr/lib64/python2.6/posixpath.py", line 228, in walk
func(arg, top, names)
File "/usr/lib/mailman/bin/check_perms", line 122, in checkwalk
print C_('%(path)s bad group (has: %(groupname)s, '
File "/usr/lib/mailman/Mailman/i18n.py", line 114, in C_
return tolocale(_(s, 2))
File "/usr/lib/mailman/Mailman/i18n.py", line 101, in _
return tns % dict
ValueError: unsupported format character 't' (0x74) at index 8

Server locale is not English, specifically Spanish:

# locale -v
LANG=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=

Cause

An internal issue in mailman package. The package is provided by OS Vendor.

Resolution

Set up English locale locally:

# export  LC_ALL=C; export  LANG=C
Have more questions? Submit a request
Please sign in to leave a comment.