View Full Version : Postgrey stops every night
Jengle
December 17th, 2007, 02:07 AM
Does anyone know if there is a fix for Postgrey stopping every night? I have a work around using Monit to restart it, but it is annoying that it stops at least 3 or 4 times every night. Anyone have any suggestions?
HermanAB
December 17th, 2007, 05:29 AM
It should not ever stop, unless something removes the mail log file. Check your cron tasks. Maybe logrotate renames the maillog?
Cheers,
Herman
ubnuturero
December 17th, 2007, 07:33 AM
Take a look at
https://bugs.edge.launchpad.net/ubuntu/gutsy/+source/db4.4/+bug/153996
Leonel
MJN
December 17th, 2007, 10:12 AM
Does the mail log give any clue as to why it's stopping?
Mathew
Jengle
December 17th, 2007, 12:34 PM
This is what I see in the mail log:
Dec 17 02:21:34 Ubuntu-1 postgrey[9671]: cleaning up old logs...
Dec 17 02:21:34 Ubuntu-1 postgrey[9671]: cleaning up old entries...
Dec 17 02:21:35 Ubuntu-1 postgrey[9671]: cleaning main database finished. before: 5764, after: 540
Dec 17 02:21:35 Ubuntu-1 postgrey[9671]: fatal: Can't call method "txn_commit" on an undefined value at /usr/sbin/postgrey
MJN
December 17th, 2007, 01:15 PM
That confirms it's the bug referenced by Leonel - so keep an eye on it.
Mathew
Jengle
December 17th, 2007, 03:17 PM
Thanks for confirming that. I looked at the link Leonel sent. I must admit some of it lost me. It doesn't look like there is a fix at this time.
Right now Monit restarts the service for me, but would be nice to have a cure.:confused:
Thanks,
HermanAB
December 17th, 2007, 03:44 PM
Consider downgrading to a previous version of postgrey, till there is a fix for the latest version.
Cheers,
H.
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.