[Mongrel] Possible log rollover mutex problem
mongrelmail at gmail.com
Tue Oct 31 11:29:22 EST 2006
In environments.rb I created a new Logger() and set the rollover to "daily".
All of the mongrels tried to roll the file over at the same time and
continually blocked. Accesses to the site only resulted in application 500
errors. Deleting the logs fixed it. Touching the log file to an old date
On 10/30/06, Zed A. Shaw <zedshaw at zedshaw.com> wrote:
> On Mon, 30 Oct 2006 13:48:43 -0500
> "Jared Brown" <mongrelmail at gmail.com> wrote:
> > It appears that part of the problem could be that when logger rolls over
> > mongrel log file. There is a mutex synchronization issue where the
> > mongrel instances all try to write to the new log file and block each
> > This keeps them in a continual Application 500 Error state. Has anyone
> > into this problem? With log rotation turned off the problem does not
> Aha! I've suspected this for a long time, but I could never reproduce
> it. Research this a bit more for me and I'll tackle it in a few days.
> Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu
> http://safari.oreilly.com/0321483502 -- The Mongrel Book
> http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mongrel-users