Abort trap: 6 $DEPLOY_CMD

Getting the error

./bin/deploy.sh: line 45: 13111 Abort trap: 6           $DEPLOY_CMD

trying to deploy from local box to remote using ➜ trellis git:(master) ✗ ./bin/deploy.sh production site.com. Galaxy roles have been installed and local Vagrant is working fine. Any ideas what the issue is here?

NB I am running Pythong 2.7 and

➜  trellis git:(master) ✗ head -1 $(which ansible-playbook)                                    
#!/usr/local/opt/python@2/bin/python2.7`

Did a ansible-playbook -vv deploy.yml -e "site=site.com env=production"

and then had

ansible-playbook 2.7.0
  config file = /Users/jasper/code/site.com/trellis/ansible.cfg
  configured module search path = [u'/Users/jasper/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python2.7/site-packages/ansible
  executable location = /usr/local/bin/ansible-playbook
  python version = 2.7.17 (default, Nov 17 2019, 10:31:11) [GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.12)]
Using /Users/jasper/code/site.com/trellis/ansible.cfg as config file
statically imported: /Users/jasper/code/site.com/trellis/roles/deploy/tasks/initialize.yml
statically imported: /Users/jasper/code/site.com/trellis/roles/deploy/tasks/update.yml
statically imported: /Users/jasper/code/site.com/trellis/roles/deploy/tasks/prepare.yml
statically imported: /Users/jasper/code/site.com/trellis/roles/deploy/tasks/build.yml
statically imported: /Users/jasper/code/site.com/trellis/roles/deploy/tasks/share.yml
statically imported: /Users/jasper/code/site.com/trellis/roles/deploy/tasks/finalize.yml
...
TASK [Ensure site is valid] *********************************************************************************************************************************************
task path: /Users/jasper/code/site.com/trellis/deploy.yml:18
System info:
  Ansible 2.7.0; Darwin
  Trellis 1.0.1: January 16th, 2019
---------------------------------------------------
Site `site.com` is not valid. Available sites to deploy: site
fatal: [site.com -> localhost]: FAILED! => {"changed": false}
        to retry, use: --limit @/Users/jasper/code/site.com/trellis/deploy.retry

PLAY RECAP **************************************************************************************************************************************************************
site.com               : ok=2    changed=0    unreachable=0    failed=1   
localhost              : ok=0    changed=0    unreachable=0    failed=0   

So it is something related to the site somehow just not sure what the issue is. The domain is correct and it is inside trellis/hosts/production

Path to site in wordpress_sites.yml at local_path was wrong. It is an absolute path as well. Perhaps a relative path is easier… made it ../site. But changing it did not remove the error. Current site does have mixed content issues, but certificate is still valid. So not sure what is going on with the site not being valid.

Never mind. Forgot about using the name under wordpress_sites:, not the domain as pointed out by alwaysblank at Staging: Completely different URL? . Once I did that I could deploy.

1 Like

This topic was automatically closed after 42 days. New replies are no longer allowed.