mirror of
https://github.com/mthenw/frontail.git
synced 2026-04-26 02:05:57 +03:00
[GH-ISSUE #253] Random failures while connecting to frontail #160
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/frontail#160
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@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.