szabodanika / microbin

A secure, configurable file-sharing and URL shortening web app written in Rust.
https://microbin.eu
BSD 3-Clause "New" or "Revised" License
2.65k stars 163 forks source link

Data loss after updating the docker container #119

Closed AuthorShin closed 1 year ago

AuthorShin commented 1 year ago

Hello I just updated my MicroBin container to the latest version and after that I saw that all my pastas are gone and the list is empty.

jchia commented 1 year ago

Do you have a backup of the data? Have you tried downgrading the container? Have you taken a look at the current data file (database.json) to see whether it is empty or looks obviously wrong?

AuthorShin commented 1 year ago

@jchia I had a backup that saved me but database.json was empty after the upgrade.

jchia commented 1 year ago

@AuthorShin That seems like a bug. If you have the steps to repro it reliably, then someone could try to fix it.

AuthorShin commented 1 year ago

I'll try to provide that.

diamondsw commented 1 year ago

Was database.json on a persistent volume? Important to know if the upgrade was at fault or if it's a Docker configuration issue.

AuthorShin commented 1 year ago

It was on a persistent volume.

szabodanika commented 1 year ago

On the newest few versions this doesn't seem to be an issue anymore (for me), even across different beta versions of v2, so I will close it. Feel free to reopen it if anyone else experiences data loss after updates.