Skip to content

Fix birdnet installation#7929

Merged
MichaIng merged 2 commits intoMichaIng:devfrom
shagr4th:dev
Jan 28, 2026
Merged

Fix birdnet installation#7929
MichaIng merged 2 commits intoMichaIng:devfrom
shagr4th:dev

Conversation

@shagr4th
Copy link

@shagr4th shagr4th commented Jan 28, 2026

Hi, small fix for an issue I encountered while installing Birdnet-go. If the dietpi-software install command is launched from a protected directory (/root, or whatever), the app installation will fail with the following error:

ERROR [main] Failed to initialize logger error="failed to create base handler: failed to create log directory:
failed to create directory logs: mkdir logs: permission denied"

Likely cause : first birdnet-go execution as the birdnet user create a default config file at the right place, but then try to mkdir a logs directory under the current directory, leading to this permission issue. PR ensures that the birdnet-go first launch is done in the proper user home's directory

@MichaIng
Copy link
Owner

MichaIng commented Jan 28, 2026

Let's see: https://github.com/MichaIng/DietPi/actions/runs/21457371422

dietpi-software always navigates to /tmp/DietPi-Software, so it shouldn't matter from where you execute it. So this is likely a faulty (actually consistent, but not great) change in a recent BirdNET-Go pre-release.

@MichaIng MichaIng added this to the v10.1 milestone Jan 28, 2026
@MichaIng
Copy link
Owner

I aligned the navigation a bit with other install options, where we move to the build dir in a dedicated command and back to the original working dir, transparently. Probably unnecessary bloat, but at least prevents a subshell.

Testing with all architectures: https://github.com/MichaIng/DietPi/actions/runs/21458394596

@MichaIng MichaIng merged commit ec6e6c8 into MichaIng:dev Jan 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants