Hallo,
ich bin neu hier im Forum, nutze Homebridge aber schon etwas länger. Ich habe immer wieder mal feststellen müssen, dass Homebridge nach einer gewissen Zeit (meist nach einige Tagen) abstürzt. Neustart des Service hilft dann erstmal für eine Weile.
Bei dem Versuch, das Problem in den Griff zu bekommen, habe ich Homebridge und alle Plugins auf den aktuellen Stand gebracht. Leider stürzt Homebridge jetzt immer sofort nach dem Neustart ab (wenige Sekunden). Um eine Fehlkonfiguration der Plugins auszuschließen, habe ich die Homebridge Konfiguration komplett leer geräumt, sodass die Plugins als Fehlerquelle möglicherweise ausgeschlossen werden können. Das hat keine Änderung in Bezug auf den sofortigen Absturz von Homebridge gebracht.
Anbei findet Ihr die (leergeräumte) config.json sowie das Homebridge Log. Interessant m.E. die Einträge zu "[7.11.2022, 14:43:50] Error: error:1C80006D:Provider routines::invalid iv length"
Wirklich Hinweise auf die Ursache habe ich aber nicht gefunden...
Meine Systemumgebung:
Linux VM (ESXI), Debian 11 Bullseye
Node 18.12.1
NPM 8.19.3
Homebridge 1.5.1
Ich hoffe, dass mir hhier jemand sachdienliche Hinweise zur Störugsbehebung geben kann. Falls weitere Informationen benötigt werden, versuche ich natürlich gerne, diese bereitzustellen.
Danke vorab und schöne Grüße
Kandamir
Homemati Log:
Started Node.js HomeKit Server.
[7.11.2022, 14:43:48] Loaded config.json with 0 accessories and 1 platforms.
[7.11.2022, 14:43:48] ---
[7.11.2022, 14:43:48] Plugin /usr/lib/node_modules/homebridge-lib package.json does not contain the keyword 'homebridge-plugin'.
[7.11.2022, 14:43:48] Loaded plugin: [email protected]
[7.11.2022, 14:43:48] Registering platform 'homebridge-calendar.Calendar'
[7.11.2022, 14:43:48] ---
[7.11.2022, 14:43:48] Loaded plugin: [email protected]
[7.11.2022, 14:43:48] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[7.11.2022, 14:43:48] ---
[7.11.2022, 14:43:48] Loaded plugin: [email protected]
[7.11.2022, 14:43:48] Registering platform 'homebridge-config-ui-x.config'
[7.11.2022, 14:43:48] ---
[7.11.2022, 14:43:48] Loaded plugin: [email protected]
[7.11.2022, 14:43:48] Registering accessory 'homebridge-fakebulb.FakeBulb'
[7.11.2022, 14:43:48] ---
[7.11.2022, 14:43:48] Loaded plugin: [email protected]
[7.11.2022, 14:43:48] Registering platform 'homebridge-homematic.HomeMatic'
[7.11.2022, 14:43:48] ---
[7.11.2022, 14:43:48] The plugin "homebridge-hue" requires a Homebridge version of ^1.5.1 which does not satisfy the current Homebridge version of 1.1.1. You may need to update this plugin (or Homebridge) to a newer version. You may face unexpected issues or stability problems running this plugin.
[7.11.2022, 14:43:49] Loaded plugin: [email protected]
[7.11.2022, 14:43:49] Registering platform 'homebridge-hue.Hue'
[7.11.2022, 14:43:49] ---
[7.11.2022, 14:43:49] Loaded plugin: [email protected]
[7.11.2022, 14:43:49] Registering platform 'homebridge-image-to-camera.image-camera'
[7.11.2022, 14:43:49] ---
[7.11.2022, 14:43:49] Loaded plugin: [email protected]
[7.11.2022, 14:43:49] Registering platform 'homebridge-miio.XiaomiMiio'
[7.11.2022, 14:43:49] ---
[7.11.2022, 14:43:49] Loaded plugin: [email protected]
[7.11.2022, 14:43:49] Registering accessory 'homebridge-mysqueezebox-alarmclocksensor.MySqueezeboxAlarmClockSensor'
[7.11.2022, 14:43:49] ---
[7.11.2022, 14:43:49] Loaded plugin: [email protected]
[7.11.2022, 14:43:49] Registering platform 'homebridge-ps4-waker-platform.PS4WakerPlatform'
[7.11.2022, 14:43:49] ---
[7.11.2022, 14:43:49] The plugin "homebridge-robonect" requires a Homebridge version of >=1.4.0 which does not satisfy the current Homebridge version of 1.1.1. You may need to update this plugin (or Homebridge) to a newer version. You may face unexpected issues or stability problems running this plugin.
[7.11.2022, 14:43:49] Loaded plugin: [email protected]
[7.11.2022, 14:43:49] Registering accessory 'homebridge-robonect.HomebridgeRobonect'
[7.11.2022, 14:43:49] ---
[7.11.2022, 14:43:49] Loaded plugin: [email protected]
[7.11.2022, 14:43:49] Registering platform 'homebridge-squeezebox.Squeezebox'
[7.11.2022, 14:43:49] ---
[7.11.2022, 14:43:49] Loaded plugin: [email protected]
[7.11.2022, 14:43:49] Registering accessory 'homebridge-vsx.VSX'
[7.11.2022, 14:43:49] ---
[7.11.2022, 14:43:49] Loaded plugin: [email protected]
[7.11.2022, 14:43:49] Registering accessory 'homebridge-xiaomi-roborock-vacuum.XiaomiRoborockVacuum'
[7.11.2022, 14:43:49] ---
[7.11.2022, 14:43:49] Loading 1 platforms...
[7.11.2022, 14:43:49] [Config] Initializing config platform...
[7.11.2022, 14:43:49] [Config] Spawning homebridge-config-ui-x with PID 2466405
Setup Payload:
X-HM://XXXXXXXXXXXXX
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
...
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ XXX-XX-XXX │
└────────────┘
[7.11.2022, 14:43:49] Homebridge is running on port 51826.
[7.11.2022, 14:43:50] Error: error:1C80006D:Provider routines::invalid iv length
at Cipheriv.createCipherBase (node:internal/crypto/cipher:116:19)
at Cipheriv.createCipherWithIV (node:internal/crypto/cipher:135:3)
at new Cipheriv (node:internal/crypto/cipher:243:3)
at Object.createCipheriv (node:crypto:141:10)
at Object.chacha20_poly1305_encryptAndSeal (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/hapCrypto.ts:90:25)
at HAPServer._this._handlePairVerifyStepOne (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:553:33)
at HAPServer._this._handlePairVerify (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:515:12)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:280:24)
at IncomingMessage.emit (node:events:513:28)
at endReadableNT (node:internal/streams/readable:1359:12)
[7.11.2022, 14:43:50] Got SIGTERM, shutting down Homebridge...
[7.11.2022, 14:43:50] Error: error:1C80006D:Provider routines::invalid iv length
at Cipheriv.createCipherBase (node:internal/crypto/cipher:116:19)
at Cipheriv.createCipherWithIV (node:internal/crypto/cipher:135:3)
at new Cipheriv (node:internal/crypto/cipher:243:3)
at Object.createCipheriv (node:crypto:141:10)
at Object.chacha20_poly1305_encryptAndSeal (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/hapCrypto.ts:90:25)
at HAPServer._this._handlePairVerifyStepOne (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:553:33)
at HAPServer._this._handlePairVerify (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:515:12)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:280:24)
at IncomingMessage.emit (node:events:513:28)
at endReadableNT (node:internal/streams/readable:1359:12)
[7.11.2022, 14:43:52] [Homebridge UI] Homebridge Config UI X v4.50.1 is listening on :: port 8089
homebridge : TTY=pts/4 ; PWD=/var/homebridge ; USER=root ; COMMAND=/bin/journalctl -o cat -n 500 -f -u homebridge
pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1001)
homebridge.service: Succeeded.
homebridge.service: Unit process 2466405 (homebridge-conf) remains running after unit stopped.
homebridge.service: Unit process 2466501 (sudo) remains running after unit stopped.
homebridge.service: Unit process 2466503 (journalctl) remains running after unit stopped.
homebridge.service: Consumed 4.348s CPU time.
pam_unix(sudo:session): session closed for user root
Alles anzeigen
Leer geräumte config.json
{
"bridge": {
"name": "Homebridge",
"username": "XXXXXXXXX",
"port": 51826,
"pin": "XXX-XX-XXX"
},
"description": "Home Smart Home",
"platforms": [
{
"name": "Config",
"port": 8089,
"auth": "form",
"theme": "blue",
"restart": "sudo -n systemctl restart homebridge",
"tempUnits": "c",
"lang": "auto",
"sudo": true,
"log": {
"method": "systemd",
"service": "homebridge"
},
"platform": "config"
}
],
"accessories": []
}
Alles anzeigen
Die Original Config kann ich ggf. gerne bereitstellen.