Local Trellis head is at db0c068de7197c14132a42ab398c4c9b3cf9fcb3;
TASK [wordpress-setup : Create database of sites] ******************************
System info:
Ansible 2.0.2.0; Darwin
Trellis at "Add `vault_users` for easier password management"
---------------------------------------------------
'dict object' has no attribute 'db_name'
fatal: [default]: FAILED! => {"failed": true}
to retry, use: --limit @/www/teamrubicon/trusa.org/trellis/dev.retry
PLAY RECAP *********************************************************************
default : ok=56 changed=1 unreachable=0 failed=1
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
# Documentation: https://roots.io/trellis/docs/vault/
vault_mysql_root_password: devpw
# Variables to accompany `group_vars/development/wordpress_sites.yml`
# Note: the site name (`example.com`) must match up with the site name in the above file.
vault_wordpress_sites:
teamrubiconusa.org:
admin_password: admin
env:
db_password: tr_dbpassword
Seems like it should be pulling db_name: "{{ item.key | underscore }}_{{ env }}" from group_vars/all/helpers.yml…any thoughts?
I’ve done some debugging, and I’ve narrowed down the issue to something related to composer - when I run vagrant up, TASK [wordpress-install : Install Dependencies with Composer] fails with the following error:
PHP Fatal error: Class 'Composer\\Installers\\BaseInstaller' not found in /srv/www/teamrubiconusa.org/current/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php on line 4
If I ssh into the vagrant box, the $ composer works in any directory aside from /srv/www/teamrubiconusa.org/current/; in that directory $ composer (or any composer command) returns the following:
So it seems to be a namespace issue; I can’t figure out how to debug beyond this, and I’ve tried reverting to commits that worked before, but I get the same output. Any thoughts?
FYI, all package requirements (as listed on the Install Trellis page) are satisfied.
Any thoughts here? I know this isn’t an issue with the stock install, as I’ve made some adjustments here and there, but I’m not even sure how to debug this further.
I’ve tried reinstalling the ansible-galaxy requirements, running composer self-update, composer diagnose, etc.
If I go to example.com/site (either in the vagrant box or locally) and run any composer command (composer, composer update, etc.), I just get this:
PHP Fatal error: Class 'Composer\Installers\BaseInstaller' not found in /www/teamrubicon/trusa.org/site/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php on line 4
When I google this error I see suggestions to try removing the vendor folder
(example.com/site/vendor on host or /srv/www/teamrubiconusa.org/current/vendor in VM) and try the retry the composer commands.
I wonder if that would help. Perhaps you’ve tried it.