Getting CUPS to work on TrueNAS Scale?

So I never really managed to sort this properly and should probably try again.

Since then I have started savign the confog files of my apps to their own datasets instead of the ixvolumes ones - this I imagine would proabably solve the issue of the config not saving etc.

I’m not sure about when the printer turns on and off though to be honest - I could never get that to work even if i left the app running

Hopefully we can figure it out

Dear James

I was really hoping that you had solved this problem already.

Never mind…I just need a little bit more time to explore the docker and hope that this issue will be resolved.

At the moment I am on state that even test page is not able to print, even that the printer is vissible. I have to figure out how to acces the config file firs and how to palce it on desired place for me
/mnt/pool/Programs/Cups/cups.conf

Most likely you need to select the right driver to use. Or you can hopefully download a compatible driver from the manufacture’s webiste. - I couldn’t do that so i ended up just trying all of the built-in drivers until i found one that worked well.

For accessing that directory, I personally have done this using filezilla - or set up an SMB share if you have a custom dataset that you set up for the config folder :slight_smile:

It should be something like this:

Host/volume Path in container
/var/run/dbus /var/run/dbus
/mnt/pool/Programs/Cups/cupsd.conf /etc/cups/cupsd.conf

But when I try to deploy the container with those paths, I have the following error:

Failed starting container: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting “/mnt/pool/Programs/Cups/cupsd.conf” to rootfs at “/etc/cups/cupsd.conf”: mount /mnt/pool/Programs/Cups/cupsd.conf:/etc/cups/cupsd.conf (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

I’m not really sure to be honest - i did get it running at the time but unfortunately i cant remeber what i did at all now. If i get it going again i’ll update this thread.

Also let me know if you get it going!

Of course that if I get it to work I’ll share my solution and you will mark this topic as SOLVED :grinning:

I can not manage it to work properly! :tired_face:

Even with binded cupsd.conf and editing the config file, the app works great until I turn the printer of or stop/start the CUPS by WebUI.
I am going to wait for official support for this APP, until than, my printer and CUPS wiil stand ON all the time.

Let share what acttually I DO:

1.I realized that can use YAML config fail for my installation.I could not manage with “docker run command” and all the binded, mounted and permissions staff. My file looks like that and installs CUPS correct:

version: '3.8'

services:
  cupsd:
    image: olbat/cupsd:stable-2025-02-17
    container_name: cupsd
    restart: unless-stopped
    environment:
      - PUID=3000
      - PGID=3001
    ports:
      - "631:631"
    volumes:
      - /var/run/dbus:/var/run/dbus
      - /mnt/pool/Programs/cups/cupsd.conf:/etc/cups/cupsd.conf
    devices:
      - /dev/bus/usb:/dev/bus/usb

2.I also found this and this topics where is mentioined, that you should bind /dev/bus/usb on the host to /dev/bus/usb in container and the printer will works correct. It has been added in the file but not work for me.

If someone have any ideas, let share his experience please.I know that is not official app but your help will be appreciated Thanks in advance and good day to all of you.