Hi,
I am a Node-RED user and I use it regularly, although I haven't been able to access Node-RED for a few days, since I get the following error:
> de febr. 17 09:57:53 industrialshields Node-RED[15788]: Error: Cannot find module '/home/qmf/red.js'
> de febr. 17 09:57:53 industrialshields Node-RED[15788]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
> de febr. 17 09:57:53 industrialshields Node-RED[15788]: at Function.Module._load (internal/modules/cjs/loader.js:667:27)
> de febr. 17 09:57:53 industrialshields Node-RED[15788]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
> de febr. 17 09:57:53 industrialshields Node-RED[15788]: at internal/main/run_main_module.js:17:47 {
> de febr. 17 09:57:53 industrialshields Node-RED[15788]: code: 'MODULE_NOT_FOUND',
> de febr. 17 09:57:53 industrialshields Node-RED[15788]: requireStack: []
> de febr. 17 09:57:53 industrialshields Node-RED[15788]: }
> de febr. 17 09:57:53 industrialshields systemd[1]: nodered.service: Main process exited, code=exited, status=1/FAILURE
> de febr. 17 09:57:53 industrialshields systemd[1]: nodered.service: Failed with result 'exit-code'.
> de febr. 17 09:58:13 industrialshields systemd[1]: nodered.service: Scheduled restart job, restart counter is at 1.
> de febr. 17 09:58:13 industrialshields systemd[1]: Stopped Node-RED graphical event wiring tool.
> de febr. 17 09:58:13 industrialshields systemd[1]: Started Node-RED graphical event wiring tool.
> de febr. 17 09:58:13 industrialshields Node-RED[15808]: internal/modules/cjs/loader.js:818
> de febr. 17 09:58:13 industrialshields Node-RED[15808]: throw err;
> de febr. 17 09:58:13 industrialshields Node-RED[15808]: ^
> de febr. 17 09:58:13 industrialshields Node-RED[15808]: Error: Cannot find module '/home/qmf/red.js'
> de febr. 17 09:58:13 industrialshields Node-RED[15808]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
> de febr. 17 09:58:13 industrialshields Node-RED[15808]: at Function.Module._load (internal/modules/cjs/loader.js:667:27)
> de febr. 17 09:58:13 industrialshields Node-RED[15808]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
> de febr. 17 09:58:13 industrialshields Node-RED[15808]: at internal/main/run_main_module.js:17:47 {
> de febr. 17 09:58:13 industrialshields Node-RED[15808]: code: 'MODULE_NOT_FOUND',
> de febr. 17 09:58:13 industrialshields Node-RED[15808]: requireStack: []
> de febr. 17 09:58:13 industrialshields Node-RED[15808]: }
> de febr. 17 09:58:13 industrialshields systemd[1]: nodered.service: Main process exited, code=exited, status=1/FAILURE
> de febr. 17 09:58:13 industrialshields systemd[1]: nodered.service: Failed with result 'exit-code'.
And when I "sudo systemctl status nodered.service", I get that the service is constantly activating.
Anyways, I can run 'node-red' and it works. So, it is the service that it doesn't, but that is what I want.
I don't know if it's a coincidence or not, but these days I've updated to version 2.2, and I've also installed FlowForge on my computer.
Could you help me please?
Thank you,
Q.