Skip to content

Instantly share code, notes, and snippets.

@biot023
Created December 19, 2011 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biot023/1496130 to your computer and use it in GitHub Desktop.
Save biot023/1496130 to your computer and use it in GitHub Desktop.
Full NULL pointer given exception
A ArgumentError occurred in health_check#index:
NULL pointer given
/usr/lib/ruby/gems/1.8/gems/typhoeus-0.3.2/lib/typhoeus/easy.rb:371:in `easy_getinfo_string'
-------------------------------
Request:
-------------------------------
* URL : http://www.myapp.com/health-check
* IP address: XXX.XXX.XXX.XXX
* Parameters: {"action"=>"index", "controller"=>"health_check"}
* Rails root: /var/www/myapp/releases/20111216122556
-------------------------------
Session:
-------------------------------
* session id: "424b47463ea9c1d34adcfdfb35d6a39e"
* data: {:return_to=>"/health-check",
:recently_viewed=>[],
"flash"=>{},
:cart=>#<Cart:0xf53cf2e4 @orders={}, @orderset_detail=nil>}
-------------------------------
Environment:
-------------------------------
* CONTENT_LENGTH :
* DOCUMENT_ROOT : /var/www/myapp/current/public
* HTTP_CONNECTION : close
* HTTP_HOST : www.myapp.com
* HTTP_USER_AGENT : libwww-perl/5.808
* PASSENGER_CONNECT_PASSWORD: UcoaRnxaFOUgBnzdyILV3OpQGpe1pdjX6Y7oiBrUVfL
* PATH_INFO : /health-check
* QUERY_STRING :
* REMOTE_ADDR : XXX.XXX.XXX.XXX
* REMOTE_PORT : 51666
* REQUEST_METHOD : GET
* REQUEST_URI : /health-check
* SCRIPT_NAME :
* SCRIPT_URI : http://www.myapp.com/health-check
* SCRIPT_URL : /health-check
* SERVER_ADDR : XXX.XXX.XXX.XXX
* SERVER_ADMIN : noreply@myapp.com
* SERVER_NAME : www.myapp.com
* SERVER_PORT : 80
* SERVER_PROTOCOL : HTTP/1.1
* SERVER_SOFTWARE : Apache/2.2.8
* _ : _
* Process: 10804
* Server : 001
-------------------------------
Backtrace:
-------------------------------
/usr/lib/ruby/gems/1.8/gems/typhoeus-0.3.2/lib/typhoeus/easy.rb:371:in `easy_getinfo_string'
/usr/lib/ruby/gems/1.8/gems/typhoeus-0.3.2/lib/typhoeus/easy.rb:371:in `get_info_string'
/usr/lib/ruby/gems/1.8/gems/typhoeus-0.3.2/lib/typhoeus/easy.rb:150:in `primary_ip'
/usr/lib/ruby/gems/1.8/gems/typhoeus-0.3.2/lib/typhoeus/hydra.rb:242:in `response_from_easy'
/usr/lib/ruby/gems/1.8/gems/typhoeus-0.3.2/lib/typhoeus/hydra.rb:185:in `get_easy_object'
/usr/lib/ruby/gems/1.8/gems/typhoeus-0.3.2/lib/typhoeus/easy.rb:337:in `call'
/usr/lib/ruby/gems/1.8/gems/typhoeus-0.3.2/lib/typhoeus/easy.rb:337:in `success'
/usr/lib/ruby/gems/1.8/gems/typhoeus-0.3.2/lib/typhoeus/multi.rb:21:in `multi_perform'
/usr/lib/ruby/gems/1.8/gems/typhoeus-0.3.2/lib/typhoeus/multi.rb:21:in `perform'
/usr/lib/ruby/gems/1.8/gems/typhoeus-0.3.2/lib/typhoeus/hydra.rb:95:in `run'
/usr/lib/ruby/gems/1.8/gems/typhoeus-0.3.2/lib/typhoeus/request.rb:181:in `run'
/usr/lib/ruby/gems/1.8/gems/typhoeus-0.3.2/lib/typhoeus/request.rb:186:in `get'
[RAILS_ROOT]/app/controllers/health_check_controller.rb:7:in `index'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:1166:in `send'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:1166:in `perform_action_without_filters'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:579:in `call_filters'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action_without_newrelic_trace'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action_without_newrelic_trace'
/usr/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.4/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:138:in `passenger_orig_perform_action'
/usr/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.4/lib/new_relic/agent/method_tracer.rb:62:in `trace_method_execution_with_scope'
/usr/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.4/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:122:in `passenger_orig_perform_action'
/usr/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.4/lib/new_relic/agent/method_tracer.rb:38:in `trace_method_execution_no_scope'
/usr/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.4/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:117:in `passenger_orig_perform_action'
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/request_handler.rb:66:in `perform_action'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/request_handler.rb:51:in `process_request'
/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:479:in `safe_fork'
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:180:in `start'
/usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/share/phusion-passenger/helper-scripts/passenger-spawn-server:99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment