This is probably my fault, since I manually updated Trellis at some point, and may have screwed something up. I’m just looking for guidance on where to look for the issue, what might be missing. I should add that I’m an Ansible newbie.
I’m deploying to a new AWS instance. The provisioning worked fine (returned with no errors), but deployment is failing with
Mysql is running, and I can connect with root and the root password. I see that the database for my site has been made too. But I can’t connect to mysql with the configured db_user and password which has been saved to the .env file. If I run as root show grants; I don’t see any grants for the configured db_user at all.
I’m guessing some task didn’t run, possibly due to a missing file or missing reference, or a missing configuration variable somewhere.
Thanks to both of you – they were great starting points.
In my case I had in fact done something very similar for my upgrade to what was suggested in the thread you linked, cfx. But I guess I made a mistake…
That was a really useful link, swalkinshaw. I did have that task, and found from tracing the variables that I hadn’t spotted a merge conflict with the db_user and db_name variables. They were changed both in deploy.yml and in the group_vars/all/main.yml files. One had auto-merged, I think (and so was now a useful default string, but which was not the same as what I had been using before), while the other had possibly been a manual merge and I had kept my custom name and username.
So provisioning was setting up a certain database and user, and deployment was trying to use another.
Setting both to the same value fixed this for me. Thanks!