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

Settings not saving and excluded species not getting excluded #497

Open
3 of 9 tasks
tescher opened this issue Feb 25, 2025 · 1 comment
Open
3 of 9 tasks

Settings not saving and excluded species not getting excluded #497

tescher opened this issue Feb 25, 2025 · 1 comment

Comments

@tescher
Copy link

tescher commented Feb 25, 2025

Issue Type

  • Bug report
  • Feature request
  • Question / Support

Description

Docker version installed on Ubuntu Intel NUC. Detections working great, dashboard shows fine. Tried to add excluded species (Engine and Dog), but the setting screen just hangs after clicking Save. Went into the Docker container as a bash shell and added them to config.yaml. They then showed up in settings, but still weren't excluded (even after restarting).

Also tried changing the MQTT login and password in settings, and that wouldn't save either. Just hangs after hitting Save.

Steps to Reproduce (for bugs)

See above

Expected behavior

[What you expected to happen]

Actual behavior

[What actually happened]

Screenshots

[If applicable, add screenshots to help explain your problem]

Environment

Version Information (build date)

Provide the following line from your system:

$ ./birdnet-go

BirdNET-Go build date: YYYY-MM-DDTHH:MM:SSZ, using config file: /path/to/config.yaml

Not sure how to get this since I'm running the Docker version. Latest?

System Information

  • Device:
    • Raspberry Pi (specify model, e.g., Raspberry Pi 4 Model B)
    • Other SBC Intel NUC
    • PC/Server (please specify)
  • OS: Ubuntu
  • OS Version: Ubuntu 22.04.5 LTS
  • Hardware specs:
    • CPU: Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
    • RAM: 32GB
    • Storage type and size: [e.g. 32GB microSD card, 128GB SSD]
  • Additional hardware (if applicable):
    • USB Audio device: Ugreen USB
    • Other peripherals: 500GB SSD

For Non-Raspberry Pi Linux Users

Have you tested with the latest dev branch container image?

  • Yes
  • No
  • Not applicable (Windows/macOS user)

If not, first test with the latest dev branch container image and see if the issue is already fixed.

$ docker pull ghcr.io/tphakala/birdnet-go:dev

I tried it, and it seemed to save the changes, but it was still detecting engines, and when I restarted the container, all settings changes (and detections) were gone.

Additional context

Possible Solution

?

@joaldes
Copy link

joaldes commented Feb 26, 2025

I've had similar problems with the form not saving. I was reviewing a detection and trying to save a false positive, which did nothing after I clicked save. Same with the config settings; if I add directly to the yaml, it shows up. Otherwise, nothing in the forms save.

I checked my logs and have this about CSRF errors:

2025/02/25 20:34:33 [birdnet] 0.00 Bonasa umbellus_Ruffed Grouse_rufgro

2025/02/25 20:34:34 🚨 CSRF ERROR: Rejected request

2025/02/25 20:34:34 🔍 Request Method: POST, Path: /detections/review

2025/02/25 20:34:34 📌 CSRF Token in Header: QXWZpATJGeLBTdizPYPNwJlMqmxedBui

2025/02/25 20:34:34 📌 CSRF Token in Form: QXWZpATJGeLBTdizPYPNwJlMqmxedBui

2025/02/25 20:34:34 ⚠️ No CSRF Cookie found

2025/02/25 20:34:34 📝 All Cookies: _pk_id.1.72c8=2436bbf0e12f9076.1740540864.; _pk_ref.1.72c8=%5B%22%22%2C%22%22%2C1740540864%2C%22https%3A%2F%2F192.168.0.151%3A8006%2F%22%5D

2025/02/25 20:34:34 💡 Error Details: code=403, message=invalid csrf token

2025/02/25 20:34:34 [birdnet] results:

2025/02/25 20:34:34 [birdnet] 0.00 Human non-vocal_Human non-vocal_humnov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants