Giter Club home page Giter Club logo

Comments (4)

wborn avatar wborn commented on June 29, 2024

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.

HKN007 avatar HKN007 commented on June 29, 2024

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.

wborn avatar wborn commented on June 29, 2024

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.

HKN007 avatar HKN007 commented on June 29, 2024

ok - thanks. Closed.

from openhab-grafana.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.