Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on instance start #66

Closed
TyrionWarMage opened this issue Nov 6, 2022 · 11 comments
Closed

Exception on instance start #66

TyrionWarMage opened this issue Nov 6, 2022 · 11 comments
Labels
bug Something isn't working

Comments

@TyrionWarMage
Copy link

Describe the bug
Device Watcher does not start, due to an exception. See log. Fully deterministic.

To Reproduce
Directly on instance start.

Screenshots & Logfiles

host.mediapc 2022-11-06 13:08:32.260 error instance system.adapter.device-watcher.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
device-watcher.0 2022-11-06 13:08:31.696 error Cannot read properties of undefined (reading 'captureException')
device-watcher.0 2022-11-06 13:08:31.696 error TypeError: Cannot read properties of undefined (reading 'captureException') at DeviceWatcher.errorReporting (/opt/iobroker/node_modules/iobroker.device-watcher/main.js:1823:38) at DeviceWatcher.onReady (/opt/iobroker/node_modules/iobroker.device-watcher/main.js:207:9)
device-watcher.0 2022-11-06 13:08:31.695 error unhandled promise rejection: Cannot read properties of undefined (reading 'captureException')
device-watcher.0 2022-11-06 13:08:31.695 error 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().

Versions:

  • Adapter version: 2.0.1
  • JS-Controller version: 4.0.23
  • Node version: 16.18.1
  • Operating system: Ubuntu 22.04
@TyrionWarMage TyrionWarMage added the bug Something isn't working label Nov 6, 2022
@ciddi89
Copy link
Collaborator

ciddi89 commented Nov 6, 2022

Did you update from an earlier version? Please remove the instance, delete the adapter and install it again

@FoGBaV
Copy link

FoGBaV commented Nov 6, 2022

Same here - Blacklist was completly cleared - updated and blacklist recreated .. follwing shows up and stops the Instance afterwards (also delete all itens in Blacklist - Deinstall Instance - Reinstall instance did not solve it):

device-watcher.0 2022-11-06 15:55:10.015 warn Terminated (UNCAUGHT_EXCEPTION): Without reason
device-watcher.0 2022-11-06 15:55:10.006 info terminating
device-watcher.0 2022-11-06 15:55:09.999 info cleaned everything up...
device-watcher.0 2022-11-06 15:55:09.984 error Cannot read properties of undefined (reading 'captureException')
device-watcher.0 2022-11-06 15:55:09.983 error TypeError: Cannot read properties of undefined (reading 'captureException') at DeviceWatcher.errorReporting (/opt/iobroker/node_modules/iobroker.device-watcher/main.js:1823:38) at DeviceWatcher.onReady (/opt/iobroker/node_modules/iobroker.device-watcher/main.js:207:9)
device-watcher.0 2022-11-06 15:55:09.982 error unhandled promise rejection: Cannot read properties of undefined (reading 'captureException')
device-watcher.0 2022-11-06 15:55:09.981 error 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().
device-watcher.0 2022-11-06 15:55:09.979 warn Error catched and sent to Sentry, error: [[onReady]] error: Cannot read properties of undefined (reading 'captureException')
device-watcher.0 2022-11-06 15:55:09.978 warn Error catched and sent to Sentry, error: [[main - create data of all adapter]] error: Cannot read properties of undefined (reading 'captureException')
device-watcher.0 2022-11-06 15:55:09.977 warn Error catched and sent to Sentry, error: [[createDataOfAllAdapter]] error: Cannot read properties of undefined (reading 'de')

@FoGBaV
Copy link

FoGBaV commented Nov 6, 2022

Addon - seems to be someting in this options :
Hs100, Meross, MihomeVacuum, Ping Sonoff, Yeelight

This one runs ok and starts without errors if activated : Alexa2, Ble, Shelly

@ciddi89
Copy link
Collaborator

ciddi89 commented Nov 6, 2022

Could anyone of you install the git version and tell me If it now works?

@FoGBaV
Copy link

FoGBaV commented Nov 6, 2022

Could anyone of you install the git version and tell me If it now works?

Installed over existing Version with rhe new Github Version .... no Errors anymore ! Yeah !
Will do deper test now - but looks good !

Tjhank you so much for this great adapter ! Helps a lot !

@FoGBaV
Copy link

FoGBaV commented Nov 6, 2022

Could anyone of you install the git version and tell me If it now works?

Nope - Sorry - after activating more options -> Error is back. Hunting now which option brings up the error ...

@ciddi89
Copy link
Collaborator

ciddi89 commented Nov 6, 2022

@FoGBaV ok then please activate each adapter for each self to find out which one makes the issue

@FoGBaV
Copy link

FoGBaV commented Nov 6, 2022

@FoGBaV ok then please activate each adapter for each self to find out which one makes the issue

Did it - seems to be the Yeelight ... all others brings no errors ...

On Yeelight :

device-watcher.0 2022-11-06 17:13:54.933 error Cannot read properties of undefined (reading 'captureException')
device-watcher.0 2022-11-06 17:13:54.932 error TypeError: Cannot read properties of undefined (reading 'captureException') at DeviceWatcher.errorReporting (/opt/iobroker/node_modules/iobroker.device-watcher/main.js:1818:38) at DeviceWatcher.onReady (/opt/iobroker/node_modules/iobroker.device-watcher/main.js:207:9)
device-watcher.0 2022-11-06 17:13:54.930 error unhandled promise rejection: Cannot read properties of undefined (reading 'captureException')
device-watcher.0 2022-11-06 17:13:54.929 error 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().
device-watcher.0 2022-11-06 17:13:54.926 warn Error catched and sent to Sentry, error: [[onReady]] error: Cannot read properties of undefined (reading 'captureException')
device-watcher.0 2022-11-06 17:13:54.924 warn Error catched and sent to Sentry, error: [[main - create data of all adapter]] error: Cannot read properties of undefined (reading 'captureException')
device-watcher.0 2022-11-06 17:13:54.921 warn Error catched and sent to Sentry, error: [[createDataOfAllAdapter]] error: Cannot read properties of undefined (reading 'captureException')
device-watcher.0 2022-11-06 17:13:54.917 warn Error catched and sent to Sentry, error: [[getDeviceName]] error: The id "yeelight-2.0." is invalid. Ids are not allowed to end in "."

@ciddi89
Copy link
Collaborator

ciddi89 commented Nov 6, 2022

@FoGBaV irgendwie macht er da ärger. Hast du ein screenshot von dem object baum eines yeelights gerät?

@FoGBaV
Copy link

FoGBaV commented Nov 6, 2022

@FoGBaV irgendwie macht er da ärger. Hast du ein screenshot von dem object baum eines yeelights gerät?

Danke für den Tipp - das wars ! Beiden Objekten in Yeelight war ein "Ordner" komplett ohne Namen aber mit Inhalt. Hab ich gelöscht - nun kann ich auch Yeelight aktivieren. Sorry für den Aufwand ...

Dank dir ganz sakrisch für den super Adapter ! Viele Grüße
FoGBaV

@TyrionWarMage
Copy link
Author

@ciddi89 Mit der Git Version konnte ich nun auch bei mir den Fehler beheben. Ich hatte von 1.X nach 2.0.1 upgedated und die blacklist war fehlerhaft - leere Einträge. Löschen der Blacklist und neu Konfigurieren hat es behoben. Danke.

ciddi89 added a commit that referenced this issue Nov 12, 2022
-   added status to battery list
-   batt devices which are offline are now still included in the battery list
-   small improvements of translations
-   offline time settings: you can use 0 instead of -1 (it will be the new standard)
-   improvements of adaptername
-   fixed issues [#66](#66) & [#67](#67)
-   repaired blacklist notifications
-   added handling for blacklist object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants