Appologize for asking this newby question...
I've installed Node-red on a RPi using Raspbian Buster and connect via SSH. Was able to generate dashboards and all works fine.
Unfortunatelly the app is crashing after a few days with error:
EIO: i/o error, stat '/usr/lib/node_modules/node-red/node_modules/@node-red/editor-client/public/ui/index.html'
I've googled and found this solution: https://support.glitch.com/t/howto-fix-eio-i-o-error-read/4306
Unfortunately, I'm suck in the first step: Open the Console (Logs button -> Console button).
I simply cannot find the console. (nor the "logs button").
Although the answer must be simple, in this case google is not my friend.
Can someone guide me in the right direction? And perhaps also assess if this is indeed the right solutions?
Ok, will update my doc. Since it's working I guess the installation was ok(-ish).
None the less, still get this error (crash) after some days.
Suggestions?
I'm not sure if I understand to which file you are referring?
'/usr/lib/node_modules/node-red/node_modules/ is a diirectory.
Can you provide guidance?
Furthermore, if the system crashes (last crash this evening) I'm not able to connect anymore. I get no response when I setup an SSH connection.
Node-red-log is not providing any details nor reference to the crash. Is there a logfile?
No: /usr/lib/node_modules/node-red/node_modules/@node-red/editor-client/public/ui/index.htm is a file.
There are various ways around that if you really need to but if your remote system is regularly crashing, you should probably order a new SD-card and build a fresh install then take the time to analyse the old card at your leisure. The other workarounds would be to use something like a SONOFF device with a custom flash that let you turn off/on your remote pi if it can't be reached in a reasonable time. You could also configure a watchdog on the Pi so that it rebooted if Node-RED dies.
No, it wouldn't because Node-RED isn't crashing from anything internal by the looks of it. It is crashing because of the inability to open the file specified. Is assume the error given somes from your syslog?
I cannot find the file:
pi@IOT-server:~ $ cat /usr/lib/node_modules/node-red/node_modules/@node-red/editor-client/public/ui/index.htm
cat: /usr/lib/node_modules/node-red/node_modules/@node-red/editor-client/public/ui/index.htm: No such file or directory
directory is empty
pi@IOT-server:/usr/lib/node_modules/node-red/node_modules/@node-red/editor-client/public ls -l total 28
-rw-r--r-- 1 pi pi 16958 Oct 26 1985 favicon.ico
drwxr-xr-x 3 pi pi 4096 Jul 25 16:41 red
drwxr-xr-x 7 pi pi 4096 Jul 25 16:41 vendor
pi@IOT-server:/usr/lib/node_modules/node-red/node_modules/@node-red/editor-client/public
I've ordered a USB stick and will try to reinstall on a stick.
Final update.
After scanning log files, I found out that influx is crashing unexpectedly. Further investigation pointed to an error in the webmin package updater. After resolving the latter the system is stable.
I still do not understand the error message because even today with a smooth running system, I cannot find the index.htm file.
Anyway, thanks for the support. Furthermore, I'm still working on an USB version.