paukstelis / octoprint_deploy

Bash script for rapid deployment of multiple octoprint instance on a single machine
MIT License
389 stars 39 forks source link

Second instance's camera and web portal randomly crashing #112

Open ahmad-najeeb opened 11 months ago

ahmad-najeeb commented 11 months ago

Hi Paul. First thankyou for this script. Really awesome!

So I used your script to setup two instances yesterday. Both are Creality Ender 3 printers but different models. I also added one camera to each of them. Both cameras however are the exact same model with the same serial number (which is actually just the model name). When I added the second camera to the second instance, I was warned that because that serial number is the same as a previously added webcam, there can be instability.

The above being said, I setup both instances are they're working fine, cameras too. The issue however are two things:

Both above issues don't mess with anything that's printing, which continues fine. I just have to keep refreshing which is annoying. Also both issues only happen with the second instance. Neither has happened to the first instance even once.

Any ideas what could be the issue ?

paukstelis commented 11 months ago

It is hard to know for sure, but my first guess for the stuttering camera is simply that you are running out of wifi network bandwidth. Decrease the resolution and FPS for the cameras and see if that improves things.

For the webpage stopping, I would open browser console and see what message you get when that happens. I suspect possibly a plugin, though it may also be that the socket is timing out because the device cannot keep up with network traffic due to the cameras.