Node-RED dashboard starts with a long delay

Hi, I’m using the NR addon within HASS on an RPi4 with 4Gig RAM. HASS and RN are the latest version. Everything works fine but RN starts absolutely slow. In the past it was fast. I use a relativly fresh installation with only one simple flow in RN (switch → light - on/off).

I have the problem that it takes a long time from clicking on the NR button in the sidebar until the RN dashboard is displayed. It takes 2 minutes and often longer, even though I haven’t configured anything in RN yet. The CPU load is about 5% and RAM is about 25% utilized. To me, that means the RPi’s performance shouldn’t be the issue. It takes more than 1 1/2 minutes until something from RN can be seen (often more) and then “half an eternity” until the dashboard can be operated.
Does anyone know why that is?

Thanks, Gerald

This sounds like a typical IO timeout, but if it is disc IO, network IO or some other kind is hard to tell.
What does the logs say?

Thanks Wally.
I’m a beginner in HA and NR. Please tell me which log I should look into.
No inconsistencies can be seen in the log file that shows the start of the addon. The run-up takes about 15 seconds. In the superviserlog only the start/stop events are list.

When I start the dashboard, which takes so long, I don’t see any additional entries related to NR or anything else that might indicate errors.

Gerald

I would have guessed the NodeRed logs had something,but if they are clean, then it is hard to go further here on the distance.
Do you connect to the IP address or the URL?

I installed the NodeRED addon from the addon store. It was not required to enter IP address or URL. I configured only the secret.
NodeRED runs on the local host, the same on which HA is running. Think that the ‘localhost’ is is used.

BTW: I did not see further logs generated from NodeRED during execution, only HA logs regarding NR start-up. How can I access further logfiles generated by NR , if any?

You are running the latest version of this add-on.
 System: Home Assistant OS 9.4  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2023.1.1
 Home Assistant Supervisor: 2022.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
Log level is set to DEBUG
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
patching file nodes/ui_base.html
Hunk #1 succeeded at 1164 (offset 633 lines).
s6-rc: info: service init-nginx successfully started
up to date, audited 61 packages in 2s
2 packages are looking for funding
  run `npm fund` for details
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
s6-rc: info: service legacy-services successfully started
[22:08:16] INFO: Starting Node-RED...
> start
> node $NODE_OPTIONS node_modules/node-red/red.js --settings /etc/node-red/config.js
6 Jan 22:08:20 - [info] 
Welcome to Node-RED
===================
6 Jan 22:08:20 - [info] Node-RED version: v3.0.2
6 Jan 22:08:20 - [info] Node.js  version: v18.12.1
6 Jan 22:08:20 - [info] Linux 5.15.76-v8 arm64 LE
6 Jan 22:08:22 - [info] Loading palette nodes
6 Jan 22:08:23 - [debug] Module: node-red-contrib-boolean-logic 0.0.3 /config/node-red/node_modules/node-red-contrib-boolean-logic
6 Jan 22:08:23 - [debug] Module: node-red-contrib-wemo-emulator 1.0.4 /config/node-red/node_modules/node-red-contrib-wemo-emulator
6 Jan 22:08:23 - [debug] Module: @node-red-contrib-themes/theme-collection 3.0.6 /opt/node_modules/@node-red-contrib-themes/theme-collection
6 Jan 22:08:23 - [debug] Module: node-red-contrib-bigtimer 2.8.3 /opt/node_modules/node-red-contrib-bigtimer
6 Jan 22:08:23 - [debug] Module: node-red-contrib-cast 0.2.17 /opt/node_modules/node-red-contrib-cast
6 Jan 22:08:23 - [debug] Module: node-red-contrib-counter 0.1.6 /opt/node_modules/node-red-contrib-counter
6 Jan 22:08:23 - [debug] Module: node-red-contrib-home-assistant-websocket 0.48.0 /opt/node_modules/node-red-contrib-home-assistant-websocket
6 Jan 22:08:23 - [debug] Module: node-red-contrib-influxdb 0.6.1 /opt/node_modules/node-red-contrib-influxdb
6 Jan 22:08:23 - [debug] Module: node-red-contrib-interval-length 0.0.6 /opt/node_modules/node-red-contrib-interval-length
6 Jan 22:08:23 - [debug] Module: node-red-contrib-modbus 5.25.0 /opt/node_modules/node-red-contrib-modbus
6 Jan 22:08:23 - [debug] Module: node-red-contrib-moment 4.0.0 /opt/node_modules/node-red-contrib-moment
6 Jan 22:08:23 - [debug] Module: node-red-contrib-persistent-fsm 1.2.1 /opt/node_modules/node-red-contrib-persistent-fsm
6 Jan 22:08:23 - [debug] Module: node-red-contrib-sunevents 3.0.3 /opt/node_modules/node-red-contrib-sunevents
6 Jan 22:08:23 - [debug] Module: node-red-contrib-time-range-switch 1.2.0 /opt/node_modules/node-red-contrib-time-range-switch
6 Jan 22:08:23 - [debug] Module: node-red-dashboard 3.3.0 /opt/node_modules/node-red-dashboard
6 Jan 22:08:23 - [debug] Module: node-red-node-base64 0.3.0 /opt/node_modules/node-red-node-base64
6 Jan 22:08:23 - [debug] Module: node-red-node-email 1.18.4 /opt/node_modules/node-red-node-email
6 Jan 22:08:23 - [debug] Module: node-red-node-feedparser 0.3.0 /opt/node_modules/node-red-node-feedparser
6 Jan 22:08:23 - [debug] Module: node-red-node-ping 0.3.3 /opt/node_modules/node-red-node-ping
6 Jan 22:08:23 - [debug] Module: node-red-node-random 0.4.1 /opt/node_modules/node-red-node-random
6 Jan 22:08:23 - [debug] Module: node-red-node-serialport 1.0.1 /opt/node_modules/node-red-node-serialport
6 Jan 22:08:23 - [debug] Module: node-red-node-smooth 0.1.2 /opt/node_modules/node-red-node-smooth
6 Jan 22:08:23 - [debug] Module: node-red-node-suncalc 1.0.1 /opt/node_modules/node-red-node-suncalc
6 Jan 22:08:23 - [debug] Module: node-red-node-twitter 1.2.0 /opt/node_modules/node-red-node-twitter
6 Jan 22:08:28 - [info] Dashboard version 3.3.0 started at /endpoint/ui
6 Jan 22:08:29 - [info] Settings file  : /etc/node-red/config.js
6 Jan 22:08:29 - [info] Context store  : 'default' [module=memory]
6 Jan 22:08:29 - [info] User directory : /config/node-red/
6 Jan 22:08:29 - [warn] Projects disabled : editorTheme.projects.enabled=false
6 Jan 22:08:29 - [info] Flows file     : /config/node-red/flows.json
6 Jan 22:08:29 - [debug] loaded flow revision: 0a89b73a20c9da78652be158cbf43ebd
6 Jan 22:08:29 - [debug] red/runtime/nodes/credentials.load : user provided key
6 Jan 22:08:29 - [debug] red/runtime/nodes/credentials.load : keyType=user
6 Jan 22:08:29 - [warn] Encrypted credentials not found
6 Jan 22:08:29 - [info] Server now running at http://127.0.0.1:46836/
6 Jan 22:08:29 - [info] Starting flows
6 Jan 22:08:29 - [debug] red/nodes/flows.start : starting flow : global
6 Jan 22:08:29 - [debug] red/nodes/flows.start : starting flow : c189e19d1243a3fd
6 Jan 22:08:29 - [debug] red/nodes/flows.start : starting flow : 8989d796ec4a81c3
6 Jan 22:08:29 - [debug] [api-call-service:Leuchte AZ EIN] instantiated node, name: Leuchte AZ EIN
6 Jan 22:08:29 - [debug] [api-call-service:Leuchte AZ AUS] instantiated node, name: Leuchte AZ AUS
6 Jan 22:08:29 - [info] Started flows
[22:08:29] INFO: Starting NGinx...
6 Jan 22:08:34 - [info] [server:Home Assistant] Connecting to http://supervisor/core
6 Jan 22:08:34 - [info] [server:Home Assistant] Connected to http://supervisor/core
6 Jan 22:08:34 - [debug] [server:Home Assistant] States Loaded
6 Jan 22:08:34 - [debug] [server:Home Assistant] Integration: loaded
6 Jan 22:08:34 - [debug] [server:Home Assistant] Services Loaded
6 Jan 22:08:34 - [debug] [server:Home Assistant] HA State: running