-
Notifications
You must be signed in to change notification settings - Fork 1
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
Node red won't start up after install node from Home Assistant Hassio #9
Comments
To be able to find the cause, some questions. I could imagine it being related to the nodejs version you are running. |
|
Then run
|
Already thank for your help. I'm a complete new on this platform and have to learn a lot. My programming and configuration skills are not up-to date.
|
Oops, sorry I was refering to the wrong node, please try to filter on nefit or easy. It will probably be version 1.2.0 (I expect) |
Tested the same with a ubuntu 18.4 server in Oracle Virtualbox. This is working well. No errors. I think the error has somthing to do with the way Node-Red is supplied in Hassio. As i explained before is node-red installed as add-on in Hassio. See: https://community.home-assistant.io/t/community-hass-io-add-on-node-red/55023. I am going to post the error there and hope for a solution. |
OK, in the mean time I will also try to get a Hassio setup so that I can maybe detect what's going on to see if it has a relation with a library in the nefit module. |
Posted the error here. |
I thought it might be realted to running nwer versions of NodeJS. I have tested it also with Node 10 and confirmed that this works as expected. So the Node JS version does not seem to be the issue |
Frenk (Creator of Hassio add-on node-red) answerd:
The problem isn't solved now. Node Red refuses to run when loading the Nefit-Node. |
There is a seemingly related issue mentioned on the base library for nefit that I am using: Maybe they can clarify how they managed to solve the problem. |
The function mentioned seems to be removed in NodeJS 10 and deprecated since NodeJS 9. @tsien-bier What version of NodeJS is running in your setup? |
The log says:
So it has to be: v8.14.0 |
I tried Node 8.14 and this works, so the node version is not the issue. As stated in the other issue at the base nefit libraries, it must be related to one of the other plugins being outdated. You could try a clean setup of hassio/node-red with just the nefit-easy node. This should work. |
@tsien-bier I have tested a clean hassio + node-red setup, with just the nefit-easy2 module and everything works as expected. Another plausible cause could be the use of ssl; do you have ssl:"true" in your node-red addon config? Btw, I tested this with 1.4.0 of the nefit-easy2 module, I recently added some features and upgraded to a newer version of the nefit-commands library for this. It should not have impact, but you never know. So it might be good if you also retest using 1.4.0
|
I'm going to try the your suggestions. I didn't install any nodes via the palette, it is a clean install of hassio node-red install. So an other node can not be the issue. |
Tested it again with a clean node-red addon installation. Again the nefit node causes my node-red service to crash. After clicking install I get the massage "Nodes add to Pallet (Two Nefit nodes). Some seconds after that massage the message "Lost connection to server. Reconnect ...... The log looks the same as the first message in this Issue. |
Solved the issue now. I found a work-arround. In stead of adding the node fia the UI of node-red i placed the addon in the config file of hassio in the npm_packages section.:
Now the nefit node is in the Node-red UI and i can configure the node. But the node is not working as espected. I get no info from the Bosch Server. I come back here with more information. |
I have just published a new version 1.4.1 in which the peerDependency is removed. It is only needed to develop on the node, not for running it so it is redundant. Also, it seems that by default hassio adds a lot of packages already.
Btw, when I run npm audit on the nefit2 module itself, I get this result:
So the vulnerabilities must be coming from one of the already installed packages by hassio nodered addon. |
Hello Raimond, I found the same warnings in my log. But anyway, the nefit node is added to hassio node-red. Yesterday i already told that the node is not working as aspect-ed. The node connects to the Bosch service but but doesn't get information. I get in error in the debug pane. The same error i find back in de log:
I don't think i doe anything wrong
De status of the node is: Disconected. |
You probably have not configured the correct password? |
Changed the password. The problem was that i used the API password that i used with IFTTT. This password appear not to be the same as the mobile app. Everything is now working. I'm very happy i can now continue with my little hobby project at home. Thanks for your help and i wish you a good Sunday. |
Great, good to hear :-) |
After installing node_red-contrib-nefit-easy from the node-red configuration nodes - install tab node-red wont't come up again. The web-interfaces is unavailable. When i check the log i see te following;
11 Dec 20:52:32 - [info] Installing module: node-red-contrib-nefit-easy2, version: 1.3.0
11 Dec 20:52:54 - [info] Installed module: node-red-contrib-nefit-easy2
11 Dec 20:52:56 - [info] Added node types:
11 Dec 20:52:56 - [info] - node-red-contrib-nefit-easy2:nefit-easy
11 Dec 20:52:56 - [info] - node-red-contrib-nefit-easy2:nefit-easy-config
11 Dec 20:52:56 - [red] Uncaught Exception:
11 Dec 20:52:56 - TypeError: tls.convertNPNProtocols is not a function
at new TLSSocket (_tls_wrap.js:269:9)
at Server. (_tls_wrap.js:852:18)
at emitOne (events.js:116:13)
at Server.emit (events.js:211:7)
at TCP.onconnection (net.js:1570:8)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hassio-addon-node-red@ start:
node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hassio-addon-node-red@ 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-12-11T19_52_56_108Z-debug.log
What is wrong here? I used the component before. Then there was no problem en could use the installed components en connect to my Nefit Easy.
The text was updated successfully, but these errors were encountered: