#Crowsnest uninstall failing

56 messages · Page 1 of 1 (latest)

lime lance
#

Anyone seen this before ?

pi@E3Pro-mainsailos:~/crowsnest $ make uninstall
crowsnest - A webcam daemon for multiple Cams and stream services.

        Ahoi!
        To sad that you want to uninstall crowsnest :(
        This will take a while ...
        Please reboot after installation has finished.

Do you REALLY want to remove existing 'crowsnest'? (y/N) Y
tools/uninstall.sh: line 123: : No such file or directory
make: *** [Makefile:40: uninstall] Error 1
#

I screwed up and updated from UI before uninstalling v3..

#

Ok, so it's not me..

#

I just tried to uninstall on a system that was not updated, and get the same error..

lime lance
#

Any assistance would be greatly appreciated.. I have 3 systems I need to update, and 1 is down now..

sacred tangle
#

We are all doing that in our spare time, so you have to wait until someone get time for you. There will be almost always someone that will help you but you have to wait for it

sacred tangle
#

What version are you trying to uninstall right now?

#

Looks like v3 to me right?

#

Send the output of systemctl status crowsnest and send your latest crowsnest.log

lime lance
#

Yes

#
Unit crowsnest.service could not be found.
sacred tangle
#

Then the problem might be, that crowsnest isn't installed

#

Do you have a crowsnest.log file maybe?

#

Also send the output of ls -l ~/crowsnest/bin

lime lance
#
total 8
-rw-r--r-- 1 pi pi 2268 Jun  3 07:13 Makefile
drwxr-xr-x 2 pi pi 4096 Jun  3 07:13 rtsp-simple-server
pi@E3Pro-mainsailos:~ $
sacred tangle
#

And the output of ls -l /etc/logrtotate.d

lime lance
#
ls: cannot access '/etc/logrtotate.d': No such file or directory
sacred tangle
#

ls -l /etc/logrotate.d

#

Miswrote that first ^^

lime lance
#

There wa s typo.. LOL

total 36
-rw-r--r-- 1 root root 120 Sep 12  2022 alternatives
-rw-r--r-- 1 root root 173 Jun 10  2021 apt
-rw-r--r-- 1 root root 130 Oct 14  2019 btmp
-rw-r--r-- 1 root root 112 Sep 12  2022 dpkg
-rw-r--r-- 1 root root 328 Dec 31 06:32 nginx
-rw-r--r-- 1 root root  94 Jan  6  2021 ppp
-rw-r--r-- 1 root root 689 Dec 31 06:13 rsyslog
-rw-r--r-- 1 root root 384 Dec 31 06:34 sonar
-rw-r--r-- 1 root root 145 Oct 14  2019 wtmp
sacred tangle
#

Then your crowsnest doesn't seem to be installed

lime lance
#

Interesting ok..

#

So then just update the moonraker.conf file, and reinstall ?

sacred tangle
lime lance
#

It's been installed. I know that.

#

This was the first system that I set it up on.

#

Then I did my Ender 5 Plus..

#

And that one I need to update also.

sacred tangle
lime lance
#

Yea, I'm not sure what happen.. But from my experience, I always have odd things happen, and it ends up being a issue some where upstream. Not saying that's what this is. But Bugs tends to like to find me.. LOL

#

So for the E5+, crowsnest is in /etc/logrotate.d/

pi@E5P-mainsailos:~ $ systemctl status crowsnest
● crowsnest.service - crowsnest - Multi Webcam/Streamer Control Deamon
   Loaded: loaded (/etc/systemd/system/crowsnest.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2023-06-03 07:15:37 PDT; 1h 29min ago
     Docs: https://github.com/mainsail-crew/crowsnest
 Main PID: 665 (crowsnest)
    Tasks: 16 (limit: 4915)
   CGroup: /system.slice/crowsnest.service
           ├─  665 /bin/bash /usr/local/bin/crowsnest -c /home/pi/klipper_config/crowsnest.conf
           ├─ 4711 /bin/bash /usr/local/bin/crowsnest -c /home/pi/klipper_config/crowsnest.conf
           ├─ 4712 /bin/bash /usr/local/bin/crowsnest -c /home/pi/klipper_config/crowsnest.conf
           ├─ 4774 xargs /home/pi/crowsnest/bin/ustreamer/ustreamer
           ├─ 4775 /bin/bash /usr/local/bin/crowsnest -c /home/pi/klipper_config/crowsnest.conf
           ├─ 4776 /home/pi/crowsnest/bin/ustreamer/ustreamer --host 127.0.0.1 -p 8080 -m MJPEG --device-timeout=5 --buffers=3 -r 1280x720 -f 20 --allow-origin=* --static /home/pi/crowsnest/ustreamer-www
           ├─ 4821 xargs /home/pi/crowsnest/bin/ustreamer/ustreamer
           ├─ 4822 /bin/bash /usr/local/bin/crowsnest -c /home/pi/klipper_config/crowsnest.conf
           ├─ 4823 /home/pi/crowsnest/bin/ustreamer/ustreamer --host 127.0.0.1 -p 8081 -d /dev/video1 --device-timeout=2 -m MJPEG --encoder=HW -r 1280x720 -f 20 --allow-origin=* --static /home/pi/crowsnest/ustreamer-www
           └─19108 sleep 120

Jun 03 07:16:10 E5P-mainsailos crowsnest[4870]: -- INFO  [39.774    stream] -- Capturing started
Jun 03 07:16:10 E5P-mainsailos crowsnest[4872]: -- INFO  [39.774    stream] -- Switching to HW encoder: the input is (M)JPEG ...
Jun 03 07:16:10 E5P-mainsailos crowsnest[4874]: -- INFO  [39.774    stream] -- Using JPEG quality: encoder default
Jun 03 07:16:10 E5P-mainsailos crowsnest[4876]: -- INFO  [39.774    stream] -- Creating pool JPEG with 1 workers ...
Jun 03 07:16:10 E5P-mainsailos crowsnest[4878]: -- INFO  [39.775    stream] -- Capturing ...
Jun 03 07:16:11 E5P-mainsailos crowsnest[665]: [06/03/23 07:16:11] crowsnest: ... Done!
Jun 03 07:16:11 E5P-mainsailos crowsnest[4906]:  ... Done!
Jun 03 07:16:17 E5P-mainsailos crowsnest[4966]: -- INFO  [46.846      http] -- HTTP: Registered client: [127.0.0.1]:39496, id=f10de5a241b9565f; clients now: 1
Jun 03 07:16:17 E5P-mainsailos crowsnest[4968]: -- INFO  [46.887      http] -- HTTP: Disconnected client: [127.0.0.1]:39496, id=f10de5a241b9565f, Resource temporarily unavailable (reading,eof); clients now: 0
Jun 03 07:16:17 E5P-mainsailos crowsnest[4978]: -- INFO  [47.176      http] -- HTTP: Registered client: [127.0.0.1]:39500, id=ef101f84d751c419; clients now: 1
sacred tangle
#

And it's still on v3? You can see that at the beginning of the log file

lime lance
#

Yes

#

I get the same error w/ make uninstall

#
total 20
4 drwxr-xr-x  4 pi pi 4096 Sep  6  2022 .
4 drwxr-xr-x 10 pi pi 4096 Feb  1 19:53 ..
4 -rw-r--r--  1 pi pi 2268 Sep  6  2022 Makefile
4 drwxr-xr-x  2 pi pi 4096 Dec 12 09:05 rtsp-simple-server
4 drwxr-xr-x 11 pi pi 4096 Dec 12 09:04 ustreamer
sacred tangle
#

find ~ -name "crowsnest.env"

lime lance
#

doesn't exist

#

I looked for it.

sacred tangle
#

I edited the command

#

make sure you wrote that correct

lime lance
#
pi@E5P-mainsailos:~/crowsnest $ find ~ -name "crowsnest.env"
pi@E5P-mainsailos:~/crowsnest $
sacred tangle
#

I will have to look into that more deeply. Meanwhile comment out the source_env_file on line 97 inside ~/crowsnest/tools/uninstall.sh

lime lance
#

I can grab it from my E3Pro I just fixed tho.

sacred tangle
#

Right, just adding a random file called crowsnest.env fix that too xD

#

I'm serious right now

lime lance
#

LOL

#

I'm sure it would

sacred tangle
#

It just search on the system and deletes the first file it finds ^^

lime lance
#

since it was just looking for the file nothing in it.. 🙂

#

ok, that's fixed.. now to update.. Thnx for the assistance..

sacred tangle
#

No problem 😄

lime lance
#

Uh oh... Buster.... LOL

#

Guess it's time to backup configs, etc, and install latest mainsailos.. 🙂

sacred tangle
#

If someone else coming here with the exact same problem while uninstalling, just run touch ~/crowsnest.env and then try to uninstall again.