Live reload is not working due to socket error


Grafana v8.1.5 (c725a4259a)
Nginx configured like here Set up Grafana Live | Grafana documentation
No subpath
root_url, live allowed origin both set and equal
log:

t=2021-10-02T19:11:21+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=GET path=//ws status=404 remote_addr=127.0.0.1 time_ms=5 size=33058 referer=

I can provide more info if requested. It is freshly made installation with no special customizations. It’s a bug or I miss something? Thanks in advance!

Seems it is nginx configuration issue, because it works fine when not proxied at all

Hi !

Just had the problem, remove the trailing slash at the end of the proxy_pass and it will work :slight_smile:

location /api/live {
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $http_host;
    proxy_pass http://grafana.staged-by-discourse.com;  # here
}

Thanks! actually I replaced that to implicitly defined upstream and it worked. So I think you are right too))))

yep! this is that slash