Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools/pkglist.sh not present in repo #150

Closed
gjsmo opened this issue Jul 24, 2023 · 6 comments
Closed

tools/pkglist.sh not present in repo #150

gjsmo opened this issue Jul 24, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@gjsmo
Copy link

gjsmo commented Jul 24, 2023

What happened

The docs say to change "install_script: tools/install.sh to install_script: tools/pkglist.sh", however tools/pkglist.sh is not present in the master, develop, or legacy/v3 branches. As a result, Moonraker throws an error on loading.

What did you expect to happen

Docs should match repo.

How to reproduce

N/A

Additional information

No response

@gjsmo gjsmo added the bug Something isn't working label Jul 24, 2023
@mryel00
Copy link
Member

mryel00 commented Jul 26, 2023

On installation the install.sh script is creating symlinks to tools/libs/pkglist-rpi.sh for raspbian and tools/libs/pkglist-generic.sh for other distributions. As this file has to be different for different distributions, regarding the camera-streamer dependencies, it cannot be inside the repos and has to be created during installation. The functions creating the symlinks can be found here.
If there isn't a symlink for you, please run the commands for your distribution:

Rasbian:

rm -rf ~/crowsnest/tools/pkglist.sh
ln -sf ~/crowsnest/tools/libs/pkglist-rpi.sh ~/crowsnest/tools/pkglist.sh

Other distributions:

rm -rf ~/crowsnest/tools/pkglist.sh
ln -sf ~/crowsnest/tools/libs/pkglist-generic.sh ~/crowsnest/tools/pkglist.sh

Currently is only a bug with MainsailOS and that symlink known. The symlink will always link to /home/pi/tools/libs/pkglist-rpi.sh no matter what username got specified. But that shouldn't affect manual or kiauh installations and can be fixed with above commands.

@mryel00 mryel00 closed this as completed Jul 26, 2023
@gjsmo
Copy link
Author

gjsmo commented Jul 27, 2023

Interesting, I did run the script and no symlink was produced. Crowsnest is working properly and reports itself as version v4.0.2-2-g8b54eae. I'll make the symlink and chalk it up to gamma rays. ¯\_(ツ)_/¯

@mryel00
Copy link
Member

mryel00 commented Jul 27, 2023

Weird. If you or someone else can reproduce it, then let us know how and I will reopen this issue. As of now I can't think of how that should fail🤔
Especially if the commands work for you.

@PockyBum522
Copy link

PockyBum522 commented Aug 8, 2023

Just to add my 0.02, I installed Crowsnest via KIAUH last week, August 1st, I think. Everything came up, crowsnest.conf was set up, everything looked good except I was getting pkglist.sh missing errors in mainsail about crowsnest. Making the symlink then rebooting (Had to reboot twice, actually, first time it said crowsnest is corrupt.) worked to fix that error, but no webcam stream yet.

I was then getting ustreamer not found messages in the logs. I ran
cd ~/crowsnest
sudo make install

(Which you would have thought KIAUH would have done.) And now things are working great.

I know this might just be an issue where KIAUH isn't running crowsnest install properly, but I figure more info might be helpful so I'm leaving this here.

@mryel00
Copy link
Member

mryel00 commented Aug 8, 2023

@PockyBum522 On what OS did you install with kiauh?
I really don't know why it shouldn't work with kiauh, as it's really calling just sudo make install.
You can see that here

@PockyBum522
Copy link

Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)

And yeah, I figured that's all it would be doing. If I get a reason to redo everything I'll check carefully when I install Crowsnest to see what happens when and get logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants