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

Error in Log #236

Closed
jasimancas opened this issue Jul 31, 2018 · 20 comments
Closed

Error in Log #236

jasimancas opened this issue Jul 31, 2018 · 20 comments
Labels
problem Something isn't working

Comments

@jasimancas
Copy link

This is the error in 0.1.1:

/zigbee2mqtt-0.1.1/node_modules/zcl-packet/lib/foundation.js:683
        ru[dataType](name)(this);
                    ^
TypeError: ru[dataType] is not a function
    at Dissolve.<anonymous> (/zigbee2mqtt-0.1.1/node_modules/zcl-packet/lib/foundation.js:683:21)
    at Dissolve._transform (/zigbee2mqtt-0.1.1/node_modules/dissolve/index.js:80:16)
    at Dissolve.Transform._read (/zigbee2mqtt-0.1.1/node_modules/dissolve/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at Dissolve.Transform._write (/zigbee2mqtt-0.1.1/node_modules/dissolve/node_modules/readable-stream/lib/_stream_transform.js:172:12)
    at doWrite (/zigbee2mqtt-0.1.1/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:279:12)
    at writeOrBuffer (/zigbee2mqtt-0.1.1/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:266:5)
    at Dissolve.Writable.write (/zigbee2mqtt-0.1.1/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:211:11)
    at Dissolve.Writable.end (/zigbee2mqtt-0.1.1/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:426:10)
    at FoundPayload._getObj (/zigbee2mqtt-0.1.1/node_modules/zigbee-shepherd/node_modules/zcl-packet/lib/foundation.js:242:12)
    at getObjCB (/zigbee2mqtt-0.1.1/node_modules/zigbee-shepherd/node_modules/zcl-packet/lib/foundation.js:51:22)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR!
 zigbee2mqtt@0.1.1 start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the zigbee2mqtt@0.1.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-07-31T10_50_57_391Z-debug.log
[2018-07-31T12:50:57.489Z] PM2 log: App [npm] with id [0] and pid [45], exited with code [1] via signal [SIGINT]
[2018-07-31T12:50:57.493Z] PM2 log: Starting execution sequence in -fork mode- for app name:npm id:0
[2018-07-31T12:50:57.498Z] PM2 log: App name:npm id:0 online
> zigbee2mqtt@0.1.1 start /zigbee2mqtt-0.1.1
> node index.js
@dodacs
Copy link

dodacs commented Jul 31, 2018

Same here. It was working fine. I just update it to the latest and it stop working.

spinlock: true []
/opt/zigbee2mqtt/node_modules/zcl-packet/lib/foundation.js:683
rudataType(this);
^

TypeError: ru[dataType] is not a function
at Dissolve. (/opt/zigbee2mqtt/node_modules/zcl-packet/lib/foundation.js:683:21)
at Dissolve._transform (/opt/zigbee2mqtt/node_modules/dissolve/index.js:80:16)
at Dissolve.Transform._read (/opt/zigbee2mqtt/node_modules/dissolve/node_modules/readable-stream/lib/_stream_transform.js:184:10)
at Dissolve.Transform._write (/opt/zigbee2mqtt/node_modules/dissolve/node_modules/readable-stream/lib/_stream_transform.js:172:12)
at doWrite (/opt/zigbee2mqtt/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:279:12)
at writeOrBuffer (/opt/zigbee2mqtt/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:266:5)
at Dissolve.Writable.write (/opt/zigbee2mqtt/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:211:11)
at Dissolve.Writable.end (/opt/zigbee2mqtt/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:426:10)
at FoundPayload._getObj (/opt/zigbee2mqtt/node_modules/zigbee-shepherd/node_modules/zcl-packet/lib/foundation.js:242:12)
at getObjCB (/opt/zigbee2mqtt/node_modules/zigbee-shepherd/node_modules/zcl-packet/lib/foundation.js:51:22)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@0.1.1 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@0.1.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2018-07-31T11_59_44_090Z-debug.log

@ryanbeaton
Copy link

Yes there is some code changes going on. Most comments in #150

Sent with GitHawk

@Koenkk
Copy link
Owner

Koenkk commented Jul 31, 2018

Are you on the master or dev branch?

@jasimancas
Copy link
Author

jasimancas commented Jul 31, 2018

@Koenkk Master, update to 0.1.1 today, and dont work anything with automations.

@Koenkk
Copy link
Owner

Koenkk commented Jul 31, 2018

What devices do you have paired?

EDIT: did you do a rm -rf node_modules && npm install after updating?

@talondnb
Copy link

This is also happening with the Hassio addon.

@jasimancas
Copy link
Author

@Koenkk no, do this?

@Koenkk
Copy link
Owner

Koenkk commented Jul 31, 2018

@jasimancas yes, can you check if that solves the issue?

@jasimancas
Copy link
Author

@Koenkk I use Hassio Addons, where execute this?

@Koenkk
Copy link
Owner

Koenkk commented Jul 31, 2018

@jasimancas hassio addon should be fine, need to check if I can reproduce this issue.

@Koenkk
Copy link
Owner

Koenkk commented Jul 31, 2018

@dodacs which device did you try to pair?

@jasimancas
Copy link
Author

@Koenkk
Error Log.txt

This is the complete log, with devices.

@mdroberts1243
Copy link

What I see is a bit different (using hass.io addon):

/zigbee2mqtt-0.1.1/node_modules/zcl-packet/lib/foundation.js:297
dataTypeStr = zclId.dataType(dataType).key;
^
TypeError: Cannot read property 'key' of undefined
at ensureDataTypeString (/zigbee2mqtt-0.1.1/node_modules/zcl-packet/lib/foundation.js:297:47)
at getDataType (/zigbee2mqtt-0.1.1/node_modules/zcl-packet/lib/foundation.js:307:16)
at Dissolve. (/zigbee2mqtt-0.1.1/node_modules/zcl-packet/lib/foundation.js:682:24)

Posted the whole log to the addon githttps://github.com/danielwelch/hassio-zigbee2mqtt/issues/42

Koenkk added a commit that referenced this issue Jul 31, 2018
@Koenkk
Copy link
Owner

Koenkk commented Jul 31, 2018

Version 0.1.2 should fix this issue.

For hassio users: @danielwelch can you update the hassio addon to 0.1.2?

@Koenkk Koenkk added the problem Something isn't working label Jul 31, 2018
@danielwelch
Copy link
Contributor

I’ll do my best to update the add-on tonight!

@jasimancas
Copy link
Author

Thanks guys, waiting the update :)

@danielwelch
Copy link
Contributor

@dodacs
Copy link

dodacs commented Jul 31, 2018

@Koenkk It was just my initial test with the system before migrate everything. I had 2 Osram bulbs and 1 Lutron Remote Connected Bulb.

I can confirm that v0.1.2 solved my problem.

Thank you for the quick fix and the amazing work.

@mdroberts1243
Copy link

I'm working again with the v0.1.2 fix.

@Koenkk Koenkk closed this as completed Aug 1, 2018
@Koenkk
Copy link
Owner

Koenkk commented Aug 1, 2018

Thanks all!

wilmardo pushed a commit to wilmardo/zigbee2mqtt that referenced this issue Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants