node-red / node-red/node-red-docker

node-red-contrib-huemagic -- Error: EPERM: operation not permitted, symlink '../sshpk/bin/sshpk-conv' -> '/data/node_modules/.bin/sshpk-conv'

Aperta
#222 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Shell
Stelle
540
Fork
434
Merge medio
24m
PR unite (30g)
5

Descrizione

Error on a docker installed NodeRed
sudo docker run -d --network dockernet --name=nodered -p 1880:1880 -v /home/pi/USBpiData/NodeRed:/data nodered/node-red

checked the permissions are to 755 and uid=1000 gid =1000 (recursive)

also tried this as a fix inside the container:
`INSTALL GLOBAL NPM PACKAGES
npm config set unsafe-perm true

CLEAN CACHE
npm cache clean

BYPASS SYMLINK ISSUES
npm install --no-bin-links`

did not help, here the (still same) error message :-) hope to get help THANKS

`4 Mar 17:03:28 - [warn] Die Installation des Moduls node-red-contrib-huemagic ist fehlgeschlagen:
4 Mar 17:03:28 - [warn] ------------------------------------------
4 Mar 17:03:28 - [warn] npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code EPERM
npm ERR! syscall symlink
npm ERR! path ../sshpk/bin/sshpk-conv
npm ERR! dest /data/node_modules/.bin/sshpk-conv
npm ERR! errno -1
npm ERR! Error: EPERM: operation not permitted, symlink '../sshpk/bin/sshpk-conv' -> '/data/node_modules/.bin/sshpk-conv'
npm ERR! { [Error: EPERM: operation not permitted, symlink '../sshpk/bin/sshpk-conv' -> '/data/node_modules/.bin/sshpk-conv']
npm ERR! cause:
npm ERR! { Error: EPERM: operation not permitted, symlink '../sshpk/bin/sshpk-conv' -> '/data/node_modules/.bin/sshpk-conv'
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'symlink',
npm ERR! path: '../sshpk/bin/sshpk-conv',
npm ERR! dest: '/data/node_modules/.bin/sshpk-conv' },
npm ERR! stack:
npm ERR! 'Error: EPERM: operation not permitted, symlink '../sshpk/bin/sshpk-conv' -> '/data/node_modules/.bin/sshpk-conv'',
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'symlink',
npm ERR! path: '../sshpk/bin/sshpk-conv',
npm ERR! dest: '/data/node_modules/.bin/sshpk-conv',
npm ERR! parent: 'data' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! /data/.npm/_logs/2021-03-04T17_03_24_557Z-debug.log

4 Mar 17:03:28 - [warn] ------------------------------------------
4 Mar 17:03:28 - [error] Error: Installation fehlgeschlagen
`

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia con il comando Docker e il percorso /data montato descritti nell’issue, quindi riproduci l’installazione di node-red-contrib-huemagic. Analizza la creazione del link simbolico per /data/node_modules/.bin/sshpk-conv che restituisce EPERM e confrontala con i permessi segnalati e le impostazioni di npm. Il lavoro è completato quando viene identificata una causa riproducibile lato progetto e viene documentata o testata una soluzione; l’issue non indica alcun file del repository né alcun test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
docker, node.js
Ambito
devops, infrastructure
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.