[Mailman-Developers] Permission problem on CGIs reading config.pck
Chris Boulter
chris at jellybaby.net
Tue Aug 17 11:09:17 CEST 2004
Hi,
I'm getting an intermittent error with our (very non-standard) Mailman
installation. Things are working fine in our (also non-standard)
production installation, but not in development - so possibly I've broken
something with my most recent enhancements, or possibly the installation
is different.
The error is:
Permission denied: '/usr/local/mailman/lists/accounting/config.pck'
The file mentioned:
-rw-rw---- 1 root mailman 3678 Aug 16 09:00
/usr/local/mailman/lists/accounting/config.pck
All config.pck files seem to have the same ownership on production
as these, but the error is not occurring there.
Here are the Apache processes on development, which also look the same as on
production:
cboulter at serpens:~$ ps -ef|grep apache
root 4824 1 0 Aug 06 ? 0:00 /usr/local/apache/bin/httpd
nobody 23519 4824 0 Aug 12 ? 0:00 /usr/local/apache/bin/httpd
nobody 4827 4824 0 Aug 06 ? 0:01 /usr/local/apache/bin/httpd
nobody 4825 4824 0 Aug 06 ? 0:01 /usr/local/apache/bin/httpd
nobody 4826 4824 0 Aug 06 ? 0:01 /usr/local/apache/bin/httpd
nobody 4828 4824 0 Aug 06 ? 0:01 /usr/local/apache/bin/httpd
nobody 4829 4824 0 Aug 06 ? 0:01 /usr/local/apache/bin/httpd
nobody 4831 4824 0 Aug 06 ? 0:01 /usr/local/apache/bin/httpd
nobody 5066 4824 0 Aug 06 ? 0:01 /usr/local/apache/bin/httpd
nobody 22039 4824 0 Aug 06 ? 0:01 /usr/local/apache/bin/httpd
nobody 20334 4824 0 Aug 09 ? 0:01 /usr/local/apache/bin/httpd
Is the problem caused by apache running as 'nobody', so that the Mailman
CGI scripts don't have permission to read config.pck? Why doesn't this
happen on production, where things seem to be the same?
Finally, the full text of the error (line numbers won't match any standard
distribution). I'd be very grateful for any help.
Many thanks,
Chris
<head><title>Bug in Mailman version 2.1.2</title></head>
<body bgcolor=#ffffff><h2>Bug in Mailman version 2.1.2</h2>
<p><h3>We're sorry, we hit a bug!</h3>
<p>If you would like to help us identify the problem,
please email a copy of this page to the webmaster for this site with
a description of what happened. Thanks!
<h4>Traceback:</h4><p><pre>
Traceback (most recent call last):
File "/usr/local/mailman/scripts/driver", line 87, in run_main
main()
File "/usr/local/mailman/Mailman/Cgi/manage-subs.py", line 153, in main
lists_of_memb = lists_of_member(domain, safeuser)
File "/usr/local/mailman/Mailman/Cgi/manage-subs.py", line 598, in
lists_of_member
glist = MailList.MailList(listname, lock=0)
File "/usr/local/mailman/Mailman/MailList.py", line 124, in __init__
self.Load()
File "/usr/local/mailman/Mailman/MailList.py", line 583, in Load
dict, e = self.__load(file)
File "/usr/local/mailman/Mailman/MailList.py", line 549, in __load
fp = open(dbfile)
IOError: [Errno 13] Permission denied:
'/usr/local/mailman/lists/accounting/config.pck'
</pre></body>
<p><hr><h4>Python information:</h4>
<p><table>
<tr><th>Variable</th><th>Value</th></tr>
<tr><td><tt>sys.version</tt></td><td> 2.2.2 (#1, Feb 17 2003, 05:38:40)
[GCC 3.2.2] </td></tr>
<tr><td><tt>sys.executable</tt></td><td> /usr/local/bin/python </td></tr>
<tr><td><tt>sys.prefix</tt></td><td> /usr/local </td></tr>
<tr><td><tt>sys.exec_prefix</tt></td><td> /usr/local </td></tr>
<tr><td><tt>sys.path</tt></td><td> /usr/local </td></tr>
<tr><td><tt>sys.platform</tt></td><td> sunos5 </td></tr>
</table>
<p><hr><h4>Environment variables:</h4>
<p><table>
<tr><th>Variable</th><th>Value</th></tr>
<tr><td><tt> HTTP_COOKIE </tt></td><td>
NSES40Session=0%253A41208c56%253A12fc1ce838a494bb; LBS_Logout=logged_in;
JSESSIONID=serpens.london.edu-1ec%253A41208c5d%253Ad3fa18da5385374;
JSESSIONID=serpens.london.edu-2a%253A41208c67%253Ad243264513d677c5
</td></tr>
<tr><td><tt> SERVER_SOFTWARE </tt></td><td> Apache/1.3.27 (Unix)
</td></tr>
<tr><td><tt> PYTHONPATH </tt></td><td> /usr/local/mailman </td></tr>
<tr><td><tt> SCRIPT_FILENAME </tt></td><td>
/usr/local/mailman/cgi-bin/manage-subs </td></tr>
<tr><td><tt> SERVER_ADMIN </tt></td><td> [no address given] </td></tr>
<tr><td><tt> SCRIPT_NAME </tt></td><td> /mailman/manage-subs </td></tr>
<tr><td><tt> SERVER_SIGNATURE </tt></td><td> <ADDRESS>Apache/1.3.27 Server
at serpens.london.edu Port 80</ADDRESS>
</td></tr>
<tr><td><tt> REQUEST_METHOD </tt></td><td> GET </td></tr>
<tr><td><tt> HTTP_HOST </tt></td><td> serpens.london.edu </td></tr>
<tr><td><tt> PATH_INFO </tt></td><td>
/serpens.london.edu/xxx at london.edu </td></tr>
<tr><td><tt> SERVER_PROTOCOL </tt></td><td> HTTP/1.0 </td></tr>
<tr><td><tt> QUERY_STRING </tt></td><td> </td></tr>
<tr><td><tt> TZ </tt></td><td> GB </td></tr>
<tr><td><tt> REQUEST_URI </tt></td><td>
/mailman/manage-subs/serpens.london.edu/xxx at london.edu </td></tr>
<tr><td><tt> HTTP_ACCEPT </tt></td><td> image/gif, image/x-xbitmap,
image/jpeg, image/pjpeg, application/vnd.ms-powerpoint,
application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */* </td></tr>
<tr><td><tt> PATH_TRANSLATED </tt></td><td>
/usr/local/apache/htdocs/serpens.london.edu/xxx at london.edu </td></tr>
<tr><td><tt> HTTP_USER_AGENT </tt></td><td> Mozilla/4.0 (compatible; MSIE
6.0; Windows NT 5.1) </td></tr>
<tr><td><tt> HTTP_CONNECTION </tt></td><td> Keep-Alive </td></tr>
<tr><td><tt> SERVER_NAME </tt></td><td> serpens.london.edu </td></tr>
<tr><td><tt> REMOTE_ADDR </tt></td><td> 163.119.71.11 </td></tr>
<tr><td><tt> REMOTE_PORT </tt></td><td> 45213 </td></tr>
<tr><td><tt> HTTP_ACCEPT_LANGUAGE </tt></td><td> en-gb </td></tr>
<tr><td><tt> SERVER_ADDR </tt></td><td> 163.119.71.11 </td></tr>
<tr><td><tt> SERVER_PORT </tt></td><td> 80 </td></tr>
<tr><td><tt> GATEWAY_INTERFACE </tt></td><td> CGI/1.1 </td></tr>
<tr><td><tt> HTTP_ACCEPT_ENCODING </tt></td><td> gzip, deflate </td></tr>
<tr><td><tt> UNIQUE_ID </tt></td><td> QSCMaqN3RwsAABLcFtQ </td></tr>
<tr><td><tt> DOCUMENT_ROOT </tt></td><td> /usr/local/apache/htdocs
</td></tr>
</table>
--
chris at jellybaby.net
More information about the Mailman-Developers
mailing list