Hi,
I'm running Node-RED on Debian and needed to change the config.js to
contextStorage: {
default: {
module:"localfilesystem",
config: {
dir:"/data",
base:"context",
cache: true,
flushInterval: 30
}
},
},
To get Netatmo back to work (https://gist.github.com/matz33/843165d0046cac534864b65e633801a5?permalink_comment_id=4785938#gistcomment-4785938).
But when I do so, Node-RED won't start anymore.
When I run sudo service nodered status, the output is
Jul 13 09:57:25 nodered Node-RED[115]: 13 Jul 09:57:25 - [info] Loading palette nodes
Jul 13 09:57:27 nodered Node-RED[115]: 13 Jul 09:57:27 - [info] Dashboard version 1.0.2 started at /ui
Jul 13 09:57:30 nodered Node-RED[115]: 13 Jul 09:57:30 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
Jul 13 09:57:31 nodered Node-RED[115]: 13 Jul 09:57:31 - [info] Settings file : /home/hermiot/.node-red/settings.js
Jul 13 09:57:31 nodered Node-RED[115]: 13 Jul 09:57:31 - [info] Context store : 'default' [module=localfilesystem]
Jul 13 09:57:31 nodered Node-RED[115]: (node:115) V8: /home/hermiot/.node-red/node_modules/@throneless/libsignal-protocol/build/curve25519_concat.js:20225 Invalid asm.js: Expected shift of word size
Jul 13 09:57:31 nodered Node-RED[115]: (Use `node --trace-warnings ...` to show where the warning was created)
Jul 13 09:57:31 nodered Node-RED[115]: 13 Jul 09:57:31 - [error] Failed to start server:
Jul 13 09:57:31 nodered Node-RED[115]: 13 Jul 09:57:31 - [error] Error: Error loading context store: Error: EACCES: permission denied, mkdir '/data'
Jul 13 09:57:31 nodered Node-RED[115]: at /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/context/index.js:180:15
Can anybody help please?
Thanks!