having a strange issue with node red. every time i try to deploy the flow my node red get stuck and only way to fix this is restart the node red.
I got a pc with 64gb ram and AMD Ryzen 4000 processor ( no other apps running).
any idea what might be going on.
there is nothing on the console.
If this isn't getting stuck during start up, there maybe an installed module (node) that is hooking into the
deploy event. Node RED nodes have the ability to hook in to the
it could be that such node is doing so, and is having problems completing its operation.
I say the above, as its strange why it is not happening at start up.
maybe disable some select nodes, and then try a 2nd deploy after, if after you are able to get a smooth deploy, you have found the culprit.
you could also change the deploy scope - say only modified nodes, so a full deploy isn't executed.
In a terminal window, stop NR then start it again. Then open a browser window and make a minor change and do a deploy.
Go back to the terminal window and copy the log from the start up to it's end and paste it in a reply.
Also, did you add a new node to your flow just before this started to happen?
19 Jun 11:14:23 - [info]
Welcome to Node-RED
19 Jun 11:14:23 - [info] Node-RED version: v2.2.2
19 Jun 11:14:23 - [info] Node.js version: v18.4.0
19 Jun 11:14:23 - [info] Windows_NT 10.0.22000 x64 LE
19 Jun 11:14:27 - [info] Loading palette nodes
19 Jun 11:14:33 - [info] Dashboard version 3.1.7 started at /ui
19 Jun 11:14:33 - [info] Settings file : C:\Users\b.node-red\settings.js
19 Jun 11:14:33 - [info] Context store : 'default' [module=memory]
19 Jun 11:14:33 - [info] User directory : \Users\b.node-red
19 Jun 11:14:33 - [warn] Projects disabled : editorTheme.projects.enabled=false
19 Jun 11:14:33 - [info] Flows file : \Users\b.node-red\flows.json
19 Jun 11:14:33 - [warn]
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
19 Jun 11:14:33 - [info] Server now running at http://127.0.0.1:1880/
19 Jun 11:14:33 - [info] Starting flows
adding close handler now
19 Jun 11:14:33 - [info] Started flows
19 Jun 11:14:39 - [info] Stopping flows
19 Jun 11:14:39 - [info] Stopped flows
19 Jun 11:14:39 - [info] Starting flows
adding close handler now
19 Jun 11:14:39 - [info] Started flows
nothing on the log.
- i have been using this node since last 4 years
- the only recent change is that i upgraded the pc. old PC had 16gb ram and new one has 64gb
Same flow works find on old pc as well as on RPI. this new pc does have windows 11( i wish i can go back in time and revert back to win 10 ) .
There is clearly a node, that is doing something when the flow is being restarted.
Whatever it is doing, it's getting stuck, which is causing the deploy to grind to a halt.
Disable some of your nodes (maybe some config nodes also), redeploy (twice) and see if it suddenly behaves correctly.
or set the deploy method, to only deploy changed nodes.
you mention its fine on other systems?
are these system using the same versions of your installed nodes?
if so, something environmental is affecting the close routines of the troublesome node.
You will need to isolate your installed nodes to find out what node is halting the deploy process.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.