problem auto starting node-red with pm2

460 views
Skip to first unread message

Ruben Desmet

unread,
Apr 14, 2018, 2:45:57 PM4/14/18
to Node-RED
Hi,

on my Ubuntu 16.04 i followed the procedure "Starting Node-RED on boot" from https://nodered.org/docs/getting-started/running
The problem is i don't get node-red in the list.

the output of the procedure is:

which node-red : /usr/bin/node-red

pm2 start /usr/bin/node-red -- -v : 2.10.2 (what is that number?)

pm2 info node-red : [PM2][WARN] node-red doesn't exist

pm2 logs node-red : [TAILING] Tailing last 15 lines for [node-red] process (change the value with --lines option)
[PM2][ERROR] No file to stream for app [node-red], exiting.

pm2 list : 
┌──────┬──────┬────────┬───┬─────┬────────┐
│ Name │ mode │ status │ ↺ │ cpu │ memory │
└──────┴──────┴────────┴───┴─────┴────────┘
 Use `pm2 show <id|name>` to get more details about an app

nothing in the list.

What could be the problem?

thanks,
Ruben

Dave C-J

unread,
Apr 14, 2018, 3:08:24 PM4/14/18
to node...@googlegroups.com
Hi

Do you actually want to use pm2 or just to autorun NodeRED at start ? If the latter then the systemd approach will probably work better. See 
--
Sent from phone.

Ruben Desmet

unread,
Apr 14, 2018, 6:05:59 PM4/14/18
to Node-RED
Hi,

Thank you for your reaction.
I will try your suggestion tomorrow.
But i'm still curious, i would like to know why it doesn't work since it is clearly described as the "way to go" on the official node-red website.

Op zaterdag 14 april 2018 21:08:24 UTC+2 schreef Dave C-J:

Ruben Desmet

unread,
Apr 15, 2018, 4:53:55 AM4/15/18
to Node-RED
Hi,

It works.
Off course i had to change some settings in the nodered.service file.

thank you

Op zondag 15 april 2018 00:05:59 UTC+2 schreef Ruben Desmet:

Dave C-J

unread,
Apr 15, 2018, 6:31:55 AM4/15/18
to node...@googlegroups.com
Hi

great - glad that's ok.
The docs do suggest Ubuntu users may want to use systemd... but maybe we should make that a bit more forceful...


And indeed it should work under pm2 also - would need investigation.
Reply all
Reply to author
Forward
0 new messages