Community Hass.io Add-on: Node-RED

hassio-repository
hassio-addon
Tags: #<Tag:0x00007f204303c518> #<Tag:0x00007f204303c270>

#571

I am having problems by installing packages.

My config is:
{
“log_level”: “info”,
“credential_secret”: “Mypassword”,
“http_node”: {
“username”: “”,
“password”: “”
},
“http_static”: {
“username”: “”,
“password”: “”
},
“port”: 1880,
“ssl”: false,
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”,
“require_ssl”: false,
“system_packages”: [],
“npm_packages”: [
“node-red-contrib-telegrambot-home”
],
“init_commands”: []
}

But then I get the following errors when I try to start the add-on:

[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] 00-banner.sh: executing…

Hass.io Add-on: Node-RED v1.2.5
Flow-based programming for the Internet of Things
From: Community Hass.io Add-ons
By: Franck Nijhof [email protected]

armhf / HassOS 1.13 / HA 0.86.3 / SU 142 / stable

[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing…
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 02-updates.sh: executing…
INFO: You are running the latest version of this add-on
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] 10-requirements.sh: executing…
[cont-init.d] 10-requirements.sh: exited 0.
[cont-init.d] 20-config.sh: executing…
[cont-init.d] 20-config.sh: exited 0.
[cont-init.d] 50-remove-conflicts.sh: executing…
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
up to date in 3.008s
found 0 vulnerabilities
[cont-init.d] 50-remove-conflicts.sh: exited 0.
[cont-init.d] 80-system-packages.sh: executing…
[cont-init.d] 80-system-packages.sh: exited 0.
[cont-init.d] 81-npm-packages.sh: executing…
npm ERR! code ENETUNREACH
npm ERR! errno ENETUNREACH
npm ERR! request to https://registry.npmjs.org/node-red-contrib-telegrambot-home failed, reason: connect ENETUNREACH 2606:4700::6810:1a23:443 - Local (:::0)
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-01-29T15_30_35_905Z-debug.log
FATAL: Failed installing npm package node-red-contrib-telegrambot-home
[cont-init.d] 81-npm-packages.sh: exited 1.
[cont-finish.d] executing container finish scripts…
[cont-finish.d] 99-message.sh: executing…

            Oops! Something went wrong.

We are so sorry, but something went terribly wrong when
starting or running this add-on.

Be sure to check the log above, line by line, for hints.

[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.

I can’t seem to find the error log - but how to fix it? If I remove the node-red-contrib-telegrambot-home it starts fine. I did uninstall the add-on and then installed it again, and it seems to remember my flows, so it wasn’t completely uninstalled. Can I somehow remove Node Red completely and then install it again (I need to redo the flows anyway)?


#572

For those who still struggle with “login failed” problems:
There is an issue with the Node RED login, when special characters are used in the HA password.
See: https://github.com/hassio-addons/addon-node-red/issues/80

This problem hit me today (I’m new to Node Red) and all I had to do was change my HA password and avoid any special characters that would get URL-encoded.


#574

:tada: Release v1.2.6

Full Changelog

Changed

  • Updates node-red-contrib-home-assistant-websocket to v0.7.0 (#124)
  • Updates node-red-contrib-bigtimer to v2.1.4 (#125)

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck


#575

19-02-04 11:15:39 ERROR (SyncWorker_6) [hassio.docker.interface] Can’t install hassioaddons/node-red-armhf:1.2.6 -> 404 Client Error: Not Found (“no such image: hassioaddons/node-red-armhf:1.2.6: No such image: hassioaddons/node-red-armhf:1.2.6”).


#576

@Vlad The tag exists, see: https://hub.docker.com/r/hassioaddons/node-red-armhf/tags

Another reason why a 404 can occur in Docker: Not enough disk space to download, extract & install the requested image.


#577

:tada: Release v1.3.0

Full Changelog

Changed

  • Add option for dark mode (#122) (@tjorim) (@bonanitech)

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck


#578

SEE UPDATE Botttom

I just upgraded to 1.3.0

my node red now just loops and i cant get to the dashboard.

this is the error log

6 Feb 16:38:43 - [error] [server-state-changed:512098c4.3b3038] TypeError: Cannot read property 'addListener' of undefined
6 Feb 16:38:43 - [error] [server-state-changed:a0a3ef7b.154cc] TypeError: Cannot read property 'addListener' of undefined
6 Feb 16:38:43 - [warn] [chatbot-telegram-send:4f702743.252888] Missing or incomplete configuration in Telegram Receiver
6 Feb 16:38:43 - [error] [server-state-changed:94f8716e.17665] TypeError: Cannot read property 'addListener' of undefined
6 Feb 16:38:43 - [error] [server-state-changed:1ba2715.274898f] TypeError: Cannot read property 'addListener' of undefined
6 Feb 16:38:43 - [warn] [chatbot-telegram-send:b849cbb4.932ea8] Missing or incomplete configuration in Telegram Receiver
6 Feb 16:38:43 - [info] Started flows
6 Feb 16:38:45 - [red] Uncaught Exception:
6 Feb 16:38:45 - TypeError: Cannot read property 'getHours' of undefined
    at bigTimerNode.<anonymous> (/opt/node_modules/node-red-contrib-bigtimer/bigtimer.js:205:23)
    at emitOne (events.js:116:13)
    at bigTimerNode.emit (events.js:211:7)
    at Timeout._onTimeout (/opt/node_modules/node-red-contrib-bigtimer/bigtimer.js:866:9)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] 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 [email protected] 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/2019-02-06T03_38_45_387Z-debug.log

> [email protected] start /opt
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"

6 Feb 16:38:48 - [info] 

If i delete my flows.json i can get to the dashboard no problems, but when i import them back in it crashes almost straight away.

I rolled it back using hassio snapshot but im getting similar errors, but i can get to the dashboard but the flows arent working.

help please…

UPDATE:

seems to be working stable now having disabled all the flows with big timer, then recreated them all with new ones. I had big timer installed previously via NPM would this have caused the issue ?


#581

I have the asme problem with BigTimer after going to 1.3.0


#582

I’m having the same errors since the last update. Home Assistant was down when I got up this morning, have seen the same error messages as posted above with BigTimer. Thanks for the update for a fix, I will give it a try then I’m home from work tonight.


#583

:tada: Release v1.3.1

Full Changelog

Changed

  • Updates node-red-contrib-bigtimer to v2.1.6 (#130)

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck


#584

Thanks @frenck.
Big diffrence in cpu use when bigtimer works :slight_smile:

Before (Trouble started at midnight for me)

After latest release:


#585

:tada: Release v1.3.2

Full Changelog

Changed

  • Updates node-red-contrib-home-assistant-websocket to v0.7.1 (#131)
  • Updates node-red-contrib-bigtimer to v2.1.7 (#132)

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck


#586
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] 10-requirements.sh: executing... 
[cont-init.d] 10-requirements.sh: exited 0.
[cont-init.d] 20-config.sh: executing... 
[cont-init.d] 20-config.sh: exited 0.
[cont-init.d] 50-remove-conflicts.sh: executing... 
[cont-init.d] 50-remove-conflicts.sh: exited 0.
[cont-init.d] 80-system-packages.sh: executing... 
[cont-init.d] 80-system-packages.sh: exited 0.
[cont-init.d] 81-npm-packages.sh: executing... 
[cont-init.d] 81-npm-packages.sh: exited 0.
[cont-init.d] 82-user-scripts.sh: executing... 
[cont-init.d] 82-user-scripts.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
> [email protected] start /opt
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
Error loading settings file: /etc/node-red/config.js
Error: Cannot find module '/config/node-red/settings.js'
> [email protected] start /opt
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
Error loading settings file: /etc/node-red/config.js
Error: Cannot find module '/config/node-red/settings.js'
> [email protected] start /opt
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
Error loading settings file: /etc/node-red/config.js
Error: Cannot find module '/config/node-red/settings.js'
> [email protected] start /opt
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
Error loading settings file: /etc/node-red/config.js
Error: Cannot find module '/config/node-red/settings.js'
> [email protected] start /opt

No idea what I did wrong. The log kept saying that over and over again. I uninstalled and reinstalled and it’s still the same error. Deleted the node-red folder in hassio and it’s still the same. Running hassio 0.87.1 and the latest node-red version. The only thing I edited was the credential secret and disabled ssl. It worked in previous versions, so no clue I did?

Scratch that. Renamed the node-red folder into something else (it was still there even when I tried deleting it), reinstalled without issues.


#587

Hey all

does anyone know how to reset this error

The workspace contains some nodes that are not properly configured
there is 24 of them
most start with * [Alert Group] Change Lights (api-call-service)

So I imported someone else’s flow to play around i have since deleted them all but when I deploy i get this message

any help please ?


#588

How do you access !secrets in node red?