Problem with Custom App Installation

Hello everyone!

I’m trying to install Spoolman through a custom App and have problems with the mount path.
If I use the one from the installation page (/home/app/.local/share/spoolman) nothing works.
I tried modifying it a bit and got to the point to being able to start and use the app.
The only problem is, that then the database file is not in the folder I set up as the host path as it should be.

I tried using the YAML and the setup through the GUI.

If I edit the YAML to my needs it looks like this, but won’t start:

version: '3.8'
services:
  spoolman:
    image: ghcr.io/donkie/spoolman:latest
    restart: unless-stopped
    volumes:
      # Mount the host machine's ./data directory into the container's /home/app/.local/share/spoolman directory
      - type: bind
        source: /mnt/APPS/APPS/spoolman/data # This is where the data will be stored locally. Could also be set to for example `source: /home/pi/printer_data/spoolman`.
        target: /home/app/.local/share/spoolman # Do NOT modify this line
    ports:
      # Map the host machine's port 7912 to the container's port 8000
      - "30050:8000"
    environment:
      - TZ=Europe/Berlin # Optional, defaults to UTC

If I delete the “/home” from the target path it allows me to at least start and use the app, but without creating the database file in the source path.

What am I missing?

shouldnt the syntax for the mount be

volumes:
  - /mnt/APPS/APPS/spoolman/data:/home/app/.local/share/spoolman

I tried that as well, but won’t start either.

My guess would be that it’s a permissions issue, where spoolman is unable to write to the /mnt/APPS/APPS/spoolman/data dataset/folder.

The spoolman install instructions point out that it uses uid/gid 1000 and a part of the instructions is that you need to chown the data folder accordingly.

1 Like

omg that was it :man_facepalming:
Thank you very much :slight_smile:

When I was looking through my existing users I get the impression uid 1000 does not exist yet. Would you mind giving me a more detailed explanation on how you set up spoolman?

Thx in advance!

install instructions state the 1000 user is inside the container (Spoolman)

Did you manually chown the data folder, or is there a way to do that in the yaml?