Deploy too long in a Raspberry device

Hi Dears,

I have a node-red application running successfully on a Raspbian in a Raspberry PI 4. The problem is that when I make any change to a flow or subflow it takes a long time to complete the deployment (15 minutes). Running on my notebook, the deployment is immediate. Any suggestions? Below some information about.

Device: Raspberry PI-4
Memory: 6.42GB Free: 2.71GB
SD Card: 53GB Used: 3.6GB
Other tasks:None
Node-Red Version: 1.2.9
Node.JS Version: 10.23.1
Flows: Read data from PLC and insert into MS-SQL-Server Tables
Deploy Type Used: Modified Nodes

Thanks,

Roberto

Have you checked the Node-RED log for issues?

These are extremely old versions that should no longer be in use.

Also run top in a command window to see if anything is hogging the processor.

What setting on the Deploy tab have you set?

If it is 'Full' try changing it to 'Modified Floos' and see if that makes a difference.

Thanks Julian,

I will update the version to the latest version.

Thanks Paul,

I was already using the 'Modified Flows' option. But the time was too long also with this option.

Have you ruled out network latency? I occasionally have the same issue with a device and figured out rebooting my router fixed it.

Thanks everyone. I installed version 4.05 of Node-Red and 18.20.5 of node.js on Raspberry and everything worked. Deployment time is now immediate.

Best Regards,

Roberto

1 Like

In my previous installation I had node-red starting automatically with the raspberry boot. In this new installation, even repeating the same commands I can't get it to execute. It gives the following error: 'Process: 572 ExecStart=/usr/bin/env node-red-pi (code=exited, status=127)'. Any suggestions?

Did you use the official installer script?

I think so. I used 'npm install -g --unsafe-perm node-red'

That does not seem to be the official Raspberry Pi install script as described at https://nodered.org/docs/getting-started/raspberrypi

I reinstalled node-red with this oficial script, but when I run the script node-red-start it seems that it does not find the executable file. Shows the message '/usr/bin/env: ‘node-red’: No such file or directory'

There are several possible ways that Node-red can be started:
/etc/systemd/system/multi-user.target.wants/nodered.service executes /usr/bin/env node-red-pi
/usr/bin/node-red-start executes node-red-pi
/usr/bin/node-red-pi executes /usr/bin/env node <some jiggery-pokery with the path>/red.js
and node-red is interpreted by node and seems to do <some (different) jiggerypokery>/red.js

I can't see where the message you report comes from.

Post the log file that the installer should have created, /var/log/nodered-install.log or something similar, I am on my phone so can't check.

Dears,

I discovered the problem. I had installed NVM. And in one of the error logs there was a message saying that start at boot does not work with NVM. I reinstalled Node-Red without NVM and it worked.

Thanks everyone,

Roberto

1 Like