Arksine / moonraker

Web API Server for Klipper
https://moonraker.readthedocs.io
GNU General Public License v3.0
1.06k stars 407 forks source link

Component 'webcam' failed to load with error: Error running shell command: '['iwgetid']' #471

Closed adman953 closed 2 years ago

adman953 commented 2 years ago

What happened

I updated a hard wired non wifi rapsberry with fluidd and now i get the error message:

Moonraker has failed plugins, please check your logs, update your configuration and restart moonraker. webcam Moonraker warnings found. Component 'webcam' failed to load with error: Error running shell command: '['iwgetid']' Moonraker plugin configuration can be found here.

I have tried updating the configuration to include the webcam section and tried a number of different settings but nothing works. I have checked the log and have found that iwgetid is wifi dependent and since i do not use wifi it does not work. the webcam does display in fluidd but I have this giant orange error across the top of the interface hat I do not like.

Client

Fluidd

Browser

Chrome

How to reproduce

best guess is update an hard wired raspberry with a webcam and see if the problem reproduces moonraker (1).log

Additional information

No response

marco-117 commented 2 years ago

I had the same issue i reinstalled moonraker like descripted in the issue #349 with ~/moonraker/scripts/install-moonraker.sh

After that i removed unsued packages with sudo apt autoremove like in the installation process metioned.

Now everything works fine, with no errors or warnings.

Arksine commented 2 years ago

That is unexpected. It suggests that the iwgetid command isn't located in the user's path. This isn't a critical bug, things should still work ok, however annoying nonetheless. I'll see if I can come up with a workaround.

Arksine commented 2 years ago

I pushed a commit that should handle the exception if iwgetid fails. This should allow the webcam module to load correctly

adman953 commented 2 years ago

that fixed it, thank you so much for the quick response

Arksine commented 2 years ago

Thanks, I'll close this since it is resolved