Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [Frage] Iobroker auf QNAP, USB durchschleifen (für smartmeter)

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    [Frage] Iobroker auf QNAP, USB durchschleifen (für smartmeter)

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

      Ich glaube du hast vergessen ins iobroker Verzeichnis zu wechseln und es wurde allesin .qpkg/ installiert.

      (Mein Fehler, habs nicht explizit hingeschrieben)

      Da scheint einiges an aufräumarbeit zu sein.

      Diverse Warnungen sind glaube ich normal.

      Wenn der link nach einem reboot gelöscht ist, dann wird in /Root/.node_gyp die Dateien abgelegt und da ist nicht genug Platz.

      Gesendet von iPhone mit Tapatalk

      1 Reply Last reply Reply Quote 0
      • coyote
        coyote Most Active last edited by

        Hab ich mir schon fast gedacht.

        Sieht jetzt so aus:

        [~] # cd /share/CACHEDEV1_DATA/.qpkg
        [/share/CACHEDEV1_DATA/.qpkg] # ls
        CloudLink/          iobroker-data/  Octoprint/    QsyncServer/
        container-station/  killall.sh      package.json  reinstall.sh
        etc/                log/            Python/       SurveillanceStation/
        helpdesk/           nodejsv6/       QJDK8/        Unifi/
        iobroker/           node_modules/   QKVM/         VirtualHere/
        [/share/CACHEDEV1_DATA/.qpkg] # cd ioboker
        -sh: cd: ioboker: No such file or directory
        [/share/CACHEDEV1_DATA/.qpkg] # cd iobroker
        [/share/CACHEDEV1_DATA/.qpkg/iobroker] # ls
        iobroker@1.0.8  node
        [/share/CACHEDEV1_DATA/.qpkg/iobroker] #
        
        

        Habe aber auch danach versucht in das iobroker Verzeichnis zu installieren, ging aber auch nicht.

        > Wenn der link nach einem reboot gelöscht ist, dann wird in /Root/.node_gyp die Dateien abgelegt und da ist nicht genug Platz.
        Ok, heißt ich muss nach nem Reboot immer das hier ausführen:

        ln -s /share/homes/root/.node-gyp /root/.
        ln -s /share/homes/root/.npm /root/.
        

        Und das kommt wenn ich versuche in das iobroker Verzeichnis zu installieren:

        [/share/CACHEDEV1_DATA/.qpkg] # cd iobroker
        [/share/CACHEDEV1_DATA/.qpkg/iobroker] # npm install iobroker --unsafe-perm
        
        > unix-dgram@0.2.3 install /share/CACHEDEV1_DATA/.qpkg/node_modules/unix-dgram
        > node-gyp rebuild
        
        Traceback (most recent call last):
          File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 13, in <module>import gyp
          File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in <module>import gyp.input
          File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in <module>from compiler.ast import Const
          File "/root/daily_build/64_26/4.3.4/SysUtil/Python-2.7.5-cross/install_path_full/lib/python2.7/compiler/__init__.py", line 29, in <module>File "/root/daily_build/64_26/4.3.4/SysUtil/Python-2.7.5-cross/install_path_full/lib/python2.7/compiler/transformer.py", line 29, in <module>ImportError: No module named parser
        gyp ERR! configure error
        gyp ERR! stack Error: `gyp` failed with exit code: 1
        gyp ERR! stack     at ChildProcess.onCpExit (/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
        gyp ERR! stack     at emitTwo (events.js:106:13)
        gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
        gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
        gyp ERR! System Linux 4.2.8
        gyp ERR! command "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/bin/node" "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
        gyp ERR! cwd /share/CACHEDEV1_DATA/.qpkg/node_modules/unix-dgram
        gyp ERR! node -v v6.11.1
        gyp ERR! node-gyp -v v3.4.0
        gyp ERR! not ok
        
        > ursa@0.9.4 install /share/CACHEDEV1_DATA/.qpkg/node_modules/ursa
        > node-gyp rebuild
        
        Traceback (most recent call last):
          File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 13, in <module>import gyp
          File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in <module>import gyp.input
          File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in <module>from compiler.ast import Const
          File "/root/daily_build/64_26/4.3.4/SysUtil/Python-2.7.5-cross/install_path_full/lib/python2.7/compiler/__init__.py", line 29, in <module>File "/root/daily_build/64_26/4.3.4/SysUtil/Python-2.7.5-cross/install_path_full/lib/python2.7/compiler/transformer.py", line 29, in <module>ImportError: No module named parser
        gyp ERR! configure error
        gyp ERR! stack Error: `gyp` failed with exit code: 1
        gyp ERR! stack     at ChildProcess.onCpExit (/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
        gyp ERR! stack     at emitTwo (events.js:106:13)
        gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
        gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
        gyp ERR! System Linux 4.2.8
        gyp ERR! command "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/bin/node" "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
        gyp ERR! cwd /share/CACHEDEV1_DATA/.qpkg/node_modules/ursa
        gyp ERR! node -v v6.11.1
        gyp ERR! node-gyp -v v3.4.0
        gyp ERR! not ok
        
        > iobroker@1.0.8 install /share/CACHEDEV1_DATA/.qpkg/node_modules/iobroker
        > node lib/setup.js
        
        NPM version: 2.15.12
        
        npm install iobroker.discovery --production --save --prefix /share/CACHEDEV1_DATA/.qpkg
        npm install iobroker.admin --production --save --prefix /share/CACHEDEV1_DATA/.qpkg
        npm install iobroker.js-controller --production --save --prefix /share/CACHEDEV1_DATA/.qpkg
        Non-critical error: EISDIR: illegal operation on a directory, open '/share/CACHEDEV1_DATA/.qpkg/iobroker'
        iobroker.inst@1.0.8 /share/CACHEDEV1_DATA/.qpkg
        └── iobroker@1.0.8
        
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@0.2.3 (node_modules/unix-dgram):
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@0.2.3 install: `node-gyp rebuild`
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 (node_modules/ursa):
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 install: `node-gyp rebuild`
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
        [/share/CACHEDEV1_DATA/.qpkg/iobroker] # iobroker add admin --port 8089
        -sh: iobroker: command not found</module></module></module></module></module></module></module></module></module></module> 
        
        1 Reply Last reply Reply Quote 0
        • F
          foxthefox Developer last edited by

          Ich versuche es heute Abend mal nachzuvollziehen und melde mich.

          Es scheint immer noch bei manchen aufrufen das falsche Verzeichnis zu benutzen.

          Gesendet von iPhone mit Tapatalk

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

            Die USB-Ports kannst du im Docker allerdings auch durchreichen. Das kannst du in den Containersettings einstellen.

            Gruß

            Matze

            1 Reply Last reply Reply Quote 0
            • F
              foxthefox Developer last edited by

              @coyote:

              Hab ich mir schon fast gedacht.

              Sieht jetzt so aus:

              [~] # cd /share/CACHEDEV1_DATA/.qpkg
              [/share/CACHEDEV1_DATA/.qpkg] # ls
              CloudLink/          iobroker-data/  Octoprint/    QsyncServer/
              container-station/  killall.sh      package.json  reinstall.sh
              etc/                log/            Python/       SurveillanceStation/
              helpdesk/           nodejsv6/       QJDK8/        Unifi/
              iobroker/           node_modules/   QKVM/         VirtualHere/
              [/share/CACHEDEV1_DATA/.qpkg] # cd ioboker
              -sh: cd: ioboker: No such file or directory
              [/share/CACHEDEV1_DATA/.qpkg] # cd iobroker
              [/share/CACHEDEV1_DATA/.qpkg/iobroker] # ls
              iobroker@1.0.8  node
              [/share/CACHEDEV1_DATA/.qpkg/iobroker] #
              
              

              Habe aber auch danach versucht in das iobroker Verzeichnis zu installieren, ging aber auch nicht. `

              Hier sollte im .qpkg Verzeichnis ein npm uninstall iobroker helfen, es aufzuräumen.

              @coyote:

              > Wenn der link nach einem reboot gelöscht ist, dann wird in /Root/.node_gyp die Dateien abgelegt und da ist nicht genug Platz.
              Ok, heißt ich muss nach nem Reboot immer das hier ausführen:

              ln -s /share/homes/root/.node-gyp /root/.
              ln -s /share/homes/root/.npm /root/.
              ```` `  
              

              Ja. allerdings war hier bei meiner schnellen Tipperei heute früh ein Fehler drin, so muß es sein:

                  	ln -s /share/homes/root/.node-gyp /root/.node-gyp
                  	ln -s /share/homes/root/.npm /root/.npm
              

              Somit dürften die links bei dir auch nicht richtig gesetzt sein und u.U. ist dein root Verzeichnis voll.

              D.h. die links müssen auf jeden Fall neu angelegt werden.

              Hast du die qnap Oberfläche aufgehabt? Falls dort Fehlermeldungen bzgl. Speicherknappheit sind, dann ist das root-verzeichnis die Ursache.

              @coyote:

              Und das kommt wenn ich versuche in das iobroker Verzeichnis zu installieren:

              [/share/CACHEDEV1_DATA/.qpkg] # cd iobroker
              [/share/CACHEDEV1_DATA/.qpkg/iobroker] # npm install iobroker --unsafe-perm
              
              > unix-dgram@0.2.3 install /share/CACHEDEV1_DATA/.qpkg/node_modules/unix-dgram
              > node-gyp rebuild
              
              Traceback (most recent call last):
                File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 13, in <module>import gyp
                File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in <module>import gyp.input
                File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in <module>from compiler.ast import Const
                File "/root/daily_build/64_26/4.3.4/SysUtil/Python-2.7.5-cross/install_path_full/lib/python2.7/compiler/__init__.py", line 29, in <module>File "/root/daily_build/64_26/4.3.4/SysUtil/Python-2.7.5-cross/install_path_full/lib/python2.7/compiler/transformer.py", line 29, in <module>ImportError: No module named parser
              gyp ERR! configure error
              gyp ERR! stack Error: `gyp` failed with exit code: 1
              gyp ERR! stack     at ChildProcess.onCpExit (/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
              gyp ERR! stack     at emitTwo (events.js:106:13)
              gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
              gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
              gyp ERR! System Linux 4.2.8
              gyp ERR! command "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/bin/node" "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
              gyp ERR! cwd /share/CACHEDEV1_DATA/.qpkg/node_modules/unix-dgram
              gyp ERR! node -v v6.11.1
              gyp ERR! node-gyp -v v3.4.0
              gyp ERR! not ok
              
              > ursa@0.9.4 install /share/CACHEDEV1_DATA/.qpkg/node_modules/ursa
              > node-gyp rebuild
              
              Traceback (most recent call last):
                File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 13, in <module>import gyp
                File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in <module>import gyp.input
                File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in <module>from compiler.ast import Const
                File "/root/daily_build/64_26/4.3.4/SysUtil/Python-2.7.5-cross/install_path_full/lib/python2.7/compiler/__init__.py", line 29, in <module>File "/root/daily_build/64_26/4.3.4/SysUtil/Python-2.7.5-cross/install_path_full/lib/python2.7/compiler/transformer.py", line 29, in <module>ImportError: No module named parser
              gyp ERR! configure error
              gyp ERR! stack Error: `gyp` failed with exit code: 1
              gyp ERR! stack     at ChildProcess.onCpExit (/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
              gyp ERR! stack     at emitTwo (events.js:106:13)
              gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
              gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
              gyp ERR! System Linux 4.2.8
              gyp ERR! command "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/bin/node" "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
              gyp ERR! cwd /share/CACHEDEV1_DATA/.qpkg/node_modules/ursa
              gyp ERR! node -v v6.11.1
              gyp ERR! node-gyp -v v3.4.0
              gyp ERR! not ok
              
              > iobroker@1.0.8 install /share/CACHEDEV1_DATA/.qpkg/node_modules/iobroker
              > node lib/setup.js
              
              NPM version: 2.15.12
              
              npm install iobroker.discovery --production --save --prefix /share/CACHEDEV1_DATA/.qpkg
              npm install iobroker.admin --production --save --prefix /share/CACHEDEV1_DATA/.qpkg
              npm install iobroker.js-controller --production --save --prefix /share/CACHEDEV1_DATA/.qpkg
              Non-critical error: EISDIR: illegal operation on a directory, open '/share/CACHEDEV1_DATA/.qpkg/iobroker'
              iobroker.inst@1.0.8 /share/CACHEDEV1_DATA/.qpkg
              └── iobroker@1.0.8
              
              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@0.2.3 (node_modules/unix-dgram):
              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@0.2.3 install: `node-gyp rebuild`
              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 (node_modules/ursa):
              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 install: `node-gyp rebuild`
              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
              [/share/CACHEDEV1_DATA/.qpkg/iobroker] # iobroker add admin --port 8089
              -sh: iobroker: command not found</module></module></module></module></module></module></module></module></module></module> 
              ```` `  
              

              Die Errors und Warnings kann ich noch nicht erklären, dazu muß ich es mal selbst neu aufsetzen.

              Der letzte Befehl braucht ein "./" da man als root den befehl absetzt.

              Was passiert den bei ./iobroker start ?

              Stoppen wäre ./iobroker stop.

              1 Reply Last reply Reply Quote 0
              • coyote
                coyote Most Active last edited by

                @Matzebhv:

                Die USB-Ports kannst du im Docker allerdings auch durchreichen. Das kannst du in den Containersettings einstellen.

                Gruß

                Matze `

                Wenn du mir sagst wie, mache ich das gerne. Ich hab es nicht hinbekommen.

                > Hier sollte im .qpkg Verzeichnis ein npm uninstall iobroker helfen, es aufzuräumen.
                Das geht leider nicht, command not found

                Ok, die links hab ich neu gesetzt.
                > Hast du die qnap Oberfläche aufgehabt? Falls dort Fehlermeldungen bzgl. Speicherknappheit sind, dann ist das root-verzeichnis die Ursache.
                Nein, waren keine Fehlermeldungen.

                > Was passiert den bei ./iobroker start ?

                ./iobroker: No such file or directory

                1 Reply Last reply Reply Quote 0
                • F
                  foxthefox Developer last edited by

                  @coyote:

                  .

                  > Hier sollte im .qpkg Verzeichnis ein npm uninstall iobroker helfen, es aufzuräumen.
                  Das geht leider nicht, command not found `
                  war bei mir auch nicht so erfolgreich, allerdings sollte der Befehl npm immer gefunden werden.

                  @coyote:

                  Ok, die links hab ich neu gesetzt.
                  > Hast du die qnap Oberfläche aufgehabt? Falls dort Fehlermeldungen bzgl. Speicherknappheit sind, dann ist das root-verzeichnis die Ursache.
                  Nein, waren keine Fehlermeldungen. `
                  Das keine Fehlermeldungen da sind, ist schon einmal gut.

                  @coyote:

                  > Was passiert den bei ./iobroker start ?

                  ./iobroker: No such file or directory `
                  Das ist auch widerrum komisch, denn es wurde ja am Ende doch etwas installiert.

                  Ich habe es mal bei mir nachvollzogen und bei mir kommen die gleichen errors und warnings.

                  Lediglich gibt es bei mir keine "npm WARN optional SKIPPING OPTIONAL DEPENDENCY" und die Installation ended etwas anders.

                  Evtl. liegt es daran.

                  Im Verzeichnis iobroker geht bei mir der Aufruf ./iobroker da ja auch eine gleichartige Datei im verzeichnis vorhanden ist.

                  Bin jetzt etwas ratlos, warum bei dir die Installation kein Ergebnis bringt.

                  1 Reply Last reply Reply Quote 0
                  • coyote
                    coyote Most Active last edited by

                    Sorry, mit deinstallieren war mein Fehler, hatte das "npm" überlesen.

                    Funktioniert dann auch mit mäßigem Erfolg, wie du auch schon sagst.

                    Habe nochmal alles von Anfang probiert, das kommt dabei raus. Verstehe aber nicht warum.

                    [/share/CACHEDEV1_DATA/.qpkg/iobroker] # npm install iobroker --unsafe-perm
                    
                    > unix-dgram@0.2.3 install /share/CACHEDEV1_DATA/.qpkg/node_modules/unix-dgram
                    > node-gyp rebuild
                    
                    Traceback (most recent call last):
                      File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 13, in <module>import gyp
                      File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in <module>import gyp.input
                      File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in <module>from compiler.ast import Const
                      File "/root/daily_build/64_26/4.3.4/SysUtil/Python-2.7.5-cross/install_path_full/lib/python2.7/compiler/__init__.py", line 29, in <module>File "/root/daily_build/64_26/4.3.4/SysUtil/Python-2.7.5-cross/install_path_full/lib/python2.7/compiler/transformer.py", line 29, in <module>ImportError: No module named parser
                    gyp ERR! configure error
                    gyp ERR! stack Error: `gyp` failed with exit code: 1
                    gyp ERR! stack     at ChildProcess.onCpExit (/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
                    gyp ERR! stack     at emitTwo (events.js:106:13)
                    gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
                    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
                    gyp ERR! System Linux 4.2.8
                    gyp ERR! command "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/bin/node" "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                    gyp ERR! cwd /share/CACHEDEV1_DATA/.qpkg/node_modules/unix-dgram
                    gyp ERR! node -v v6.11.1
                    gyp ERR! node-gyp -v v3.4.0
                    gyp ERR! not ok
                    
                    > ursa@0.9.4 install /share/CACHEDEV1_DATA/.qpkg/node_modules/ursa
                    > node-gyp rebuild
                    
                    Traceback (most recent call last):
                      File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 13, in <module>import gyp
                      File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in <module>import gyp.input
                      File "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in <module>from compiler.ast import Const
                      File "/root/daily_build/64_26/4.3.4/SysUtil/Python-2.7.5-cross/install_path_full/lib/python2.7/compiler/__init__.py", line 29, in <module>File "/root/daily_build/64_26/4.3.4/SysUtil/Python-2.7.5-cross/install_path_full/lib/python2.7/compiler/transformer.py", line 29, in <module>ImportError: No module named parser
                    gyp ERR! configure error
                    gyp ERR! stack Error: `gyp` failed with exit code: 1
                    gyp ERR! stack     at ChildProcess.onCpExit (/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
                    gyp ERR! stack     at emitTwo (events.js:106:13)
                    gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
                    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
                    gyp ERR! System Linux 4.2.8
                    gyp ERR! command "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/bin/node" "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                    gyp ERR! cwd /share/CACHEDEV1_DATA/.qpkg/node_modules/ursa
                    gyp ERR! node -v v6.11.1
                    gyp ERR! node-gyp -v v3.4.0
                    gyp ERR! not ok
                    
                    > iobroker@1.0.8 install /share/CACHEDEV1_DATA/.qpkg/node_modules/iobroker
                    > node lib/setup.js
                    
                    NPM version: 2.15.12
                    
                    npm install iobroker.discovery --production --save --prefix /share/CACHEDEV1_DATA/.qpkg
                    npm install iobroker.admin --production --save --prefix /share/CACHEDEV1_DATA/.qpkg
                    npm install iobroker.js-controller --production --save --prefix /share/CACHEDEV1_DATA/.qpkg
                    Non-critical error: EISDIR: illegal operation on a directory, open '/share/CACHEDEV1_DATA/.qpkg/iobroker'
                    iobroker.inst@1.0.8 /share/CACHEDEV1_DATA/.qpkg
                    └── iobroker@1.0.8
                    
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@0.2.3 (node_modules/unix-dgram):
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@0.2.3 install: `node-gyp rebuild`
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 (node_modules/ursa):
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 install: `node-gyp rebuild`
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                    
                    [/share/CACHEDEV1_DATA/.qpkg/iobroker] # ./iobroker start
                    -sh: ./iobroker: No such file or directory</module></module></module></module></module></module></module></module></module></module> 
                    

                    Die Datei ./iobroker ist auch gar nicht vorhanden.

                    1 Reply Last reply Reply Quote 0
                    • F
                      foxthefox Developer last edited by

                      hab nochmal etwas herumprobiert.

                      Nach dem Neustart war im Verzeichnis erwartungsgemäß kein .node-gyp und .npm,

                      somit die links neu gesetzt.

                      Bei mir liegt Python 2.t im Verzeichnis …/.qpkg/Python

                      Da scheinbar die Warnings und Errors von nicht gefundenen python herrühren, hab ich Umgebungsvariable wie folgt gesetzt:

                      npm config set python /share/CACHEDEV1_DATA/.qpkg/Python/src/bin/python

                      dann das Verzeichnis iobroker gelöscht und neu angelegt

                      chmod 777 iobroker

                      danach in iobroker Verzeichnis wechseln

                      und npm install iobroker --unsafe-perm

                      -> Installation ohne warnings und errors von node-gyp

                      da dieQNAP-Oberfläche und iobroker auf port 8081 wären, habe ich die instanz admin.0 gelöscht

                      ./iobroker del admin.0

                      und mit

                      ./iobroker add admin --port 8085

                      auf neuen port 8085 wieder installiert

                      ./iobroker start war erfolgreich und im browser aufrufbar

                      1 Reply Last reply Reply Quote 0
                      • coyote
                        coyote Most Active last edited by

                        Guten morgen,

                        habe nochmals probiert, leider ohne Erfolg. Ist es richtig dass er die Ordner node-modules,iobroker-data usw. nicht im erstellten iobroker Verzeichnis installiert? Das wundert mich etwas, sollte das nicht alles unter "iobroker" liegen?

                        [~] # npm config set python /share/CACHEDEV1_DATA/.qpkg/Python/src/bin/python
                        [~] # cd /share/CACHEDEV1_DATA/.qpkg
                        [/share/CACHEDEV1_DATA/.qpkg] # rm -r iobroker
                        [/share/CACHEDEV1_DATA/.qpkg] # mkdir iobroker
                        [/share/CACHEDEV1_DATA/.qpkg] # chmod 777 iobroker
                        [/share/CACHEDEV1_DATA/.qpkg] # cd iobroker
                        [/share/CACHEDEV1_DATA/.qpkg/iobroker] # npm install iobroker --unsafe-perm
                        
                        > unix-dgram@0.2.3 install /share/CACHEDEV1_DATA/.qpkg/node_modules/unix-dgram
                        > node-gyp rebuild
                        
                        gyp ERR! build error
                        gyp ERR! stack Error: not found: make
                        gyp ERR! stack     at getNotFoundError (/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/which.js:14:12)
                        gyp ERR! stack     at F (/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/which.js:69:19)
                        gyp ERR! stack     at E (/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/which.js:81:29)
                        gyp ERR! stack     at /share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/which.js:90:16
                        gyp ERR! stack     at /share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
                        gyp ERR! stack     at /share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
                        gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:123:15)
                        gyp ERR! System Linux 4.2.8
                        gyp ERR! command "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/bin/node" "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                        gyp ERR! cwd /share/CACHEDEV1_DATA/.qpkg/node_modules/unix-dgram
                        gyp ERR! node -v v6.11.1
                        gyp ERR! node-gyp -v v3.4.0
                        gyp ERR! not ok
                        
                        > ursa@0.9.4 install /share/CACHEDEV1_DATA/.qpkg/node_modules/ursa
                        > node-gyp rebuild
                        
                        gyp ERR! build error
                        gyp ERR! stack Error: not found: make
                        gyp ERR! stack     at getNotFoundError (/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/which.js:14:12)
                        gyp ERR! stack     at F (/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/which.js:69:19)
                        gyp ERR! stack     at E (/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/which.js:81:29)
                        gyp ERR! stack     at /share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/which.js:90:16
                        gyp ERR! stack     at /share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
                        gyp ERR! stack     at /share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
                        gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:123:15)
                        gyp ERR! System Linux 4.2.8
                        gyp ERR! command "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/bin/node" "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                        gyp ERR! cwd /share/CACHEDEV1_DATA/.qpkg/node_modules/ursa
                        gyp ERR! node -v v6.11.1
                        gyp ERR! node-gyp -v v3.4.0
                        gyp ERR! not ok
                        
                        > iobroker@1.0.8 install /share/CACHEDEV1_DATA/.qpkg/node_modules/iobroker
                        > node lib/setup.js
                        
                        NPM version: 2.15.12
                        
                        npm install iobroker.discovery --production --save --prefix /share/CACHEDEV1_DATA/.qpkg
                        npm install iobroker.admin --production --save --prefix /share/CACHEDEV1_DATA/.qpkg
                        npm install iobroker.js-controller --production --save --prefix /share/CACHEDEV1_DATA/.qpkg
                        Non-critical error: EISDIR: illegal operation on a directory, open '/share/CACHEDEV1_DATA/.qpkg/iobroker'
                        iobroker.inst@1.0.8 /share/CACHEDEV1_DATA/.qpkg
                        └── iobroker@1.0.8
                        
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@0.2.3 (node_modules/unix-dgram):
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@0.2.3 install: `node-gyp rebuild`
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 (node_modules/ursa):
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 install: `node-gyp rebuild`
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                        [/share/CACHEDEV1_DATA/.qpkg/iobroker] # ./iobroker del admin.0
                        -sh: ./iobroker: No such file or directory
                        [/share/CACHEDEV1_DATA/.qpkg/iobroker] # ls
                        [/share/CACHEDEV1_DATA/.qpkg/iobroker] # iobroker start
                        -sh: iobroker: command not found
                        [/share/CACHEDEV1_DATA/.qpkg/iobroker] # cd ..
                        [/share/CACHEDEV1_DATA/.qpkg] # ls
                        CloudLink/          iobroker/       nodejsv6/      QDMS/         qusbcam2/             Unifi/
                        container-station/  iobroker-data/  node_modules/  QJDK8/        reinstall.sh
                        etc/                killall.sh      package.json   QKVM/         SurveillanceStation/
                        helpdesk/           log/            Python/        QsyncServer/  ubuntu-hd/
                        
                        

                        EDIT: Genau daran lag es, habe jetzt alles von Hand über WinSCP in das iobroker Verzeichnis verschoben und schon läuft das Ding 8-)

                        EDIT2: Leider doch noch nicht so ganz, wollte gerade einen Adapter installieren. Da kommt dann auch der Error:

                        iobroker	2018-02-16 11:29:34.854	info	npm install iobroker.amazon-dash --production --prefix "/share/CACHEDEV1_DATA/.qpkg/iobroker" (System call)
                        iobroker	2018-02-16 11:29:34.714	info	host.NAS1C16C2 install adapter amazon-dash
                        iobroker	2018-02-16 11:29:34.694	info	npm ERR! Please include the following file with any support request:npm ERR! /share/CACHEDEV1_DATA/.qpkg/npm-debug.log
                        iobroker	2018-02-16 11:29:34.693	info	
                        iobroker	2018-02-16 11:29:34.634	info	npm ERR! There is likely additional logging output above.
                        iobroker	2018-02-16 11:29:34.634	info	npm ERR! npm owner ls socketwatcher
                        iobroker	2018-02-16 11:29:34.634	info	npm ERR! Or if that isn't available, you can get their info via:
                        iobroker	2018-02-16 11:29:34.634	info	npm ERR! npm bugs socketwatcher
                        iobroker	2018-02-16 11:29:34.634	info	npm ERR! You can get information on how to open an issue for this project with:
                        iobroker	2018-02-16 11:29:34.634	info	ERR! Tell the author that this fails on your system:npm ERR! node-gyp rebuild
                        iobroker	2018-02-16 11:29:34.631	info	npm
                        iobroker	2018-02-16 11:29:34.631	info	npm ERR! not with npm itself.
                        iobroker	2018-02-16 11:29:34.631	info	npm ERR! If you do, this is most likely a problem with the socketwatcher package,
                        iobroker	2018-02-16 11:29:34.631	info	npm ERR! Make sure you have the latest version of node.js and npm installed.
                        iobroker	2018-02-16 11:29:34.631	info	npm ERR! Failed at the socketwatcher@0.3.0 install script 'node-gyp rebuild'.
                        iobroker	2018-02-16 11:29:34.631	info	npm ERR!
                        iobroker	2018-02-16 11:29:34.631	info	npm ERR! Exit status 1
                        iobroker	2018-02-16 11:29:34.631	info	npm ERR! socketwatcher@0.3.0 install: `node-gyp rebuild`
                        iobroker	2018-02-16 11:29:34.631	info	npm ERR! code ELIFECYCLE
                        iobroker	2018-02-16 11:29:34.624	info	npm ERR! npm v3.10.10
                        iobroker	2018-02-16 11:29:34.624	info	npm ERR! argv "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/bin/node" "/usr/local/bin/npm" "install" "iobroker.amazon-dash" "--production" "--prefix" "/share/CACHEDEV1_DATA/.qpkg/iobroker"npm ERR! node
                        iobroker	2018-02-16 11:29:34.623	info	npm ERR! Linux 4.2.8
                        iobroker	2018-02-16 11:29:34.216	info	ERR! node-gyp -v v3.4.0gyp ERR! not ok
                        iobroker	2018-02-16 11:29:34.215	info	gyp
                        iobroker	2018-02-16 11:29:34.215	info	gyp ERR! node -v v6.11.1
                        iobroker	2018-02-16 11:29:34.215	info	gyp ERR! cwd /share/CACHEDEV1_DATA/.qpkg/iobroker/node_modules/socketwatcher
                        iobroker	2018-02-16 11:29:34.215	info	gyp ERR! System Linux 4.2.8gyp ERR! command "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/bin/node" "/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
                        iobroker	2018-02-16 11:29:34.214	info	gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15)
                        iobroker	2018-02-16 11:29:34.214	info	ERR! stack at /share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5gyp ERR! stack at /share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/li
                        iobroker	2018-02-16 11:29:34.213	info	gyp
                        iobroker	2018-02-16 11:29:34.213	info	gyp ERR! stack at /share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/which.js:90:16
                        iobroker	2018-02-16 11:29:34.213	info	gyp ERR! stack at E (/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/which.js:81:29)
                        iobroker	2018-02-16 11:29:34.213	info	gyp ERR! stack at F (/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/which.js:69:19)
                        iobroker	2018-02-16 11:29:34.213	info	ERR! stack Error: not found: makegyp ERR! stack at getNotFoundError (/share/CACHEDEV1_DATA/.qpkg/nodejsv6/node/lib/node_modules/npm/node_modules/which/which.js:14:12)
                        iobroker	2018-02-16 11:29:34.212	info	gyp
                        iobroker	2018-02-16 11:29:34.208	info	ERR! build error
                        iobroker	2018-02-16 11:29:34.207	info	
                        iobroker	2018-02-16 11:29:34.203	info	gyp
                        iobroker	2018-02-16 11:29:32.381	info	npm WARN lifecycle iobroker.amazon-dash@0.2.8~preinstall: cannot run in wd %s %s (wd=%s) iobroker.amazon-dash@0.2.8 apt-get install libpcap-dev -y || true /share/CACHEDEV1_DATA/.qpkg/iobroker
                        
                        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

                        864
                        Online

                        32.0k
                        Users

                        80.5k
                        Topics

                        1.3m
                        Posts

                        4
                        21
                        2944
                        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