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.71k stars 172 forks source link

Pastas not persisting after stack updates or container restarts (Docker) #186

Open Bespectacat opened 1 year ago

Bespectacat commented 1 year ago

Describe the bug When updating the docker container for Microbin, any persistent or recent files (eternal or not) are no longer listed nor are accessible from Microbin.

To Reproduce Steps to reproduce the behavior:

  1. Start up Microbin docker container on the latest version (v.2.0.4)
  2. Upload a file or paste to microbin.
  3. See that the paste has been created.
  4. Stop the Microbin docker container.
  5. Restart the Microbin docker container.
  6. Look at microbin.url/list to see that previously posted pastes are no longer there. Additionally, any links generated from this paste lead to a 404 page.

Expected behavior Even with a container restart, previously uploaded pastes should persist.

Desktop (please complete the following information):

Additional context I ran a 1:1 scenario with v.1.2.1 and v.2.0.4 to double-check that this issue was new. On the older version, pastas still persist outside of just removing the associated docker volume altogether. On the newer version, they do not persist at all, whatsoever. I can't even find them in the associated locations where pastes and attachments should be stored at (either at /var/lib/docker/volumes/ or at a user-defined location from the docker-compose.yml)