- What Grafana version are you using?
Grafana 5.2.2
- What database are you using?
Postgresql
- What OS are you running grafana on?
Redhat 6.4
- What did you do?
trying to load Grafana home page in the browser to login to grafana
- What was the expected result?
Able to make connection and see the login page
- What happened instead?
Got 502 error, Gateway Connection timeout
- If related to metric query / data viz: No
users intermittently getting status code 502, Connection time out error after few minutes in the browser.
Nginx is acting as the front end and reverse proxy.
When ever any user tries to hit the https://grafana.com . browser tries to connect to grafana home page and after few mins, user get 502 bad gateway Connection time out Error instead of getting Grafana login page.
Error log in Grafana Server:
t=2018-10-08T15:34:45-0700 lvl=eror msg=“Failed to start session” logger=context error="read tcp x.x.x.x:44282->x.x.x.x:5444: read: connection timed out”
Error in Postgres:
2018-10-09 01:23:13 EDT [22113]: [1-1] user=grafana,db=grafana,app=[unknown],client=x.x.x.xLOG: could not receive data from client: Connection timed out
2018-10-09 01:23:13 EDT [23270]: [1-1] user=grafana,db=grafana,app=[unknown],client=x.x.x.xLOG: could not receive data from client: Connection timed out
2018-10-09 02:08:17 EDT [26649]: [1-1] user=grafana,db=grafana,app=[unknown],client=x.x.x.xLOG: could not receive data from client: Connection timed out
2018-10-09 02:08:17 EDT [26719]: [1-1] user=grafana,db=grafana,app=[unknown],client=x.x.x.xLOG: could not receive data from client: Connection timed out
2018-10-09 04:15:02 EDT [23232]: [1-1] user=grafana,db=grafana,app=[unknown],client=x.x.x.xLOG: could not receive data from client: Connection timed out
2018-10-09 13:58:56 EDT [17401]: [1-1] user=grafana,db=grafana,app=[unknown],client=x.x.x.xLOG: could not receive data from client: Connection timed out
2018-10-09 13:58:56 EDT [17406]: [1-1] user=grafana,db=grafana,app=[unknown],client=x.x.x.xLOG: could not receive data from client: Connection timed out