-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
I get the message Mariadb server 'db' is not accesible, ping works #238
Comments
Hey @aadje93 👋 If you're certain that your Footnotes |
Hi @ToshY, i tried from inside the shell of the db-backup container to ping to my db host with hostname Port is 3306 which is the default of mysql/mariadb so i removed that :3306 from the host but still it gives if i use the |
Hey @aadje93 You can try to use Edit In the code before this error message occurs a |
i realy dont know what happened, but now its working. I did remove the :3306 again but before that it also wasn't working while i could ping the Did a run in debug mode with the stack in normal (not -d deamon) mode and logged in on a second ssh session to go into the container which did a working backup. Then did a run with deamon mode on the 1 ssh session and backup from the second one and also working fine. Realy strange. |
Summary
Trying the manual backup to verify everything is working, i get the db is not accesible. I use ping to do a check if docker network is good and i can ping the "db" container fine (resolving in correct container name and ping <1ms)
the compose file is as follows for the db-backup part
the same env variables are used in my web app which make it work fine. so credentials are good, or does it need the root acces?
Steps to reproduce
Start the container with code above, put a secondary web app next to it with same ENV credentials to acces the mariadb container and then the web app works fine, but the db-backup app gives error
[db-backup] MySQL/MariaDB Server 'db' is not accessible, retrying..
What is the expected correct behavior?
Well i expect to let the program do a backup given the same .env credentials to it as my web app :)
Relevant logs and/or screenshots
Possible fixes
i'm not sure where its going wrong. i'm sorry.
The text was updated successfully, but these errors were encountered: