FAILURE, anyone helps?

Dear all,

I have the following problem with node-red running on my raspberry Pi. I show you the text that appear on node-red terminal when I start.

Starting as a systemd service.
Started Node-RED graphical event wiring tool.
internal/modules/cjs/loader.js:711
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
nodered.service: Service hold-off time over, scheduling restart.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
internal/modules/cjs/loader.js:711
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
nodered.service: Service hold-off time over, scheduling restart.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
internal/modules/cjs/loader.js:711
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
nodered.service: Service hold-off time over, scheduling restart.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
internal/modules/cjs/loader.js:711
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
nodered.service: Service hold-off time over, scheduling restart.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
internal/modules/cjs/loader.js:711
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
nodered.service: Service hold-off time over, scheduling restart.
Stopped Node-RED graphical event wiring tool.
nodered.service: Start request repeated too quickly.
Failed to start Node-RED graphical event wiring tool.
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.

Also while I try to conect to http://192.168.43.31:1880 on my computer appear the following error:

Does anyone know how to solve it without losing the flows?

Thanks in advance,
Juanjo

In a terminal run

node-red-stop
node-red-start

If the output does not help then post it here, starting from the Welcome to node-red message.

HERE IT IS THE COMPLETE OUTPUT:

Start Node-RED

Once Node-RED has started, point a browser at http://192.168.43.31:1880
On Pi Node-RED works better with the Firefox or Chrome browser
_ _
Use node-red-stop to stop Node-RED
Use node-red-start to start Node-RED again
Use node-red-log to view the recent log output
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot
To find more nodes and example flows - go to http://flows.nodered.org
_ _
Starting as a systemd service.
Started Node-RED graphical event wiring tool.
internal/modules/cjs/loader.js:711
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
nodered.service: Service hold-off time over, scheduling restart.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
internal/modules/cjs/loader.js:711
_ throw err;_
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
nodered.service: Service hold-off time over, scheduling restart.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
internal/modules/cjs/loader.js:711
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
nodered.service: Service hold-off time over, scheduling restart.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
internal/modules/cjs/loader.js:711
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
nodered.service: Service hold-off time over, scheduling restart.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
internal/modules/cjs/loader.js:711
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
nodered.service: Service hold-off time over, scheduling restart.
Stopped Node-RED graphical event wiring tool.
nodered.service: Start request repeated too quickly.
Failed to start Node-RED graphical event wiring tool.
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.

Are you sure that is the output from the command node-red-start with dashes between each word?

How did you install node-red?
What do the following commands show?

node -v
npm -v

rather than node-red-stop && node-red-start please report what

node-red-stop
node-red

reports (as node-red-start tries to restart the service - whereas node-red just runs the app in the foreground and will give us the real error.

1 Like

Do you have to be in the .node-red folder to do that?

[Edit] Answering my own question I see the answer is normally no, it defaults to using .node-red in the current users home directory.