Disk I/O Error on db.sqlite3 with /ps/tmp on MergeFS

Welcome to PhotoStructure @TimidNail !

When I’ve seen this, it’s due to SQLite trying to write to a non-local volume.

PhotoStructure runs SQLite in WAL mode, which requires a file that’s mem-mapped for multi-process coordination.

I suspect /mnt/storage/DockerContainerStorage/photostructure/temp is not a local disk.

If it is a local disk, can you tell me more about your docker host (OS, volume metadata about /mnt/storage/DockerContainerStorage/photostructure, …)?

Also: if you want to run PhotoStructure as a custom user, I’d suggest running the v1.0.0 beta instead of v0.9.1 (v0.9 relies on Docker’s --user arg which is a bit knotty).

  1. Change to image: photostructure/server:beta,
  2. delete the user: line in your docker-compose, and
  3. add a linuxserver-style UID and GID environment values:
    environment:
      - UID=1000
      - GID=1000