netgen / vagrant-ansible-ezpublish

Vagrant setup with Ansible provisioner configured for running eZ Publish projects
https://netgen.io
MIT License
23 stars 12 forks source link

Error provisioning nodejs #26

Closed oxeron closed 7 years ago

oxeron commented 8 years ago

Recent updates on nodejs side lead to :

TASK [nodejs : Add the Nodesource signing keys] ********************************
task path: /Users/opierre/Dev/vagrant-ansible-ezpublish-bcee/provisioning/roles/nodejs/tasks/main.yml:3
<127.0.0.1> ESTABLISH SSH CONNECTION FOR USER: vagrant
<127.0.0.1> SSH: EXEC ssh -C -vvv -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=2222 -o 'IdentityFile="/Users/opierre/Dev/vagrant-ansible-ezpublish-bcee/.vagrant/machines/default/virtualbox/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=30 -o ControlPath=/Users/opierre/.ansible/cp/ansible-ssh-%h-%p-%r 127.0.0.1 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1476709839.65-277531425172638 `" && echo ansible-tmp-1476709839.65-277531425172638="` echo $HOME/.ansible/tmp/ansible-tmp-1476709839.65-277531425172638 `" ) && sleep 0'"'"''
<127.0.0.1> PUT /var/folders/cd/tfb1jdbs2cldg6p59qpthjs80000gn/T/tmp4IEQ_t TO /home/vagrant/.ansible/tmp/ansible-tmp-1476709839.65-277531425172638/apt_key
<127.0.0.1> SSH: EXEC sftp -b - -C -vvv -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=2222 -o 'IdentityFile="/Users/opierre/Dev/vagrant-ansible-ezpublish-bcee/.vagrant/machines/default/virtualbox/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=30 -o ControlPath=/Users/opierre/.ansible/cp/ansible-ssh-%h-%p-%r '[127.0.0.1]'
<127.0.0.1> ESTABLISH SSH CONNECTION FOR USER: vagrant
<127.0.0.1> SSH: EXEC ssh -C -vvv -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=2222 -o 'IdentityFile="/Users/opierre/Dev/vagrant-ansible-ezpublish-bcee/.vagrant/machines/default/virtualbox/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=30 -o ControlPath=/Users/opierre/.ansible/cp/ansible-ssh-%h-%p-%r 127.0.0.1 '/bin/sh -c '"'"'chmod u+x /home/vagrant/.ansible/tmp/ansible-tmp-1476709839.65-277531425172638/ /home/vagrant/.ansible/tmp/ansible-tmp-1476709839.65-277531425172638/apt_key && sleep 0'"'"''
<127.0.0.1> ESTABLISH SSH CONNECTION FOR USER: vagrant
<127.0.0.1> SSH: EXEC ssh -C -vvv -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=2222 -o 'IdentityFile="/Users/opierre/Dev/vagrant-ansible-ezpublish-bcee/.vagrant/machines/default/virtualbox/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=30 -o ControlPath=/Users/opierre/.ansible/cp/ansible-ssh-%h-%p-%r -tt 127.0.0.1 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-rifqgngzpooebmezpmaquqnrmdoykxgr; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/vagrant/.ansible/tmp/ansible-tmp-1476709839.65-277531425172638/apt_key; rm -rf "/home/vagrant/.ansible/tmp/ansible-tmp-1476709839.65-277531425172638/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"''
fatal: [default]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"data": null, "file": null, "id": null, "key": null, "keyring": null, "keyserver": null, "state": "present", "url": "https://deb.nodesource.com/gpgkey/nodesource.gpg.key", "validate_certs": true}, "module_name": "apt_key"}, "msg": "Failed to validate the SSL certificate for deb.nodesource.com:443. Make sure your managed systems have a valid CA certificate installed. If the website serving the url uses SNI you need python >= 2.7.9 on your managed machine or you can install the `urllib3`, `pyopenssl`, `ndg-httpsclient`, and `pyasn1` python modules to perform SNI verification in python >= 2.6. You can use validate_certs=False if you do not need to confirm the servers identity but this is unsafe and not recommended. Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org, /etc/ansible"}

NO MORE HOSTS LEFT *************************************************************

RUNNING HANDLER [kernel : restart procps] **************************************
    to retry, use: --limit @/Users/opierre/Dev/vagrant-ansible-ezpublish-bcee/provisioning/vagrant.retry

PLAY RECAP *********************************************************************
default                    : ok=32   changed=25   unreachable=0    failed=1

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
emodric commented 8 years ago

Damn... This is still an issue. We ran into this couple of weeks ago, but attributed it to SSL errors on NodeJS part.

Ping @vranac

oxeron commented 8 years ago

Found a fix

emodric commented 8 years ago

@oxeron Care to share the fix? :)

vranac commented 8 years ago

@oxeron What os are you running, and what version of Ansible are you running?

vranac commented 7 years ago

@emodric I believe this has been sorted out, and this issue can be closed

oxeron commented 7 years ago

The PR I did solved this issue yes. The problem occurred on OS X latest Ansible

vranac commented 7 years ago

@oxeron I was referring to this PR #28 which has already been merged

oxeron commented 7 years ago

OK, I did not see that sorry