-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
db_ready fails for MySQL/Mariadb without SSL #13
Comments
Thanks for the detailed report! This was caused upstream by the release of Alpine 3.21 last week and by the changing of some defaults which cascaded down 4 images (nginx, nginx-php-fpm, invoiceninja) to affect you. I've pinned the the dependent images to known working ones which do add the necessary arguments of --skip-ssl. There's an undocumented 1.0.150 is the updated release. |
Thanks for the update. I hit more issues with the
The best solution I've found so far is to add
Not sure the best way for you to implement that, also not sure what other defaults upstream has changed that could cause issues. I can bind mount a file there to fix things, but most people aren't going to realise there is an an issue as all the errors are hidden until you run commands manually. |
OK. That's a great interim solution and also a great way to work these changes in the upstream image as opposed to try to catch every instance of using Give me a bit to think this through and I'll work something in. I see you are active in another issue and think its time I put a bit more look into the later releases of this image. I've pinned to a version way back and maybe this is an excellent winter break opportunity to upgrade my stack to something more modern. |
Summary
db_ready mariadb
fails when the remote server doesn't support SSLSteps to reproduce
Connecting to CloudSQL instance via cloudsqlproxy, no SSL supported. Error is
[invoiceninja] MySQL/MariaDB Server 'cloud-sql-5896' is not accessible, retrying.. (5 seconds so far)
which just continues.Manually checking the command that tests if ready gives the following output
What is the expected correct behavior?
Should get an OK response, e.g.
Uptime: 3873532 Threads: 29 Questions: 612692459 Slow queries: 5092 Opens: 29799041 Flush tables: 5313 Open tables: 2496 Queries per second avg: 158.174
Relevant logs and/or screenshots
Environment
Any logs | docker-compose.yml
Possible fixes
Need to add
--skip-ssl
to the/usr/bin/mysqladmin
command. Probably also need to change that to/usr/bin/mariadb-admin
The text was updated successfully, but these errors were encountered: