lockfile blocking other projects on one server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Singing & Dancing |
In Progress
|
Medium
|
Daniel Widerin |
Bug Description
if you have multiple installations of S&D (for example in multiple projects on the same server) you get problems with the generated lockfile-name, because it's always '/tmp/collectiv
Example:
user1 is running your Z1 with S&D.
user2 which is running Z2 with S&D.
user1 is sending a newsletter, @@dancing.utils is running and blocking other instances to start over again which is correct. but it also blocks user2 from sending even a newsletter subscription confirmation mail
By default /tmp/collective
Traceback (innermost last):
Module ZPublisher.Publish, line 127, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 47, in call_object
Module collective.
Module zc.lockfile, line 73, in __init__
IOError: [Errno 13] Permission denied: '/tmp/collectiv
When changing permission to 0664 and put all users into this assigned group it should work (untested) but user1's S&D is still blocking user2's newsletter beeing sent.
So the only really good solution would be including the current project path into lockfile-name.
Changed in singing-dancing: | |
assignee: | nobody → Daniel Widerin (saily) |
importance: | Undecided → Medium |
status: | New → In Progress |
Possible ways to solve this (feedback welcome): configuration to modify your lockfile dynamically.
* include current zope user in lockfilename
* include current path in lockfilename
* include current mailserver in lockfilename (maybe you don't want to stress your mailserver with multiple projects sending the their newsletters the same time)
* include a optional request parameter which you append in your clockserver-