#Crowsnest uninstall and reinstall issues

1 messages · Page 1 of 1 (latest)

vernal arrow
#

Hey community. I was trying to setup, what should have been a fairly simple C920 USB camera to work on my Voron 2.4 running Klipper/Mainsail/Fluid/Crowsnest. I apologize if I am not using the correct terms.

The camera would come up at first, but then stop working. The log file say this at the bottom:

[01/10/23 15:15:04] crowsnest: V4L2 Control:
[01/10/23 15:15:05] crowsnest: No parameters set for [cam 1]. Skipped.
[01/10/23 15:15:05] crowsnest: Try to start configured Cams / Services...
[01/10/23 15:15:05] crowsnest: INFO: Configuration of Section [cam 1] looks good. Continue...
[01/10/23 15:15:06] crowsnest: Starting ustreamer with Device /dev/video0 ...
[01/10/23 15:15:06] crowsnest: ERROR: Start of ustreamer [cam 1] failed!
[01/10/23 15:15:07] crowsnest: ... Done!

I found the info on the github page so I tried to unistall crowsnest, but it would not because the dir was not empty? So, I tried to manually remove files/directories, etc. I tried the uninstall instructions, but was getting error as well. I tired to execute the make new build command and I get errors as well (see below):

pi@voron205:~ $ cd ~/crowsnest
pi@voron205:~/crowsnest $ make buildclean
make: *** No rule to make target 'buildclean'. Stop.
pi@voron205:~/crowsnest $

I am looking to get back to the correct crowsnest state (new install) so hopefully I can get a simple USB webcam to work. Any help would be greatly appreciated.

Cheers,

#

As a follow up, I am not the most savvy when it comes to SSH…so please be patient with me, if I ask follow up questions or say, “I am not sure how to do that”. However, I am always eager to learn!

crisp kernel
#

First of all, doesnt matter how savvy you are on terminal/ssh as long you type exactly what is mentioned/asked for

#

Which OS do you use?

#

Please show output of ls -l ~/crowsnest

#

If its possible please attach the last full log you can grab

vernal arrow
#

Yep, hold a sec

#

Output of LS:
pi@voron205:~ $ ls -l ~/crowsnest
total 4
drwxr-xr-x 3 pi pi 4096 Jan 10 15:31 bin

crisp kernel
#

Ok, I see. You are using MainsailOS 0.7.1

#

So, why did you try to install? Its there by default...

#
[01/10/23 15:23:59] crowsnest: ERROR: No usable Devices Found. Stopping crowsnest.```
#

This error says it cant find your USB Cam

#

Show output of lsusb also output of ls -l /dev/v4l/by-id/

vernal arrow
vernal arrow
#

output of ls -l commend:
pi@voron205:~ $ ls -l /dev/v4l/by-id/
total 0
lrwxrwxrwx 1 root root 12 Jan 10 17:52 usb-046d_HD_Pro_Webcam_C920_AE6F6E5F-video-index0 -> ../../video0
lrwxrwxrwx 1 root root 12 Jan 10 17:52 usb-046d_HD_Pro_Webcam_C920_AE6F6E5F-video-index1 -> ../../video1

#

Is there an easy way to remove all crowsnest files/data and install it from scratch to get back to the default state?

crisp kernel
#

In your crowsnest.conf use for the device: section device: /dev/v4l/by-id/usb-046d_HD_Pro_Webcam_C920_AE6F6E5F-video-index0

vernal arrow
# crisp kernel ```rm -rf ~/crowsnest sudo rm -f /etc/systemd/system/crowsnest.service sudo rm -...

When I type the first line, I get:
rm: cannot remove '/home/pi/crowsnest/bin/ustreamer/src/ustreamer/encoders/omx/vcos.h': Permission denied
rm: cannot remove '/home/pi/crowsnest/bin/ustreamer/src/ustreamer/encoders/omx/component.c': Permission denied
rm: cannot remove '/home/pi/crowsnest/bin/ustreamer/src/ustreamer/encoders/omx/formatters.c': Permission denied
rm: cannot remove '/home/pi/crowsnest/bin/ustreamer/src/ustreamer/encoders/omx/component.h': Permission denied
rm: cannot remove '/home/pi/crowsnest/bin/ustreamer/src/ustreamer/encoders/omx/encoder.h': Permission denied
rm: cannot remove '/home/pi/crowsnest/bin/ustreamer/src/ustreamer/encoders/omx/vcos.c': Permission denied
rm: cannot remove '/home/pi/crowsnest/bin/ustreamer/src/ustreamer/encoders/omx/formatters.h': Permission denied
rm: cannot remove '/home/pi/crowsnest/bin/ustreamer/src/ustreamer/encoders/omx/encoder.c': Permission denied
rm: cannot remove '/home/pi/crowsnest/bin/ustreamer/src/ustreamer/h264/stream.h': Permission denied
rm: cannot remove '/home/pi/crowsnest/bin/ustreamer/src/ustreamer/h264/encoder.h': Permission denied
rm: cannot remove '/home/pi/crowsnest/bin/ustreamer/src/ustreamer/h264/stream.c': Permission denied
rm: cannot remove '/home/pi/crowsnest/bin/ustreamer/src/ustreamer/h264/encoder.c': Permission denied

#

Also, I do not have a crowsnest.conf file listed in my mainsail machine dir.

crisp kernel
crisp kernel
vernal arrow
vernal arrow
#

in mainsail, I do not see a crowsnest.config file:

#

I used SSH and looked in both dir, no crowsnest.config file.

crisp kernel
#

Only shown 10 entry per page maybe?

#

Poosible you have multiple pages there

#

But, first reinstall, you might have it deleted already

vernal arrow
#

I switched it to 100 and still nothing.

#

ok...we are back..here is what I see:

crisp kernel
#

Now you should have the mentioned crowsnest.conf

vernal arrow
#

I typed in C920 for the name and saved. Correct..it is there now

#

Is there anything else I need to adjust or modify to keep it working?

crisp kernel
#

#1062401023081193633 message Remember to set this!

vernal arrow
#

section device: /dev/v4l/by-id/usb-046d_HD_Pro_Webcam_C920_AE6F6E5F-video-index0

crisp kernel
#

If not /dev/video0 might change on reboots and then your picture disappears

#

Show your crowsnest.conf after change please

vernal arrow
#

I will show you the file with the changes, before I save it

#

can I increase the resolution here to 1920X1080?

crisp kernel
#

There are two space between device: and /dev/... Remove one

vernal arrow
#

I did..sorry about that

crisp kernel
vernal arrow
#

Ok..its connected to a Pi 4B on wifi

crisp kernel
#

Try it if you get a kind of laggy, dia show it might overwhelm your wifi connection

vernal arrow
#

ok..saved the config file restarted and I am back to where I was before, 0 fps in the webcam window with a black screen.

crisp kernel
#

check for typos

#

sometimes that x in the resolution gets a wierd x lookalike symbol

#

But have to be lowercase x

vernal arrow
#

hmm..ok hold on

#

that was it...I had a X

crisp kernel
#

👍

vernal arrow
#

going to power it down and turn it back on and check

crisp kernel
#

Feel free, but I predict it will work 😉

vernal arrow
#

@ 1920x1080, getting about 10fps...might turn it down a bit

crisp kernel
#

Yes, that might be a Wifi limitation

vernal arrow
#

might try 1080x768?

crisp kernel
#

go 1280x720@15FPS

vernal arrow
#

ok..will do. booting up now

#

@crisp kernel , you have been amazing!! Thank you for your help today!! I was getting so discouraged.

#

btw, do I need a webcam.txt file?

crisp kernel
#

You're welcome mainsail_heart

crisp kernel
vernal arrow
#

k...i will delete.

#

we are rockin' and rollin'! WOOT

#

thank you agin

#

*again

crisp kernel
#

Enjoy looking your Prints and happy_printing