coolify: [Bug]: MongoDB backups are failing due to missing cert.

Error Message and Logs

Since 26 march, all mongoDB backups are failing. Error: Failed: can't create session: error configuring the connector: error configuring client, can't load CA file: open /etc/mongo/certs/ca.pem: no such file or directory

Image

Steps to Reproduce

  1. Create new mongodb instance
  2. Trigger manual backup (or wait daily backup to trigger)

Example Repository URL

No response

Coolify Version

v4.0.0-beta.400

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

ubuntu 22.04

Additional Information

No response

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 2
  • Comments: 17 (5 by maintainers)

Most upvoted comments

I just removed the disabled attribute from the “Enable SSL” checkbox with Chrome Dev Tools, unchecked it and I can confirm manual backups are working again with this trick.

+1 please fix it asap! Or provide guide how to fix backups. We are in production!

For anyone still having this issue I think a restart of the DB will fix it as it will mount the CA cert correctly.

Restarting the DB fixed the issue for me:

Image

For anyone still having this issue I think a restart of the DB will fix it as it will mount the CA cert correctly.

You enabled SSL while MongoDB was running if I am right? There was a bug that allowed you to enable SSL while MongoDB was running.

Please disable ssl as a workaround.

Well it’s not me who checked it, it was already checked. Since month i wasn’t touched anything in coolify but after update (since 26 march) it’s broken. Disabling SSL is worked, thanks. I don’t know why I need SSL in database but thanks for letting me know.

This is a duplicate of #5463 I also added a bounty there. These issues started with #5428 after full SSL support was added. I’m unable to backup my clients data and this is quite urgent.

@andrasbacsai I have not changed any configuration on coolify cloud, so whatever SSL change happened on my end it was introduced by some automated process, if that helps.

SSL configuration is disabled and cannot be unchecked, and Regenerate SSL certificates button throws an error due to there being no certificates.

Image

I quickly patched the cloud instance, now you can disable the SSL part during runtime. If you disable, can you please start a manual backup exection and let me know if it works?