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

Error while running fab vagrant setup_vagrant #9

Closed
Werner0 opened this issue Feb 6, 2017 · 1 comment
Closed

Error while running fab vagrant setup_vagrant #9

Werner0 opened this issue Feb 6, 2017 · 1 comment

Comments

@Werner0
Copy link

Werner0 commented Feb 6, 2017

I get the following error when I try to run Fabric configuration. I'm accessing the internet through a company proxy.

[127.0.0.1:2222] out: gpg: requesting key E084DAB9 from hkp server keyserver.ubuntu.com
[127.0.0.1:2222] out: gpg: keyserver timed out
[127.0.0.1:2222] out: gpg: keyserver receive failed: keyserver error
[127.0.0.1:2222] out:

Fatal error: sudo() received nonzero return code 2 while executing!

Requested: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E084DAB9
Executed: sudo -S -p 'sudo password:'  /bin/bash -l -c "sudo apt-key adv --keyserver     
hkp://keyserver.ubuntu.com:80 --recv-keys E084DAB9"

Aborting.
Disconnecting from 127.0.0.1:2222... done.
@Werner0
Copy link
Author

Werner0 commented Feb 7, 2017

SOLVED

First install a proxy configuration plugin for vagrant with:

vagrant plugin install vagrant-proxyconf

Then add the following to the Vagrantfile:

config.proxy.http     = "http://proxy.company.address:port"
config.proxy.https    = "http://proxy.company.address:port"
config.proxy.no_proxy = "localhost,127.0.0.1"

@Werner0 Werner0 closed this as completed Feb 7, 2017
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