Assuming you setup your folders like described in that thread (a few posts above the one you linked to) (this post) then you would set your NSSM commands to run each instance in the same way as if you were running it from a cmd window
Path : <same as service 1>
Startup Directory : Second Folder (Same User)
Arguments : -userDir c:\users\<same user as service1>\<second folder> second.json > c:\temp\node-red2.log
I dont know but it is having a huge delay. (3 minutes)
attaching log below may be you can help me understand if there is any issue.
taking 3 minutes to load pallet nodes (or start loading?)
there is a delay in my first service also, but that was a bigger flow file, so i had assumed the delay is natural. but this second flow is very small
24 Jan 15:40:59 - [info] Windows_NT 10.0.19042 x64 LE
24 Jan 15:44:09 - [info] Loading palette nodes
24 Jan 15:40:59 - [info]
Welcome to Node-RED
===================
24 Jan 15:40:59 - [info] Node-RED version: v2.1.4
24 Jan 15:40:59 - [info] Node.js version: v14.17.3
24 Jan 15:40:59 - [info] Windows_NT 10.0.19042 x64 LE
24 Jan 15:44:09 - [info] Loading palette nodes
24 Jan 15:44:11 - [info] Settings file : c:\users\oee.Hosur\.node-red2\settings.js
24 Jan 15:44:11 - [info] Context store : 'default' [module=memory]
24 Jan 15:44:11 - [info] User directory : c:\users\oee.Hosur\.node-red2
24 Jan 15:44:11 - [warn] Projects disabled : editorTheme.projects.enabled=false
24 Jan 15:44:11 - [info] Flows file : C:\Users\OEE.Hosur\.node-red2\db.json
24 Jan 15:44:11 - [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
your credentials.
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.
---------------------------------------------------------------------
24 Jan 15:44:11 - [info] Server now running at http://127.0.0.1:1881/
24 Jan 15:44:11 - [info] Starting flows
If you set the log level to trace in settings.js then it will show more information when loading the nodes. Probably something is holding up the initialisation of one of the nodes. Possibly a network timeout or something.
Wow, really. Indeed the PC which runs my node red flows does not have continuous internet, it is connected to the modbus TCP server through LAN where it collects sensor data (with no internet). I was connecting it as and when required to download some nodes or copying the outputs to post in this forum.