[GH-ISSUE #253] Random failures while connecting to frontail #160

Closed
opened 2026-03-03 16:05:44 +03:00 by kerem · 1 comment
Owner

Originally created by @pmulgaonkar on GitHub (Mar 29, 2023).
Original GitHub issue: https://github.com/mthenw/frontail/issues/253

Have frontail configured as per instructions behind nginx. But I randomly (about 50%) get errors connecting. Nginx error log says:
2023/03/29 22:32:52 [error] 183900#0: *52 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.25, server: 192.168.1.37, request: "GET /frontail/socket.io/?EIO=3&transport=websocket HTTP/1.1", upstream: "http://127.0.0.1:9001/frontail/socket.io/?EIO=3&transport=websocket", host: "192.168.1.37

Cannot figure out why this works sometimes not at other times. Any tips?

Originally created by @pmulgaonkar on GitHub (Mar 29, 2023). Original GitHub issue: https://github.com/mthenw/frontail/issues/253 Have frontail configured as per instructions behind nginx. But I randomly (about 50%) get errors connecting. Nginx error log says: 2023/03/29 22:32:52 [error] 183900#0: *52 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.25, server: 192.168.1.37, request: "GET /frontail/socket.io/?EIO=3&transport=websocket HTTP/1.1", upstream: "http://127.0.0.1:9001/frontail/socket.io/?EIO=3&transport=websocket", host: "192.168.1.37 Cannot figure out why this works sometimes not at other times. Any tips?
kerem closed this issue 2026-03-03 16:05:44 +03:00
Author
Owner

@pmulgaonkar commented on GitHub (Mar 31, 2023):

Found the cause (I think). In case this is useful to someone else in the future:
Frontail needs a few seconds to initialize it's listener. I was starting the frontail server and then immediately trying to connect to it. A 5 second delay solved the issue.

<!-- gh-comment-id:1492414583 --> @pmulgaonkar commented on GitHub (Mar 31, 2023): Found the cause (I think). In case this is useful to someone else in the future: Frontail needs a few seconds to initialize it's listener. I was starting the frontail server and then immediately trying to connect to it. A 5 second delay solved the issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/frontail#160
No description provided.