crestify
crestify copied to clipboard
getaddrinfo failed
>fab vagrant_init
[localhost] local: vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/trusty64' version '20190429.0.1' is up to date...
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
[localhost] local: vagrant ssh-config
:2222] Executing task 'install_python_reqs'
:2222] sudo: apt-get update --fix-missing
Fatal error: Name lookup failed for 127.0.0.1
Underlying exception:
getaddrinfo failed
Aborting.
I'm sure this has to do with configuration, but I'm not sure what to do. I'm using Windows 10, I'd appreciate some help! From what I can discern, the i issue is in fabfile.py, at the command sudo('apt-get update --fix-missing')
. I'm not sure what it's doing, but if I open python and run
>>> from fabric.api import sudo
>>> sudo('apt-get update --fix-missing')
I get "No hosts found. Please specify (single) host string for connection:" When I enter 127.0.0.1:2222, which is what _get_vagrant_connection()
pulls, it works and it then prompts me to enter the passphrase for the private key. So, the issue in that command is that it's not receiving the right argument. Not sure what to do about that.
Okay, I think I fixed it. I added .rstrip("\r")
to line 9 of fabfile.py, and I changed env.hosts
to env.host_string
.
Line 13, replaced rstrip("\"")
with rstrip("\r")
Actually, reopening. What is the default user/password pair for the vagrant image? The default appears to be vagrant/vagrant usually, but that doesn't appear to work. It asks me to enter one, not sure if this is a me problem or a general problem.
Edit: I'm not sure what the issue is. I've tried changing the private key, and resetting to the default insecure key. The default should have no password, but it forces me to enter one. With any private key, I'm able to enter any password and it accepts it. Then, no matter what password I enter for login password for vagrant
it doesn't accept it, even though I've verified that the password is "vagrant"