-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Unraid docker not connecting to mariadb #349
Comments
Could you provide logs with Might be similar to #238 (comment). |
I looked at issue #238, and there was no actual fix posted. I can ping both databases within a shell command. I ran debug mode, and this is what I get. text error warn system array login
|
Hey @mlause 👋 The part that's currently interesting in the log is the following: export MYSQL_PWD=
MYSQL_PWD=
run_as_user mysqladmin -uroot -P3306 -hx.x.x.22 status
...
write_log warn 'MySQL/MariaDB Server '''x.x.x.22''' is not accessible, retrying.. (5 seconds so far)'
var_true '' First thing I noticed is that the You state that "I can ping both databases within a shell command.", does this mean you've pinged/checked it from within the db-backup container? If you perform the following within the db-backup container, substituting your own username, password, port and host, what does it return? export MYSQL_PWD=<password>
mysqladmin -u<username> -P<port> -h<host> status My best guess for now would be either that password was not set (or incorrect), or that the host might not be accessible to the db-backup container. Can you provide the config/environment variables you've used, in particularly the Sidenote: if you format your log using markdown with triple backticks that would make it easier to read: https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-code |
I figured out the issue. I have this set as DB02. The container variable name was correct, but the key was wrong. I was able to backup mysql. Thanks for the help in identifying this. |
@mlause Great to hear 👍 You can close this issue if it's resolved. |
Summary
I get the following error in the logs when db-backup tries to connect to mariadb.
2024-05-25.14:22:50 [WARN] ** [02-x.x.x.x__ALL] MySQL/MariaDB Server 'x.x.x.x' is not accessible, retrying.. (130 seconds so far)
Steps to reproduce
I have the IP address correctly entered, and it shoes this error everytime a backup is attempted.
What is the expected correct behavior?
I'm a first time user. I would expect the application would do the backup and show it in the folder.
Relevant logs and/or screenshots
I copied it above.
Environment
Unraid 6.12.9
Latest version of db-backup
Possible fixes
I tried this solution, #79, but it did not work.
The text was updated successfully, but these errors were encountered: