// Context Storage
// The following property can be used to enable context storage. The configuration
// provided here will enable file-based context that flushes to disk every 30 seconds.
// Refer to the documentation for further options: https://nodered.org/docs/api/context/
//
contextStorage: {
default: {
module:"localfilesystem"
},
},
And now in debug window write an error at regular intervals: "Error writing context: Error: EACCES: permission denied, mkdir '/home/user/.node-red/context/c58788ff.b5f1a8'"
How to find out, what rights should i need to give? and to whom?
What OS are you running and how did you install node-red?
Start node-red in a terminal (stop node red then use node-red-start if that command exists) and post the resulting output here. Use the </> button and paste it in.
Also show use what ls -l /home/user/.node-red/context gives, and if that directory does not exist then ls -l /home/user/.node-red
One possibility is that you have been using sudo when you shouldn't and have ended up with files owned by root in your home directory.
So have I, but I don't think that is what is causing the problem, nodejs seems fairly tolerant of this particular syntax error. Certainly it should be fixed though.