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

gpg: keyserver receive failed: keyserver error #5

Closed
voodee opened this issue Apr 17, 2016 · 2 comments
Closed

gpg: keyserver receive failed: keyserver error #5

voodee opened this issue Apr 17, 2016 · 2 comments

Comments

@voodee
Copy link

voodee commented Apr 17, 2016

INFO [ba22614b] Running gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 as deployer@95.213.200.121
DEBUG [ba22614b] Command: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
DEBUG [ba22614b]    gpg: directory `/home/deployer/.gnupg' created
DEBUG [ba22614b]    gpg: 
DEBUG [ba22614b]    new configuration file `/home/deployer/.gnupg/gpg.conf' created
DEBUG [ba22614b]    gpg: 
DEBUG [ba22614b]    WARNING: options in `/home/deployer/.gnupg/gpg.conf' are not yet active during this run
DEBUG [ba22614b]    gpg: 
DEBUG [ba22614b]    keyring `/home/deployer/.gnupg/secring.gpg' created
DEBUG [ba22614b]    gpg: 
DEBUG [ba22614b]    keyring `/home/deployer/.gnupg/pubring.gpg' created
DEBUG [ba22614b]    gpg: 
DEBUG [ba22614b]    requesting key D39DC0E3 from hkp server keys.gnupg.net
DEBUG [ba22614b]    gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as deployer@95.213.200.121: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 exit status: 2
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 stdout: Nothing written
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 stderr: gpg: directory `/home/deployer/.gnupg' created
gpg: new configuration file `/home/deployer/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/deployer/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/home/deployer/.gnupg/secring.gpg' created
gpg: keyring `/home/deployer/.gnupg/pubring.gpg' created
gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error

SSHKit::Command::Failed: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 exit status: 2
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 stdout: Nothing written
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 stderr: gpg: directory `/home/deployer/.gnupg' created
gpg: new configuration file `/home/deployer/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/deployer/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/home/deployer/.gnupg/secring.gpg' created
gpg: keyring `/home/deployer/.gnupg/pubring.gpg' created
gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error

Tasks: TOP => ubuntu_server_prepare:rvm_install
(See full trace by running task with --trace)
@goooseman
Copy link
Owner

Very strange...
The problem is in this command:

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

This is needed to install RVM

I ran this command on my local Mac machine, and it is working fine. So the keyserver exists and it has this key.

Maybe there was a problem in a connectivity?
Which hosting provider are you using?
Maybe the firewall is blocking the GPG port? (It can happen on AWS) You need 80, 443 and 11371 outbound and inbound ports to be open.

Write me back,
Alex.

@voodee
Copy link
Author

voodee commented Apr 17, 2016

The problem was solved with the following command:
command curl -sSL https://rvm.io/mpapis.asc | gpg --import -

Server clear from https://vscale.io/

@voodee voodee closed this as completed Apr 17, 2016
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

2 participants