Skip to content

Instantly share code, notes, and snippets.

@chumkui
Created December 20, 2017 13:52
Show Gist options
  • Select an option

  • Save chumkui/88f3b62c79ac00920078ac65da03f0b2 to your computer and use it in GitHub Desktop.

Select an option

Save chumkui/88f3b62c79ac00920078ac65da03f0b2 to your computer and use it in GitHub Desktop.
Console output for Apache Install error log
PS C:\Users\mstevens\Documents\dev\drupalprojects\cepr2.dev> vagrant up --provision
Bringing machine 'cepr2vm' up with 'virtualbox' provider...
==> cepr2vm: Checking if box 'geerlingguy/ubuntu1404' is up to date...
==> cepr2vm: [vagrant-hostsupdater] Checking for host entries
==> cepr2vm: [vagrant-hostsupdater] found entry for: 192.168.100.78 portal.cepr.dev
==> cepr2vm: [vagrant-hostsupdater] found entry for: 192.168.100.78 www.portal.cepr.dev
==> cepr2vm: [vagrant-hostsupdater] found entry for: 192.168.100.78 adminer.portal.cepr.dev
==> cepr2vm: [vagrant-hostsupdater] found entry for: 192.168.100.78 xhprof.portal.cepr.dev
==> cepr2vm: [vagrant-hostsupdater] found entry for: 192.168.100.78 pimpmylog.portal.cepr.dev
==> cepr2vm: [vagrant-hostsupdater] found entry for: 192.168.100.78 dashboard.portal.cepr.dev
==> cepr2vm: Running provisioner: ansible_local...
cepr2vm: Running ansible-playbook...
[DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use
'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions.
This feature will be removed in a future release. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: include is kept for backwards compatibility but usage is
discouraged. The module documentation details page may explain more about this
rationale.. This feature will be removed in a future release. Deprecation
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: The use of 'static' has been deprecated. Use
'import_tasks' for static inclusion, or 'include_tasks' for dynamic inclusion.
This feature will be removed in a future release. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.
[WARNING]: file /vagrant/provisioning/roles/geerlingguy.apache-php-fpm/tasks
/configure-RedHat.yml is empty and had no tasks to include
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [cepr2vm]
TASK [Include OS-specific variables.] ******************************************
ok: [cepr2vm]
TASK [Define config_dir.] ******************************************************
skipping: [cepr2vm]
TASK [Include optional configuration files.] ***********************************
TASK [include] *****************************************************************
included: /vagrant/provisioning/tasks/backwards-compatibility.yml for cepr2vm
TASK [nginx_hosts shim] ********************************************************
ok: [cepr2vm]
TASK [include] *****************************************************************
included: /vagrant/provisioning/tasks/init-Debian.yml for cepr2vm
TASK [Update apt cache if needed.] *********************************************
ok: [cepr2vm]
TASK [Install required dependencies.] ******************************************
ok: [cepr2vm] => (item=[u'curl', u'python-apt', u'python-pycurl', u'sudo', u'unzip', u'make'])
TASK [Add repository for Apache 2.4.9+ (Ubuntu 12/14).] ************************
fatal: [cepr2vm]: 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", "rc": 2, "stderr": "gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com\ngpg: no valid OpenPGP data found.\ngpg: Total number processed: 0\n", "stderr_lines": ["gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com", "gpg: no valid OpenPGP data found.", "gpg: Total number processed: 0"], "stdout": "Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.qKoSxeAP4u --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/ansible-ansible.gpg --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C\ngpgkeys: key 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C can't be retrieved\n", "stdout_lines": ["Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.qKoSxeAP4u --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/ansible-ansible.gpg --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C", "gpgkeys: key 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C can't be retrieved"]}
to retry, use: --limit @/vagrant/provisioning/playbook.retry
PLAY RECAP *********************************************************************
cepr2vm : ok=7 changed=0 unreachable=0 failed=1
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
@chumkui
Copy link
Author

chumkui commented Dec 20, 2017

OK - I managed to get around this by manually installing the key first - I ssh'd into the machine and ran:
sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C

The key installs fine, but does not using:
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C

Not an area of expertise for me, but I am at least up and running again! As far as I am aware there are no firewall issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment