Note that there are some explanatory texts on larger screens.

plurals
  1. POBitly Gem/ Oauth Gem issues when starting app in production
    primarykey
    data
    text
    <p>I'm trying to deploy my rails application to production however I've hit a bit of a problem. I'm using Nginx and Unicorn and the application has been running fine in production for a while now but a hardware error with my hosting provider earlier today has brought the site down and while trying to revive it the following errors appeared in the unicorn error log: </p> <pre><code>E, [2012-11-23T21:30:03.291386 #4370] ERROR -- : reaped #&lt;Process::Status: pid 7795 exit 1&gt; worker=0 I, [2012-11-23T21:30:03.291819 #4370] INFO -- : worker=0 spawning... I, [2012-11-23T21:30:03.310884 #7801] INFO -- : worker=0 spawned pid=7801 I, [2012-11-23T21:30:03.311488 #7801] INFO -- : Refreshing Gem list /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/faraday-0.7.6/lib/faraday/connection.rb:1:in `require': no such file to load -- addressable/uri (LoadError) from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/faraday-0.7.6/lib/faraday/connection.rb:1:in `&lt;top (required)&gt;' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/faraday-0.7.6/lib/faraday.rb:68:in `require' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/faraday-0.7.6/lib/faraday.rb:68:in `&lt;top (required)&gt;' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/oauth2-0.5.2/lib/oauth2/client.rb:1:in `require' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/oauth2-0.5.2/lib/oauth2/client.rb:1:in `&lt;top (required)&gt;' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/oauth2-0.5.2/lib/oauth2.rb:2:in `require' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/oauth2-0.5.2/lib/oauth2.rb:2:in `&lt;top (required)&gt;' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/bitly-0.7.0/lib/bitly/v3.rb:5:in `require' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/bitly-0.7.0/lib/bitly/v3.rb:5:in `&lt;top (required)&gt;' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/bitly-0.7.0/lib/bitly.rb:9:in `require' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/bitly-0.7.0/lib/bitly.rb:9:in `&lt;top (required)&gt;' from /home/deployer/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:68:in `require' from /home/deployer/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:68:in `block (2 levels) in require' from /home/deployer/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:66:in `each' from /home/deployer/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:66:in `block in require' from /home/deployer/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in `each' from /home/deployer/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in `require' from /home/deployer/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler.rb:119:in `require' from /home/deployer/apps/stealthygecko/releases/20121123212740/config/application.rb:7:in `&lt;top (required)&gt;' from /home/deployer/apps/stealthygecko/releases/20121123212740/config/environment.rb:2:in `require' from /home/deployer/apps/stealthygecko/releases/20121123212740/config/environment.rb:2:in `&lt;top (required)&gt;' from config.ru:4:in `require' from config.ru:4:in `block in &lt;main&gt;' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize' from config.ru:1:in `new' from config.ru:1:in `&lt;main&gt;' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/unicorn-4.2.1/lib/unicorn.rb:44:in `eval' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/unicorn-4.2.1/lib/unicorn.rb:44:in `block in builder' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/unicorn-4.2.1/lib/unicorn/http_server.rb:694:in `call' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/unicorn-4.2.1/lib/unicorn/http_server.rb:694:in `build_app!' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/unicorn-4.2.1/lib/unicorn/http_server.rb:567:in `init_worker_process' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/unicorn-4.2.1/lib/unicorn/http_server.rb:587:in `worker_loop' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/unicorn-4.2.1/lib/unicorn/http_server.rb:487:in `spawn_missing_workers' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/unicorn-4.2.1/lib/unicorn/http_server.rb:498:in `maintain_worker_count' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/unicorn-4.2.1/lib/unicorn/http_server.rb:272:in `join' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/gems/unicorn-4.2.1/bin/unicorn:121:in `&lt;top (required)&gt;' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/bin/unicorn:23:in `load' from /home/deployer/apps/stealthygecko/shared/bundle/ruby/1.9.1/bin/unicorn:23:in `&lt;main&gt;' </code></pre> <p>Here's my Gemfile:</p> <pre><code>gem 'rake' gem 'rails', '3.2.6' gem 'mysql2' gem 'bcrypt-ruby', '~&gt; 3.0.0' gem 'gravtastic' gem "friendly_id" gem "videawesome" gem "will_paginate", "~&gt;3.0.3" gem "bitly" gem "sanitize" gem "newrelic_rpm" gem 'capistrano' gem 'rvm-capistrano' gem "unicorn", "~&gt; 4.2.1" gem "wysihtml5-rails", "~&gt; 0.0.2" gem 'airbrake' group :assets do gem 'less-rails' gem 'jquery-rails' gem 'therubyracer' gem 'uglifier' gem 'twitter-bootstrap-rails' end </code></pre> <p>From what I can see its the Bitly gem requiring oauth thats the problem, however I'm not sure how to fix this. if anyone can help I'd really appreciate it.</p> <p>Thanks in advance. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload