[Mailman-Users] Operation not permitted

Mark Sapiro mark at msapiro.net
Sat Apr 18 20:19:24 CEST 2009

Clovis Tristao wrote:
>I would like to know how to solve the problem below?
>Apr 17 14:31:36 2009 (18013) Uncaught runner exception: [Errno 1] 
>Operation not permitted: 
>Apr 17 14:31:36 2009 (18013) Traceback (most recent call last):
>  File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 112, in _oneloop
>    self._onefile(msg, msgdata)
>  File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 170, in _onefile
>    keepqueued = self._dispose(mlist, msg, msgdata)
>  File "/usr/lib/mailman/Mailman/Queue/ArchRunner.py", line 73, in _dispose
>    mlist.ArchiveMail(msg)
>  File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 217, in 
>    h.close()
>  File "/usr/lib/mailman/Mailman/Archiver/pipermail.py", line 327, in close
>    self.write_TOC()
>  File "/usr/lib/mailman/Mailman/Archiver/HyperArch.py", line 1094, in 
>    toc = open(os.path.join(self.basedir, 'index.html'), 'w')
>IOError: [Errno 1] Operation not permitted: 
>Another detail, the directory is in shunt with 3000 files, the files can 
>delete this directory?

The above error occurs because Mailman doesn't have permission to write

You need to run bin/check_perms -f as root to fix permissions, and even
that may not fix them all. If it looks like permissions are OK
(everything should be group 'mailman' and group writable and
directories should be SETGID), it may be a SELinux or other security
manager issue.

This error only affects archiving. Presumably the shunted messages are
the ones missing from the archive because of this error. Even though
this error occurs and prevents updating the html archive, the messages
are probably in the
/var/lib/mailman/archives/private/cipg-l.mbox/cipg-l.mbox file, so the
easiest solution may be to first fix the permissions issue and then
with mailman stopped, run

  bin/arch --wipe cipg-l

as the 'mailman' user to rebuild the html archive. Then you could
remove the files from the shunt queue.

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list