If you need more information on what's happening, you can make faraday log to stdout, which means you can see what's happening and what http calls are being made. The error is happening with OAuth2, so you need to look into why it's timing out.
I'd recommend you run this on your repo:
bundle install --path vendor/bundle
Then, go into the vendor/bundle
folder, into the oauth2 folder, and add the line
connection.response :logger if ENV['DEBUG']
to client.rb
, within the def request(verb, url, opts={})
method.
Then, whatever command you are using to run phusion-passenger
add DEBUG=true
to the start of it.
Long answer I know, but should help diagnose what the faraday issue is!