Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails initialization checksum error

I'm trying to initialize a new rails app on windows, and running rails new <appname> generates everything up to vendor/assets/stylesheets/.keep, but when bundle install is run, rails generates this error:

Checksum of /versions does not match the checksum provided by server! Something is wrong.

I'm not sure what's causing this, as I've done nothing to rails itself. Any help is appreciated.

Edit: If it's an error caused by windows being finicky, I have the option of moving to Linux, but I'd like to know what's wrong first.

like image 680
Valkyrie Avatar asked Feb 10 '16 12:02

Valkyrie


3 Answers

I had the same issue using windows, and was able to solve it by uninstalling bundler and installing an older version.

rails new <appname>
gem uninstall bundler
gem install bundler -v 1.9
cd <appname>
bundle install

That did it for me!

like image 77
JessH Avatar answered Oct 19 '22 07:10

JessH


In my case there was a *.pre.1 version and I chose to uninstall that particular version and then "bundle install" worked.

like image 23
Askar Hussain Avatar answered Oct 19 '22 06:10

Askar Hussain


Try removing your ruby cache folder and then try again. So for example if you are on Linux machine and you are using rbenv and say ruby 2.1.5 folder. Your path would be similar to something like (Not sure where on windows ruby is stored):

 ~/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/cache/

Removing this folder and trying bundle install again should resolve the issue.

It will be great, if you move to a Linux machine.

like image 37
aliibrahim Avatar answered Oct 19 '22 06:10

aliibrahim