Rails controller exceptions don't show a Rack environment tab

dungeoneers's Avatar

dungeoneers

14 Mar, 2012 04:58 PM

Sometimes exceptions that are occurring from inside standard Rails controllers don't display the Rack environment within Airbrake. There's no Environment tab. I really need that for debugging efficiency. What could be causing this, since any exception from within a Rails request should have a Rack environment?

  1. Support Staff 2 Posted by Morgan on 19 Apr, 2012 01:36 AM

    Morgan's Avatar

    Hi,
    Sorry about the trouble you are experiencing
    We know about this issue and are planning to do some work on the issue over the weekend
    Morgan

  2. 3 Posted by Steve Landwehr on 10 Jul, 2012 05:40 PM

    Steve Landwehr's Avatar

    Hi Morgan. Are there any updates on this issue?

  3. Support Staff 4 Posted by Morgan on 10 Jul, 2012 05:44 PM

    Morgan's Avatar

    Hi Steve,

    Sorry about the lack of an update. Please make sure you upgrade your AirBrake gem to the most current version. When you get a chance let me know if errors that should have the environment tab still do not have one. Happy to help further with this if that does not solve the issue.

    From,
    Morgan

  4. 5 Posted by Steve Landwehr on 10 Jul, 2012 08:20 PM

    Steve Landwehr's Avatar

    I updated my Airbrake gem from 3.1.1 to 3.1.2 but I'm still not seeing the environment tab on newly-created errors.

  5. Support Staff 6 Posted by Morgan on 10 Jul, 2012 08:39 PM

    Morgan's Avatar

    Hello Steve,

    Thank you for the response. I am going to report this issue to the development team for further review. Could you also provide me with the version of rails and ruby you are running? as well as a paste / gist of the output of Airbrake.configuration from the rails console of your app. These are vert useful tools for the development team to reproduce and solve your issue. Thank you for your patience on this. Please get back to me when you can.

    From,
    Morgan

  6. 7 Posted by Steve Landwehr on 10 Jul, 2012 10:13 PM

    Steve Landwehr's Avatar

    Thanks for your help Morgan. In the Airbrake.configuration output below, I've removed our API key.

    ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

    rails 3.2.5

    #<Airbrake::Configuration:0x00000005026b88 @secure=false,
    @use_system_ssl_cert_chain=false, @host="api.airbrake.io",
    @http_open_timeout=2, @http_read_timeout=5, @params_filters=["password",
    "password_confirmation"],
    @backtrace_filters=[#<Proc:0x00000004aefc50@/usr/local/mdm/production/mdm/s
    hared/bundle/ruby/1.9.1/gems/airbrake-3.1.1/lib/airbrake/configuration.rb:1
    06 (lambda)>, 
    #<Proc:0x00000004aefbd8@/usr/local/mdm/production/mdm/shared/bundle/ruby/1.
    9.1/gems/airbrake-3.1.1/lib/airbrake/configuration.rb:113 (lambda)>,
    #<Proc:0x00000004aefae8@/usr/local/mdm/production/mdm/shared/bundle/ruby/1.
    9.1/gems/airbrake-3.1.1/lib/airbrake/configuration.rb:114 (lambda)>,
    #<Proc:0x00000004aefa70@/usr/local/mdm/production/mdm/shared/bundle/ruby/1.
    9.1/gems/airbrake-3.1.1/lib/airbrake/configuration.rb:121 (lambda)>],
    @ignore_by_filters=[], @ignore=["ActiveRecord::RecordNotFound",
    "ActionController::RoutingError",
    "ActionController::InvalidAuthenticityToken",
    "CGI::Session::CookieStore::TamperedWithCookie",
    "ActionController::UnknownAction", "AbstractController::ActionNotFound",
    "Mongoid::Errors::DocumentNotFound"], @ignore_user_agent=[],
    @development_environments=["development", "test", "cucumber"],
    @development_lookup=true, @notifier_name="Airbrake Notifier",
    @notifier_version="3.1.1",
    @notifier_url="https://github.com/airbrake/airbrake", @framework="Rails:
    3.2.5", @user_information="Airbrake Error {{error_id}}",
    @rescue_rake_exceptions=nil, @api_key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    @logger=#<Logger:0x00000004918620 @progname=nil, @level=0,
    @default_formatter=#<Logger::Formatter:0x000000049182b0
    @datetime_format=nil>,
    @formatter=#<Logger::SimpleFormatter:0x00000004917d38
    @datetime_format=nil>, @logdev=#<Logger::LogDevice:0x00000004917fb8
    @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:<STDOUT>>,
    @mutex=#<Logger::LogDevice::LogDeviceMutex:0x00000004917f40
    @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000004917d60>>>>,
    @environment_name="production",
    @project_root=#<Pathname:/usr/local/mdm/production/mdm/releases/20120706212
    010>>
    
  7. Support Staff 8 Posted by Morgan on 16 Jul, 2012 05:17 PM

    Morgan's Avatar

    Hello Steve,

    From a brief review of your Airbrake.configuration the line that says

    @notifier_version="3.1.1",
    

    Tells me that somehow even with 3.1.2 installed your app is still using 3.1.1 Please make sure to remove the 3.1.1 version of the Airbrake gem and let me know if that solves it, as this may be the problem.

    From,
    Morgan

  8. 9 Posted by Steve Landwehr on 16 Jul, 2012 05:38 PM

    Steve Landwehr's Avatar

    Our Airbrake.configuration is now reporting that we are using 3.1.2 and newly-created errors now have the Environment tab. Thanks for your help Morgan.

  9. Support Staff 10 Posted by Morgan on 17 Jul, 2012 11:20 PM

    Morgan's Avatar

    Hello Steve,

    That is great to hear! Please let me know if you run into any other problems that need to be solved. Happy to help :)

    From,
    Morgan

  10. Morgan closed this discussion on 17 Jul, 2012 11:20 PM.

Comments are currently closed for this discussion. You can start a new one.