ajbraus
ajbraus

Reputation: 2999

Could not find multi_json-1.7.2 in any of the sources

I am getting this error when pushing to my heroku staging environment.

Other related questions to this say to bundle update multi-json or to bundle update or remove Gemfile.lock and bundle install (which are all the same). None of these solutions worked for me.

my gemfile does not call multi-json I tried specifying a version of multi-json but always encountered the same problem when deploying to heroku. My dev environment works fine.

I also updated bundler to 1.3.6 and tried everything again

-----> Using Ruby version: ruby-1.9.3
-----> Installing dependencies using Bundler version 1.3.2
   Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
   fatal: Not a git repository (or any of the parent directories): .git
   fatal: Not a git repository (or any of the parent directories): .git
   fatal: Not a git repository (or any of the parent directories): .git
   Some gems seem to be missing from your vendor/cache directory.
   Could not find multi_json-1.7.2 in any of the sources
 !
 !     Failed to install gems via Bundler.
 !
 !     Heroku push rejected, failed to compile Ruby/rails app

Upvotes: 0

Views: 1378

Answers (1)

ajbraus
ajbraus

Reputation: 2999

The trick was that because vendor/cache was present, it was looking for multi_json in that folder. I just deleted it and pushed and it is working.

this question helped

What is the purpose of vendor/bundle? Heroku tells me to remove it

Upvotes: 2

Related Questions