Open nehemiascr opened 1 year ago
As a workaround from this comment https://github.com/mindsphere/node-red-contrib-mindconnect/issues/150#issuecomment-1047828633, I was able to change the default location to a writable folder
from
basePath: string | IConfigurationStorage = process.cwd() + "/.mc/"
to
basePath: string | IConfigurationStorage = "/home/root/.mc/"
All library data / state has to be stored in userDir
, but not in the CWD: https://nodered.org/docs/user-guide/runtime/configuration
In general, state has to be stored either in /var
or in /home/<user>
. When starting node-red without arguments, the userDir
points to $HOME/.node-red
, which is a valid directory.
Describe the bug I am trying to configure MindConnect Node-RED Agent v3.12.1 node installed in Node-RED v2.2.3 on IOT2050 Debian Example Image build V01.03.01 In this build of the IOT2050 Image, the filesystem of / is a read-only filesystem of type squashfs
This is causing the error
Error: EROFS: read-only file system, mkdir '//.mc/'
To Reproduce Steps to reproduce the behavior:
Expected behavior Mindconnect onboarding should succeed
Desktop (please complete the following information):
MindSphere Plan