Comments (4)
I think you can prevent that by adding some extra configuration parameters to your NGINX configuration file (e.g. below the add_header
lines):
proxy_set_header Connection keep-alive;
proxy_connect_timeout 3600;
proxy_send_timeout 3600;
proxy_read_timeout 3600;
keepalive_timeout 3600;
from openhab-grafana.
meanwhile i came to a similar conclusion. I found in the nginx log the below error entries
about the timed out SSE connections.
Adding only the line
proxy_read_timeout 3600;
to the nginx configuration solved the problem.
Anyhow i keep your suggestion, since i'm new to nginx and likely have not seen all issues.
Out of curiosity, do you have for each line a explanation why we would need it?
2019/11/08 07:23:03 [error] 598#598: *4 upstream timed out (110: Connection timed out) while reading upstream, client: 192.168.2.109, server: localhost, request: "GET /rest/sitemaps/events/bbff6b50-b65d-4a37-8bad-9e438aa393ea?sitemap=home&pageid=home HTTP/1.1", upstream: "http://127.0.0.1:8080/rest/sitemaps/events/bbff6b50-b65d-4a37-8bad-9e438aa393ea?sitemap=home&pageid=home", host: "192.168.2.55", referrer: "http://1
92.168.2.55/basicui/app"
2019/11/08 07:23:03 [error] 598#598: *1 upstream timed out (110: Connection timed out) while reading upstream, client: 192.168.2.109, server: localhost, request: "GET /rest/sitemaps/events/63c73c97-f0c9-48d1-99ec-d0d833a3ccb2?sitemap=home&pageid=0301000311 HTTP/1.1", upstream: "http://127.0.0.1:8080/rest/sitemaps/events/63c73c97-f0c9-48d1-99ec-d0d833a3ccb2?sitemap=home&pageid=0301000311", host: "192.168.2.55", referrer: "
http://192.168.2.55/static/demo.html?dashboard=openhab2_roomba&fromItem=ROOMBA_HISTORY_START_TIME&toItem=ROOMBA_HISTORY_STOP_TIME&panel=2&theme=light"
from openhab-grafana.
It's been a while since I've touched these values. ;-) I think I got these after searching for SSE timeout issues on the web. Using all of them could be overkill.
from openhab-grafana.
ok - thanks. Closed.
from openhab-grafana.
Related Issues (11)
- Webview panel doesn't change on the Android app HOT 2
- Graph variables aren't supported HOT 1
- Openhab + Grafana + Reverseproxy in Docker HOT 5
- Back Button in Basic UI must be pressed several times before returning to previous page
- Listener and Refresh problem with Safari and Chrome HOT 8
- Add support for Grafana 8 HOT 5
- External (i.e. non-network local access) HOT 2
- Charts are not shown on Openhab Android APP HOT 3
- Panel do not change until manual reloading of the page HOT 19
- [Error] SyntaxError: Can't create duplicate variable: 'typeMap' HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openhab-grafana.