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

one-liner installation does not work #3

Open
DD4WH opened this issue Aug 23, 2022 · 6 comments
Open

one-liner installation does not work #3

DD4WH opened this issue Aug 23, 2022 · 6 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@DD4WH
Copy link

DD4WH commented Aug 23, 2022

  • I installed the latest 64-bit Rpi OS (desktop version) with preset WiFi access on an SD card using Raspberry Pi Imager
  • I connected to the RPi using putty from my PC via the local WiFi network
  • I issued the one-liner install command curl -sL https://raw.githubusercontent.com/UncleSamulus/BirdNET-stream/main/install.sh | bash
  • nothing happens, the cursor returns after one second
  • no output, no function (browser on the PC does not find birdnet.home)
  • when I issue DEBUG=1 ./install.sh, the Pi throws an error no such file or directory

What am I missing here ?

Sorry for this obviously simple question, but Linux is not my native language.

@samuelortion
Copy link
Owner

Sorry to hear that...
The tool is not very mature yet, and may not work properly.

However, on thing you could try is starting to download the install.sh script first on your raspberry pi:

 curl -O https://raw.githubusercontent.com/UncleSamulus/BirdNET-stream/dev/install.sh

This way, you will be able to run DEBUG=1 BRANCH=dev ./install.sh; after allowing file execution:

chmod +x ./install.sh
DEBUG=1 BRANCH=dev ./install.sh

Otherwise, using the curl command you ran, the installation file isn't saved as a file, and thus will not be available later for execution.

I am very interested in your tests on raspberry pi; I hope it will work without too much trouble...
Good luck and let me know !

@DD4WH
Copy link
Author

DD4WH commented Aug 23, 2022

Thanks a lot for your quick answer and your help!
Yes, that worked, but it seems there is something weird with the structure of your github branches:
grafik

@samuelortion
Copy link
Owner

samuelortion commented Aug 23, 2022

Indeed, that's an embarassing typo. There should be a space between $BRANCH and --recurse-submodule.

I have pushed a modified version (I did findd this issue before, but not updated github).

You may need to wait a bit for github to update the repo.

I hope it will work better now.

I am currently running the installation script in a fresh debian vm, to check that out.

If there is any problem, do not hesitate to ask me some questions, or bug fix for the script.

@samuelortion
Copy link
Owner

Unfortunatly, there are still some issues.
For instance, the webapp does not catch sql exceptions when there are no sql database available.

You may also need to change the nginx configuration a little in `/etc/nginx/sites-available/birdnet-stream.conf'. Generate a new ssl certificate, and more things that are not handled by the script for the moment.

@DD4WH
Copy link
Author

DD4WH commented Aug 23, 2022

Ok, thanks a lot for your quick and helpful feedback!
I am sorry, but the procedure you describe is far beyond my expertise.

@samuelortion
Copy link
Owner

There are a little explanations inside INSTALL.md, but It may not be as straightforward as BirdNET-Pi installation for the moment.

ps. You should not run the installation script inside ~/BirdNET-Pi, as It will create a directory for BirdNET-stream inside the BirdNET-Pi folder, and it may do bad stuff with it.

@samuelortion samuelortion added bug Something isn't working help wanted Extra attention is needed labels Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants