On a Rails 3.2 production site I have ExceptionNotifier installed, which sends me mails when something goes wrong. But I have noticed that when the site genererates a "Ruby (Rack) application could not be started" error, I do not get notified. How/what do I configure in order to get notified by mail when this error occurs? Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Frederick Cheung
2012-Aug-04 10:38 UTC
Re: How to get notified about Ruby (Rack) errors in Rails 3
On Saturday, August 4, 2012 8:36:59 AM UTC+1, Ruby-Forum.com User wrote:> > On a Rails 3.2 production site I have ExceptionNotifier installed, which > sends me mails when something goes wrong. But I have noticed that when > the site genererates a "Ruby (Rack) application could not be started" > error, I do not get notified. How/what do I configure in order to get > notified by mail when this error occurs? Thanks > > As the message implies the app couldn''t be started, so the app isn''t in aposition to tell you about the fact that it encountered an error. You''ll need to use something external to the app. That could be something on your server (monit, nagios etc.) or something external that monitors your site''s availability (such as pingdom) If the failure can be logged to rsyslog (I think passenger might be able to do this if it can''t start your app) then I believe rsyslog can be configured to email you. Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/24LKoci1TNkJ. For more options, visit https://groups.google.com/groups/opt_out.
Nick Snels
2012-Aug-04 16:18 UTC
Re: How to get notified about Ruby (Rack) errors in Rails 3
Hi Fred, thanks for the suggestions. I will look into each of them and hopefully when of them will suite my needs. Thanks. Nick -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.