Replies: 2 comments 8 replies
-
Hello, @airigami! Thanks for the kind words about the project. I think the mistake is mine for putting that section in the ReadMe. Try upgrading with "Tools" > "System Controls" > "Update" and if you'll paste the output it posts here, we can take a look through and see if whether that upgrade method works without those git issues. To elucidate the issue a bit more, there are customizations that happen in the scripts (the shebangs for the python virtual environment are added to the tops of the python scripts). The answer is the "Tools" > "System Contols" > "Update" tools which calls the
I hope that helps you understand a bit behind what failed in your steps and why I'm changing the ReadMe now :) Please let me know how the update goes from the web interface. My best regards, |
Beta Was this translation helpful? Give feedback.
-
The crash that took the system offline yesterday was due to filesystem corruption. An fsck repaired enough to make it mountable so I could grab stuff, but it still wasn’t booting up properly. And for the sake of future stability, it made more sense to reinstall. I reformatted the card and started from scratch. Put my old data back and had it working for a little while, still able to see all of my old charts. A few hours later, it’s offline again. I haven’t had a chance to look further, but since it was running perfectly and now won’t boot, my guess is that the root of the problem all along was a failing SD card. Or at least, a card that has failed since we tried making it all work again. So, tomorrow, or later tonight, I’ll start over with a new card and see where that gets me. I can temporarily grab another pi to use to see if that makes a difference too in case the pi I’m using has issues, but a bad SD card seems so much more likely.
Larry Moss, Creative Director
Airigami.com
510 State St, Suite 7
Rochester, NY 14608
+1.585.359.8695
Pronouns: he/him
…On May 13, 2022, 5:42 PM -0400, Patrick McGuire ***@***.***>, wrote:
You're welcome for the support, I'm hopeful we can get it upgraded. And I'm certainly interested in finding out what has actually failed. It has something to do with server.py's reading the PRIVACY_THRESHOLD variable.
When you do get reconnected and have time, let me know if you see anything funky in "Tools" > "Settings" > "Advanced Settings" (the funk factor in this case being an error, not something awesome like Funkadelic or Zapp).
Also when able, if you could send me the output of:
grep -e '^PRIVACY' ~/BirdNET-Pi/birdnet.conf
that could help shed some light on the issue.
Lastly, if there is nothing strange going on with those things (all related to the update not populating your birdnet.conf's PRIVACY_THRESHOLD variable correctly), I'll ask that you try this command:
awk '!/#/ && !/^$/ `{print}'` /etc/birdnet/birdnet.conf > ~/BirdNET-Pi/thisrun.txt && sudo systemctl restart_services.sh & birdnet_log.sh
and see whether that works. That command just manually updates a file that gets updated each birdnet_analysis.service cycle, speculating that maybe it hadn't been updated yet?
The short re-installation guide can just be this one-liner if you would rather just change the lat and longitude after installation and re-add your BirdWeather ID:
cd && uninstall.sh && rm -drfv BirdNET && curl -s https://raw.githubusercontent.com/mcguirepr89/BirdNET-Pi/main/newinstaller.sh | bash
Though, to answer your question about the best way to uninstall and reinstall, here is a little guide. Note that these steps assume precaution that there may be something wrong with your current birdnet.conf file, and of course won't work from the Web Terminal ;)
1. Make a backup of your database in your $HOME directory:
cp ~/BirdNET-Pi/scripts/birds.db ~
2. Grab the parts we want from the current birdnet.conf:
oldvars=($(grep -e '^LATITUDE' -e 'LONGITUDE' -e 'BIRDWEATHER' /etc/birdnet/birdnet.conf))
3. Use birdnet.conf-default as a template for the new birdnet.conf:
cp ~/BirdNET-Pi/birdnet.conf-defaults ~/BirdNET-Pi/birdnet.conf-new
4. Put the $oldvars into birdnet.conf-new:
sed -i "s/LATITUDE=/${oldvars[0]}/;s/LONGITUDE=/${oldvars[1]}/;s/BIRDWEATHER_ID=/${oldvars[2]}/" ~/BirdNET-Pi/birdnet.conf-new
5. Finally, uninstall.sh the old:
uninstall.sh && rm -drfv ~/BirdNET-Pi/birdnet
6. Rename birdnet.conf-new to birdnet.conf:
mv ~/BirdNET-Pi/birdnet.conf-new ~/BirdNET-Pi/birdnet.conf
7. Now you can re-install:
~/BirdNET-Pi/scripts/install_birdnet.sh
Dang, lots more steps that I thought when I wrote them all out.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I am really loving playing with BirdNET-Pi. Thank you mcquirepr89 and everyone else that's contributed. I apologize for the newb question, but I didn't find an answer looking around. I have a very limited understanding of how GitHub works.
After a week or so of watching things run, I noticed the Apprise notifications were added and wanted to play. I followed the update instructions in the readme. When I do the git pull, I get:
error: Pulling is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm '
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.
I'm lost as to what I need to do. I haven't changed anything other than the config settings, so I shouldn't have anything odd. I can always backup my database, reinstall and restore the database, but I'd rather learn what's going on so I can fix stuff like this in the future.
Then I'll see if I can figure out how to set up notifications.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions