[Support] Octoprint docker template - Spants


Recommended Posts

18 hours ago, spants said:

If you use the "by-id" serial identification this won't happen as it uses the identity of the printer.  If you use ttyACM0 or ttyUSB1 methods, these can change

 

Had to wait for it to do a backup before I could show it.

It does this - I had previously removed the webcam device key, as well as ENABLE_MJPG_STREAMER, CAMERA_DEV, MJPG_STREAMER_INPUT, webcam, and snapshot. All I had was the printer USB port key - as you can see it's removed the printer USB port and replaced it with webcam device, which means the container doesn't start.

 

Now that I think about it - it could be because the printer is not powered on when it does a backup, so when it comes back the USB device does not exist, but I don't know why it would change the template.

 

I'll try creating an automation to turn the printer on during the backup window - however I have also tried setting community apps backup to ignore the octoprint folder, but it still happens. I've had plenty of containers where I've edited the templates and I've never had this happen.

Screen Shot 2022-05-01 at 12.19.03 pm.png

Link to comment
On 5/1/2022 at 7:28 PM, spants said:

Strange! What version of unraid are you using?

 

Latest stable, 6.9.2. I've moved my docker to a folder rather than an image - but another strange thing is I added a camera and installed the drivers etc, but now 50% of the time when I restart Octoprint the camera port changes. Last night I restarted it and it grabbed my USB backup drive as the printer port.

 

Got no idea what's going on with it, but I can work around it by just rebuilding the container every day.

Link to comment

I'm trying to run this without a webcam, in the initial setup I am blanking everything out relating to webcam and I keep getting

 

[email protected]:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='OctoPrint-Spants' --net='bridge' -e TZ="America/Los_Angeles" -e HOST_OS="Unraid" -p '5002:5000/tcp' -p ':80/tcp' -p ':8080/tcp' -v '/mnt/user/appdata/octoprint':'/octoprint':'rw' --device='/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0' --device='' 'octoprint/octoprint:latest'

docker: bad format for path: .
See 'docker run --help'.

The command failed.

Link to comment
On 5/4/2022 at 4:17 PM, Mokresh said:

I'm trying to run this without a webcam, in the initial setup I am blanking everything out relating to webcam and I keep getting

 

[email protected]:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='OctoPrint-Spants' --net='bridge' -e TZ="America/Los_Angeles" -e HOST_OS="Unraid" -p '5002:5000/tcp' -p ':80/tcp' -p ':8080/tcp' -v '/mnt/user/appdata/octoprint':'/octoprint':'rw' --device='/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0' --device='' 'octoprint/octoprint:latest'

docker: bad format for path: .
See 'docker run --help'.

The command failed.

I am also trying to run it without a webcame and i am getting the same error. going to have to plug in a webcam and see if it will install for me

Link to comment

I'm trying to get the webcam to work but it isn't working. i have installed dvb drivers and I have tried video1 and video0 but i cant get a image. if using video0 and i try the webcam stream URL in the browser it just has the loading symbol constantly whereas video 1 it says unable to load. i tried the URL on my phone same thing and the loading bar doesn't progress. I'm not sure what i am doing wrong but these are my settings. help would be appreciated.

2089989674_Screenshot2022-05-11233245.thumb.png.b01da16f60292dd03bcf87090601b96c.png

 

 

Link to comment
Hi,
i´m trying to set up my camera resolution, but it won´t work for me. It´s reset to default every time.
I receive the following error in the log:
 
i: Using V4L2 device.: /dev/video0i: Desired Resolution: 2560 x 1440i: Frames Per Second.: 15i: Format............: YUYVi: JPEG Quality......: 80i: TV-Norm...........: DEFAULTi: The specified resolution is unavailable, using: width 1280 height 720 insteadi: FPS coerced ......: from 15 to 10o: www-folder-path......: /usr/local/share/mjpg-streamer/www/

image.thumb.png.05f423a4f6972caa831efe668564f6a4.png
 
 
Due missing file at "/boot/config.txt" i´m not able to test it the "official" way. I laso played with mjpg settings a bit, but no success. Did someone managed to handle this?
 
Regards
Marc



Hey, any idea on this?
Link to comment
  • 1 month later...

Hi, firstly thank you for maintaining this Docker!

 

I need a few pointers to troubleshoot intermittent USB connection to the printer. System log when such disconnection happens:

Jul 13 12:45:52 Tower kernel: usb 2-1.2: new full-speed USB device number 23 using ehci-pci
Jul 13 12:45:52 Tower kernel: cdc_acm 2-1.2:1.0: ttyACM0: USB ACM device
Jul 13 13:20:03 Tower emhttpd: spinning down /dev/sde
Jul 13 13:40:09 Tower emhttpd: spinning down /dev/sdb
Jul 13 13:42:22 Tower emhttpd: read SMART /dev/sdb
Jul 13 15:22:08 Tower kernel: usb 2-1.2: USB disconnect, device number 23
Jul 13 15:22:08 Tower kernel: usb 2-1.2: new full-speed USB device number 24 using ehci-pci
Jul 13 15:22:08 Tower kernel: cdc_acm 2-1.2:1.0: ttyACM0: USB ACM device

 

And the error as shown on Octoprint:

State: Offline after error
SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

 

Printer is Artillery Hornet. Octoprint generally works well except for these random disconnections which may happen anytime, during an auto bed leveling routine, mid-print, pre-heating. Diag zip is attached. Thanks in advance!

tower-diagnostics-20220713-1535.zip

Link to comment
  • 1 month later...
  • 3 weeks later...
On 7/13/2022 at 8:37 AM, Kagoromo said:

Hi, firstly thank you for maintaining this Docker!

 

I need a few pointers to troubleshoot intermittent USB connection to the printer. System log when such disconnection happens:

Jul 13 12:45:52 Tower kernel: usb 2-1.2: new full-speed USB device number 23 using ehci-pci
Jul 13 12:45:52 Tower kernel: cdc_acm 2-1.2:1.0: ttyACM0: USB ACM device
Jul 13 13:20:03 Tower emhttpd: spinning down /dev/sde
Jul 13 13:40:09 Tower emhttpd: spinning down /dev/sdb
Jul 13 13:42:22 Tower emhttpd: read SMART /dev/sdb
Jul 13 15:22:08 Tower kernel: usb 2-1.2: USB disconnect, device number 23
Jul 13 15:22:08 Tower kernel: usb 2-1.2: new full-speed USB device number 24 using ehci-pci
Jul 13 15:22:08 Tower kernel: cdc_acm 2-1.2:1.0: ttyACM0: USB ACM device

 

And the error as shown on Octoprint:

State: Offline after error
SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

 

Printer is Artillery Hornet. Octoprint generally works well except for these random disconnections which may happen anytime, during an auto bed leveling routine, mid-print, pre-heating. Diag zip is attached. Thanks in advance!

tower-diagnostics-20220713-1535.zip 107.71 kB · 0 downloads

I have the same issue :( printing vom SD Card works fine, but with the usb connection not... 
Does anyone have a solution?

Link to comment
6 hours ago, EdlerSpender said:

I have the same issue :( printing vom SD Card works fine, but with the usb connection not... 
Does anyone have a solution?

Hi, the problem went away for me after I moved the printer closer to the Unraid machine to avoid having to use a long USB extension cable. I also bought a new USB mini cable just in case, but it turned out to be unnecessary as the cable that came with the printer worked just fine as long as it's plugged straight into the Unraid machine. If you have been using a USB extension cable, that's where I'd take a look first.

  • Like 1
Link to comment
On 9/6/2022 at 11:01 PM, Duckers said:

Can't install, nor run it. 

docker: Error response from daemon: error gathering device information while adding custom device "/dev/serial/by-id/usb-Prusa_Research__prusa3d.com__Original_Prusa_MINI_CZPX1620X017XC06142-if00": no such file or directory.

 

Having the same error. Anybody?

Link to comment

@JakeBullet  @Duckers and anyone else who hits the serial/by-id issue. it automatically fills in the serial/by-id. In order to get your actual path, open your unraid console and type

udevadm info    --name=/dev/ttyACM0

that'll return a DEVLINKS= and that's the value you want to paste in there.

 

If you need to find other values for a camera or something (or if yours doesn't appear at ttyACM0) you can do
 

cd /dev/bus/usb/

and then type ls to get all the files/folders and then do the udevadm info like

udevadm info    --name=/dev/bus/usb/001/002 

to get more info about each location. For this one, I wanted the DEVNAME.

Edited by adambeck7
Link to comment
  • 2 months later...

I had this previously working but seemingly overnight I cannot get the webcam to work anymore. I also have a video0 and video1 now, both seemingly pointing to the same camera, but both don't work. Any insight?

 

EDIT: somehow changing it to video1 and back to video0 for -both- CAMERA_DEV and webcam in the template fixed for now.

Edited by [email protected]
Link to comment
  • 2 weeks later...
On 9/10/2022 at 5:11 PM, adambeck7 said:

@JakeBullet  @Duckers and anyone else who hits the serial/by-id issue. it automatically fills in the serial/by-id. In order to get your actual path, open your unraid console and type

udevadm info    --name=/dev/ttyACM0

that'll return a DEVLINKS= and that's the value you want to paste in there.

 

If you need to find other values for a camera or something (or if yours doesn't appear at ttyACM0) you can do
 

cd /dev/bus/usb/

and then type ls to get all the files/folders and then do the udevadm info like

udevadm info    --name=/dev/bus/usb/001/002 

to get more info about each location. For this one, I wanted the DEVNAME.

 

It does show me my printer's serial ID, but the docker setup still does not recognize it as valid.

Link to comment

I installed Octoprint on a VM and the system does not recognize the connection. I dont think this is an issue with pants's docker image. I am leaning out of the window here but i believe to remember that the issue started after updating unraid.

How do i go about troubleshooting this.
I have tried nothign and i have no idea where to start. kinda lost.

image.png

Link to comment
  • 4 weeks later...

I can't seem to get this Docker working. I know I have to be doing something wrong but I have reinstalled a few times and switched the printer usb port a few times as well but the docker keeps failing. Any ideas what I'm doing wrong.

 

docker: Error response from daemon: error gathering device information while adding custom device "/dev/serial/by-id": not a device node.

Link to comment

Happy New Year!

 

I'm new to 3d printing so I thought I'd give this docker a try my an ender 3 s1 pro. I ran into the same issue with serial/by-id issue and had the same result using "udevadm info --name=/dev/bus/usb/001/002" showing "device node not found".

 

This may not be the "right" way but this is what I did to get my printer recognized:

 

1. open a terminal window on unraid server web page

2. enter "cd /dev/serial/by-id"

3. enter "dir"

 

this showed me what I was after, which in my case was: usb-1a86_USB_Serial-if00-port0

 

in the docker template I changed it to "/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0"

 

I then followed the directions in the second post of this topic (even though I don't have multiple printers) which were

 

1) go to settings/serial connections and add /dev/serial/by-id/* to "Additional serial ports"

2) save

3) go to settings/serial connections and change AUTO in the serial port list to your device

4) save

 

 

Just completed my first test and it all seems to be doing what it is suppose to.

 

Hope that helps!

 

 

  • Upvote 1
Link to comment
13 hours ago, 1812 said:

Happy New Year!

 

I'm new to 3d printing so I thought I'd give this docker a try my an ender 3 s1 pro. I ran into the same issue with serial/by-id issue and had the same result using "udevadm info --name=/dev/bus/usb/001/002" showing "device node not found".

 

This may not be the "right" way but this is what I did to get my printer recognized:

 

1. open a terminal window on unraid server web page

2. enter "cd /dev/serial/by-id"

3. enter "dir"

 

this showed me what I was after, which in my case was: usb-1a86_USB_Serial-if00-port0

 

in the docker template I changed it to "/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0"

 

I then followed the directions in the second post of this topic (even though I don't have multiple printers) which were

 

1) go to settings/serial connections and add /dev/serial/by-id/* to "Additional serial ports"

2) save

3) go to settings/serial connections and change AUTO in the serial port list to your device

4) save

 

 

Just completed my first test and it all seems to be doing what it is suppose to.

 

Hope that helps!

 

 

That worked!! Thank you!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.