HomarrH
Homarr7mo ago
4 replies
Pyrotech1620

Websocket issue effecting Pings

I am running Homarr v1.28.1 installed with Proxmox Community Helper script. I am having an issue that after 2-3 hours of starting Homarr the Pings stop working best I can tell is something to do with the wss websocket.

When I first start Homarr the pings work. I see in the logs "✅ WebSocket Server listening on ws://localhost:3001" with multiple other messages " Connection (5) GET /websockets" .

However, after several hours, pings will switch to a blue circle and throw the error below in the log file. Restarting the LXC or even doing systemctl restart homarr resolves the issue for 2-3 more hours before it happens again.


Jul 15 17:02:07 homarr run_homarr.sh[820]: 2025-07-15T21:02:07.823Z info: ➖ Connection (3) 1001
Jul 15 17:02:07 homarr run_homarr.sh[820]: node:internal/webstreams/readablestream:1077
Jul 15 17:02:07 homarr run_homarr.sh[820]: throw new ERR_INVALID_STATE.TypeError('Controller is already closed');
Jul 15 17:02:07 homarr run_homarr.sh[820]: ^
Jul 15 17:02:07 homarr run_homarr.sh[820]: TypeError [ERR_INVALID_STATE]: Invalid state: Controller is already closed
Jul 15 17:02:07 homarr run_homarr.sh[820]: at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1077:13)
Jul 15 17:02:07 homarr run_homarr.sh[820]: at Object.next (/opt/homarr/apps/websocket/wssServer.cjs:745:22)
Jul 15 17:02:07 homarr run_homarr.sh[820]: at Object.next (/opt/homarr/apps/websocket/wssServer.cjs:676:100)
Jul 15 17:02:07 homarr run_homarr.sh[820]: at /opt/homarr/apps/websocket/wssServer.cjs:786773:16
Jul 15 17:02:07 homarr run_homarr.sh[820]: at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
Jul 15 17:02:07 homarr run_homarr.sh[820]: code: 'ERR_INVALID_STATE'
Jul 15 17:02:07 homarr run_homarr.sh[820]: }
Jul 15 17:02:07 homarr run_homarr.sh[820]: Node.js v22.17.0
Solution
Hi, we're discussing this at the moment on GitHub: https://github.com/homarr-labs/homarr/issues/3622 .
Please look into that issue and comment if the solution outlined does not work.
I will mark this as resolved.
GitHub
Describe the bug Status checks are no longer working as of the recent update and are stuck in a "Loading" state with a blue indicator. Steps to reproduce From a prior version, update to H...
bug: App Status Checks · Issue #3622 · homarr-labs/homarr
Was this page helpful?