Question about Network Queues #103
-
I'm having trouble getting network queues to work. When you put in an IP address and port number, what needs to be running at that address and port number? For testing, I've got 2 docker containers each running octoprint with the plugins. They were created in the same docker-compose file on the same network. The have 172.28.0.2 and 172.28.0.3 ip addresses respectively. What do I need to put in each instance of the continuous print settings to make this work. Everything I seem to put only shows 1 printer (itself) as part of that queue. EDIT -- I would like to point out that the default auto queue (now that I've installed the RC and cleared the plugin data) does work just fine. I'm now just more curious about what values were supposed to be there. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi Nick - thanks for trying out the network queues! Glad you managed to get them to work, with the defaults in the RC no less. The name of the lan queue must match between instances (consider it as a case-sensitive namespace - "LAN1" is a different queue entirely from "LAN2"). The address should be that insurance's IP address (or hostname, probably) suffixed with a valid, available port. That's used to bind the interface and port for the instance to serve/listen from. Using your example, the docker host 172.28.0.2's config could look like: Name "LAN", address "172.28.0.2:5678" And the other would be: Name "LAN", address "172.28.0.3:5678" Note that, currently, changing addresses on a running insurance may require a reboot as I don't think it's rebound on change. If your IP changes frequently, the default queue IP assigned on DB init may also go stale... that's another quality improvement I've not yet gotten to. Be advised that LAN queues are still pretty new, so if you have any FRs / issues I'd welcome a report so I can improve them. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I've been messing around with it, and it seems to be working like you expected it to. I know there is an option to automatically add a file to the queue on upload, but it seems to go to the local queue for that printer. Am I missing an option somewhere to send it to the network queue instead? Also, I've noticed that the auto-add to queue thing doesn't work on files that get dropped into the Watched folder in Octoprint. Is that by design? |
Beta Was this translation helpful? Give feedback.
Hi Nick - thanks for trying out the network queues! Glad you managed to get them to work, with the defaults in the RC no less.
The name of the lan queue must match between instances (consider it as a case-sensitive namespace - "LAN1" is a different queue entirely from "LAN2").
The address should be that insurance's IP address (or hostname, probably) suffixed with a valid, available port. That's used to bind the interface and port for the instance to serve/listen from.
Using your example, the docker host 172.28.0.2's config could look like:
Name "LAN", address "172.28.0.2:5678"
And the other would be:
Name "LAN", address "172.28.0.3:5678"
Note that, currently, changing addresses on a runni…