Skip to content

Occasional ECONNRESET & Crash on Startup #31

@pickanothername

Description

@pickanothername

Bug Description
Sometimes when Homebridge restarts, the plugin is unable to connect to one of my board. This causes an instant Homebridge crash. Typically, this will occur once or twice in a row, each time homebridge will crash and restart, then startup will happen as normal.
I do believe one of my boards is actually having connection issues, but I feel this should not cause a complete HB crash.

Steps To Reproduce
Restart Homebridge. Unfortunately, it is inconsistent.

Expected Behavior
Homebridge starts normally, and Konnected connects to the boards.

Environment

  • Homebridge System:
    • Node.js Version: 18.13.0
    • NPM Version: 8.19.3
    • Homebridge/HOOBS Version: Homebridge 1.6.0
    • Operating System: Alpine Linux
    • Process Supervisor: Docker
  • Konnected Panel(s):
    • Panel Hardware Version: v1 (I believe)
    • Firmware Version: 3.0.0
    • Addon Panel(s): 6-Zone Alarm Panel (1)
    • Interface Panel(s): 6-Zone /w Siren Output (1)

Attach Files to Support Your Experience
Error log:

[1/30/2023, 2:45:45 AM] FetchError: request to http://192.168.4.38:12108/status failed, reason: read ECONNRESET
    at ClientRequest.<anonymous> (/homebridge/node_modules/homebridge-konnected/node_modules/node-fetch/lib/index.js:1491:11)
    at ClientRequest.emit (node:events:513:28)
    at Socket.socketErrorListener (node:_http_client:496:9)
    at Socket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
[1/30/2023, 2:45:45 AM] Got SIGTERM, shutting down Homebridge...

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions