New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Get list of hosts for the root user" fails to run #60
Comments
For some reason I started getting this too, on an Ubuntu 12.04 machine. This wasn't happening for me in the past... I wonder if there's a change in the official MySQL packages for Ubuntu? @bakicdj - What OS are you using? Also, you may want to regenerate those passwords if they're used anywhere besides a local dev machine. |
See related: #36 |
No, the passwords are for local vm only. I'm gonna pay with it later this day. Edit: my dev env os is ubuntu 14.04 x64 |
Im using just docker and i get this error every time building the machine, this is really blocking me for the last 2 days, must be some change on Ubuntu, because this ansible was working some time ago and now its not. What should i do? Using ubuntu 14.04 My error:
|
See related: #40 |
@bakicdj and @diogoviannaaraujo — I can only reproduce this issue on Travis CI currently, so it's really hard to debug. Can you please provide the output of your /var/log/mysql.err log? It may have some clues. |
|
Im running ansible inside a docker container, if you have docker compose its really simple to simulate. |
A few things to try out based on some research:
So far it seems, based on a ton of testing using my geerlingguy.sonar role and Travis CI, that Ansible's Basically, even though we get a 'changed/OK' from the task So there's something unique about the environment on Travis CI, and in your environments. @diogoviannaaraujo - can you send me the docker configuration you're using (if it's using public registry images) and I'll try to test things out further locally? It's a pain testing on Travis CI. |
if I restart mysql and run ansible again it goes ok. I really think its trying to connect to a stopped service. |
Ive been trying with this compose, just put it with your playbook and your inventory to localhost
|
Sheesh, spent at least 3 hours on this so far, and what I've found is that, if in my playbook I manually run a MySQL command to update the root password, the password seems to be updated: https://travis-ci.org/geerlingguy/ansible-role-sonar/jobs/83237306 However, using Ansible's I'm going to update this role to run the password statement manually and see if that fixes it. |
command
-NBe 'SELECT Host FROM mysql.user WHERE User = "root" ORDER BY (Host="localhost") ASC'
fails to run at my vagrant machine. Haven't tried it in production yet.my overrides:
The text was updated successfully, but these errors were encountered: