#Troubleshooting Webcam

106 messages · Page 1 of 1 (latest)

lyric spear
#

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!

tall laurel
#

Do you use UV4L-MJPEG Mode?

lyric spear
#

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

tall laurel
#

Switch to adaptive and refresh the page please

#

(Shift + F5 in most cases)

lyric spear
#

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?

tall laurel
#

Oh wait I overlooked a detail

#

You updated Moonraker

lyric spear
#

I did, yes

tall laurel
#

Did you read the notification in mainsail?

#

There was a path change

#

Did you do that?

lyric spear
#

Ohh, I didn't see a notification for that actually, so I didn't do that

#

That sounds like it may be the issue

tall laurel
lyric spear
#

Thank you! I'll give this a shot after my current print is finished running. Should just be a half hour

tall laurel
#

I am out for dinner, but will respond later on

lyric spear
#

Alright, no worries!

trim portal
#

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

lyric spear
#

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

maiden elk
#

Hey I have the same issue as you do, what browser are you using?

lyric spear
#

Firefox

maiden elk
#

Try Chrome

#

It worked for me in Chrome but not in firefox

lyric spear
#

Yeah, I'm still having the same issue. I think it's probably something in my webcam config file

maiden elk
lyric spear
#

This may be my issue, as I did not have Crowsnest before this, and this seems to be something new I'm reading about

maiden elk
#

Ok then you're issue is different, sorry for hijacking I shall make a new topic. Best of luck

lyric spear
#

No worries

#

And thank you

#

If I have an old webcam.txt file, do I need to delete that?

maiden elk
lyric spear
#

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!

tall laurel
#

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

lyric spear
tall laurel
#

[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

lyric spear
#

I see it's because the address is already in use. Is that because I had the old way installed?

tall laurel
#

Please install lsof

#

With that command we can see what is going on

#

lsof -i:8080

lyric spear
#

Under the klipper directory?

tall laurel
#

sudo apt update && sudo apt install lsof

lyric spear
#

Ah

#

Done

tall laurel
#

Then run it like mentioned earlier and post output of

lyric spear
#

Alright

tall laurel
#

lsof -i:8080

lyric spear
tall laurel
#

I already thought about that.

#

You`d installed mjpeg streamer somehow

#

Remove it

lyric spear
#

Yeah, I had mentioned that I had the old way installed and updated after a long time. Lemme look up the docs for that

tall laurel
#

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

lyric spear
#

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

tall laurel
#

Restart the pi and and check if it is working now

#

Maybe a bug in my installer 🤔eyeroll

lyric spear
#

Still a grey screen, but these are the updated logs

#

Maybe my webcam model is too old?

#

A Logitech c270

tall laurel
#

Which mode did you use in mainsail ?

lyric spear
#

UV4RL just now

tall laurel
#

Switch to mjpeg

lyric spear
tall laurel
#

Its bugged

tall laurel
lyric spear
#

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

wise light
#

Just to interject, my similar issue is also a C270 if that helps at all

tall laurel
#

Refresh browser pls

lyric spear
#

Oh, thank you

#

Still the same

burnt quest
#

@lyric spear pls post your webcam settings in mainsail + the url you use to open mainsail

lyric spear
#

I also use my.mainsail.xyz

#

But as far as settings, I'm not sure if I posted the right ones here

burnt quest
#

ok. use a absolute webcam path, when you use my.mainsail.xyz pls

lyric spear
#

So add my.mainsail.xyz to the path before /webcam/ in both those URLs?

#

Or my IP address that I used?

maiden elk
#

IP address

lyric spear
#

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 ^^;

maiden elk
#

The same fix worked for me : )

lyric spear
#

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

burnt quest
lyric spear
#

Ahh, alright good to know. I'll have to update my bookmark, then. Thank you

burnt quest
#

@lyric spear if your issue is fixed, pls close this post