{"comment":{"created_at":"2011-10-24T15:45:02Z","body":"I get the very same error. I'm using the gem from github though, not the rubygem version ...\r\nIt didn't occur as long as I was deploying on the production environment. I have now renamed this environment into staging and it breaks.","updated_at":"2011-10-24T15:45:02Z","url":"https://api.github.com/repos/airbrake/airbrake/issues/comments/2505063","id":2505063,"user":{"avatar_url":"https://secure.gravatar.com/avatar/6fa1cdda524d49996a8bc6917328de3d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6fa1cdda524d49996a8bc6917328de3d","url":"https://api.github.com/users/dmathieu","id":9347,"login":"dmathieu"}},"action":"created","issue":{"number":18,"created_at":"2011-09-22T17:08:32Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hi,\r\n\r\nI'm using engine yard and I receive this message on every deploy:\r\n\r\n```\r\n/data/app/shared/bundled_gems/ruby/1.9.1/gems/airbrake-3.0.4/lib/airbrake.rb:134:in `send_notice': undefined method `send_to_airbrake' for nil:NilClass (NoMethodError)\r\n\tfrom /data/app/shared/bundled_gems/ruby/1.9.1/gems/airbrake-3.0.4/lib/airbrake.rb:103:in `notify'\r\n\tfrom /data/app/shared/bundled_gems/ruby/1.9.1/gems/airbrake-3.0.4/lib/airbrake/rake_handler.rb:15:in `display_error_message_with_airbrake'\r\n\tfrom /data/app/shared/bundled_gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:138:in `rescue in standard_exception_handling'\r\n\tfrom /data/app/shared/bundled_gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:128:in `standard_exception_handling'\r\n\tfrom /data/app/shared/bundled_gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'\r\n\tfrom /data/app/shared/bundled_gems/ruby/1.9.1/gems/rake-0.9.2/bin/rake:32:in `<top (required)>'\r\n\tfrom /data/app/shared/bundled_gems/ruby/1.9.1/bin/rake:19:in `load'\r\n\tfrom /data/app/shared/bundled_gems/ruby/1.9.1/bin/rake:19:in `<main>'\r\n```\r\n\r\nUsing 3.0.4:\r\n\r\n``` ruby\r\ngem 'airbrake', '3.0.4'\r\n```\r\n\r\nAfter restart hook:\r\n\r\n```\r\n# notify airbrake about deploy\r\n# see more: http://help.airbrakeapp.com/kb/api-2/deploy-tracking\r\nnotify_deploy_environments = %w(staging production)\r\nnotify_deploy_roles        = %w(solo app_master)\r\n\r\nif notify_deploy_environments.include?(@configuration[:environment]) && notify_deploy_roles.include?(node['instance_role'])\r\n  run \"cd #{release_path} && bundle exec rake hoptoad:deploy TO=#{@configuration[:environment].strip} REVISION=#{@configuration[:revision].strip} USER=`whoami` REPO=#{@configuration[:repo].strip}\"\r\nend\r\n```\r\n\r\nI've missed something?","comments":2,"title":"Deploy notification is not working (exception)","updated_at":"2011-10-24T15:45:02Z","url":"https://api.github.com/repos/airbrake/airbrake/issues/18","id":1715924,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/c2dc9c02ce7a041285725a4fc9e5f6d2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c2dc9c02ce7a041285725a4fc9e5f6d2","url":"https://api.github.com/users/sobrinho","id":26460,"login":"sobrinho"},"html_url":"https://github.com/airbrake/airbrake/issues/18","labels":[],"state":"open"},"legacy":{"issue_id":1715924,"comment_id":2505063}}