Skip to content

Instantly share code, notes, and snippets.

@kbighorse
Created April 18, 2011 09:08
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 kbighorse/925039 to your computer and use it in GitHub Desktop.
Save kbighorse/925039 to your computer and use it in GitHub Desktop.
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
/usr/local/lib/ruby/1.8/net/http.rb:586:in `connect'
/usr/local/lib/ruby/1.8/net/http.rb:586:in `connect'
/usr/local/lib/ruby/1.8/net/http.rb:553:in `do_start'
/usr/local/lib/ruby/1.8/net/http.rb:542:in `start'
/usr/local/lib/ruby/1.8/net/http.rb:1035:in `__request__'
[GEM_ROOT]/gems/rest-client-1.6.1/lib/restclient/net_http_ext.rb:17:in `request_without_newrelic_trace'
vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/net.rb:11:in `request'
vendor/plugins/newrelic_rpm/lib/new_relic/agent/method_tracer.rb:141:in `trace_execution_scoped'
vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/net.rb:10:in `request'
/usr/local/lib/ruby/1.8/net/http.rb:772:in `get'
[GEM_ROOT]/gems/faraday-0.6.1/lib/faraday/adapter/net_http.rb:49:in `call'
[GEM_ROOT]/gems/faraday-0.6.1/lib/faraday/request/url_encoded.rb:14:in `call'
[GEM_ROOT]/gems/faraday-0.6.1/lib/faraday/request.rb:88:in `run'
[GEM_ROOT]/gems/faraday-0.6.1/lib/faraday/request.rb:28:in `run'
[GEM_ROOT]/gems/faraday-0.6.1/lib/faraday/connection.rb:170:in `run_request'
[GEM_ROOT]/gems/oauth2-0.3.0/lib/oauth2/client.rb:56:in `request'
[GEM_ROOT]/gems/oauth2-0.3.0/lib/oauth2/strategy/web_server.rb:15:in `get_access_token'
[GEM_ROOT]/gems/oa-oauth-0.2.2/lib/omniauth/strategies/oauth2.rb:87:in `build_access_token'
[GEM_ROOT]/gems/oa-oauth-0.2.2/lib/omniauth/strategies/facebook.rb:31:in `build_access_token'
[GEM_ROOT]/gems/oa-oauth-0.2.2/lib/omniauth/strategies/oauth2.rb:66:in `callback_phase'
[GEM_ROOT]/gems/oa-core-0.2.2/lib/omniauth/strategy.rb:54:in `call!'
[GEM_ROOT]/gems/oa-core-0.2.2/lib/omniauth/strategy.rb:26:in `call'
[GEM_ROOT]/gems/oa-core-0.2.2/lib/omniauth/builder.rb:30:in `call'
[GEM_ROOT]/gems/haml-3.0.24/lib/sass/plugin/rack.rb:41:in `call'
[GEM_ROOT]/gems/actionpack-2.3.11/lib/action_controller/string_coercion.rb:25:in `call'
[GEM_ROOT]/gems/rack-1.1.2/lib/rack/head.rb:9:in `call'
[GEM_ROOT]/gems/rack-1.1.2/lib/rack/methodoverride.rb:24:in `call'
[GEM_ROOT]/gems/actionpack-2.3.11/lib/action_controller/params_parser.rb:15:in `call'
[GEM_ROOT]/gems/facebooker-1.0.75/lib/rack/facebook.rb:43:in `call'
[GEM_ROOT]/gems/actionpack-2.3.11/lib/action_controller/session/cookie_store.rb:99:in `call'
[GEM_ROOT]/gems/actionpack-2.3.11/lib/action_controller/failsafe.rb:26:in `call'
[GEM_ROOT]/gems/rack-1.1.2/lib/rack/lock.rb:11:in `call'
[GEM_ROOT]/gems/rack-1.1.2/lib/rack/lock.rb:11:in `synchronize'
[GEM_ROOT]/gems/rack-1.1.2/lib/rack/lock.rb:11:in `call'
[GEM_ROOT]/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:106:in `call'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/utils.rb:479:in `safe_fork'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_server.rb:180:in `start'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/helper-scripts/passenger-spawn-server:99
@donnykurnia
Copy link

Hi,

I get same error, but in omniauth to twitter. I suspect the culprit is newrelic_rpm. See the backtrace that it intercept the request before calling net/http library. See my comment here: omniauth/omniauth#404

Have you found the solution for this bug?

@kbighorse
Copy link
Author

That sounds reasonable, maybe try it without newrelic? I sort of gave up on this back at the time.

@donnykurnia
Copy link

I will tell my client tomorrow about this. We'll see if it's newrelic_rpm that cause all this mess.

@donnykurnia
Copy link

FYI, I have found solution, read it here: omniauth/omniauth#404 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment