Hugo99
July 17, 2024, 7:59am
1
hello!
i am installing “node red” on TrueNAS-SCALE-22.12.4.2, by launching a docker image
upon starting, I am getting the following error in the logs:
[error] Error: EPERM: operation not permitted, copyfile ‘/data/.config.nodes.json’ → ‘/data/.config.nodes.json.backup’ ;
any ideas?
assuming /data is where your permanent storage is for the container I’d look at the permissions on /data/.config.nodes.json.backup and make sure they are rwx for the ID you start the docker container with. if the file does not exist I’d look at /data and check the perms there as well.
just my 0.02
GF
Tele
January 14, 2025, 11:39am
3
I have the same issue when trying to run node-red as the community app, custom app or creating from scratch in Dockge or Portainer. Just keeps crashing.
Any help appreciated.
2025-01-14 11:38:15.602784+00:00node:fs:3034
2025-01-14 11:38:15.602835+00:00binding.copyFile(
2025-01-14 11:38:15.602849+00:00^
2025-01-14 11:38:15.602860+00:002025-01-14T11:38:15.602860887Z
2025-01-14 11:38:15.602871+00:00Error: EPERM: operation not permitted, copyfile '/usr/src/node-red/node_modules/node-red/settings.js' -> '/data/settings.js'
2025-01-14 11:38:15.602888+00:00at Object.copyFileSync (node:fs:3034:11)
2025-01-14 11:38:15.602899+00:00at copyFile (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:64:6)
2025-01-14 11:38:15.602909+00:00at onFile (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:50:25)
2025-01-14 11:38:15.602920+00:00at getStats (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:42:44)
2025-01-14 11:38:15.602935+00:00at Object.copySync (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:32:10)
2025-01-14 11:38:15.602947+00:00at Object.<anonymous> (/usr/src/node-red/node_modules/node-red/red.js:148:20)
2025-01-14 11:38:15.602958+00:00at Module._compile (node:internal/modules/cjs/loader:1469:14)
2025-01-14 11:38:15.602973+00:00at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
2025-01-14 11:38:15.602983+00:00at Module.load (node:internal/modules/cjs/loader:1288:32)
2025-01-14 11:38:15.602994+00:00at Module._load (node:internal/modules/cjs/loader:1104:12) {
2025-01-14 11:38:15.603004+00:00errno: -1,
2025-01-14 11:38:15.603019+00:00code: 'EPERM',
2025-01-14 11:38:15.603029+00:00syscall: 'copyfile',
2025-01-14 11:38:15.603040+00:00path: '/usr/src/node-red/node_modules/node-red/settings.js',
2025-01-14 11:38:15.603050+00:00dest: '/data/settings.js'
2025-01-14 11:38:15.603060+00:00}
2025-01-14 11:38:15.603071+00:002025-01-14T11:38:15.603071006Z
2025-01-14 11:38:15.603085+00:00Node.js v20.18.1
Tele
January 14, 2025, 1:29pm
4
I think I’ve found the cause of this issue>
Permissions and Persistence · node-red/node-red-docker Wiki · GitHub
Seems to be caused by this>
SOLVED - UID GID for new users mysteriously jumped to 3000 | TrueNAS Community
I’m just trying to get my head around this right now, being a TNS and Linux novice. Any help/advice most welcome in the meantime.
Thanks
Tele
January 14, 2025, 3:31pm
5
OK. Managed to solve this by creating a user (local admin) and group with a 1000 ID, then setting that as the owner of the nodered dataset. Seems to work for now.
Hope this helps someone in the future.