[Mongrel] Monit / mongel_cluster 0.2.2 / mongrel 1.0.1

Chris T ctmailinglists at googlemail.com
Wed Apr 4 18:50:14 EDT 2007


Paul
Did you ever get to the bottom of this. I'm having a similar (though possibly different) problem with a Rails app failing occasionally and on just one mongrel instance, which from the trace and behaviour seems to be ImageSceince/RubyInline related.
See my post on Rails deployment group: http://groups.google.co.uk/group/rubyonrails-deployment/browse_thread/thread/8ffd04de15bfb7a4?hl=en

Thanks
Chris
> I've fixed the below (previous post) which was simply a case of
> reading the monit manual (it nukes most of the environment settings
> when it runs the script).
>
> Now I'm in a position to debug my problem, which is (I think)
> image_science crashing mongrel during processing of an uploaded file
> with a message of: terminate called after throwing an instance of
> 'int'.
>
> I'm finding it difficult to reproduce the crash reliably as uploading
> the same file works sometimes and not others.  I've tried running
> mongrel with -B, and using killall -USR1 but nothing out of the
> ordinary is being reported.
>
> I've also tried strace-ing the mongrel process and this snippet is the
> closest I can get to something useful:
>
> open("/tmp/rpupload6375.0", O_RDONLY)   = 12 <0.000113>
> futex(0xb6179e2c, FUTEX_WAKE, 2147483647) = 0 <0.000088>
> futex(0xb60a41a4, FUTEX_WAKE, 2147483647) = 0 <0.000081>
> write(2, "terminate called after throwing an instance of \'", 48) = 48
> <0.000137>
> write(2, "int", 3)                      = 3 <0.000092>
> write(2, "\'\n", 2)                     = 2 <0.000091>
> rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0 <0.000146>
> tgkill(6375, 6375, SIGABRT)             = 0 <0.000083>
> --- SIGABRT (Aborted) @ 0 (0) ---
>
> Is it perhaps some sort of file locking issue?   Any ideas on how I
> could go about better tracking down the problem?
>
> Thanks,
> - Paul



More information about the Mongrel-users mailing list