mmm something went wrong...
When i did the forst install like you says, it works
Only when i restart my container for the other instal for a node .. there is the same error:
2024-12-28T11:49:25.203Z Install : node-red-contrib-tasmota 1.0.0
2024-12-28T11:49:24.542Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --omit=dev --engine-strict node-red-contrib-tasmota@1.0.0
2024-12-28T11:49:28.075Z [err] npm error code EACCES
2024-12-28T11:49:28.076Z [err] npm error syscall open
2024-12-28T11:49:28.076Z [err] npm error path /data/package-lock.json
2024-12-28T11:49:28.076Z [err] npm error errno -13
2024-12-28T11:49:28.080Z [err] npm error Error: EACCES: permission denied, open '/data/package-lock.json'
2024-12-28T11:49:28.080Z [err] npm error at async open (node:internal/fs/promises:639:25)
2024-12-28T11:49:28.080Z [err] npm error at async writeFile (node:internal/fs/promises:1212:14)
2024-12-28T11:49:28.080Z [err] npm error at async Promise.all (index 0)
2024-12-28T11:49:28.080Z [err] npm error at async [saveIdealTree] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:1526:7)
2024-12-28T11:49:28.080Z [err] npm error at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:148:5)
2024-12-28T11:49:28.080Z [err] npm error at async Install.exec (/usr/local/lib/node_modules/npm/lib/commands/install.js:150:5)
2024-12-28T11:49:28.080Z [err] npm error at async Npm.exec (/usr/local/lib/node_modules/npm/lib/npm.js:207:9)
2024-12-28T11:49:28.080Z [err] npm error at async module.exports (/usr/local/lib/node_modules/npm/lib/cli/entry.js:74:5) {
2024-12-28T11:49:28.080Z [err] npm error errno: -13,
2024-12-28T11:49:28.080Z [err] npm error code: 'EACCES',
2024-12-28T11:49:28.080Z [err] npm error syscall: 'open',
2024-12-28T11:49:28.080Z [err] npm error path: '/data/package-lock.json'
2024-12-28T11:49:28.080Z [err] npm error }
2024-12-28T11:49:28.081Z [err] npm error
2024-12-28T11:49:28.081Z [err] npm error The operation was rejected by your operating system.
2024-12-28T11:49:28.081Z [err] npm error It is likely you do not have the permissions to access this file as the current user
2024-12-28T11:49:28.081Z [err] npm error
2024-12-28T11:49:28.081Z [err] npm error If you believe this might be a permissions issue, please double-check the
2024-12-28T11:49:28.081Z [err] npm error permissions of the file and its containing directories, or try running
2024-12-28T11:49:28.081Z [err] npm error the command again as root/Administrator.
2024-12-28T11:49:28.083Z [err] npm error A complete log of this run can be found in: /data/.npm/_logs/2024-12-28T11_49_24_829Z-debug-0.log
2024-12-28T11:49:28.115Z rc=243
root@odroidn2:~# cd /var/lib/docker/volumes/nodered_node-red-data/_data
root@odroidn2:/var/lib/docker/volumes/nodered_node-red-data/_data# ls -la
totaal 2000
drwxrwxr-x 5 pi root 4096 28 dec 12:43 .
drwx-----x 3 root root 4096 1 jun 2024 ..
-rw-r--r-- 1 pi pi 50815 28 dec 12:43 .config.nodes.json
-rw-r--r-- 1 pi pi 53463 28 dec 12:43 .config.nodes.json.backup
-rw-r--r-- 1 pi pi 133 1 jun 2024 .config.runtime.json
-rw-r--r-- 1 pi pi 95 1 jun 2024 .config.runtime.json.backup
-rw-r--r-- 1 pi pi 703 28 dec 12:43 .config.users.json
-rw-r--r-- 1 pi pi 701 28 dec 12:43 .config.users.json.backup
-rw-r--r-- 1 pi pi 211 27 dec 16:53 flows_cred.json
-rw-r--r-- 1 pi pi 135 27 dec 16:53 .flows_cred.json.backup
-rw-r--r-- 1 pi pi 839457 28 dec 11:09 flows.json
-rw-r--r-- 1 pi pi 843399 28 dec 11:09 .flows.json.backup
drwxr-xr-x 3 pi pi 4096 1 jun 2024 lib
drwxr-xr-x 178 pi pi 12288 28 dec 12:49 node_modules
drwxr-xr-x 4 pi pi 4096 1 jun 2024 .npm
-rw-r--r-- 1 pi pi 1113 28 dec 12:49 package.json
-rw-r--r-- 1 root root 169584 27 mrt 2024 package-lock.json
-rw-r--r-- 1 pi pi 22614 27 jul 2023 settings.js
root@odroidn2:/var/lib/docker/volumes/nodered_node-red-data/_data#
root@odroidn2:~# sudo /var/lib/docker/volumes/nodered_node-red-data/_data
sudo: /var/lib/docker/volumes/nodered_node-red-data/_data: opdracht niet gevonden
root@odroidn2:~# cd /var/lib/docker/volumes/nodered_node-red-data/_data
root@odroidn2:/var/lib/docker/volumes/nodered_node-red-data/_data# chown 1000:1000 package-lock.json
root@odroidn2:/var/lib/docker/volumes/nodered_node-red-data/_data# ls -la
totaal 2000
drwxrwxr-x 5 pi root 4096 28 dec 12:43 .
drwx-----x 3 root root 4096 1 jun 2024 ..
-rw-r--r-- 1 pi pi 50815 28 dec 12:43 .config.nodes.json
-rw-r--r-- 1 pi pi 53463 28 dec 12:43 .config.nodes.json.backup
-rw-r--r-- 1 pi pi 133 1 jun 2024 .config.runtime.json
-rw-r--r-- 1 pi pi 95 1 jun 2024 .config.runtime.json.backup
-rw-r--r-- 1 pi pi 703 28 dec 12:43 .config.users.json
-rw-r--r-- 1 pi pi 701 28 dec 12:43 .config.users.json.backup
-rw-r--r-- 1 pi pi 211 27 dec 16:53 flows_cred.json
-rw-r--r-- 1 pi pi 135 27 dec 16:53 .flows_cred.json.backup
-rw-r--r-- 1 pi pi 839457 28 dec 11:09 flows.json
-rw-r--r-- 1 pi pi 843399 28 dec 11:09 .flows.json.backup
drwxr-xr-x 3 pi pi 4096 1 jun 2024 lib
drwxr-xr-x 178 pi pi 12288 28 dec 12:49 node_modules
drwxr-xr-x 4 pi pi 4096 1 jun 2024 .npm
-rw-r--r-- 1 pi pi 1113 28 dec 12:49 package.json
-rw-r--r-- 1 pi pi 169584 27 mrt 2024 package-lock.json
-rw-r--r-- 1 pi pi 22614 27 jul 2023 settings.js
root@odroidn2:/var/lib/docker/volumes/nodered_node-red-data/_data#
root@odroidn2:/var/lib/docker/volumes/nodered_node-red-data/_data#
remove a node was working fine...
Only when install:
-----------------------------------------------------------
2024-12-28T12:17:53.242Z Install : node-red-contrib-tasmotas 2.0.3
2024-12-28T12:17:52.566Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --omit=dev --engine-strict node-red-contrib-tasmotas@2.0.3
2024-12-28T12:17:56.646Z [err] npm warn deprecated har-validator@5.1.5: this library is no longer supported
2024-12-28T12:17:56.737Z [err] npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
2024-12-28T12:17:56.755Z [err] npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
2024-12-28T12:17:56.978Z [err] npm error code EACCES
2024-12-28T12:17:56.979Z [err] npm error syscall symlink
2024-12-28T12:17:56.979Z [err] npm error path ../sshpk/bin/sshpk-conv
2024-12-28T12:17:56.979Z [err] npm error dest /data/node_modules/.bin/sshpk-conv
2024-12-28T12:17:56.980Z [err] npm error errno -13
2024-12-28T12:17:56.985Z [err] npm error Error: EACCES: permission denied, symlink '../sshpk/bin/sshpk-conv' -> '/data/node_modules/.bin/sshpk-conv'
2024-12-28T12:17:56.985Z [err] npm error at async symlink (node:internal/fs/promises:1000:10)
2024-12-28T12:17:56.985Z [err] npm error at async Promise.all (index 0)
2024-12-28T12:17:56.985Z [err] npm error at async Promise.all (index 0)
2024-12-28T12:17:56.985Z [err] npm error at async #createBinLinks (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:394:5)
2024-12-28T12:17:56.985Z [err] npm error at async Promise.allSettled (index 0)
2024-12-28T12:17:56.985Z [err] npm error at async #linkAllBins (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:375:5)
2024-12-28T12:17:56.985Z [err] npm error at async #build (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:160:7)
2024-12-28T12:17:56.985Z [err] npm error at async Arborist.rebuild (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:62:5)
2024-12-28T12:17:56.985Z [err] npm error at async [reifyPackages] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:325:11)
2024-12-28T12:17:56.985Z [err] npm error at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:142:5) {
2024-12-28T12:17:56.985Z [err] npm error errno: -13,
2024-12-28T12:17:56.985Z [err] npm error code: 'EACCES',
2024-12-28T12:17:56.985Z [err] npm error syscall: 'symlink',
2024-12-28T12:17:56.985Z [err] npm error path: '../sshpk/bin/sshpk-conv',
2024-12-28T12:17:56.985Z [err] npm error dest: '/data/node_modules/.bin/sshpk-conv'
2024-12-28T12:17:56.985Z [err] npm error }
2024-12-28T12:17:56.986Z [err] npm error
2024-12-28T12:17:56.986Z [err] npm error The operation was rejected by your operating system.
2024-12-28T12:17:56.986Z [err] npm error It is likely you do not have the permissions to access this file as the current user
2024-12-28T12:17:56.986Z [err] npm error
2024-12-28T12:17:56.986Z [err] npm error If you believe this might be a permissions issue, please double-check the
2024-12-28T12:17:56.986Z [err] npm error permissions of the file and its containing directories, or try running
2024-12-28T12:17:56.986Z [err] npm error the command again as root/Administrator.
2024-12-28T12:17:56.992Z [err] npm error A complete log of this run can be found in: /data/.npm/_logs/2024-1
My final guess is, that your persistent data needed a complete re-assignment. Hence I would stop the container and simply cd back to /var/lib/docker/volumes/nodered_node-red-data/_data as root and then run
chown -R 1000:1000 *
ALL files in /var/lib/docker/volumes/nodered_node-red-data/_data should then be accessible. I did so in the past, when I run into problems with file permissions as well. However, do it at your own risk!
mm there a lot of files in that area.. so i am not the hero to doe that.. With a risk my home automation is not working.,,, And my waf is going down the freeze.... Looking futher for other solutions...
-----------------------------------------------------------
2024-12-30T08:50:57.834Z Install : node-red-contrib-tasmotas 2.0.3
2024-12-30T08:50:57.018Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --omit=dev --engine-strict node-red-contrib-tasmotas@2.0.3
2024-12-30T08:51:01.364Z [err] npm warn deprecated har-validator@5.1.5: this library is no longer supported
2024-12-30T08:51:01.526Z [err] npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
2024-12-30T08:51:01.558Z [err] npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
2024-12-30T08:51:01.888Z [err] npm error code EACCES
2024-12-30T08:51:01.888Z [err] npm error syscall symlink
2024-12-30T08:51:01.888Z [err] npm error path ../sshpk/bin/sshpk-conv
2024-12-30T08:51:01.888Z [err] npm error dest /data/node_modules/.bin/sshpk-conv
2024-12-30T08:51:01.890Z [err] npm error errno -13
2024-12-30T08:51:01.894Z [err] npm error Error: EACCES: permission denied, symlink '../sshpk/bin/sshpk-conv' -> '/data/node_modules/.bin/sshpk-conv'
2024-12-30T08:51:01.894Z [err] npm error at async symlink (node:internal/fs/promises:1000:10)
2024-12-30T08:51:01.894Z [err] npm error at async Promise.all (index 0)
2024-12-30T08:51:01.894Z [err] npm error at async Promise.all (index 0)
2024-12-30T08:51:01.894Z [err] npm error at async #createBinLinks (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:394:5)
2024-12-30T08:51:01.894Z [err] npm error at async Promise.allSettled (index 0)
2024-12-30T08:51:01.894Z [err] npm error at async #linkAllBins (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:375:5)
2024-12-30T08:51:01.894Z [err] npm error at async #build (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:160:7)
2024-12-30T08:51:01.894Z [err] npm error at async Arborist.rebuild (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:62:5)
2024-12-30T08:51:01.894Z [err] npm error at async [reifyPackages] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:325:11)
2024-12-30T08:51:01.894Z [err] npm error at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:142:5) {
2024-12-30T08:51:01.894Z [err] npm error errno: -13,
2024-12-30T08:51:01.894Z [err] npm error code: 'EACCES',
2024-12-30T08:51:01.894Z [err] npm error syscall: 'symlink',
2024-12-30T08:51:01.894Z [err] npm error path: '../sshpk/bin/sshpk-conv',
2024-12-30T08:51:01.894Z [err] npm error dest: '/data/node_modules/.bin/sshpk-conv'
2024-12-30T08:51:01.894Z [err] npm error }
2024-12-30T08:51:01.895Z [err] npm error
2024-12-30T08:51:01.895Z [err] npm error The operation was rejected by your operating system.
2024-12-30T08:51:01.895Z [err] npm error It is likely you do not have the permissions to access this file as the current user
2024-12-30T08:51:01.895Z [err] npm error
2024-12-30T08:51:01.895Z [err] npm error If you believe this might be a permissions issue, please double-check the
2024-12-30T08:51:01.895Z [err] npm error permissions of the file and its containing directories, or try running
2024-12-30T08:51:01.895Z [err] npm error the command again as root/Administrator.
2024-12-30T08:51:01.904Z [err] npm error A complete log of this run can be found in: /data/.npm/_logs/2024-12-30T08_50_57_277Z-debug-0.log
2024-12-30T08:51:01.933Z rc=243