At least there’s one error. When I vagrant provision
TASK: [mariadb | Set root user password] **************************************
failed: [default] => (item=default) => {“failed”: true, “item”: “default”}
msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
failed: [default] => (item=127.0.0.1) => {“failed”: true, “item”: “127.0.0.1”}
msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
failed: [default] => (item=::1) => {“failed”: true, “item”: “::1”}
msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
failed: [default] => (item=localhost) => {“failed”: true, “item”: “localhost”}
msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
I’m uncreative how to debug the ERR_CONNECTION_REFUSED. Probably something in the nginx configuration is wrong, but Trellis creates it, so it must be somewhere there: https://gist.github.com/gabrielwolf/6a47f1fa30ede68f4aac
Cleaning Chrome’s cache did solve the refused connection problem. Now I see the install screen as well. But the DB is still not in sync with the local one. The DB error which I posted above prevents ./deploy to sync them. It is not reported during deploy. Hm. Intentionally?
Maybe Trellis does security stuff and removes some connection method to MariaDB in the very first vagrant up where no error occurs?
Is it possible (rational?) to have separate passwords for the DB locally and staging/production?
Different thread but… Feature request for Trellis: “DB up and download from and to different staging environments” Would that be possible? When I work with clients I often have to grab actual staging content altered by the client himself/herself. With the dead simple https://www.npmjs.com/package/grunt-wordpress-deploy this was pretty easy.
In my experience it makes sense to deal with the DB separately from the files. You get a lot more flexibility that way. The plugin can also sync your media , etc.
…and no, I’m not on any commission, although I probably should be.
I ignored errors from ansible-galaxy install -r requirements.yml that had problems downloading all rules. I tried 3-4 times until everything could be downloaded.