Skip to content
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]: Cannot enable SSL Mode with MariaDB or Mongo #5436

Closed
CallMeLewis opened this issue Mar 26, 2025 · 3 comments · Fixed by #5416
Closed

[Bug]: Cannot enable SSL Mode with MariaDB or Mongo #5436

CallMeLewis opened this issue Mar 26, 2025 · 3 comments · Fixed by #5416

Comments

@CallMeLewis
Copy link

CallMeLewis commented Mar 26, 2025

Error Message and Logs

I am trying to use the new automatic ssl for databases and not having a lot of success. The database i am trying this on is MariaDB and the error is below. Obviously if i disable ssl everything works normal.

2025-03-26T21:14:01.670624548Z 	command was: mysqld --ssl-cert=/etc/mysql/certs/server.crt --ssl-key=/etc/mysql/certs/server.key --ssl-ca=/etc/mysql/certs/coolify-ca.crt --require-secure-transport=1 --verbose --help
2025-03-26T21:14:01.670630238Z 	/usr/local/bin/docker-entrypoint.sh: line 105: mysqld: command not found.

I even tried to create a new mongodb database service and also getting an error with enabling SSL, it seems that coolify is creating the wrong files for SSL.

{"t":{"$date":"2025-03-26T23:00:13.680+00:00"},"s":"I",  "c":"CONTROL",  "id":20698,   "ctx":"main","msg":"***** SERVER RESTARTED *****"}
{"t":{"$date":"2025-03-26T23:00:13.690+00:00"},"s":"E",  "c":"NETWORK",  "id":23248,   "ctx":"main","msg":"Cannot read certificate file","attr":{"keyFile":"/etc/mongo/certs/server.pem","error":"error:FFFFFFFF8000000D:system library::Permission denied"}}
{"t":{"$date":"2025-03-26T23:00:13.690+00:00"},"s":"F",  "c":"CONTROL",  "id":20574,   "ctx":"main","msg":"Error during global initialization","attr":{"error":{"code":140,"codeName":"InvalidSSLConfiguration","errmsg":"Can not set up PEM key file."}}}
ERROR: child process failed, exited with 1
To see additional information in this output, start without the "--fork" option.
about to fork child process, waiting until server is ready for connections.
forked process: 28

Steps to Reproduce

  1. Enable SSL and clicked save
  2. Fully stopped database service.
  3. Waited 5 seconds to allow service to fully stop.
  4. Started service again.

Example Repository URL

No response

Coolify Version

v4.0.0-beta.399

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Debian 12.10.0

Additional Information

No response

@CallMeLewis CallMeLewis added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Mar 26, 2025
@andrasbacsai andrasbacsai self-assigned this Mar 27, 2025
@CallMeLewis CallMeLewis changed the title [Bug]: Cannot enable SSL Mode with MariaDB [Bug]: Cannot enable SSL Mode with MariaDB or Mongo Mar 27, 2025
@andrasbacsai
Copy link
Member

Thanks for the report, this will be fixed in the next version which I will release today.

@github-actions github-actions bot removed 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Mar 27, 2025
@dhpl
Copy link

dhpl commented Mar 29, 2025

same issue, please help me!

@CallMeLewis
Copy link
Author

same issue, please help me!

As dev said fixed in build beta 400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants