Skip to content

Instantly share code, notes, and snippets.

@ScotterC
Created November 4, 2015 20:58
Show Gist options
  • Save ScotterC/b738721015de6c56573f to your computer and use it in GitHub Desktop.
Save ScotterC/b738721015de6c56573f to your computer and use it in GitHub Desktop.
Basic vagrant error output
~/vagrant-setup (master): vagrant plugin install vagrant-hostsupdater
Installing the 'vagrant-hostsupdater' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
An error occurred while installing json (1.8.1), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.1'` succeeds before bundling.
Gem::RemoteFetcher::FetchError: bad response Not Found 404 (http://gems.hashicorp.com/gems/json-1.8.1.gem)
@albac
Copy link

albac commented Dec 16, 2015

I have been using vagrant for a while and never seen this error until today, an engineer was trying to run my framework and it failed with the exact same error, after a tons of research thinking this was related to ruby or some gem bad installation, it ended up being an old version of vagrant that was causing the problem. I asked him to upgrade vagrant and the problem went away( no need to uninstall just upgrade it ), It worked for me.

@mcoolidgedyn
Copy link

I fought with this error, trying to install chef 11.12.8 :

An error occurred while installing json (1.8.1), and Bundler cannot continue.
Make sure that gem install json -v '1.8.1' succeeds before bundling.

Gem::RemoteFetcher::FetchError: bad response Not Found 404 (http://gems.hashicorp.com/gems/json-1.8.1.gem)

for the better part of a day. Thanks to albac, I decided to try upgrading vagrant from the 1.7.2 Version I was on, one step at a time, and lo and behold Vagrant 1.7.3 got me past this error.

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