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]: Storages File Mount deletes all contents when destination path is changed #4755

Open
koikearonson opened this issue Jan 6, 2025 · 0 comments
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.

Comments

@koikearonson
Copy link

Error Message and Logs

We experienced an issue in our org today when a file mount path was defined under "Storages" and then edited to correct the destination. Doing so deleted all the folders and files inside the first destination without any warning whatsoever. We confirmed that when you go to delete the file mount path there is a warning that all contents will be deleted.

We have the following questions/concerns that could be wrapped into an improvement request:

  • Can there be a warning when changing the file path that the previous destination will be nuked?
  • When deleting a storage source, can there be a toggle to choose to retain or delete data?

I'm curious what the logic is behind completely erasing the contents of a file mount path without any other options in the first place.

Steps to Reproduce

  1. Log in to Coolify and go to Projects > Storages.
  2. Create a file mount path to a local share. In our case, we had a Windows SMB share mounted to /mnt/sharename01. Save the file mount.
  3. Change the file mount path to another local share. In our case, it was switched to another Windows SMB share mounted to /mnt/sharename02.
  4. Confirm the change and observe files and folders disappearing from the original source.

Example Repository URL

No response

Coolify Version

v4.0.0-beta.380

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Debian 12

Additional Information

No response

@koikearonson koikearonson added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.
Projects
None yet
Development

No branches or pull requests

1 participant