Installed but not creating directories #18
-
Hi @mcguirepr89 Thanks for putting this system together. I have run the installation script (both as normal and sudo) which completed, but does not appear to be creating the necessary directories - probably a permissions issue? I wasn't prompted for my pi user password in the installation & tried with the Public directory as the recordings path. I can access the "BirdNET-system Extractions" page on http://localhost ; but any of the links from there generates a 404 error. Looking forward to getting this running & beta testing. It would be great if it could also be on the BirdNET-Lite platform model with its 6,000 species (which recognizes species in my neck of the woods - Africa!!) Full installation output below: pi@raspberrypi:~/BirdNET-system $ ~/BirdNET-system/scripts/install_birdnet.sh Who will be the BirdNET user? (use 'whoami' if unsure) pi Please set the icecast password. Use only alphanumeric characters. xxxxx /usr/bin/icecast2 This script will do the following:
Be sure you have read the software license before installing. This is model/BirdNET_Soundscape_Model.pkl 100%[=========================================================================================================================================>] 293.13M 7.70MB/s in 64s 2021-09-21 15:44:59 (4.55 MB/s) - ‘model/BirdNET_Soundscape_Model.pkl’ saved [307374723/307374723]
/ Installing Miniforge3 for aarch64
Visit http://birdnetsystem.local to see your extractions, Would you like to run the BirdNET service now?y-- Logs begin at Tue 2021-09-21 15:23:21 SAST. -- |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 26 replies
-
Greetings, @CaiusX -- Thank you so much for installing the BirdNET-system for the RPi4B. I know we'll get this working for you :) I have a hunch as to what might be the hang up here and a little more info about the system to address the 404 responses you're getting on the http://localhost links. My hunch: the installation went smoothly, but I'm unclear with documentation! Looking at your installation, you opted for the recording service, which will create the "/home/pi/recordings/September-2021/21-Tuesday" directory once it starts creating sound files. (Notice that it is automatically also looking in the directories that would have been the previous two days of recording, but that is irrelevant here and I can provide more information about that if you are curious). The birdnet_recording.service doesn't actually start up until you reboot the system. Once you do reboot the system, that directory will be created, and then the birdnet_analysis.service (which you see as the log output when answering "yes" to whether to start BirdNET service now) will start analyzing the files it finds. The links on your http://localhost don't take you anywhere yet. The By_Date, By_Species, and Processed directories get created during extractions so that things stay organized. I will definitely add a step to the new installer that simply creates these directories so that they don't give that 404 response right after installation. Since you mentioned running the installer with sudo, there are likely some configuration files and settings for the 'root' user on your system, which is almost definitely undesirable. I'm sorry that my lack of documentation and little scripting oversights have created the uncertainty around the installation's success. To remedy this, I recommend running the included uninstall.sh script twice, once as the pi use and once with sudo, to be sure that there are no lingering root user configurations, then rerun the installer using the steps below. Steps for you:
Once your system has been recording for a little while and has heard a few birds, the extraction service will pull the extractions and place them in the By_Date and By_Species directories and will put the original recordings and their corresponding BirdNET.selections.txt files in the Processed directory (actually a symbolic link). This is the step that will discontinue the 404 responses and will then be filled with the goodies we love. I most certainly have plans to get the BirdNET-LITE setup with its own RPi4 installer and companion system services like what I've put together for the main BirdNET repo. Please let me know if my suggestions have addressed the issues and get your system working -- I am very eager to help and grateful for your feedback on your experience. I hope you will continue to share your insights, suggestions, successes and wishes with me for the BirdNET-system. My best, |
Beta Was this translation helpful? Give feedback.
-
Hi Patrick I had been messing around with the files - hence the REC_CARD strangeness, so have created a fresh installation, logs attached. Shout if you need anything else. Best |
Beta Was this translation helpful? Give feedback.
Greetings, @CaiusX -- Thank you so much for installing the BirdNET-system for the RPi4B. I know we'll get this working for you :)
Also, this installation output is very helpful and gets us started off on the right foot, so thanks for that, too!
I have a hunch as to what might be the hang up here and a little more info about the system to address the 404 responses you're getting on the http://localhost links.
My hunch: the installation went smoothly, but I'm unclear with documentation!
Looking at your installation, you opted for the recording service, which will create the "/home/pi/recordings/September-2021/21-Tuesday" directory once it starts creating sound files. (Notice that it is auto…