#Unable to Install Crowsnest

36 messages ยท Page 1 of 1 (latest)

small island
#

Hi all,

I've tried installing crowsnest both manually and through KIAUH, but I keep getting the same error.

I'm familiar with bash and tried stepping through the code that's erroring, but nothing is catching my eye as to what could be going wrong and there's no meaningful error to investigate. I'm running Ubuntu 22.04.3 LTS on a Raspberry Pi 4, which the README says is compatible with the software.

Please let me know if there's any further steps I can do to investigate this issue.

Thanks in advance!

ubuntu@Ender-3-V2-Neo:~/crowsnest$ sudo make install
crowsnest - A webcam daemon for multiple cams and stream services.

    Ahoy!
    Thank you for installing crowsnest ;)
    This will take a while ...
    Please reboot after the installation has finished.

Running apt-get update first ...

Hit:1 https://*****/repository/ubuntu-ports jammy InRelease
Hit:2 https://*****/repository/ubuntu-ports jammy-updates InRelease
Hit:3 https://*****/repository/ubuntu-ports jammy-backports InRelease
Hit:4 https://*****/repository/ubuntu-ports jammy-security InRelease
Reading package lists...
Running apt-get update first ... [OK]
Doing some tests ...

Checking for camera-streamer dependencies ...

Checking if device is a Raspberry Pi ...

Checking if device is a Raspberry Pi ... [OK]
Checking if device is not running Ubuntu ...

Checking if device is not running Ubuntu ... [FAILED]
This device is running Ubuntu therefore camera-streeamer cannot be installed ...
Doing some tests ... [OK]
Installing without camera-streamer ...

make: *** [Makefile:17: install] Error 1
normal violet
#

Fix your tags #readme

#

Klipper and moonraker don't have anything to do with crowsnest

#

Thanks ๐Ÿ˜„

small island
#

@normal violet All fixed, my bad!

normal violet
#

I have to look into the code again, but tbh, this looks weird

#

If this is the whole output, it seem like linking the packages list fails ๐Ÿค”

small island
#

Yes, that's the entire output

#

I also tried running sudo bash -c 'tools/install.sh' just to invesitgate if running that manually changed anything, but the output is the same (except missing make: *** [Makefile:17: install] Error 1 since it wasn't executed using make)

normal violet
#

Send the output of ls -l ~/crowsnest/tools

small island
#
ubuntu@Ender-3-V2-Neo:~/crowsnest$ ls -l ~/crowsnest/tools
total 44
-rwxrwxr-x 1 ubuntu ubuntu 7610 Nov 20 10:34 configure.sh
-rwxrwxr-x 1 ubuntu ubuntu 9722 Nov 20 10:34 dev-helper.sh
-rwxrwxr-x 1 ubuntu ubuntu 4809 Nov 20 10:34 install.sh
drwxrwxr-x 2 ubuntu ubuntu 4096 Nov 20 10:34 libs
-rwxrwxr-x 1 ubuntu ubuntu 3664 Nov 20 10:34 test_install.sh
-rwxrwxr-x 1 ubuntu ubuntu 7198 Nov 20 10:34 uninstall.sh
normal violet
#

So the symlink is missing

#

Try to run:
sudo -u ubuntu ln -sf ~/crowsnest/tools/libs/pkglist-generic.sh ~/crowsnest/tools/pkglist.sh

small island
#

Looks better now. Try running make install again?

ubuntu@Ender-3-V2-Neo:~/crowsnest$ ls -l ~/crowsnest/tools
total 44
-rwxrwxr-x 1 ubuntu ubuntu 7610 Nov 20 10:34 configure.sh
-rwxrwxr-x 1 ubuntu ubuntu 9722 Nov 20 10:34 dev-helper.sh
-rwxrwxr-x 1 ubuntu ubuntu 4809 Nov 20 10:34 install.sh
drwxrwxr-x 2 ubuntu ubuntu 4096 Nov 20 10:34 libs
lrwxrwxrwx 1 ubuntu ubuntu   52 Nov 20 11:02 pkglist.sh -> /home/ubuntu/crowsnest/tools/libs/pkglist-generic.sh
-rwxrwxr-x 1 ubuntu ubuntu 3664 Nov 20 10:34 test_install.sh
-rwxrwxr-x 1 ubuntu ubuntu 7198 Nov 20 10:34 uninstall.sh
normal violet
#

Yeah try again

#

If that succeeds, I will install the 22 LTS version real quick. If I cannot reproduce it, you would have to test some things for me

small island
#

Same thing

ubuntu@Ender-3-V2-Neo:~/crowsnest$ sudo make install
crowsnest - A webcam daemon for multiple cams and stream services.

    Ahoy!
    Thank you for installing crowsnest ;)
    This will take a while ...
    Please reboot after the installation has finished.

Running apt-get update first ...

Hit:1 https://***/repository/ubuntu-ports jammy InRelease
Hit:2 https://***/repository/ubuntu-ports jammy-updates InRelease
Hit:3 https://***/repository/ubuntu-ports jammy-backports InRelease
Hit:4 https://***/repository/ubuntu-ports jammy-security InRelease
Reading package lists...
Running apt-get update first ... [OK]
Doing some tests ...

Checking for camera-streamer dependencies ...

Checking if device is a Raspberry Pi ...

Checking if device is a Raspberry Pi ... [OK]
Checking if device is not running Ubuntu ...

Checking if device is not running Ubuntu ... [FAILED]
This device is running Ubuntu therefore camera-streeamer cannot be installed ...
Doing some tests ... [OK]
Installing without camera-streamer ...

make: *** [Makefile:17: install] Error 1

Symlink is still there

ubuntu@Ender-3-V2-Neo:~/crowsnest$ ls -l ~/crowsnest/tools
total 44
-rwxrwxr-x 1 ubuntu ubuntu 7610 Nov 20 10:34 configure.sh
-rwxrwxr-x 1 ubuntu ubuntu 9722 Nov 20 10:34 dev-helper.sh
-rwxrwxr-x 1 ubuntu ubuntu 4809 Nov 20 10:34 install.sh
drwxrwxr-x 2 ubuntu ubuntu 4096 Nov 20 10:34 libs
lrwxrwxrwx 1 ubuntu ubuntu   52 Nov 20 11:02 pkglist.sh -> /home/ubuntu/crowsnest/tools/libs/pkglist-generic.sh
-rwxrwxr-x 1 ubuntu ubuntu 3664 Nov 20 10:34 test_install.sh
-rwxrwxr-x 1 ubuntu ubuntu 7198 Nov 20 10:34 uninstall.sh
normal violet
#

Ok, then let us edit some code ๐Ÿ˜„

small island
#

Sounds like a plan

normal violet
#

~/crowsnest/tools/libs/core.sh line 141 the method link_pkglist_generic
Remove the &> /dev/null

#

Then it should show the output of the error

#

Is it a 64 bit or a 32 bit image?

small island
#

64-bit

#

Got the error, this is bizarre
root is not in the sudoers file. This incident will be reported.

#

Let me add that entry now

normal violet
#

I will flash it myself to see if that is an overall problem

small island
#

No, it looks like my /etc/sudoers file got overridden at some point to only have one entry

#

I'm trying to trace my steps and find out what happened. Looks like it installed successfully though

normal violet
#

Ok, I'm glad that there isn't a messed up Ubuntu version ^^
22.04 is the only one I didn't test....

small island
#

Thank you for looking into that for me, appreciate it

normal violet
#

No problem ๐Ÿ˜„

small island
#

I just pulled the default sudoers file and root is definately there, so shouldn't have any further problems with that ๐Ÿ™‚

#

I'm adding it back now

#

Looks like the ansible script I configured to add the ansible user to sudoers overwrote the entire file instead of appending it to the end

normal violet
#

Did you use > instead of >> by any chance?