[Mailman-Users] Permission denied
John Poltorak
jp at warpix.org
Tue Jan 18 16:39:48 CET 2005
On Tue, Jan 18, 2005 at 01:10:38PM +0100, Brad Knowles wrote:
> At 11:44 AM +0000 2005-01-18, John Poltorak wrote:
>
> > Jan 18 11:35:20 2005 qrunner(10393): OSError : [Errno 13] Permission denied:
> >
> >'/usr/local/mailman/qfiles/virgin/1106041778.22+6270e8743606d6150c4dd1d6abbb5b7514ed40ce.pck'
> >
> >
> >
> > Is the Errno 13 something which is received from the OS?
>
>
> So, errno=13 is definitely being passed up by the OS to Mailman,
> which is correctly interpreting this to mean that some
> file/filesystem permission was denied to it.
>
> As to exactly what that means in your particular context, it's
> hard to say. I'd go looking at permissions and ownership of
> everything from /usr/local/mailman on down, and try running the
> program /usr/local/mailman/bin/check_perms.
I think the problem is trying to delete an open file...
Is there any reason why the os.unlink (in Switchboard.py) below couldn't
be done after fp.close?
def dequeue(self, filebase):
# Calculate the filename from the given filebase.
filename = os.path.join(self.__whichq, filebase + '.pck')
# Read the message object and metadata.
fp = open(filename)
os.unlink(filename)
try:
msg = cPickle.load(fp)
data = cPickle.load(fp)
finally:
fp.close()
if data.get('_parsemsg'):
msg = email.message_from_string(msg, Message.Message)
return msg, data
> --
> Brad Knowles, <brad at stop.mail-abuse.org>
>
> "Those who would give up essential Liberty, to purchase a little
> temporary Safety, deserve neither Liberty nor Safety."
>
> -- Benjamin Franklin (1706-1790), reply of the Pennsylvania
> Assembly to the Governor, November 11, 1755
>
> SAGE member since 1995. See <http://www.sage.org/> for more info.
--
John
More information about the Mailman-Users
mailing list