Hello all, recently I updated my printer (mainsail, moonraker, everything) after being a bit behind on updates, and now my camera just shows a blank grey screen. I haven't updated since about June or so, so would there have been a change to the way webcams are configured in Klipper/Mainsail during this time? I appreciate any help you can provide!
#Troubleshooting Webcam
106 messages · Page 1 of 1 (latest)
Do you use UV4L-MJPEG Mode?
No, I had been using MJPEG-Streamer mode. I tried to switch to UV4L-MJPEG just now, and it was still grey. For reference, the camera is a Logitech 270
I attempted that, and it's no longer a light grey at least
Would there be something in a config somewhere that I would need to change possibly?
I did, yes
Did you read the notification in mainsail?
There was a path change
Did you do that?
Ohh, I didn't see a notification for that actually, so I didn't do that
That sounds like it may be the issue
Thank you! I'll give this a shot after my current print is finished running. Should just be a half hour
I am out for dinner, but will respond later on
Alright, no worries!
Im having trouble with setting up my webcam. I have a Pi zero 2 set and a cheap webcam that works fine on my pi 4 and 3b+. When i plug it in and reboot it doesnt boot. It just sits there. Im wondering if the camera overwhelms the pi?
What should I have in my webcam.txt
Blake, with the forum layout, its designed that we can each have our own threads instead of jumping into another one, just as a heads up
But as far as my own issue is concerned, I ran the script that you linked @tall laurel , and I still seem to be having the same issue
Hey I have the same issue as you do, what browser are you using?
Firefox
Yeah, I'm still having the same issue. I think it's probably something in my webcam config file
Ok
Do you see any error messages when you press F12 actually?
Please grab crowsnest.log
This may be my issue, as I did not have Crowsnest before this, and this seems to be something new I'm reading about
Ok then you're issue is different, sorry for hijacking I shall make a new topic. Best of luck
No worries
And thank you
If I have an old webcam.txt file, do I need to delete that?
This might be related for your problem? Came across it while I was searching for solutions: #1043464285138976788 message
I did attempt that, but it still did not work. Thank you, though!
I managed to find my log file at least (which was not showing up in the Mainsail UI for some reason)
I see that it keeps reading ERROR: Start of ustreamer [cam 1] failed!
Ok, please open your crowsbest.conf and set in section crowsnest two things log_level: debug and delete_log: true
After that restart crowsnest and upload new log
[11/19/22 20:22:17] crowsnest: DEBUG: ustreamer [cam 1]: -- ERROR [31.639 main] -- Can't bind HTTP on [127.0.0.1]:8080: Address already in use
I see it's because the address is already in use. Is that because I had the old way installed?
Under the klipper directory?
sudo apt update && sudo apt install lsof
Then run it like mentioned earlier and post output of
Alright
lsof -i:8080
Yeah, I had mentioned that I had the old way installed and updated after a long time. Lemme look up the docs for that
Ok please provide as much infos as you can. Maybe I could develop a script to remove. Normally Crowsnest Installer should ask you for remove.
But if you install it afterwards I cant check for
Ah, yeah, I had mjpg streamer installed before Crowsnest. So I don't know why it didn't ask me about it
But I see there's the folder for it, I'm just trying to figure out if there's relevant files. I'll check Kiauh and see if that might have been how I installed it
Yup, that was what happened. I went through Kiauh to uninstall MJPG Streamer. It has a tool in it that lets you remove it, and I just did that
I'm not sure what script could be used to install it, but that was how I both installed and uninstalled it -- using commands through Kiauh
I just checked the pi directory and mjpg streamer is no longer there
Still a grey screen, but these are the updated logs
Maybe my webcam model is too old?
A Logitech c270
Which mode did you use in mainsail ?
UV4RL just now
Switch to mjpeg
Its bugged
Ignore that. Thos works on some cams bit will be ignored if it isnt supported by cam
Ahh, ok
I switched to MJPEG and it still is just a grey screen. I do wonder, though, if maybe the camera is just broken
Just to interject, my similar issue is also a C270 if that helps at all
Refresh browser pls
@lyric spear pls post your webcam settings in mainsail + the url you use to open mainsail
I also use my.mainsail.xyz
But as far as settings, I'm not sure if I posted the right ones here
ok. use a absolute webcam path, when you use my.mainsail.xyz pls
So add my.mainsail.xyz to the path before /webcam/ in both those URLs?
Or my IP address that I used?
IP address
Gotcha
So, I'm not sure why, but just using my IP Address, everything work now. But with my.mainsail.xyz I couldn't get it to work. I think I must have been configuring the URL incorrectly after all that
So I guess I wasn't exactly sure of how to write said absolute webcam path for the printer
Thank you for all your help everyone. This one has been a saga ^^;
The same fix worked for me : )
Awesome!
I guess I should ask, though, how does one exactly configure the exact path, and can it be secured with https:// ?
I was writing it as xxx.xxx.x.xxx.x:port/webcam-path and also tried with https:// and neither worked in my.mainsail.xyz
if you use my.mainsail.xyz, you have to change some browser settings to have full access to local network data... i dont recommend to use my.mainsail.xyz any more...
Ahh, alright good to know. I'll have to update my bookmark, then. Thank you
@lyric spear if your issue is fixed, pls close this post
