Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getaddrinfo failed #42

Open
CalebUsadi opened this issue Oct 17, 2019 · 2 comments
Open

getaddrinfo failed #42

CalebUsadi opened this issue Oct 17, 2019 · 2 comments

Comments

@CalebUsadi
Copy link

CalebUsadi commented Oct 17, 2019

>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.

@CalebUsadi
Copy link
Author

CalebUsadi commented Oct 18, 2019

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")

@CalebUsadi
Copy link
Author

CalebUsadi commented Oct 18, 2019

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"

@CalebUsadi CalebUsadi reopened this Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant