Dockerized EACCESS

I'm trying to install a module from the UI, I get this error which is not to informative.
When doing this from the shell, using npm install, it is working, but for some reason not persist trough docker recycling.

9 Nov 20:16:45 - [info] Installing module: node-red-contrib-openhab-v2, version: 2.0.3
9 Nov 20:16:49 - [warn] [openhab2-controller:Openhab] ERROR {"type":"error","status":401}
9 Nov 20:16:49 - [warn] Installation of module node-red-contrib-openhab-v2 failed:
9 Nov 20:16:49 - [warn] ------------------------------------------
9 Nov 20:16:49 - [warn] npm ERR! code EACCES
npm ERR! syscall open
npm ERR! path /data/.npm/_cacache/tmp/d1093d0e
npm ERR! errno -13
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 1000:1000 "/data/.npm"

9 Nov 20:16:49 - [warn] ------------------------------------------
9 Nov 20:16:49 - [error] Error: Install failed

Even simple upgrade fail


2020-11-09T18:30:52.402Z Install : node-red-contrib-telegrambot 8.7.1

2020-11-09T18:30:52.879Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-telegrambot@8.7.1
2020-11-09T18:30:55.995Z [err] npm
2020-11-09T18:30:55.995Z [err] ERR! code EACCES
2020-11-09T18:30:55.995Z [err] npm ERR! syscall open
2020-11-09T18:30:55.995Z [err] npm ERR!
2020-11-09T18:30:55.996Z [err] path /data/.npm/_cacache/tmp/562bfdb7
2020-11-09T18:30:55.996Z [err] npm
2020-11-09T18:30:55.996Z [err] ERR! errno
2020-11-09T18:30:55.996Z [err] -13
2020-11-09T18:30:56.000Z [err] npm
2020-11-09T18:30:56.000Z [err] ERR!
2020-11-09T18:30:56.000Z [err] npm ERR!
2020-11-09T18:30:56.000Z [err] Your cache folder contains root-owned files, due to a bug in
2020-11-09T18:30:56.000Z [err] npm ERR! previous versions of npm which has since been addressed.
2020-11-09T18:30:56.000Z [err] npm ERR!
2020-11-09T18:30:56.000Z [err]
2020-11-09T18:30:56.000Z [err] npm ERR!
2020-11-09T18:30:56.001Z [err] To permanently fix this problem, please run:
2020-11-09T18:30:56.001Z [err] npm ERR!
2020-11-09T18:30:56.001Z [err] sudo chown -R 1000:1000 "/data/.npm"
2020-11-09T18:30:56.018Z rc=243

How can I achieve either persistence to shell install or make it install properly from the UI ?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.