Differences between revisions 1 and 2
Revision 1 as of 2008-05-28 20:28:13
Size: 2006
Editor: terri
Comment:
Revision 2 as of 2008-07-31 14:08:29
Size: 85
Editor: dunxd
Comment: Page renamed to DOC/4.19 I get "Could not acquire qrunner lock" in ~mailman-logs-qrunner...
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma page-filename DOC/versions/5603556
== 4.19. I get "Could not acquire qrunner lock" in ~mailman/logs/qrunner... ==
qrunner is a little program that processes the queued list mail, i.e. sends it to your MTA. It is invoked by cron, usually once a minute. Before it starts up, it checks for a lock file in ~mailman/locks, because only one qrunner may run at a time (otherwise, messages might be sent out more than once or there could even be deadlocks).

If there is none, it assumes that no other qrunner is running, creates a lock for itself and begins to work through the files in the queue (~mailman/qfiles). If there is a lock, it aborts and prints said error message.

There are two possible reasons for this to happen:

(1) The queue is large, or sending the mail takes long, so the old qrunner has not yet finished when cron starts a new one. This is normal behaviour.

(2) A qrunner has crashed, and was not able to remove the lock it had acquired, or qrunner is choking on some message forever. This is a problem, because no list mail will be delivered until you clean up.

Marc Merlin suggested on mailman-users to check if a qrunner is active, for example by doing "ps aux|grep qrunner". (But this of course often finds its own grep process! Better is to use the "pidof" command.)

If no, you can safely delete the qrunner lock file in ~mailman/locks/ by hand. If yes, he recommends to do a "strace -f -p <process-id of qrunner>" to see what it's doing and whether it is stuck with a certain message. If so, remove the offending message from the queue, kill qrunner and remove the lock.

This should rarely if ever happen with Mailman releases > 2.0.9. If you run into this problem frequently, you should probably ask for assistance on the mailman-users list.

''Last changed on Fri Jan 25 00:14:35 2008 by'' jidanni
<<Color2(Converted from the Mailman FAQ Wizard, col=darkgreen)>>This is one of many [[../Frequently Asked Questions|Frequently Asked Questions]].
#REDIRECT DOC/4.19 I get "Could not acquire qrunner lock" in ~mailman-logs-qrunner...

MailmanWiki: DOC/I get "Could not acquire qrunner lock" in ~mailman-logs-qrunner... (last edited 2008-07-31 14:08:29 by dunxd)