Skip to content
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

🐛 [Birdnet-go] Fails to restart with DB-FILE: unbound variable error #1730

Open
paulgee31 opened this issue Jan 19, 2025 · 1 comment
Open
Labels
bug Something isn't working stale Element will be closed automatically

Comments

@paulgee31
Copy link

Description

Updated to 0.6.0-2 and the Birdnet-go addon refuses to start with a:

/etc/cont-init.d/01-structure.sh: executing [17:10:25] WARNING: Moving birdnet.db to /config/birdnet.db [17:10:25] INFO: ... audio clips saved to /config/clips according to addon options [17:10:25] WARNING: Birdsongs folder changed from /data/clips/ to /config/clips [17:10:26] WARNING: Modifying database paths from /data/clips/ to /config/clips. A backup named birdnet.db_20250119_171026 will be created before Paths have been successfully updated. /etc/cont-init.d/01-structure.sh: line 111: DB_FILE: unbound variable Error : /etc/cont-init.d/01-structure.sh exiting 1

Reproduction steps

1. Fresh install of Birdnet-go addon
2. Start 
3. Starts OK
3. Restart 
4. See error

Addon Logs

Starting...
/etc/cont-init.d/00-banner.sh: executing
-----------------------------------------------------------
 Add-on: Birdnet-go
 Realtime BirdNET soundscape analyzer
-----------------------------------------------------------
 Add-on version: 0.6.0-2
 You are running the latest version of this add-on.
 System: Home Assistant OS 14.1  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2025.1.2
 Home Assistant Supervisor: 2024.12.3
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
-----------------------------------------------------------
 Provided by: https://github.com/alexbelgium/hassio-addons 
-----------------------------------------------------------
/etc/cont-init.d/00-global_var.sh: executing
BIRDSONGS_FOLDER='/config/clips'
COMMAND='realtime'
Timezone set from Etc/UTC to Europe/London
/etc/cont-init.d/00-local_mounts.sh: executing
/etc/cont-init.d/00-smb_mounts.sh: executing
/etc/cont-init.d/01-config_yaml.sh: executing
Setting permissions for the config_env.yaml directory
Load environment variables from /config/config_env.yaml if existing
If accessing the file with filebrowser it should be mapped to /addon_configs/db21ed7f_birdnet-go/config_env.yaml
---------------------------------------------------------
Wiki here on how to use : github.com/alexbelgium/hassio-addons/wiki/Add‐ons-feature-:-add-env-variables
... no env variables found, exiting
/etc/cont-init.d/01-custom_script.sh: executing
Execute /addon_configs/db21ed7f_birdnet-go/birdnet-go.sh if existing
Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-customisation
/etc/cont-init.d/01-structure.sh: executing
[17:10:25] WARNING: Moving birdnet.db to /config/birdnet.db
[17:10:25] INFO: ... audio clips saved to /config/clips according to addon options
[17:10:25] WARNING: Birdsongs folder changed from /data/clips/ to /config/clips
[17:10:26] WARNING: Modifying database paths from /data/clips/ to /config/clips. A backup named birdnet.db_20250119_171026 will be created before
Paths have been successfully updated.
/etc/cont-init.d/01-structure.sh: line 111: DB_FILE: unbound variable
Error : /etc/cont-init.d/01-structure.sh exiting 1

Architecture

No response

OS

HAos

@paulgee31 paulgee31 added the bug Something isn't working label Jan 19, 2025
alexbelgium added a commit that referenced this issue Jan 19, 2025
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Element will be closed automatically label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Element will be closed automatically
Projects
None yet
Development

No branches or pull requests

1 participant