ludus-leonis / FreeBeeGee

A virtual gaming tabletop in your browser.
Other
41 stars 5 forks source link

Snapshots not detected on Podman? #6

Closed 20kdc closed 1 year ago

20kdc commented 1 year ago

While deploying the Docker container to a personal Nomad v1.5.3 instance via Podman, it turned out that the data volume overrode the server snapshots, making it impossible to create a room. The snapshot list shows no snapshots and attempting creation gives the error "The selected snapshot contains errors and can't be loaded." This might also apply to non-Nomad deployments, but I'm not sure.

Workaround: Manually copy the snapshots directory.

HCL used for deployment: pathos2.hcl.txt

ludus-leonis commented 1 year ago

Yes, the data folder needs to be prepopulated and can't just be mapped with an empty volume. I guess I should update the the INSTALL.md to reflect that.

So you could

This is not Nomad related. Not sure how other docker apps handle this. If it is common that mounted empty volumes are autodetected and re-populated, I could add that to the backlog.

20kdc commented 1 year ago

I'm not aware of mounted empty volumes being repopulated being a thing. That said, my experience is limited (hence my uncertainty as to if it was Nomad-specific). I think updating the INSTALL.md and adding some indicator if the server still gets into that state would be enough.

ludus-leonis commented 1 year ago

I updated the INSTALL.md to cover mounting room data, config file and /data mounting.

fixed in 0.21.0

20kdc commented 1 year ago

Alrighty, thank you! That should avoid problems in future.