BirdNET-Pi icon indicating copy to clipboard operation
BirdNET-Pi copied to clipboard

Caddy Setup

Open rsympson opened this issue 1 year ago • 5 comments

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 avatar Jan 30 '24 18:01 rsympson

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 avatar Jan 31 '24 03:01 rsympson

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

image

rsympson avatar Jan 31 '24 03:01 rsympson

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

pddpauw avatar Feb 09 '24 20:02 pddpauw

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: @.***>

rsympson avatar Feb 09 '24 21:02 rsympson

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.

sarvesh-lad avatar Feb 16 '24 22:02 sarvesh-lad