mcguirepr89 / BirdNET-Pi

A realtime acoustic bird classification system for the Raspberry Pi 4B, 3B+, and 0W2 built on the TFLite version of BirdNET.
Other
1.31k stars 139 forks source link

Caddy Setup #1122

Open rsympson opened 10 months ago

rsympson commented 10 months ago

I've been running 2 BirdNET stations for a year now. One of them got some corrupted files so I've rebuilt it. The latest build results in a Caddy screen asking for for some setup steps that I don't understand. Are there some clear step by step instructions that will get me past this Caddy interuption and back to listening?

rsympson commented 10 months ago

I've done some additional rebuilds, making sure to use the RPi OS Lite 64 bit Bullseye version and am getting the same results. On my desktop computer to web page that renders is an "Apache2 DebianDefault Page". What has changes wiht the build process such that the green BirdnetPi Green overview page no longer renders after a successful build?

image

rsympson commented 10 months ago

This is the Caddy page I was presented with as referred to in my first post.

image

pddpauw commented 9 months ago

I had similar issues when trying to make this work on Bookworm (Pi5). I closed apache:

sudo systemctl disable apache2 && sudo systemctl stop apache2

and enabled caddy (incl starting at boot): sudo systemctl enable caddy && sudo systemctl start caddy

I also hade some issue with user rights as Caddy couldn't write to all of the files, so made some chmod changes in the /home/pi folder

rsympson commented 9 months ago

Thanks. I'll try a new build and see if I can get it to work. My current workaround was to take an image from my second BirdNET setup, restore it to my failed one, and make the necessary name and network changes. This is working fine, but only because I had a functioning second system.

BS


From: pddpauw @.> Sent: Friday, February 9, 2024 12:50 PM To: mcguirepr89/BirdNET-Pi @.> Cc: Bravo Sierra @.>; Author @.> Subject: Re: [mcguirepr89/BirdNET-Pi] Caddy Setup (Issue #1122)

I had similar issues when trying to make this work on Bookworm (Pi5). I closed apache:

sudo systemctl disable apache2 && sudo systemctl stop apache2

and enabled caddy (incl starting at boot): sudo systemctl enable caddy && sudo systemctl start caddy

I also hade some issue with user rights as Caddy couldn't write to all of the files, so made some chmod changes in the /home/pi folder

— Reply to this email directly, view it on GitHubhttps://github.com/mcguirepr89/BirdNET-Pi/issues/1122#issuecomment-1936584536, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AITRYDF5COIJPHOOTO4FO2TYS2DYNAVCNFSM6AAAAABCRYML3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZWGU4DINJTGY. You are receiving this because you authored the thread.Message ID: @.***>

sarvesh-lad commented 9 months ago

From what I gather the install_services.sh has php before php-fpm and php requires apache2

so moving it after php-fpm doesnt install apache:

Are you able to test this:

https://github.com/sarvesh-lad/BirdNET-Pi/

curl -s https://raw.githubusercontent.com/sarvesh-lad/BirdNET-Pi/main/newinstaller.sh | bash

Notes on my fork:

  1. it assumes 0 as LATTITUDE and LONGITUDE
  2. it installs tfruntime directly from raspberypi
  3. Has the install services fix I mentioned above.