Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Wichtige Hinweise bei neueren npm-Versionen und sudo

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Wichtige Hinweise bei neueren npm-Versionen und sudo

    This topic has been deleted. Only users with topic management privileges can see it.
    • AlCalzone
      AlCalzone Developer last edited by

      Sorry, das hätte ich natürlich auch erwähnen können 😄

      1 Reply Last reply Reply Quote 0
      • J
        jambo last edited by

        Ich bekomme die Fehlermeldung leider beim Autostart (beim manuellen Starten über die Konsole tritt der Fehler nicht auf):

        Error:	2018-12-21 00:06:14.553	error	at Timer.listOnTimeout (timers.js:290:5)
        Error:	2018-12-21 00:06:14.553	error	at tryOnTimeout (timers.js:323:5)
        Error:	2018-12-21 00:06:14.553	error	at ontimeout (timers.js:498:11)
        Error:	2018-12-21 00:06:14.553	error	at Timeout.saveConfig [as _onTimeout] (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:1897:16)
        Error:	2018-12-21 00:06:14.553	error	at Object.fs.writeFileSync (fs.js:1299:33)
        Error:	2018-12-21 00:06:14.553	error	at Object.fs.openSync (fs.js:646:18)
        Error:	2018-12-21 00:06:14.553	error	EACCES: permission denied, open '/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/../../../../iobroker-data/objects.json.bak'
        uncaught	2018-12-21 00:06:14.551	error	exception: EACCES: permission denied, open '/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/../../../../iobroker-data/objects.json.bak'
        
        

        Ich habe das System extra noch mal neu aufgesetzt, der Fehler besteht aber immer noch. Installiert ist ioBroker in einer Debian-VM unter Proxmox. Beim Installieren habe ich folgende Schritte durchgeführt:

        1. ioBroker exakt nach dem neuen Weg installiert: http://www.iobroker.net/docu/?page_id=8323&lang=de

        2. Auf meinem alten Raspi via Backitup-Adapter ein Komplett-Backup erstellt. Auf dem Raspi tritt das Problem übrigens nicht auf.

        3. Backup wie in der Anleitung zum Backitup-Adapter beschrieben auf dem neuen System erfolgreich eingespielt.

        4. ioBroker gestartet.

        ioBroker selbst läuft bei manuellem Start absolut problemlos, nur der Autostart will nicht. "sudo chown -R $(whoami) ~/.npm" hat leider auch nicht geholfen.

        Hat jemand noch eine Idee?

        1 Reply Last reply Reply Quote 0
        • AlCalzone
          AlCalzone Developer last edited by

          Anscheinend ist da noch ein Fehler im Installer-Skript, der Fehler verursacht.

          Dein Problem sollte sich beheben lassen durch

          sudo chown -R iobroker /opt/iobroker
          

          Falls du magst, darfst du gerne das aktualisierte Skript testen:

          curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/master/installer.sh | bash -
          
          1 Reply Last reply Reply Quote 0
          • J
            jambo last edited by

            Hat leider nicht geholfen. Beim Autostart kommen weiterhin in einer Endlosschleife der gleiche Fehler und dann direkt ein Restart.

            1 Reply Last reply Reply Quote 0
            • AlCalzone
              AlCalzone Developer last edited by

              @jambo:

              Hat leider nicht geholfen. Beim Autostart kommen weiterhin in einer Endlosschleife der gleiche Fehler und dann direkt ein Restart. `

              Sorry, da war noch ein Fehler :?

              Statt $(whoami) muss dort iobroker stehen. Ich passe es gleich im letzten Post an.

              1 Reply Last reply Reply Quote 0
              • J
                jambo last edited by

                Perfekt, jetzt läuft es 😄 .

                Vielen Dank für die Unterstützung!

                1 Reply Last reply Reply Quote 0
                • R
                  Rene1231 last edited by

                  Hallo Mathias,

                  Ich habe einen neuen intel nuc 5CPYH mit frisch installierten Ubuntu 18.04. Habe nach verschiedenen Anleitungen versucht iobroker zu installieren, es funktioniert einfach nicht.

                  Ich bitte um eine kurze getestete Anleitung.

                  Vielen Dank

                  1 Reply Last reply Reply Quote 0
                  • apollon77
                    apollon77 last edited by

                    Nimm doch den Artikel der direkt unter dem hier festgepinnt ist 😉

                    viewtopic.php?t=19111

                    Gesendet vom Handy …

                    1 Reply Last reply Reply Quote 0
                    • R
                      Rene1231 last edited by

                      @apollon77:

                      Nimm doch den Artikel der direkt unter dem hier festgepinnt ist 😉

                      viewtopic.php?t=19111

                      Gesendet vom Handy … `

                      Danke,

                      Wenn Da als root ausführen steht, reicht dann sudo….

                      MfG Rene

                      1 Reply Last reply Reply Quote 0
                      • AlCalzone
                        AlCalzone Developer last edited by

                        Ich sehe in der dort verlinkten Anleitung keine Aufforderung etwas als Root auszuführen:

                        ==> http://www.iobroker.net/docu/?page_id=8 … sanleitung

                        1 Reply Last reply Reply Quote 0
                        • R
                          Rene1231 last edited by

                          @AlCalzone:

                          Ich sehe in der dort verlinkten Anleitung keine Aufforderung etwas als Root auszuführen:

                          ==> http://www.iobroker.net/docu/?page_id=8 … sanleitung `

                          Vielen Dank

                          Das hat nun damit funktionier

                          Mfg

                          1 Reply Last reply Reply Quote 0
                          • K
                            Kueppert last edited by

                            Ach herje,

                            jetzt hat es mich doch tatsächlich auch erwischt. Habe diese Fehlermeldungen````
                            Error: EACCES: permission denied, scandir '/root/.npm/_logs'

                            
                            Ich nutze mein ioBroker-System auf meinem Nuc jetzt schon...puh...über ein Jahr, also nach alter Methode installiert. Ich bin immer als root unterwegs. Diese o. g. Fehlermeldung habe ich noch nicht "so lang"...bedeutet vielleicht paar Wochen (kann es leider nicht genau sagen).
                            
                            Auf meinem NUC unter Proxmox läuft in einer VM Debian, dort hab ich dann damals fein ioBroker installiert.
                            
                            Auf einem PI3 (ist im Multihost der Slave) läuft nur der ZWave-Adapter. Das Multihost-System läuft seit ich auf dem NUC unterwegs bin auch artig mit. Da hab ich nichts dran rumgebastelt.
                            
                            Paar Eckdaten vom HOST (NUC):
                            
                            js-controller: 1.4.2 (gemäß HOST-Reiter in der ioBroker-Admin-Oberfläche)
                            

                            root@iobrokerNUC:/opt/iobroker# npm -v
                            6.5.0
                            root@iobrokerNUC:/opt/iobroker# nodejs -v
                            v6.14.2
                            root@iobrokerNUC:/opt/iobroker# node -v
                            v6.14.2

                            
                            was habe ich schon gemacht (auffm HOST):
                            
                            Update erfolgreich von npm 6.1.0 auf 6.5.0, hat aber nix geändert
                            
                            was hab ich schon eingetippert (auch auf dem HOST):
                            

                            sudo chown -R $(whoami) ~/.npm

                            root@iobrokerNUC:/home/thorsten# ps aux | grep js-controller
                            root 7615 0.0 0.0 12784 964 pts/0 S+ 17:10 0:00 grep js-controller
                            root 14667 4.5 7.5 1330924 155520 ? Ssl Jan08 57:40 iobroker.js-controller

                            
                            gerade das log vom Update HM-RPC über die ioBroker-Admin-Oberfläche:
                            
                            >! ````
                            $ ./iobroker upgrade hm-rpc
                            Update hm-rpc from @1.8.2 to @1.9.0
                            NPM version: 6.5.0
                            npm install iobroker.hm-rpc@1.9.0 --production --save --prefix "/opt/iobroker" (System call)
                            npm
                             ERR! path /root/.npm/_logsnpm ERR! code EACCES
                            npm ERR! errno -13
                            npm ERR! syscall scandir
                            npm ERR! Error: EACCES: permission denied, scandir '/root/.npm/_logs'
                            npm ERR!     at Error (native)
                            npm ERR!  { Error: EACCES: permission denied, scandir '/root/.npm/_logs'
                            npm ERR!     at Error (native)
                            npm ERR!   stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'\n    at Error (native)',
                            npm ERR!   errno: -13,
                            npm ERR!   code: 'EACCES',
                            npm ERR!   syscall: 'scandir',
                            npm ERR!   path: '/root/.npm/_logs' }
                            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 (though this is not recommended).
                            glob error { Error: EACCES: permission denied, scandir '/root/.npm/_logs'
                                at Error (native)
                              stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'\n    at Error (native)',
                              errno: -13,
                              code: 'EACCES',
                              syscall: 'scandir',
                              path: '/root/.npm/_logs' }
                            >! npm ERR! path /root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74fnpm ERR! code EACCES
                            npm ERR! errno -13
                            npm ERR! syscall open
                            npm ERR! Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'
                            npm ERR!     at Error (native)
                            npm ERR!  { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'
                            npm ERR!     at Error (native)
                            npm ERR!   cause: 
                            npm ERR!    { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'
                            npm ERR!        at Error (native)
                            npm ERR!      errno: -13,
                            npm ERR!      code: 'EACCES',
                            npm ERR!      syscall: 'open',
                            npm ERR!      path: '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f' },
                            npm ERR!   isOperational: true,
                            npm ERR!   stack: 'Error: EACCES: permission denied, open \'/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f\'\n    at Error (native)',
                            npm ERR!   errno: -13,
                            npm ERR!   code: 'EACCES',
                            npm ERR!   syscall: 'open',
                            npm ERR!   path: '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f' }
                            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 (though this is not recommended).
                            >! npm WARN svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
                            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                            >! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-1 (node_modules/@abandonware/bluetooth-hci-socket):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-1 preinstall: `npm install node-pre-gyp`
                            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 243
                            >! npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.hm-rpc"
                            npm 
                            WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
                            npm notice created a lockfile as package-lock.json. You should commit this file.
                            got /opt/iobroker/node_modules/iobroker.hm-rpc/admin
                            Update "system.adapter.hm-rpc.0"
                            Update "system.adapter.hm-rpc.1"
                            upload [200] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/index_m.html index_m.html text/html
                            upload [150] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/75_hm-pb-2-wm55_thumb.png icons/75_hm-pb-2-wm55_thumb.png image/png
                            upload [100] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/27_hmw-lc-bl1-dr_thumb.png icons/27_hmw-lc-bl1-dr_thumb.png image/png
                            upload [90] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/188_hmip-etrv-c_thumb.png icons/188_hmip-etrv-c_thumb.png image/png
                            upload [80] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/179_hmip-swdm-b2_thumb.png icons/179_hmip-swdm-b2_thumb.png image/png
                            upload [70] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/169_hmip-swo-pr_thumb.png icons/169_hmip-swo-pr_thumb.png image/png
                            upload [60] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/150_hm-lc-dw-wm_thumb.png icons/150_hm-lc-dw-wm_thumb.png image/png
                            upload [50] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/140_alpha-ip-rgb_thumb.png icons/140_alpha-ip-rgb_thumb.png image/png
                            upload [40] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/132_hmip-smo_thumb.png icons/132_hmip-smo_thumb.png image/png
                            upload [30] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/121_hmip-wth_thumb.png icons/121_hmip-wth_thumb.png image/png
                            upload [20] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/113_hmip-psm_thumb.png icons/113_hmip-psm_thumb.png image/png
                            upload [19] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/113_hmip-psm-uk_thumb.png icons/113_hmip-psm-uk_thumb.png image/png
                            upload [18] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/113_hmip-psm-pe_thumb.png icons/113_hmip-psm-pe_thumb.png image/png
                            upload [17] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/113_hmip-psm-it_thumb.png icons/113_hmip-psm-it_thumb.png image/png
                            upload [16] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/113_hmip-psm-ch_thumb.png icons/113_hmip-psm-ch_thumb.png image/png
                            upload [15] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/112_hmip-wrc2_thumb.png icons/112_hmip-wrc2_thumb.png image/png
                            upload [14] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/111_hm-lc-rgbw-wm_thumb.png icons/111_hm-lc-rgbw-wm_thumb.png image/png
                            upload [13] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/110_hm-es-pmsw1-dr_thump.png icons/110_hm-es-pmsw1-dr_thump.png image/png
                            upload [12] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/109_hm-lc-sw1-pl-ct_thump.png icons/109_hm-lc-sw1-pl-ct_thump.png image/png
                            upload [11] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/108_hm-rc-dis-h-x-eu_thump.png icons/108_hm-rc-dis-h-x-eu_thump.png image/png
                            upload [10] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/107_hm-es-pmsw1-pl-R5_thumb.png icons/107_hm-es-pmsw1-pl-R5_thumb.png image/png
                            upload [9] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/107_hm-es-pmsw1-pl-R4_thumb.png icons/107_hm-es-pmsw1-pl-R4_thumb.png image/png
                            upload [8] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/107_hm-es-pmsw1-pl-R3_thumb.png icons/107_hm-es-pmsw1-pl-R3_thumb.png image/png
                            upload [7] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/107_hm-es-pmsw1-pl-R2_thumb.png icons/107_hm-es-pmsw1-pl-R2_thumb.png image/png
                            upload [6] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/105_hm-sec-sd-2-team_thumb.png icons/105_hm-sec-sd-2-team_thumb.png image/png
                            upload [5] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/104_hm-sec-sd-2_thumb.png icons/104_hm-sec-sd-2_thumb.png image/png
                            upload [4] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/103_hm-sen-mdir-wm55_thumb.png icons/103_hm-sen-mdir-wm55_thumb.png image/png
                            upload [3] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/102_hm-es-tx-wm_thumb.png icons/102_hm-es-tx-wm_thumb.png image/png
                            upload [2] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/101_hm-sen-db-pcb_thumb.png icons/101_hm-sen-db-pcb_thumb.png image/png
                            upload [1] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/100_hm-rc-8_thumb.png icons/100_hm-rc-8_thumb.png image/png
                            upload [0] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/homematic.png homematic.png image/png
                            Adapter "hm-rpc" updated
                            process exited with code 0
                            

                            Da das mein Produktiv-System ist und ich kein Backup einspielen möchte wegen dem NPM-Problemchen, wende ich mich hier mal an die Profis. Hab schon mal dran gedacht, dem Ordner root die permisison -777 zu geben, es aber eben doch verworfen.

                            Den Befehl npm cache clear funktioniert (ohne force) seit v5 nicht mehr hab ich schon erfahren. Will aber auch kein -foce ausprobieren oder manuell über putty den cache-Ordner löschen, ohne zu wissen, ob das Sinn macht 🙂

                            Vielleicht hat hier jemand eine Idee? Danke euch schon mal - und wenn jmd. noch Input von mir benötigt (ich hoffe, ich hab alle benötigten Daten hier gepostet) liefere ich natürlich nach…

                            Danke euch und Grüße, Thorsten

                            1 Reply Last reply Reply Quote 0
                            • AlCalzone
                              AlCalzone Developer last edited by

                              Laut deiner Ausgabe läuft ioBroker auch als root. Wie es dann zu dem Zugriffsproblem kommt ist mir schleierhaft.

                              Schau mal was folgende Befehle ausgeben:

                              ls -la /opt/iobroker
                              

                              und

                              ls -la /root/.npm
                              
                              1 Reply Last reply Reply Quote 0
                              • K
                                Kaldi last edited by

                                @AlCalzone:

                                Laut deiner Ausgabe läuft ioBroker auch als root. Wie es dann zu dem Zugriffsproblem kommt ist mir schleierhaft.

                                Schau mal was folgende Befehle ausgeben:

                                ls -la /opt/iobroker
                                

                                und

                                ls -la /root/.npm
                                ```` `  
                                

                                Unabhängig, was der Fragesteller hierauf antwortet, was sollte denn dort rauskommen? Habe nämlich ähnliches Problem. Als root mit der neuen Methode installiert, ist auch gelaufen, bis ich einen Adapter (Smartmeter) auf dem Slave über den Master deinstalliert habe. Im Folgenden meine Ausgaben (sehen auf Master und Slave gleich aus):

                                root@ioBroker-Master:/# ls -la /opt/iobroker
                                total 252
                                drwxr-xr-x    8 iobroker iobroker   4096 Jan  9 23:12 .
                                drwxr-xr-x.   4     1023     1023   4096 Jan  9 17:30 ..
                                drwxr-xr-x    2 iobroker root       4096 Jan  9 17:57 backups
                                drwxr-xr-x    5 iobroker iobroker   4096 Jan  9 17:30 install
                                -rw-r--r--    1 iobroker iobroker     77 Jan  9 17:30 INSTALLER_INFO.txt
                                -rwxr-xr-x    1 iobroker iobroker     67 Jan  9 17:35 iob
                                -rwxr-xr-x    1 iobroker iobroker     67 Jan  9 17:35 iobroker
                                drwxr-xr-x    4 iobroker iobroker   4096 Jan  9 17:35 iobroker-data
                                -rw-r--r--    1 iobroker iobroker     92 Jan  9 17:32 killall.sh
                                drwxr-xr-x    2 iobroker iobroker   4096 Jan  9 17:30 lib
                                -rw-r--r--    1 iobroker iobroker   1137 Jan  9 17:30 LICENSE
                                drwxr-xr-x    2 iobroker iobroker   4096 Jan 10 07:40 log
                                drwxr-xr-x  383 iobroker iobroker  20480 Jan  9 23:42 node_modules
                                -rw-r--r--    1 iobroker iobroker     19 Jan  9 17:31 .npmrc
                                -rw-r--r--    1 iobroker iobroker    602 Jan  9 23:12 package.json
                                -rw-r--r--    1 iobroker iobroker 164520 Jan  9 17:35 package-lock.json
                                -rw-r--r--    1 iobroker iobroker   6101 Jan  9 17:30 README.md
                                -rw-r--r--    1 iobroker iobroker    709 Jan  9 17:32 reinstall.sh
                                
                                
                                root@ioBroker-Master:/# ls -la /root/.npm
                                total 28
                                drwxr-xr-x  6 root 1023 4096 Jan  9 23:40 .
                                drwx------. 8 1023 1023 4096 Jan  9 12:07 ..
                                -rw-r--r--  1 root 1023  172 Jan  9 23:42 anonymous-cli-metrics.json
                                drwxr-xr-x  5 root 1023 4096 Jan  8 14:21 _cacache
                                drwxr-xr-x  3 root 1023 4096 Jan  8 14:21 index-v5
                                drwxr-xr-x  2 root root 4096 Jan  9 23:42 _locks
                                drwxr-xr-x  2 root root 4096 Jan 10 00:05 _logs
                                
                                

                                PS: Master & Slave sind identische Installationen und Multihost wurde nach der neuen Methode eingerichtet

                                Vielen Dank.

                                1 Reply Last reply Reply Quote 0
                                • AlCalzone
                                  AlCalzone Developer last edited by

                                  @Kaldi:

                                  Unabhängig, was der Fragesteller hierauf antwortet, was sollte denn dort rauskommen? `
                                  Keine Ahnung - ich wollte mir mal einen Überblick verschaffen. Nach deiner Ausgabe gibt es den User iobroker - wird ioBroker auch als dieser User ausgeführt?

                                  ps aux | grep js-controller
                                  

                                  Hilft das möglicherweise?

                                  sudo chown -R iobroker:iobroker /home/iobroker/.npm
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    Kaldi last edited by

                                    @AlCalzone:

                                    Keine Ahnung - ich wollte mir mal einen Überblick verschaffen. Nach deiner Ausgabe gibt es den User iobroker - wird ioBroker auch als dieser User ausgeführt?

                                    ps aux | grep js-controller
                                    ```` `  
                                    

                                    Vielen Dank für die schnelle Rückmeldung. Hier meine Ausgaben:

                                    root@ioBroker-Master:/# ps aux | grep js-controller
                                    iobroker 10352 10.9 18.6 1473764 351696 ?      Ssl  09:37  19:18 iobroker.js-controller
                                    root     11971  0.0  0.0   4704   588 pts/0    S+   12:33   0:00 grep --color=auto js-controller
                                    
                                    

                                    Rechtevergabe mit sudo bringt Fehlermeldung:

                                    root@ioBroker-Master:/# sudo chown -R iobroker:iobroker /home/iobroker/.npm
                                    sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
                                    sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0
                                    sudo: fatal error, unable to load plugins
                                    
                                    

                                    ohne sudo:

                                    root@ioBroker-Master:/# chown -R iobroker:iobroker /home/iobroker/.npm
                                    chown: cannot access '/home/iobroker/.npm': No such file or directory
                                    
                                    

                                    An der Stelle mal ein Dankeschön für die viele Arbeit und Energie die ihr hier in das Projekt steckt!

                                    1 Reply Last reply Reply Quote 0
                                    • G
                                      Georgius last edited by

                                      Und das Verzeichnis/File existiert wirklich?

                                      1 Reply Last reply Reply Quote 0
                                      • K
                                        Kaldi last edited by

                                        @Georgius:

                                        Und das Verzeichnis/File existiert wirklich? `

                                        hmmm… so wie es aussieht, nicht (weder auf dem Master, noch auf dem Slave). Was steht denn da drin, bzw. was gehört da rein (.npm)

                                        root@ioBroker-Master:/home/iobroker# ls -la
                                        total 36
                                        drwxr-xr-x  5 1023 1023 4096 Jan  8 14:26 .
                                        drwxr-xr-x. 4 1023 1023 4096 Jan  8 14:26 ..
                                        -rw-r--r--  1 1023 1023  220 Apr  4  2018 .bash_logout
                                        -rw-r--r--  1 1023 1023 3771 Apr  4  2018 .bashrc
                                        drwxr-xr-x  5 1023 1023 4096 Dez 28 07:41 .config
                                        drwxrwxr-x  2 1023 1023 4096 Dez 28 07:41 Desktop
                                        drwxr-xr-x  3 1023 1023 4096 Dez 28 07:41 .local
                                        -rw-r--r--  1 1023 1023  807 Apr  4  2018 .profile
                                        -rw-r--r--  1 1023 1023   20 Dez 28 07:39 .xscreensaver
                                        
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • AlCalzone
                                          AlCalzone Developer last edited by

                                          Wenn npm als iobroker-User ausgeführt wird, sollten da eigentlich der Cache und so erstellt werden. Bei dir liegt er aktuell unter /root/.npm, was auch vollkommen normal ist, wenn als root installiert wird. iobroker wird jedenfalls unter dem korrekten User ausgeführt - jetzt bin ich etwas ratlos, warum dennoch versucht wird, auf /root/.npm zuzugreifen.

                                          Edit: Anscheinend greift npm auch auf ~/.config zu. Probiere bitte mal folgendes (ohne sudo als root):

                                          sudo chown -R iobroker:iobroker /home/iobroker/.config
                                          

                                          Geht danach die Installation ohne Fehler?

                                          1 Reply Last reply Reply Quote 0
                                          • K
                                            Kaldi last edited by

                                            @AlCalzone:

                                            Edit: Anscheinend greift npm auch auf ~/.config zu. Probiere bitte mal folgendes (ohne sudo als root):

                                            sudo chown -R iobroker:iobroker /home/iobroker/.config
                                            

                                            Geht danach die Installation ohne Fehler? `

                                            leider nein. Habe auf Master und Slave die Berechtigungen für iobroker gesetzt, beide neu gebootet, gleiches Szenario. Beim Installieren eines Adapters kommt der Fehler wieder. Kurioserweise wird versucht, den Adapter auf beiden Hosts zu installieren, sowohl Master, als auch slave. Ist aber nur beim Smartmeter - den hatte ich vor den Fehlermeldungen auch auf beiden installiert und wieder deinstalliert.

                                            $ ./iobroker add smartmeter  --host ioBroker-Strom
                                            NPM version: 6.4.1
                                            npm install iobroker.smartmeter --production --save --prefix "/opt/iobroker" (System call)
                                            Unhandled rejection Error: EACCES: permission denied, mkdir '/home/iobroker/.npm'
                                            npm
                                             ERR! cb() never called!
                                            npm ERR!
                                             This is an error with npm itself. Please report this error at:npm ERR!     <https: npm.community="">
                                            
                                            host.ioBroker-Master install adapter smartmeter
                                            NPM version: 6.4.1
                                            npm install iobroker.smartmeter --production --save --prefix "/opt/iobroker" (System call)
                                            Unhandled rejection Error: EACCES: permission denied, mkdir '/home/iobroker/.npm'
                                            npm
                                             ERR! cb() never called!
                                            npm ERR!
                                             This is an error with npm itself. Please report this error at:npm ERR!     <https: npm.community="">
                                            
                                            host.ioBroker-Master install adapter smartmeter
                                            NPM version: 6.4.1
                                            npm install iobroker.smartmeter --production --save --prefix "/opt/iobroker" (System call)
                                            Unhandled rejection Error: EACCES: permission denied, mkdir '/home/iobroker/.npm'
                                            npm
                                             ERR! cb() never called!
                                            npm ERR!
                                             This is an error with npm itself. Please report this error at:npm ERR!     <https: npm.community="">
                                            
                                            host.ioBroker-Master install adapter smartmeter
                                            ERROR: host.ioBroker-Master Cannot install smartmeter
                                            ERROR: process exited with code 13</https:></https:></https:>
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            931
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            eacces install npm sudo
                                            14
                                            53
                                            34102
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo