-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
🐛 Possible BugReported issues that need to be reproduced by the team.Reported issues that need to be reproduced by the team.🔍 TriageIssues that need assessment and prioritization.Issues that need assessment and prioritization.
Description
Error Message and Logs
When enabling SSL/TLS on a database resource and clicking start the deployment fails as unhealthy and there a few things that can happen:
- Either the
server.pemdoes not exist and docker creates a directory:
root@coolify-test:~# ls -la /data/coolify/databases/sk80s8o8sw0swo4oc004cg4g/ssl/server.pem
total 8
drwxr-xr-x 2 root root 4096 Apr 16 10:59 .
drwxr-xr-x 3 root root 4096 Apr 16 10:59 ..
- Hitting generate SSL certificate if the directory appears replaces the directory with an empty file owned by root:root
root@coolify-test:~# ls -la /data/coolify/databases/sk80s8o8sw0swo4oc004cg4g/ssl/server.pem
-rw-r--r-- 1 root root 0 Apr 16 10:59 /data/coolify/databases/sk80s8o8sw0swo4oc004cg4g/ssl/server.pem
- Hitting generate again will then successfully create the
server.pemfile
root@coolify-test:~# ls -la /data/coolify/databases/sk80s8o8sw0swo4oc004cg4g/ssl/server.pem
-rw------- 1 root root 1374 Apr 16 11:00 /data/coolify/databases/sk80s8o8sw0swo4oc004cg4g/ssl/server.pem
However, the final issue is mongodb cannot read this file due to permissions on the file.
Steps to Reproduce
- Generate a database resource and enabled SSL
- Click start without hitting generate SSL certificate
- Inspect docker container to see where the file is mounted and go check what was generated
- Keep hitting generate SSL as you cycle through directory -> empty file -> file owned by root
Example Repository URL
No response
Coolify Version
latest
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
No response
Additional Information
No response
yoratoni
Metadata
Metadata
Assignees
Labels
🐛 Possible BugReported issues that need to be reproduced by the team.Reported issues that need to be reproduced by the team.🔍 TriageIssues that need assessment and prioritization.Issues that need assessment and prioritization.