Closed mmolinac closed 5 years ago
+1
As I said on #186 "Doing gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB as the user that is rvm is being installed as allows the ansible run to complete. "
Head of master currently doesn't work for me on debian 9 installing rvm as a non root user. ( Without doing that command as the approriate user )
( Thank you for the work you are doing btw )
@pkuczynski Any chance we could get a release of this fix onto Ansible Galaxy?
Also I think #185 missed a necessary fix here:
https://github.com/rvm/rvm1-ansible/blob/master/tasks/rvm.yml#L35-L37
Thankfully I think this step is generally skipped in favor of the gpg2-builtin download, but this should probably be changed to reference your key too nonetheless
I just added #189, but I am not a heavy ansible user. Can anyone confirm it's correct syntax?
@NuckChorris I do not control Ansible account. Trying to reach @lpaulmp but have not succeded so far :(
Hey sorry guy I lost over the weekend, I haven't installed slack in my phone :(
I just approached a release of the new version 2.1.0 following @lpaulmp suggestions. Let's see if that works...
I still have the issue on 2.1.1
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "/tmp/rvm-installer.sh stable --path ~/.rvm --auto-dotfiles --user-install", "delta": "0:00:01.079891", "end": "2018-12-18 22:08:40.585726", "msg": "non-zero return code", "rc": 2, "start": "2018-12-18 22:08:39.505835", "stderr": "gpg: Signature made Thu 13 Dec 2018 03:09:53 PM UTC\ngpg: using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB\ngpg: Can't check signature: No public key", "stderr_lines": ["gpg: Signature made Thu 13 Dec 2018 03:09:53 PM UTC", "gpg: using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB", "gpg: Can't check signature: No public key"], "stdout": "Turning on auto dotfiles mode.\nTurning on user install mode.\nDownloading https://github.com/rvm/rvm/archive/1.29.6.tar.gz\nDownloading https://github.com/rvm/rvm/releases/download/1.29.6/1.29.6.tar.gz.asc\nWarning, RVM 1.26.0 introduces signed releases and automated check of signatures when GPG software found. Assuming you trust Michal Papis import the mpapis public key (downloading the signatures).\n\nGPG signature verification failed for '/home/ao3app/.rvm/archives/rvm-1.29.6.tgz' - 'https://github.com/rvm/rvm/releases/download/1.29.6/1.29.6.tar.gz.asc'! Try to install GPG v2 and then fetch the public key:\n\n sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB\n\nor if it fails:\n\n command curl -sSL https://rvm.io/mpapis.asc | sudo gpg --import -\n command curl -sSL https://rvm.io/pkuczynski.asc | sudo gpg --import -\n\nthe key can be compared with:\n\n https://rvm.io/mpapis.asc or https://keybase.io/mpapis\n https://rvm.io/pkuczynski.asc\n\nNOTE: GPG version 2.1.17 have a bug which cause failures during fetching keys from remote server. Please downgrade or upgrade to newer version (if available) or use the second method described above.", "stdout_lines": ["Turning on auto dotfiles mode.", "Turning on user install mode.", "Downloading https://github.com/rvm/rvm/archive/1.29.6.tar.gz", "Downloading https://github.com/rvm/rvm/releases/download/1.29.6/1.29.6.tar.gz.asc", "Warning, RVM 1.26.0 introduces signed releases and automated check of signatures when GPG software found. Assuming you trust Michal Papis import the mpapis public key (downloading the signatures).", "", "GPG signature verification failed for '/home/ao3app/.rvm/archives/rvm-1.29.6.tgz' - 'https://github.com/rvm/rvm/releases/download/1.29.6/1.29.6.tar.gz.asc'! Try to install GPG v2 and then fetch the public key:", "", " sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB", "", "or if it fails:", "", " command curl -sSL https://rvm.io/mpapis.asc | sudo gpg --import -", " command curl -sSL https://rvm.io/pkuczynski.asc | sudo gpg --import -", "", "the key can be compared with:", "", " https://rvm.io/mpapis.asc or https://keybase.io/mpapis", " https://rvm.io/pkuczynski.asc", "", "NOTE: GPG version 2.1.17 have a bug which cause failures during fetching keys from remote server. Please downgrade or upgrade to newer version (if available) or use the second method described above."]}
I have the exact same issue as above, which has not been answered, but has been closed. Fingers in ears not listening or is there actually a solution? Getting expensive now...
@tanist-johnlewis this workaround is still the way to go.
Hi all,
Lately, when running rvm.ruby in one of our playbooks, we got these messages:
The message:
"gpg: cannot open '/dev/tty': No such device or address"
I'll give you details about our installation:
Ansible version:
Server versions: