Spectra GmbH & Co. KG
vertrieb@spectra.de
User Manual
Spectra PowerBox 100-IoT
Version 1.1
November 2017
8.3 Activities for Repairing Node-Red Instances Not
Starting
During the creation of the Node-Red flow, you might create situations which could crash the
browser. An example is the high-frequency transfer of measured values to an interpolating
chart which might fully occupy the browser.
In such cases there is a risk that the error causing the crash cannot be undone via the Node-
Red editor. In such a case, the Node-Red process must be stopped.
Then the files /home/root/.node-red/flows.json and/or /home/root/.node-
red/flows_cred.json must be renamed. This must be done under the root account.
At first, you must stop the Node-Red process by running the command pm2 stop node-
red
,then switch to the Node-Red working directory using the cd /home/root/.node-red
where you must rename the affected files with the exemplary commands mv flows.json
flows.json_bak or mv flows_cred.json flows_cred.json_bak
.
Finally you must restart the Node-Red process with the command pm2 start node-red.
The Node-Red editor is now empty.
Optionally, you may try to remove the error from the flow file and then restart the process.
In general, it is also possible to import a backup via the Web interface thus restoring
functional operation.
95