coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
32.6k stars 1.72k forks source link

[Bug]: Container backups are either non-existent or not scheduling #3681

Open graphiostudio opened 1 week ago

graphiostudio commented 1 week ago

Error Message and Logs

This issue has been asked numerous times on Discord channel but none of them got proper replies and fixes. There are similar open issues as well. -Some container databases doesn't come with a backup option when you go into their settings. -The ones that have a backup option in their settings do not keep the schedules saved. It DOES work when you set and hit backup now, but a quick refresh or server restart deletes them (not the backup files but the scheduling).

Steps to Reproduce

  1. Install Mixpost and observe there's no backup option on MySQL database
  2. Install Plane (for example) and if there's a backup option, schedule one.
  3. Click backup now, and observe it works.
  4. Refresh the page or restart the server, schedule is empty.
  5. Hit download and observe that is not downloading

Example Repository URL

No response

Coolify Version

v4.0.0-beta.349

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 22

Additional Information

Schedule set, backup working and uploaded to S3:

image

A quick refresh, or server restart, and that schedule is gone. This applies to all container backups, postgres, DB, and MySQL on multiple servers.

image

And some templates like Mixpost for instance, don't even have the backup option on the container, this also applies to the most recent template on Directus, when I use an old version of the Directus template, backup appears but still, doesn't schedule.

image
andrasbacsai commented 1 week ago

Yes, it is because Coolify detects that if the service is a database or not by the image name. mysql-server is not in the list. I will update the image list.

(If you know a better way to do this, let me know)

graphiostudio commented 2 days ago

Hey @andrasbacsai, thanks for the reply. That 'mysql-server' was a default by Mixpost template.

image

I guess, I need to double-check the template compose before deploying. However, the backups disappearing issue still persists. On 355, most databases now have a backups link but setting one doesn't really do anything, they will disappear like the example above. Also, keep getting these discord messages like in this issue: https://github.com/coollabsio/coolify/issues/3395