"The box is not able to report an address for WinRM to connect to yet" on windows machine that doesn't exist.
Closed this issue · 2 comments
I am getting the following error when hostmanager is run on one of my non-existent windows machines.
The box is not able to report an address for WinRM to connect to yet.
WinRM cannot access this Vagrant environment. Please wait for the
Vagrant environment to be running and try again.
Looking at the logs I believe this is because winrm is raising VagrantPlugins::CommunicatorWinRM::Errors::WinRMNotReady and not catching it here https://github.com/smdahlen/vagrant-hostmanager/blob/a5f69d8e15f2285188deb36e26cc37934a979d7b/lib/vagrant-hostmanager/hosts_file/updater.rb#L16
This is happening on the master branch of vagrant-hostmanager and the default version winrm.
This commit fixes the issue for me.
Note, this is happening on vagrant hostmanager and vagrant up, so I can't bring up the machine to workaround the issue.
I think this is an issue with the WinRM communicator in vagrant, I don't think it should be raising any exceptions on failure. The following issue is open on the vagrant project regarding this.