-
Notifications
You must be signed in to change notification settings - Fork 6
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
Unexpected apache install #15
Comments
I've not yet tested falling back to Debian 11 - naughty me - but I can mitigate the joint issues on 22.04 by disabling the apache2 service and modifying the caddyfile systemctl disable apache2.service
sed -i "s/php7.4-/php8.1-/g" /etc/caddy/Caddyfile (Edit to add: if you update the web interface password, you need to do this again, because the script that reqwrites the basicauth secret rewrites the entire caddyfile, restoring this hardcoded php version) |
The same thing, at least, happens in Ubuntu 20.04 LTS (which is Debian 11 based). |
Thanks for the detailed report. I'll take a closer look later this week. PS. We seem to be in the exact same field, would love to chat. |
I made the mistake of using debian 12 image and am in a similar situation. After install finishes and it reboots, http://birdnetpi.local/ returns the welcome page for Tomcat Tried the following as suggested by @simon-ball. Doing a reboot of the VM, I get a 403 error when hitting the url. I have rolled back to Debian v11 and cannot replicate (although having other issues). |
PLEASE READ THE DOCUMENTATION BEFORE SUBMITTING AN ISSUE
Describe the bug
On a fresh install on Ubuntu 22.04 (Debian 12), Apache is installed and started. As far as I can tell, service starting is alphabetical, such that
apache2.service
will always start (and bind port 80) beforecaddy.service
starts. Consequently,caddy
will never start successfully, since it cannot bind its main port.The resulting symptom is that navigating to
http://hostname
results in the Apache2 welcome page, rather than the expected Caddy-hosted Birdnet pageTo Reproduce
Steps to reproduce the behavior:
MatthewBCooke/BirdNET-Pi
via thenewinstaller.sh
script as described in the readmehttp://hostname
Expected behavior
Apache2 should not be installed in the first place, as it is not used by birdnet.
Your build
x86 virtual mac hine hosted on esxi7.0 update 1
Fresh install of Ubuntu 22.04.3 LTS server (Jammy Jellyfish)
No other packages installed or modified.
Code or log snippets
Apache shows up in the installation log:
That relates to the dependencies installed in
install_services.sh
: https://github.com/MatthewBCooke/BirdNET-Pi/blob/debian/scripts/install_services.sh#L20C24-L20C24Using
apt-cache rdepends
, to trace back up the dependency chain, it seems as if this is ultimately demanded byphp
- at least, the default version of php installed on 22.04(This touches on a separate related bug: that the installed
caddyfile
explicitly demands php7.4, while the installtion process allows for whatever the default/latest php version happens to be)I note that you explicitly advise the use of Debian 11 on the front readme page, so you might consider this to be a future compatibility problem, rather than a critical problem for now.
The text was updated successfully, but these errors were encountered: