[Mailman-Users] permission problem saving attachments to archives

kristina clair kclair at gmail.com
Thu Mar 30 22:12:48 CEST 2006

On 3/29/06, Mark Sapiro <msapiro at value.net> wrote:
> kristina clair
> >On 3/28/06, Mark Sapiro <msapiro at value.net> wrote:
> >
> >> (what
> >> does 'ls -lR /home/mailman/archives/private/membership/attachments'
> >> show?)
> >
> ># ls -lR /home/mailman/archives/private/membership/attachments
> >/home/mailman/archives/private/membership/attachments:
> >total 0
> This is puzzling. Something is not right about this. Possibly the full
> traceback will contradict me, but I think that Scrubber is in it's
> save_attachment() function and is trying to lock the attachment
> directory
> (/home/mailman/archives/private/membership/attachments/20060301/cf7df1b6/
> in this case) in order to keep other processes out while it computes a
> unique file name to save the attachment. It is the lock.lock() call in
> Scrubber that trys to create
> /home/mailman/archives/private/membership/attachments/20060301/cf7df1b6/attachments.lock.server.com.23421.174.
> However, well before this, Scrubber has called its makedirs() function
> to create as necessary all the directories in
> /home/mailman/archives/private/membership/attachments/20060301/cf7df1b6/,
> and this apparently succeeded yet the directories 20060301/ and
> 20060301/cf7df1b6/ (and even the attachments/ directory initially)
> don't exist.
> Do these directories exist somewhere else?

I did a find for cf7df1b6 and didn't find it anywhere.

Here is the full traceback from the error log:

Mar 29 19:05:37 2006 (23421) Uncaught runner exception: [Errno 13] Permission
denied: '/home/mailman/archives/private/membership/attachments/20060301/cf7df1
Mar 29 19:05:37 2006 (23421) Traceback (most recent call last):
  File "/home/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop
    self._onefile(msg, msgdata)
  File "/home/mailman/Mailman/Queue/Runner.py", line 167, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
  File "/home/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose
    more = self._dopipeline(mlist, msg, msgdata, pipeline)
  File "/home/mailman/Mailman/Queue/IncomingRunner.py", line 153, in _dopipeli
    sys.modules[modname].process(mlist, msg, msgdata)
  File "/home/mailman/Mailman/Handlers/ToDigest.py", line 91, in process
    send_digests(mlist, mboxfp)
  File "/home/mailman/Mailman/Handlers/ToDigest.py", line 132, in send_digests
    send_i18n_digests(mlist, mboxfp)
  File "/home/mailman/Mailman/Handlers/ToDigest.py", line 306, in send_i18n_di
    msg = scrubber(mlist, msg)
  File "/home/mailman/Mailman/Handlers/Scrubber.py", line 227, in process
    url = save_attachment(mlist, part, dir, filter_html=False)
  File "/home/mailman/Mailman/Handlers/Scrubber.py", line 374, in save_attachm
  File "/home/mailman/Mailman/LockFile.py", line 243, in lock
  File "/home/mailman/Mailman/LockFile.py", line 422, in __write
    fp = open(self.__tmpfname, 'w')
IOError: [Errno 13] Permission denied: '/home/mailman/archives/private/members

Mar 29 19:05:37 2006 (23421) SHUNTING: 1143677136.7960529+889704a08fe8f3c3bc33


More information about the Mailman-Users mailing list