-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
[Bug] "Host 'XXX.XXX.XXX.XXX' is not allowed to connect to this MariaDB server" on mariadb:11 / mariadb:latest #1648
Comments
The database itself initializes and looks like it's working as normal:
|
I think this is related to using the Overlay network driver. Do you have other database containers running correctly in that same network? Do you need to use an overlay-based network? Related StackOverflow question: https://stackoverflow.com/questions/69822573/how-can-i-connect-from-project-to-mysql-container-in-docker-swarm |
I am currently having the same issue. I'm using the docker compose example that is provided in the wiki. I noticed if I log into the mariadb container I'm unable to login to the db with the credentials that are specified in my environment. |
None of the containers share a container name, and as long as the DB is on the same "server" I've not had a problem. These aren't being deployed on the swarm, but as server-local containers that happen to use the swarm overlay network for DNS resolution. It's how I keep my *arrs behind a VPN and the non-*arrs on the non-VPN'd servers while still being able to use a single reverse proxy instance to run it all. I do have other mariadb instances running with different container names without issue. It seems more that as the next comment mentioned, being unable to login with the specified credentials. I wonder if I can resolve to another working mariadb instance and see if that works or not. Will report back shortly. |
I can confirm at this point being unable to login via CLI in the mariadb container:
When I downgrade to mariadb:10 almost everything works. This issue is specifically with maridb:11 (mariadb:11, mariadb:latest, mariadb, etc). |
OK, so downgrading to MariaDB:10 worked with adjustments. I needed to adjust my healthcheck settings to
and add the ENV variable:
to my mariadb container to enable the healthcheck script, and it's now installing ROMM normally. I'm not sure what is causing the issue with not being able to login with MariaDB:11 (latest, etc), but that's the cause I believe. |
Using the root user worked for me with mariadb 11, any custom user I try to assign specifically for the romm db binded to the romm host or '%' doesn't work. |
RomM version
Latest Pull on Docker
Describe the bug
No matter what I try, the DB will not allow connections from the main app.
To Reproduce
Run Docker Install with the following:
Expected behavior
Should simply install
Screenshots
N/A
Desktop (please complete the following information):
Additional context
Error being seen:
The key issue being (I think):
The IP changes as it is the container for "romm" that is trying to connect, and it's IP will change each time we docker compose down/up it.
I have changed users via the USER: XXX:XXX docker compose tag, that did not help. Permissions on file system read like they are correct for my setup. Specifically, MARIADB can read/write to the volume.
I'm usually pretty good about troubleshooting these on my own, but I'm at a loss at this point.
I did check to see if there were issues like mine previous, and there are 2 that are similar that were closed, but the fixes for them did not fix my issue here.
Thoughts?
The text was updated successfully, but these errors were encountered: