geerlingguy / ansible-role-php-versions

Ansible Role - PHP Versions
https://galaxy.ansible.com/geerlingguy/php-versions/
MIT License
98 stars 73 forks source link

Cannot get key from keyserver ppa:ondrej/php. #22

Closed damontgomery closed 6 years ago

damontgomery commented 6 years ago

setup-Debien.yml contains the following step:

- name: Add repository for PHP versions (Ubuntu).
  apt_repository: repo='ppa:ondrej/php'
  when: ansible_distribution == "Ubuntu"

When I run Drupal VM it fails on this step with the message:

TASK [geerlingguy.php-versions : Add repository for PHP versions (Ubuntu).] ****
fatal: [ama-d8.local]: FAILED! => {"changed": false, "cmd": "apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C", "msg": "gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com\ngpg: no valid OpenPGP data found.\ngpg: Total number processed: 0\ngpg: keyserver communications error: keyserver helper general error\ngpg: keyserver communications error: unknown pubkey algorithm\ngpg: keyserver receive failed: unknown pubkey algorithm", "rc": 2, "stderr": "gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com\ngpg: no valid OpenPGP data found.\ngpg: Total number processed: 0\ngpg: keyserver communications error: keyserver helper general error\ngpg: keyserver communications error: unknown pubkey algorithm\ngpg: keyserver receive failed: unknown pubkey algorithm\n", "stderr_lines": ["gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com", "gpg: no valid OpenPGP data found.", "gpg: Total number processed: 0", "gpg: keyserver communications error: keyserver helper general error", "gpg: keyserver communications error: unknown pubkey algorithm", "gpg: keyserver receive failed: unknown pubkey algorithm"], "stdout": "Executing: /tmp/tmp.pkdCtPMbvj/gpg.1.sh --recv-keys\n--keyserver\nhkp://keyserver.ubuntu.com:80\n14AA40EC0831756756D7F66C4F4EA0AAE5267A6C\ngpgkeys: key 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C can't be retrieved\n", "stdout_lines": ["Executing: /tmp/tmp.pkdCtPMbvj/gpg.1.sh --recv-keys", "--keyserver", "hkp://keyserver.ubuntu.com:80", "14AA40EC0831756756D7F66C4F4EA0AAE5267A6C", "gpgkeys: key 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C can't be retrieved"]}

I don't know enough about keyservers, so maybe it's temporarily down or something. I just started getting this today.

https://launchpad.net/~ondrej/+archive/ubuntu/php/+packages is the server? It seems accessible, but I'm not really sure how to check.

damontgomery commented 6 years ago

Maybe related to this issue: https://serverfault.com/questions/926276/cannot-add-ppa-please-check-that-the-ppa-name-or-format-is-correct

Which references UTF-8: https://github.com/oerdnj/deb.sury.org/issues/56

damontgomery commented 6 years ago

This isn't a problem when I run a new install of Drupal VM, which runs the same command, so I'm going to try and figure out what this issue is with our setup.

geerlingguy commented 6 years ago

Sorry, I haven't seen this in the past; it looks like the two major issues would be:

unknown pubkey algorithm

and

no valid OpenPGP data found

I'm wondering if this might just be a networking-related issue... temporary glitch in the matrix?

damontgomery commented 6 years ago

Thanks, Jeff. It is working now with the current Drupal VM and our project.

I deleted the /.vagrant folder and the /vendor/geerlingguy/ folders. I don't think that helped, but who knows?

Thanks again!