Harshit Pandey
Harshit Pandey

Reputation: 211

Error in pushing code to Heroku

While pushing my code to Heroku, I am getting these error

Can you anybody please advice what am I missing here, is this the versioning issue or something else ?

git push heroku master

-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Detected Rails is not set to serve static_assets
       Installing rails3_serve_static_assets... done
-----> Configure Rails 3 to disable x-sendfile
       Installing rails3_disable_x_sendfile... done
-----> Configure Rails to log to stdout
       Installing rails_log_stdout... done
-----> Gemfile detected, running Bundler version 1.0.7
       Unresolved dependencies detected; Installing...
       Using --without development:test
       Fetching source index for http://rubygems.org/
       Could not find multi_json-1.3.3 in any of the sources
       FAILED: http://devcenter.heroku.com/articles/bundler
 !     Heroku push rejected, failed to install gems via Bundler

Upvotes: 4

Views: 419

Answers (4)

Harshit Pandey
Harshit Pandey

Reputation: 1

Removed the Gemfile.lock

Reset the gemfile version to 1.3.4

ran the bundle

committed gemfile and gemfile repository

pushed to heroku

Push was successful

Upvotes: 0

martinciu
martinciu

Reputation: 384

multi_json-1.3.3 has been yanked in the meantime. That's why it can't be found on the rubygems server. To make it work:

  1. remove version from the Gemfile (or set it to 1.3.4)
  2. run 'bundle update multi_json`
  3. commit Gemfile and Gemfile.lock to the repository
  4. push it to heroku

Hope that helps!

Upvotes: 1

Jason Axelson
Jason Axelson

Reputation: 4685

When I got this error I needed to remove the Gemfile.lock

Upvotes: 0

Jon Saw
Jon Saw

Reputation: 8100

Had the same issue too. Added the code below as a line in the Gemfile and pushed it to Heroku and it worked.

gem 'multi_json', '1.3.4'

Hope that helps!

Upvotes: 1

Related Questions