ITの隊長のブログ

ITの隊長のブログです。Rubyを使って仕事しています。最近も色々やっているお(^ω^ = ^ω^)

vagrant 1.7.0にアップデートしたら、動かなくなってワロタ

スポンサードリンク

http://www.flickr.com/photos/43706167@N03/9455400943
photo by linsepatron


!!vagrant アップデート後の突然のエラー!!

$ vagrant
Bundler, the underlying system used to manage Vagrant plugins,
is reporting that a plugin or its dependency can't be found.
This is usually caused by manual tampering with the 'plugins.json'
file in the Vagrant home directory. To fix this error, please
remove that file and reinstall all your plugins using `vagrant
plugin install`.
/opt/vagrant/embedded/gems/gems/bundler-1.7.8/lib/bundler/resolver.rb:357:in `resolve': Could not find gem 'vagrant-login (>= 0) ruby' in the gems available on this machine. (Bundler::GemNotFound)


アップデート前は1.3.5だったので、なんかコマンドがかわったのかな? と、思って、ヘルプだそうとしてもやっぱり実行できなくてワロタ

$ vagrant -h
Bundler, the underlying system used to manage Vagrant plugins,
is reporting that a plugin or its dependency can't be found.
This is usually caused by manual tampering with the 'plugins.json'
file in the Vagrant home directory. To fix this error, please
remove that file and reinstall all your plugins using `vagrant
plugin install`.
/opt/vagrant/embedded/gems/gems/bundler-1.7.8/lib/bundler/resolver.rb:357:in `resolve': Could not find gem 'vagrant-login (>= 0) ruby' in the gems available on this machine. (Bundler::GemNotFound)


実行できるのは、バージョン確認だけでワロリッシュ

$ vagrant -v
Vagrant 1.7.0


で!


ググってもわからなくて困った(´・ω・)


そーゆーときはおとなしくエラー文を読もう

Bundler, the underlying system used to manage Vagrant plugins,
is reporting that a plugin or its dependency can't be found.
This is usually caused by manual tampering with the 'plugins.json'
file in the Vagrant home directory. To fix this error, please
remove that file and reinstall all your plugins using `vagrant
plugin install`.


"plugins.json" ← これ削除しれってことかな? んで、それでも治らなかったら、"vagrant plugin install"しれってこと?(多分違う)


それじゃ削除しよう。っつても、どこにあるかわからない。。。(´・ω・)


ええい!重くなるけど、コマンドで一気に検索

$ sudo find / -name "plugins.json"

〜省略〜

/opt/vagrant/embedded/plugins.json


めっけ!


んで、削除

$ rm /opt/vagrant/embedded/plugins.json

そして、再度vagrant実行

$ vagrant
Vagrant is upgrading some internal state for the latest version.
Please do not quit Vagrant at this time. While upgrading, Vagrant
will need to copy all your boxes, so it will use a considerable
amount of disk space. After it is done upgrading, the temporary disk
space will be freed.

Press ctrl-c now to exit if you want to remove some boxes or free
up some disk space.

Press any other key to continue.



やったお! (^ω^ = ^ω^)おっおっおっ


でも”Vagrant is upgrading some internal state for the latest version.〜”の文言がちょっと怖くて調べてみたら、特に問題なさそうだったお。



Vagrantを1.3.5から1.6.3に上げたよ(Vagrant Cloudを使うようになった) - 戦場のプログラマー



安心してエンターを押しなさい(^ω^ )


今買いたい本! 給料出たら買う!

実践 Vagrant

実践 Vagrant