Can anyone diagnose Node-red not running on Windows?

I have installed Node-red on a Windows 10 PC.
Because it's thousands of miles away everything is done over Teamviewer.
If I type node-red in a command window it runs and a browser opens localhost:1880.

To run it automatically I have followed the instructions to install nssm and setup a service.
Manually I can start this service, it says it is successful but the editor doesnt show up.:
image

The path to the executable in nssm is c:\Users\username\AppData\Roaming\npm\node-red.cmd.
If I type that full pathname in a non administrator window, Node-red starts up (even though the nssm service claims to be running)

The startup output:

c:\temp>c:\Users\XXXXX\AppData\Roaming\npm\node-red.cmd
2 Jul 19:43:50 - [info]

Welcome to Node-RED
===================

2 Jul 19:43:50 - [info] Node-RED version: v3.1.9
2 Jul 19:43:50 - [info] Node.js  version: v20.13.1
2 Jul 19:43:50 - [info] Windows_NT 10.0.19045 x64 LE
2 Jul 19:43:51 - [info] Loading palette nodes
2 Jul 19:43:52 - [info] Settings file  : C:\Users\XXXXXX\.node-red\settings.js
2 Jul 19:43:52 - [info] Context store  : 'default' [module=memory]
2 Jul 19:43:52 - [info] User directory : \Users\XXXXXX\.node-red
2 Jul 19:43:52 - [warn] Projects disabled : editorTheme.projects.enabled=false
2 Jul 19:43:52 - [info] Flows file     : \Users\XXXXXX\.node-red\flows.json
2 Jul 19:43:52 - [info] Server now running at http://127.0.0.1:1880/
2 Jul 19:43:52 - [warn]

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.
[shortened]
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

2 Jul 19:43:52 - [info] Starting flows
2 Jul 19:43:52 - [info] Started flows
2 Jul 19:43:53 - [info] [mqtt-broker:hivemq] Connected to broker: mqtts://5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc.s1.eu.hivemq.cloud:8883

So nssm thinks it's doing something but it's not running Node-red.
What can I do?

Have you checked the event log for messages from NSSM ?

Maybe show us what the noe-red.cmd file contains

I have not used NSSM - but usually with those sort of service managers there are options for selecting who the service will run as and the location in which to start it - have these been set ?

Can you give us a screenshot of the NSSM config for the NR service ?

Craig

1 Like

Alas the TeamViewer opportunity has closed for now, I'll try and get what you asked for asap.

I can't do that right now, but if I run that cmd file manually Node-red starts up OK so I assume it's correct.

I use NSSM to start Node Red (5 instances) automatically when PC powers up or restarts. if you need any help in debugging, please let me know. I am not SME, but can sure tell you what is the setup i have done.

1 Like

Thank you. It's going to be a while till I can get back onto the PC, I'll get back to you :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.