coollabsio / coolify

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

[Bug]: Invalid DB Backups #3513

Open arshx86 opened 1 day ago

arshx86 commented 1 day ago

Error Message and Logs

Database creations are working well, but not the backups. When I try to backup a DB (or with scheduled backups) it installs a corrupt, unreadable tar.gz archive. Database configuration is untouched, I only enabled public Uri's. There is no exceptions or any error messages, it succeeds but backup file is correct. I'm also sure about file size is incorrect.

MongoDB, self hosted - Ubuntu 22.04.1 LTS (coolify v4.0.0-beta.331)

image

The DB configuration is default and untouched. image

Steps to Reproduce

  1. Create a new database (MongoDB in this case)
  2. Schedule daily backups and click trigger 'backup now'
  3. Try unzip and see the error

Example Repository URL

No response

Coolify Version

v4.0.0-beta.331

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 22.04.1 LTS

Additional Information

No response

djsisson commented 1 day ago

its not something you can open in winzip use the import backup function or u can use mongorestore --gzip --archive=backup_db.tar.gz newdb