Reputation: 41
I'm trying to add the dashboard nodes to node-red on a Beaglebone.
In several places on the Internet, instructions for adding features to node-red begin by saying "stop node-red". But they don't say how to do that.
On the Beaglebone Black WiFi, node-red v0.15.2 comes installed and starts automatically. So far as I can tell, the command
sudo node-red stop
should stop it, but this always results in a string of messages that end up with
19 May 16:13:05 - [warn] Communication server error: Error: listen EADDRINUSE :::1880
19 May 16:13:05 - [error] Unable to listen on http://127.0.0.1:1880/
19 May 16:13:05 - [error] Error: port in use
Nothing I've found tells how to get beyond this. The closest was a post that suggested running
ps -ef
and then killing all the node-red
processes, but the next post in that sequence indicated that the result was that they immediately restarted themselves.
What is the correct way to stop node-red on the Beaglebone?
Or more generally, how can I add the dashboard module to the existing node-red preinstalled on the Beaglebone Black?
Thanks!
Upvotes: 2
Views: 4520
Reputation: 59816
Node-RED is being run under SystemD as a service
use:
sudo service nodered stop
Also node-red stop
won't stop Node-RED it will just try and start a new instance with a flow files called stop
. The command you were probably looking for is node-red-stop
(notice the hyphen between red and stop).
Also you do not need to stop Node-RED to install a new set of nodes, you can just install them then restart Node-RED and it will pick up the new nodes. So install and kill should work,
Upvotes: 1