Apollon77 / ioBroker.homekit-controller

Pair and control HomeKit devices directly
MIT License
16 stars 8 forks source link

Instanz is terminating itself #291

Closed Draygv2 closed 7 months ago

Draygv2 commented 9 months ago

Describe the bug
Because of many error during the start the instanz stop running.

To Reproduce
Steps to reproduce the behavior:

  1. Run Instanz
  2. See error

Expected behavior
Running normal

Screenshots & Logfiles
`

2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: -- 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[0]: Error: undefined is not a valid state value 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[0]: at Object.maybeCallbackWithError (/opt/iobroker/node_modules/@iobroker/js-controller-common/src/lib/common/maybeCallback.ts:136:17) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[0]: at HomekitController._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:7594:26) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[0]: at HomekitController.setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:7552:21) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[0]: at /opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js:745:26 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[0]: at Array.forEach () 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[0]: at HomekitController.setCharacteristicValues (/opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js:734:32) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[0]: at Timeout. (/opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js:702:30) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[0]: at processTicksAndRejections (node:internal/process/task_queues:95:5) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[1]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[1]: Error: undefined is not a valid state value 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[1]: at Object.maybeCallbackWithError (/opt/iobroker/node_modules/@iobroker/js-controller-common/src/lib/common/maybeCallback.ts:136:17) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[1]: at HomekitController._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:7594:26) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[1]: at HomekitController.setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:7552:21) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[1]: at /opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js:745:26 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[1]: at Array.forEach () 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[1]: at HomekitController.setCharacteristicValues (/opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js:734:32) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[1]: at Timeout. (/opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js:702:30) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[1]: at processTicksAndRejections (node:internal/process/task_queues:95:5) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[2]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[3]: Error: undefined is not a valid state value 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[3]: at Object.maybeCallbackWithError (/opt/iobroker/node_modules/@iobroker/js-controller-common/src/lib/common/maybeCallback.ts:136:17) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[3]: at HomekitController._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:7594:26) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[3]: at HomekitController.setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:7552:21) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[3]: at /opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js:745:26 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[3]: at Array.forEach () 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[3]: at HomekitController.setCharacteristicValues (/opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js:734:32) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[3]: at Timeout. (/opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js:702:30) 2023-09-20 06:43:35.544 - error: host.Iobroker-prod Caught by controller[3]: at processTicksAndRejections (node:internal/process/task_queues:95:5) 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: Error: undefined is not a valid state value 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: at Object.maybeCallbackWithError (/opt/iobroker/node_modules/@iobroker/js-controller-common/src/lib/common/maybeCallback.ts:136:17) 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: at HomekitController._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:7594:26) 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: at HomekitController.setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:7552:21) 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: at /opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js:745:26 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: at Array.forEach () 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: at HomekitController.setCharacteristicValues (/opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js:734:32) 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: at Timeout. (/opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js:702:30) 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: at processTicksAndRejections (node:internal/process/task_queues:95:5) 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: Error: undefined is not a valid state value 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: at Object.maybeCallbackWithError (/opt/iobroker/node_modules/@iobroker/js-controller-common/src/lib/common/maybeCallback.ts:136:17) 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: at HomekitController._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:7594:26) 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: at HomekitController.setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:7552:21) 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: at /opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js:745:26 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: at Array.forEach () 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: at HomekitController.setCharacteristicValues (/opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js:734:32) 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: at Timeout. (/opt/iobroker/node_modules/iobroker.homekit-controller/build/main.js:702:30) 2023-09-20 06:43:35.545 - error: host.Iobroker-prod Caught by controller[4]: at processTicksAndRejections (node:internal/process/task_queues:95:5) 2023-09-20 06:43:35.545 - error: host.Iobroker-prod instance system.adapter.homekit-controller.0 terminated with code 6 (UNCAUGHT_EXCEPTION)

`

`

2023-09-20 06:43:35.002 - error: homekit-controller.0 (45777) undefined is not a valid state value -- 2023-09-20 06:43:35.006 - error: homekit-controller.0 (45777) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). 2023-09-20 06:43:35.006 - error: homekit-controller.0 (45777) unhandled promise rejection: undefined is not a valid state value 2023-09-20 06:43:35.006 - error: homekit-controller.0 (45777) Error: undefined is not a valid state value

`

image

Versions:

Apollon77 commented 9 months ago

Please enable debug logging and provide a debug log. Thank you

Draygv2 commented 9 months ago

Thanks for the quick respond Homekit-problem.txt

mac89muc commented 9 months ago

Hello, I've exactly the same issue since the js-controller update to 5.0.12 with Adapter Version 0.5.8.

@Apollon77 do you need a second debug log?

Apollon77 commented 9 months ago

ne alles gut. Da sind einzelne States die da reported werden kein Wert sondern haben einen Fehlerstatus. Ich schaue mal

Apollon77 commented 9 months ago

Please try GitHub version

mac89muc commented 9 months ago

@Apollon77 - Danke für's schnelle kümmern. Schon regulär über Adapter -> GitHub Katze -> von Github installieren und dort den Adapter aus dem dropdown raussuchen, oder? nicht per Benutzerdefiniert mit der URL zum Adapter hier bei Git?

Bei der ersten Variante wird mir nach wie vor nur der 0.5.8 angeboten, der schon installiert war.

Draygv2 commented 9 months ago

@Apollon77 it's running till now. Many thanks for the quick fix. @mac89muc auf die Katze Adapter auswählen und installieren.

mac89muc commented 9 months ago

@Draygv2 - Danke, so habe ich es wie gesagt probiert - ist bei mir noch immer die 0.5.8. Welche Version hast Du jetzt bei der GitVersion?

Draygv2 commented 9 months ago

Die Version ist die gleiche funktioniert aber trotzdem.

Apollon77 commented 9 months ago

versionsnummer ist gleich, müsst die instanz nur nach Update einmalig neu starten

mac89muc commented 9 months ago

Dann passt es - dachte da gäbe es dann eine neue Versionsnummer. Die Github-Version produziert bisher auch keine Fehler im Log bei mir - Danke.

Apollon77 commented 9 months ago

Neue version erst wenn ich release. Alpha Tests via Github bei mir meistens mit gleicher Nummer

mac89muc commented 9 months ago

@Apollon77 Leider zu früh gefreut - habe wieder Fehlermeldungen im Log und Neustarts - siehe Anhang. Hilft das ggf. weiter... log.txt

Apollon77 commented 9 months ago

Debug log pelase.

mac89muc commented 9 months ago

hatte ich oben mit angehangen, oder brauchst du ein ausführlicheres? log.txt

Gruß

Apollon77 commented 9 months ago

Ja bitte. bei allen fehlern ist nix von debug zu sehen. und sicherstellen das es wirklich dei GitHub version ist!

mac89muc commented 9 months ago

Hab nochmal alles neugestartet, upgedated usw bisher läuft es wieder ohne Fehler. Danke