Setting up OctoPrint on TrueNAS Scale 25.04.0

I'm not even sure if I'm going to personally use this, but the more it didn't work the more I tried till I got the printer and usb webcam (Logitech Brio 500) working....

In short, for me...

Resources & Notes:

  • https://hub.docker.com/r/octoprint/octoprint
  • first it may sound obvious - BUT, it's been common to cover the +5v pin on Octoprint USB cables to stop the host powering the printer board when the printer is off so unless the printer is actually powered on the host USB device isn't recognised and will have issues building or running the APP.
  • imo leave Devices empty and Video Streamer unticked till it's all running then circle back to edit the APP and add the entries. it's less frustrating if it doesn't work first time.

TrueNAS:

  • Host Device & Container Device: /dev/ttyACM0
  • Host Device & Container Device: /dev/video0
  • Camera Device: /dev/video0

OctoPrint:

  • Octoprint>Server>Restart OctoPrint: s6-svc -r /var/run/s6/services/octoprint
  • Octoprint>Server>Reboot System: s6-svc -r /var/run/s6/services/octoprint
  • Features>Webcam&Timelapse>Path to FFMPEG: /usr/bin/ffmpeg
  • Plugins>Classic Webcam>Stream URL: /webcam/?action=stream
  • Plugins>Classic Webcam>Snapshot URL: http://(TrueNAS IP):(octoprint port)/webcam/?action=snapshot
  • Plugins>Classic Webcam>Advanced Options>Stream Timeout: 86400 (personal preference)

Might be obvious to some, but took me a little while to figure out with many of the guides being overly complicated since updates to OctoPrint.

2 Likes

Man, im having a LOT of trouble on this. omg.

if i put the devices, i receive a error:
ValueError: 'error' required in context

i dont know why. i try this with the default app, no changes at all and with custom paths.
printer on, printer off. the usb show the printer id if i use the command on the terminal.

In VM i have a lot of trouble to pass thru the USB because i need to restart the VM and the printer manualy everytime i get a error or need to change something. its a pain.

Can't say that error provides allot of detail about what you've put in or when you are getting it.

That said, unless the USB devices are present it will have tons of issues so pop into the TrueNAS shell and do a 'ls /dev' to check that ttyACM0 exists for the printer and video0 for any video streams.

Failing that do the ls before and after plugging in the devices to check whats been added. Can also turn on notifications in TrueNAS under System > GUI Settings > Show Console Messages which will pop up messages as devices are added.