question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nginx returns "502 Bad Gateway" after 36-48 hours

See original GitHub issue

If 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:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Moskuscommented, Oct 20, 2020

I’m calling it fixed. Grocy-desktop has been running without issues for a week. 😁

0reactions
berrndcommented, Oct 20, 2020

Cool, thanks for the feedback. 🙂

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found