Hi
I know that this has been going around the internet lately. I've done the usual web search. Not really found anything that might work for me. I've installed a CentOS 7 web server. I'm building a site around it. Mailman is my list management software. I've used it for more than ten years. Would like to keep using it.
After installing the standard CentOS 7 package with yum I did..... 'cd /usr/lib/mailman' and 'bin/update'. This installed Mailman 2.1.15. Which then told me after 'service mailman start' ...
" Bug in Mailman version 2.1.15. We're sorry, we hit a bug! Please inform the webmaster for this site of this problem. Printing of traceback and other system information has been explicitly inhibited, but the webmaster can find this information in the Mailman error logs. "
Alright. So, I've stopped knocking my head against the desk now.
/var/log/messages says...
" Aug 15 16:15:01 localhost systemd: Started Session 452 of user mailman. Aug 15 16:20:01 localhost systemd: Created slice user-41.slice. Aug 15 16:20:01 localhost systemd: Starting Session 453 of user mailman. Aug 15 16:20:01 localhost systemd: Started Session 453 of user mailman. Aug 15 16:23:50 localhost systemd: Stopping GNU Mailing List Manager.."
/var/log/mailman/error says....
admin(14216): [----- Mailman Version: 2.1.15 -----] admin(14216): [----- Traceback ------] admin(14216): Traceback (most recent call last): admin(14216): File "/usr/lib/mailman/scripts/driver", line 112, in run_main admin(14216): main() admin(14216): File "/usr/lib/mailman/Mailman/Cgi/admin.py", line 104, in main admin(14216): cgidata.getvalue('adminpw', '')): admin(14216): File "/usr/lib/mailman/Mailman/SecurityManager.py", line 234, in WebAuthenticate admin(14216): ok = self.CheckCookie(ac, user) admin(14216): File "/usr/lib/mailman/Mailman/SecurityManager.py", line 327, in CheckCookie admin(14216): return self.__checkone(c, authcontext, user) admin(14216): File "/usr/lib/mailman/Mailman/SecurityManager.py", line 333, in __checkone admin(14216): key, secret = self.AuthContextInfo(authcontext, user) admin(14216): File "/usr/lib/mailman/Mailman/SecurityManager.py", line 121, in AuthContextInfo admin(14216): sitepass = Utils.get_global_password() admin(14216): File "/usr/lib/mailman/Mailman/Utils.py", line 410, in get_global_password admin(14216): fp = open(filename) admin(14216): IOError: [Errno 13] Permission denied: '/etc/mailman/adm.pw' admin(14216): [----- Python Information -----] admin(14216): sys.version = 2.7.5 (default, Jun 17 2014, 18:11:42)
Can anyone make a suggestion as to how to get this to work for me ?
Perhaps I can just completely remove mailman and reinstall from the
default CentOS 7 package ? Is there a downgrade option so that I
could fix it that way ?
-- Richard Sheffield UK
Hi Further to the last one. I did reinstall from the CentOS RPM. Some things started to work but the list admin page stills gives me the same error. I have tried to build from source but that fails miserably. This is the first time that I've installed Mailman and so I'm not sure what I've missed. /var/log/mailman/error shows... Aug 16 07:12:25 2014 admin(17943): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ admin(17943): [----- Mailman Version: 2.1.15 -----] admin(17943): [----- Traceback ------] admin(17943): Traceback (most recent call last): admin(17943): File "/usr/lib/mailman/scripts/driver", line 112, in run_main admin(17943): main() admin(17943): File "/usr/lib/mailman/Mailman/Cgi/admin.py", line 104, in main admin(17943): cgidata.getvalue('adminpw', '')): admin(17943): File "/usr/lib/mailman/Mailman/SecurityManager.py", line 234, in WebAuthenticate admin(17943): ok = self.CheckCookie(ac, user) admin(17943): File "/usr/lib/mailman/Mailman/SecurityManager.py", line 327, in CheckCookie admin(17943): return self.__checkone(c, authcontext, user) admin(17943): File "/usr/lib/mailman/Mailman/SecurityManager.py", line 333, in __checkone admin(17943): key, secret = self.AuthContextInfo(authcontext, user) admin(17943): File "/usr/lib/mailman/Mailman/SecurityManager.py", line 121, in AuthContextInfo admin(17943): sitepass = Utils.get_global_password() admin(17943): File "/usr/lib/mailman/Mailman/Utils.py", line 410, in get_global_password admin(17943): fp = open(filename) admin(17943): IOError: [Errno 13] Permission denied: '/etc/mailman/adm.pw' admin(17943): [----- Python Information -----] admin(17943): sys.version = 2.7.5 (default, Jun 17 2014, 18:11:42) [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] admin(17943): sys.executable = /usr/bin/python admin(17943): sys.prefix = /usr admin(17943): sys.exec_prefix = /usr admin(17943): sys.path = ['/usr/lib/mailman/pythonlib', '/usr/lib/mailman', '/usr/lib/mailman/scripts', '/usr/lib/mailman', '/usr/lib64/python27.zip', '/us admin(17943): sys.platform = linux2 admin(17943): [----- Environment Variables -----] admin(17943): CONTEXT_DOCUMENT_ROOT: /usr/lib/mailman/cgi-bin/ admin(17943): SERVER_SOFTWARE: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e- fips mod_fcgid/2.3.9 PHP/5.4.16 admin(17943): CONTEXT_PREFIX: /mailman/ -- Richard Sheffield
On 08/16/2014 04:18 AM, Richard Ibbotson wrote:
I'm not sure what I've missed. /var/log/mailman/error shows...
Aug 16 07:12:25 2014 admin(17943): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ admin(17943): [----- Mailman Version: 2.1.15 -----] admin(17943): [----- Traceback ------] admin(17943): Traceback (most recent call last):
...
admin(17943): fp = open(filename) admin(17943): IOError: [Errno 13] Permission denied: '/etc/mailman/adm.pw'
/etc/mailman/adm.pw must be readable by Mailman's group (I think 'mailman' in the CentOS package. This may be a file or a symlink to something like /var/lib/mailman/data/adm.pw. In any case, the target needs to be group mailman and mode 0640. Running sudo bin/check_perms -f should fix this. -- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Saturday 16 August 2014 09:16:44 Mark Sapiro wrote:
This may be a file or a symlink to something like /var/lib/mailman/data/adm.pw. In any case, the target needs to be group mailman and mode 0640.
Running
sudo bin/check_perms -f
should fix this.
Ah... That was the one. I thought it might be a permissions problem but couldn't quite work out the -f part. All seems to be working now :) I even managed to upgrade to Mailman 2.1.8. Looking forward to Mailman 3. Whenever that happens.
Thank you.
-- Richard Sheffield
participants (2)
-
Mark Sapiro
-
Richard Ibbotson