在Azure IoT Edge EFLOW虚拟机部署Node-RED Docker容器遇权限问题求助
在Azure IoT Edge EFLOW中部署Node-RED的权限错误求助
问题详情
在Windows设备的Azure IoT Edge EFLOW(Linux虚拟机)中部署nodered/node-red:latest作为IoT Edge模块时,触发权限错误,无法完成settings.js文件的复制操作,错误日志如下:
Error: EACCES: permission denied, copyfile '/usr/src/node-red/node_modules/node-red/settings.js' -> '/data/settings.js' at Object.copyFileSync (node:fs:2817:3) at copyFile (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:73:6) at onFile (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:59:25) at getStats (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:51:44) at handleFilterAndCopy (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:36:10) at Object.copySync (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:29:10) at Object.<anonymous> (/usr/src/node-red/node_modules/node-red/red.js:129:20) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) { errno: -13, syscall: 'copyfile', code: 'EACCES', path: '/usr/src/node-red/node_modules/node-red/settings.js', dest: '/data/settings.js' }
已尝试的无效方案
此前在树莓派的Azure IoT Edge设备上遇到相同问题时,通过调整模块的Binds配置解决,但该操作在EFLOW上无效,配置内容如下:
"Binds": [ "/home/iotedge-user/node-red:/data" ],
当前系统信息
怀疑问题可能与系统架构有关,EFLOW虚拟机的系统信息如下:
Virtualization: microsoft Operating System: CBL-Mariner/Linux Kernel: Linux 5.15.67.1-4.cm2 Architecture: x86-64 Hardware Vendor: Microsoft Corporation Hardware Model: Virtual Machine
已在相关社区提问未获有效帮助,寻求解决方案。
内容的提问来源于stack exchange,提问作者Arseniy Sleptsov
相关产品推荐
相关产品推荐

