Hello,
I'm using Armbian on Orange Pi Zero and have Node-red running as a server for a healthy 6 months.
To cut a long story short, I had to reinstall everything only to encouter the following at startup problem:
root@orangepizero:~# node-red -start
28 Apr 15:18:03 - [info]
Welcome to Node-RED
28 Apr 15:18:03 - [info] Node-RED version: v1.0.6
28 Apr 15:18:03 - [info] Node.js version: v10.15.2
28 Apr 15:18:03 - [info] Linux 5.4.20-sunxi arm LE
28 Apr 15:18:10 - [info] Loading palette nodes
28 Apr 15:18:17 - [info] Dashboard version 2.21.0 started at /ui
28 Apr 15:18:18 - [info] Settings file : /root/.node-red/settings.js
28 Apr 15:18:18 - [info] Context store : 'default' [module=memory]
28 Apr 15:18:18 - [info] User directory : /root/.node-red
28 Apr 15:18:18 - [warn] Projects disabled : editorTheme.projects.enabled=false
28 Apr 15:18:18 - [info] Flows file : /root/.node-red/flows_orangepizero.json
28 Apr 15:18:18 - [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.
28 Apr 15:18:18 - [info] Starting flows
28 Apr 15:18:19 - [info] Started flows
28 Apr 15:18:19 - [info] [mqtt-broker:mqtt] Connection failed to broker: mqtt://localhost:1883
28 Apr 15:18:19 - [error] Unable to listen on http://127.0.0.1:1880/
28 Apr 15:18:19 - [error] Error: port in use
So, I did this:
root@orangepizero:~# netstat -ltup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN 937/sshd
tcp 0 0 0.0.0.0:1880 0.0.0.0:* LISTEN 1343/node-red
tcp6 0 0 [::]:ssh [::]:* LISTEN 937/sshd
udp 0 0 localhost:323 0.0.0.0:* 905/chronyd
udp 0 0 0.0.0.0:bootpc 0.0.0.0:* 1017/dhclient
udp6 0 0 localhost:323 [::]:* 905/chronyd
followed by,
root@orangepizero:~# killall node-red
and node-red -start
and back to square one.
So I decided to check for setting file by
root@orangepizero:~# find / -name settings.js
/root/.node-red/settings.js
/usr/local/lib/node_modules/node-red/settings.js
/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/settings.js
/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/storage/localfilesystem/settings.js
/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/api/settings.js
/usr/local/lib/node_modules/node-red/node_modules/@node-red/editor-api/lib/editor/settings.js
and picked the First one, and to my surprise, there was nothing under \root
Since I'm a beginner in Linux, I'm puzzled and have no clue what to do next.
So I appreciate any help.
Thanks.
p.s. When running design view (http://192.168.1.11:1880/#flow/94dde7f4.01f478) on node-red under windows browser, all nodes display 'connecting' as expected.