Nginx returns "502 Bad Gateway" after 36-48 hours
See original GitHub issueIf I leave grocy-desktop running (as you would), with external access enabled (at least), I will always get a “502 Bad Gateway” error from nginx. I first figured it had something to do with my reverse proxy setup, but it also happens with that disabled.
A stupid fix is to schedule this .bat-file:
@echo off
echo Terminating Grocy...
taskkill /im grocy-desktop.exe
timeout /t 5
start /min "" C:\Users\YOUR_USER_NAME\AppData\Local\grocy-desktop\grocy-desktop.exe
… but I would rather that grocy-desktop didn’t stop working. 😉
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Why Am I Seeing NGINX 502 Bad Gateway: PHP-FPM?
This happens when one server acts as a proxy to receive information from another server. When connecting to another server, it returns an...
Read more >NGINX 502 Bad Gateway: PHP-FPM
NGINX will return a 502 Bad Gateway error if it can't successfully proxy a request to PHP-FPM, or if PHP-FPM fails to respond....
Read more >502 bad gateway in Nginx: Top 5 reasons for it, & how to ...
502 Bad Gateway Nginx commonly occurs when Nginx runs as a reverse proxy, and is unable to connect to backend services.
Read more >NGINX 502 Bad Gateway: Gunicorn
NGINX will return a 502 Bad Gateway error if it can't successfully proxy a request to Gunicorn or if Gunicorn fails to respond....
Read more >Learn How To Fix 502 Bad Gateway Error in NGINX
502 Bad Gateway indicates that the server you are trying to reach has encountered an error while communicating with another server. This occurs ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m calling it fixed. Grocy-desktop has been running without issues for a week. 😁
Cool, thanks for the feedback. 🙂