Hello all, I am using Rails 2.0.2 and the plugin Exception notification. Contrary to all i haven''t got any problem to get it work and send me errors notification in development, but i do in production. Of course i have disabled all the tricks to make it work in development before deploying. The mailer is well configured because i do receive email for other actions ... so i simply don''t get it. Do i need, after plugin installation to move the exception_notifier.rb file (mailer) to the lib or model directory, in production ? I don''t think so because i don''t do that in development and it works Someone could help me plz ? --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Peter De Berdt
2008-Mar-06 08:10 UTC
Re: Exception notification plugin not working in production
On 05 Mar 2008, at 19:47, Gilles wrote:> I am using Rails 2.0.2 and the plugin Exception notification. Contrary > to all i haven''t got any problem to get it work and send me errors > notification in development, but i do in production. Of course i have > disabled all the tricks to make it work in development before > deploying. > The mailer is well configured because i do receive email for other > actions ... so i simply don''t get it. > > Do i need, after plugin installation to move the exception_notifier.rb > file (mailer) to the lib or model directory, in production ? I don''t > think so because i don''t do that in development and it works > > Someone could help me plz ?My guess is Rails sees the request as a local request. Does the user get a stack trace or the Rails error page? For example, I haven''t found out yet (haven''t really looked for it too) why Apache with load balancing makes Rails think all requests from the local network (192.168.xx.xx) should be considered as a local request, requests from out of that network make Exception Notifier send the mails out. Very weird. IIRC, a setup with my patched Pound balancer (search google for my rimuhosting forum post on that matter) makes Rails behave normally, only real localhost requests are considered as such. Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mike Garey
2008-Mar-06 08:24 UTC
Re: Exception notification plugin not working in production
I just put the following into config/initializers/notify_exceptions.rb: ExceptionNotifier.exception_recipients = %w(mike-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org) ExceptionNotifier.email_prefix = "[MYDOMAIN] " ExceptionNotifier.sender_address = %("Application Error" <app.error-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org>) and make sure you have the following in environments/production.rb config.action_controller.consider_all_requests_local = false and in ApplicationController: include ExceptionNotifiable # remove any consider_local lines Does the ExceptionNotifier mail message show up in your logfile? Does your server mail.log file display any attempt to deliver the message? On 3/5/08, Gilles <gillesmath-ee4meeAH724@public.gmane.org> wrote:> > Hello all, > > I am using Rails 2.0.2 and the plugin Exception notification. Contrary > to all i haven''t got any problem to get it work and send me errors > notification in development, but i do in production. Of course i have > disabled all the tricks to make it work in development before > deploying. > The mailer is well configured because i do receive email for other > actions ... so i simply don''t get it. > > Do i need, after plugin installation to move the exception_notifier.rb > file (mailer) to the lib or model directory, in production ? I don''t > think so because i don''t do that in development and it works > > Someone could help me plz ? > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---