Hi,
Im using Node Red in Docker in Raspberry Pi4. I changed settings.js to enable context storing in file, but even the node red failed to start.
Portainer says:
"/data/settings.js:341 default: "memoryOnly, ^^^^^^^^^^^^ SyntaxError: Invalid or unexpected token at wrapSafe (node:internal/modules/cjs/loader:1378:20) at Module._compile (node:internal/modules/cjs/loader:1428:41) at Module._extensions..js (node:internal/modules/cjs/loader:1548:10) at Module.load (node:internal/modules/cjs/loader:1288:32) at Module._load (node:internal/modules/cjs/loader:1104:12) at Module.require (node:internal/modules/cjs/loader:1311:19) at require (node:internal/modules/helpers:179:18) at Object. (/healthcheck.js:3:16) at Module._compile (node:internal/modules/cjs/loader:1469:14) at Module._extensions..js (node:internal/modules/cjs/loader:1548:10) Node.js v20.18.0"
You have a typo in your settings.js, on or around line 341.
If you post the edit that you made we may be able to help you fix it, but without seeing the changes you made we can only guess (most likely a missing ,
).
Hopefully you have a volume mounted on /data
so you should be able to edit the file without the container running.
Hi,
Thanks for your tip. Not coma, but a double quote, " was missing.
Now its running!!!!!!!
Thanks again