とすると
なぜだか、急にvagrantが立ち上がらなくなってしまった。
立ち上がらない、というより↓みたいなメッセージが止まらない
|
default: Warning: Remote connection disconnect. Retrying |
原因を探ることもできるけど、
まずvagrantをアップグレードしてみる。
取り敢えず消します。
|
sudo rm -rf /usr/local/bin/vagrant |
vagrant upを試してみた。
|
sudo vagrant up Password: Vagrant failed to initialize at a very early stage: The plugins failed to initialize correctly. This may be due to manual modifications made within the Vagrant home directory. Vagrant can attempt to automatically correct this issue by running: vagrant plugin repair If Vagrant was recently updated, this error may be due to incompatible versions of dependencies. To fix this problem please remove and re-install all plugins. Vagrant can attempt to do this automatically by running: vagrant plugin expunge --reinstall |
まずは、
|
sudo vagrant plugin expunge --reinstall |
を試してみても、エラーが出ている
|
sudo vagrant plugin repair |
また
まだ治らない。。
ちょっと一旦この問題は置いておいて違うフォルダでvagrantを実行すると
|
vagrant up The VirtualBox VM was created with a user that doesn't match the current user running Vagrant. VirtualBox requires that the same user be used to manage the VM that was created. Please re-run Vagrant with that user. This is not a Vagrant issue. The UID used to create the VM was: 501 Your UID is: 0 |
のエラーが発生
|
sudo vi .vagrant/machines/default/virtualbox/creator_uid |
これを
と書き換えればOK。
これで、
|
The UID used to create the VM was: 501 Your UID is: 0 |
の問題は解決。
でも、まだ元の
|
default: Warning: Remote connection disconnect. Retrying |
が繰り返す問題はまだ未解決。
いろいろやってもこの問題はどうしても解決しません。
残念ながら。
再インストールするしかない。
ということで、
|
sudo vagrant destroy sudo vagrant up |
一応これで解決しますが、残念ながら初期状態に戻ってしまった。