Cron jobs

View: New views
2 Messages — Rating Filter:   Alert me  

Cron jobs

by Melinda Gilmore :: Rate this Message:

| View Threaded | Show Only this Message

I keep getting this message from some cron jobs run.  And I have looked at
the permissions for the list it is referring to, but cannot seem to fix the
problem. Can anyone point me in the right direction

Your "cron" job on lists
/usr/local/bin/python -S /usr/local/mailman/cron/senddigests

produced the following output:

Traceback (most recent call last):
  File "/usr/local/mailman/cron/senddigests", line 94, in ?
    main()
  File "/usr/local/mailman/cron/senddigests", line 87, in main
    mlist.Save()
  File "/usr/local/mailman/Mailman/MailList.py", line 557, in Save
    self.__save(dict)
  File "/usr/local/mailman/Mailman/MailList.py", line 512, in __save
    fp = open(fname_tmp, 'w')
IOError: [Errno 13] Permission denied:
'/usr/local/mailman/lists/sis_directors/config.pck.tmp.lists.12634'

Melinda Gilmore
Systems Engineer
The Ohio State University
Enterprise Messaging/OIT
614-292-4953

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@...
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: http://mail.python.org/mailman/options/mailman-users/lists%40nabble.com

Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp

Re: Cron jobs

by Dragon-4 :: Rate this Message:

| View Threaded | Show Only this Message

Melinda Gilmore wrote:

>I keep getting this message from some cron jobs run.  And I have looked at
>the permissions for the list it is referring to, but cannot seem to fix the
>problem. Can anyone point me in the right direction
>
>Your "cron" job on lists
>/usr/local/bin/python -S /usr/local/mailman/cron/senddigests
>
>produced the following output:
>
>Traceback (most recent call last):
>   File "/usr/local/mailman/cron/senddigests", line 94, in ?
>     main()
>   File "/usr/local/mailman/cron/senddigests", line 87, in main
>     mlist.Save()
>   File "/usr/local/mailman/Mailman/MailList.py", line 557, in Save
>     self.__save(dict)
>   File "/usr/local/mailman/Mailman/MailList.py", line 512, in __save
>     fp = open(fname_tmp, 'w')
>IOError: [Errno 13] Permission denied:
>'/usr/local/mailman/lists/sis_directors/config.pck.tmp.lists.12634'
---------------- End original message. ---------------------

The user that mailman runs as (default = mailman) needs to have write
permission to the directory shown in the last line of the trace back.
Have you tried running bin/check_perms as root with the -f option?
You may need to run it a few times to fix everything.

These are the permissions I get on my /usr/local/mailman/lists directory:

drwxrwsr-x  9 mailman mailman 4096 Aug  9 09:22 lists


And for a sample list directory:

drwxrwsr-x 3 mailman mailman 4096 Jan  3 09:00 cuisine


If you are running a default installation of mailman, your lists
directories should have the same permissions.

Dragon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@...
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: http://mail.python.org/mailman/options/mailman-users/lists%40nabble.com

Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp