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

Species stats not working - 502 bad gateway error rpi4 #1152

Open
yarrow09 opened this issue Mar 8, 2024 · 2 comments
Open

Species stats not working - 502 bad gateway error rpi4 #1152

yarrow09 opened this issue Mar 8, 2024 · 2 comments

Comments

@yarrow09
Copy link

yarrow09 commented Mar 8, 2024

Hello,
I discovered the fantastic birdnetpi project on my raspberry pi 4.
I encounter a problem on the "species stats" page which remains completely empty
yet streamlit seems to work:
Top command:
91304 arnaud 20 0 640584 159960 66428 R 105.6 4.1 0:06.60 python3 691322 arnaud 20 0 423568 139332 49044 R 99.7 3.6 0:05.45 streamlit 687246 arnaud 20 0 965652 404472 156308 S 66.6 10.4 1:06.45 python3 687269 arnaud 20 0 567356 49448 39164 R 17.5 1.3 1:00.23 ffmpeg 1151 arnaud 9 -11 946840 24792 18256 S 7.3 0.6 54:49.43

Status birdnet stats :
BirdNET-Pi$ sudo service birdnet_stats status ● birdnet_stats.service - BirdNET Stats Loaded: loaded (/home/arnaud/BirdNET-Pi/templates/birdnet_stats.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2024-03-08 15:45:33 CET; 972ms ago Main PID: 692537 (streamlit) Tasks: 4 (limit: 3933) CPU: 1.176s CGroup: /system.slice/birdnet_stats.service └─692537 /home/arnaud/BirdNET-Pi/birdnet/bin/python3 /home/arnaud/BirdNET-Pi/birdnet/bin/streamlit run /home/arnaud/BirdNET-Pi/scripts/plotly_streamlit.py --browser.gatherUsageStats false --serve

birdnet:~/BirdNET-Pi$ sudo service birdnet_stats status ● birdnet_stats.service - BirdNET Stats Loaded: loaded (/home/arnaud/BirdNET-Pi/templates/birdnet_stats.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Fri 2024-03-08 15:48:49 CET; 3s ago Process: 694520 ExecStart=/home/arnaud/BirdNET-Pi/birdnet/bin/streamlit run /home/arnaud/BirdNET-Pi/scripts/plotly_streamlit.py --browser.gatherUsageStats false --server.address localhost --server.baseUrlPath /stats (code=exited, status=1/FAILURE) Main PID: 694520 (code=exited, status=1/FAILURE) CPU: 4.272s

edit :
It seems that there is a "502 Bad Gateway" error when I inspect the page with the browser tools

thank you in advance for your help, I hope my description of the problem is clear :)

@yarrow09 yarrow09 changed the title Species stats not working rpi4 Species stats not working - 502 bad gateway error rpi4 Mar 8, 2024
@davidalisterbell
Copy link

I'm having this same issue also on RP4. Any luck on figuring it out?

@davidalisterbell
Copy link

I fixed it on my end, just had to go to tools->services->Streamlit Statistics->restart

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