Closed drftg closed 5 months ago
pid 44 is a very standard/simple ping request... I have no clue why that would even take long.
My guess is it has something to do with the version of curl 8.5.0.
When executing the PID 44 command from shell I get no result (just hangs).
When I try that command from the add-on vscode (v5.15.0) which has curl v7.88.1 the command returns {result: "ok", data: {}}
Hi,
I've noticed same problem when nodered17.0.0 was published but didn't have time to report it. Now we have 17.0.2 - but for me issue is exact the same.
After upgrading to 17.0.0 or 17.0.2 - nodered addon will never start. HomeAssistant supervised is running as docker images on Synology DSM. Same as nodered addon HomeASsistant Core 2024.1.2 Supervisor 2023.12.0
When addon nodered is running 16.0.2 release then it is running stable for long time without any issues. When running nodered16.0.2 for just few minutes (3-4 minutes) CPU and memory load is low (number of processes is relatively small). Curl version is 8.4.0 and then curl --fail http://127.0.0.1:46836 command is returning a license agreement.
When I upgrade nodered to 17.0.2 (now) it is starting for longer time (and actually it never starts completely). After 12-13 minutes CPU usage is so high that container is killed by docker and it is booting again. After those 12-13 minutes CPU usage is HIGH and mostly consumed by curl processes. On nodered17.0.2 Curl version is 8.5.0 and indeed curl --fail http://127.0.0.1:46836 is not returning any result (it hangs?)
I've tried this command curl --fail http://127.0.0.1:46836 from z-wave container (where curl is 8.5.0 ) and at least there I"m receving an error: "Connection refused".
Attached are: 1) log from booting nodered 16.0.2 (addon_a0d7b954_nodered-16.0.2.txt) 2) log from booting nodered 17.0.2 (addon_a0d7b954_nodered-17.0.2.txt) 3) screenshots for nodered16.0.2 showing top, ps from within container as from Docker point of view (nodered-16.0.2-DSM.jpg, nodered16.0.2-top.jpg, nodered16.0.2-ps.jpg, nodered16.0.2-DSM-ps.jpg amd nodered16.0.2-curl.jpg). 4) screenshots for nodered17.0.2 showing top, ps from within container as from Docker point of view ( nodered-17.0.2-DSM-ps.jpg, nodered-17.0.2-DSM.jpg, nodered17.0.2-curl.jpg, nodered17.0.2-ps.jpg, nodered17.0.2-top.jpg) 5) screenshots showing curl command executed from zwave container (zwave-curl).
Would like to help more and provide any additional details - as I would like to keep nodered up to date as I'm using it and autoupdating it since 14.0.1 release (at least this is the oldest nodered backup which I have) and untill 17.0.0 release there was no issues.
Please let me know if anything else is needed to further analyze this issue?
addon_a0d7b954_nodered-17.0.2.txt addon_a0d7b954_nodered-16.0.2.txt
This seems to be a problem specific to Synology. See https://info.linuxserver.io/issues/2023-12-30-synology/
The workaround for it seems to be effective. In a shell within the docker container (before is overheats) run
apk add c-ares -u --repository=https://dl-cdn.alpinelinux.org/alpine/edge/main
After restarting the container the Node-RED addon starts up
Hi,
THanks for pointing us to issue with curl but this still is not solving the issue.
After upgrading to nodered17.0.2 I've checked c-ares module version (it was 1.22) After issuing apk add command c-ares was upgraded to 1.24
Once c-ares is at 1.24 - curl (curl --fail http://127.0.0.1:46836) is not hanging anymore - but there is an info "could not connect to server" - whereas in nodered16.0.2 same curl command is returing OpenJS foundataion lic agreement.
After restarting container - c-ares version is reverting back to 1.22 causing curl command to hang again (and causing very high CPU usage).
Having 17.0.2 with c-ares upgraded (without reboot and with container reboot) - all the time container is not booting completed (correctly). Only those 3 steps are visible in the log:
stderr,s6-rc: info: service base-addon-banner: starting stderr,s6-rc: info: service s6rc-oneshot-runner successfully started stderr,s6-rc: info: service s6rc-oneshot-runner: starting
@drftg is this workaround working for you and nodered17.0.2 is booting properly on your Synology NAS ?
@mmarcines
Indeed, unfortunately things went bad for me too in version 17.0.2 and the addon keeps stopping itself
-----------------------------------------------------------
Add-on version:
You are running the latest version of this add-on.
System: ( / )
Home Assistant Core:
Home Assistant Supervisor:
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-nginx: starting
s6-rc: info: service init-customizations: starting
2024/01/15 19:15:50 invalid character '}' looking for beginning of value
s6-rc: warning: unable to start service init-nginx: command exited 1
s6-rc: info: service init-customizations successfully started
s6-rc: info: service init-nodered: starting
[19:15:51] WARNING:
[19:15:51] WARNING: Direct access mode is disabled, Node-RED Dashboard
[19:15:51] WARNING: will not work!
[19:15:51] WARNING:
[19:15:51] WARNING: Please assign a port in the Network section of this
[19:15:51] WARNING: add-on configuration.
[19:15:51] WARNING:
up to date, audited 1 package in 1s
found 0 vulnerabilities
s6-rc: info: service init-nodered successfully started
s6-rc: info: service nodered: starting
s6-rc: info: service nodered successfully started
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
s6-rc: info: service nodered: stopping
[19:15:53] INFO: Service Node-RED exited with code 256 (by signal 15)
s6-rc: info: service nodered successfully stopped
s6-rc: info: service init-nodered: stopping
s6-rc: info: service init-nodered successfully stopped
s6-rc: info: service init-customizations: stopping
s6-rc: info: service init-customizations successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
Hmmmm
Patched again, restarted again and now it seems to work again. This is not very stable (but I am not touching it again for now!)
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting
-----------------------------------------------------------
Add-on: Node-RED
Flow-based programming for the Internet of Things
-----------------------------------------------------------
Add-on version: 17.0.2
You are running the latest version of this add-on.
System: null (amd64 / qemux86-64)
Home Assistant Core: 2024.1.3
Home Assistant Supervisor: 2023.12.1
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-nginx: starting
s6-rc: info: service init-customizations: starting
s6-rc: info: service init-customizations successfully started
s6-rc: info: service init-nodered: starting
s6-rc: info: service init-nginx successfully started
up to date, audited 1 package in 1s
found 0 vulnerabilities
s6-rc: info: service init-nodered successfully started
s6-rc: info: service nodered: starting
s6-rc: info: service nodered successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
[19:28:43] INFO: Starting Node-RED...
s6-rc: info: service legacy-services successfully started
> start
> node $NODE_OPTIONS node_modules/node-red/red.js --settings /etc/node-red/config.js
15 Jan 19:28:51 - [info]
Welcome to Node-RED
===================
15 Jan 19:28:51 - [info] Node-RED version: v3.1.3
15 Jan 19:28:51 - [info] Node.js version: v18.19.0
15 Jan 19:28:51 - [info] Linux 3.10.108 x64 LE
15 Jan 19:28:52 - [info] Loading palette nodes
15 Jan 19:28:55 - [info] Node-RED Contrib Theme Collection version: v3.1.8
15 Jan 19:29:04 - [info] Dashboard version 3.6.2 started at /endpoint/ui
15 Jan 19:29:09 - [info] Settings file : /etc/node-red/config.js
15 Jan 19:29:09 - [info] Context store : 'default' [module=memory]
15 Jan 19:29:09 - [info] User directory : /config/
15 Jan 19:29:09 - [warn] Projects disabled : editorTheme.projects.enabled=false
15 Jan 19:29:09 - [info] Flows file : /config/flows.json
15 Jan 19:29:09 - [warn]
@drftg by saying patched you mean APK add command for c-ares? I've tried that five times during the day and all attemps ended at
s6-rc: info: service base-addon-banner: starting
And no further logs (and highe CPU).
After restarting container c-ares was reverting back to originał release causing curl command to hang.
How are you restarting container so c-ares is not reverting to initial release?
@mmarcines: restart using the docker gui provided by synology. Do not do it via HA as that initiates a new instance. I think that is why you are seeing a revert to the initial version of c-ares
I've rebooted container with reboot command (executed from inside container) and the other option used by me was Docker interface in DSM (restarting as shown on screenshot). Both causing c-ares being revertet to initial version
That is exactly how I did it. My Synology: DS916+ DSM 7.1.1-42962 Update 6
Weird. Have the same hardware and software....
Today I've upgraded HomeASsistant Supervisor to 2023.12.1 and nodered to 17.0.3 - and it looks like the issue no longer exists. Nodered addon is booting properly and after its uptime is already 15 minutes and CPU usage is only 0,5% ;-)
I did a "normal" update to 17.0.4 and everything seems to work without hiccups
After update to v17.0.0 my cpu got hot without any working automations.
No matter the loglevel, the only log I can catch is
Looking at the processes I see this:
PID 44 takes about 20% cpu. After it started multiple processes
curl --fail http://127.0.0.1:46836
the cpu is at max and I have to stop the container.I can ping supervisor.
wget http://supervisor/supervisor/ping
gets a result OKwget http://127.0.0.1:46836
results in "Connection Refused"What else can I try to get more information about why cpu is at max?
Steps to reproduce
I am running HA on a Synology NAS