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

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • 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.
    • coyote
      coyote Most Active last edited by

      Guten morgen,

      ich habe gestern erfolgreich ioBroker auf meinem neuen QNAP NAS in einem Docker Container installiert. Läuft alles soweit bestens.

      Jedoch hatte ich noch den Smartmeter Adapter auf dem Cubie mit einem Volkszähler Modul über USB laufen.

      Weiß oder hat jemand sowas über USB an einem NAS laufen?

      Irgendwie müsste man den USB Anschluss in den Docker Container schleifen, weiß nur leider nicht wie.

      Grüße

      1 Reply Last reply Reply Quote 0
      • C
        CBMOD last edited by

        @coyote:

        Irgendwie müsste man den USB Anschluss in den Docker Container schleifen, weiß nur leider nicht wie. `
        Kannst Du am NAS installieren? Ist ja bestimmt Linux…

        Ich habe im ESXi ähnliches Problem und konnte mit virtualhere den USB vom RPi in den ESXi

        docken.

        Das bedeutet, auf NAS und im DockContainer installiert könnte es funktionieren.

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

          Hmm, ich weiß zwar wie du das meinst, aber da komme ich leider nicht weiter. Keine Ahnung wie ich das einrichten muss. Installiert hab ich es auf dem NAS und als Docker Container.

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

            Hilft nicht wirklich zur Frage, aber ich lass iobroker direkt auf dem qnap laufen. Damit funktioniert auf jeden Fall die USB Geschichte, ich hab da jeelink angebunden. Andere durchleitungsprobleme mit IP Adressen gibts dann auch nicht.

            Gesendet von iPhone mit Tapatalk

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

              @foxthefox:

              Hilft nicht wirklich zur Frage, aber ich lass iobroker direkt auf dem qnap laufen. Damit funktioniert auf jeden Fall die USB Geschichte, ich hab da jeelink angebunden. Andere durchleitungsprobleme mit IP Adressen gibts dann auch nicht. `

              Was heißt denn direkt? In ner VM oder was meinst du?

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

                @coyote:

                @foxthefox:

                Hilft nicht wirklich zur Frage, aber ich lass iobroker direkt auf dem qnap laufen. Damit funktioniert auf jeden Fall die USB Geschichte, ich hab da jeelink angebunden. Andere durchleitungsprobleme mit IP Adressen gibts dann auch nicht. `

                Was heißt denn direkt? In ner VM oder was meinst du? `

                Na genauso nativ, wie andere Programme auch darauf laufen, z.b openHAB, MySQL, WordPress o.ä.

                NodeJs lässt sich installieren und dann noch ein paar Befehle hinterhergeschoben und schon ist iobroker am rennen.

                Hab schonmal versucht in qpkg für iobroker zu erstellen, lief aber bisher nicht ganz stabil.

                Gesendet von iPhone mit Tapatalk

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

                  Meinst du, du könntest mir das etwas näher erklären? Das wäre top, wenn das so funktioniert.

                  Kenne mich da leider noch zu wenig mit aus.

                  NodeJS werde ich noch installiert bekommen, aber dann weiter….

                  Gesendet von meinem VTR-L09 mit Tapatalk

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

                    @coyote:

                    Meinst du, du könntest mir das etwas näher erklären? Das wäre top, wenn das so funktioniert.

                    Kenne mich da leider noch zu wenig mit aus.

                    NodeJS werde ich noch installiert bekommen, aber dann weiter….

                    Gesendet von meinem VTR-L09 mit Tapatalk `

                    Gib mir etwas Zeit, ich such die Kommandos zusammen.

                    So schwierig ist es nicht, man braucht halt die Kommandozeile 😉

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

                      ` > Gib mir etwas Zeit, ich such die Kommandos zusammen.

                      So schwierig ist es nicht, man braucht halt die Kommandozeile 😉 `
                      Ja, kein Problem. Denke Kommandozeile sollte ich hinbekommen.

                      Node.js ist mal installiert. Welche Version hast du genommen? Hab jetzt mal die 6er drauf

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

                        @coyote:

                        ` > Gib mir etwas Zeit, ich such die Kommandos zusammen.

                        So schwierig ist es nicht, man braucht halt die Kommandozeile 😉 `
                        Ja, kein Problem. Denke Kommandozeile sollte ich hinbekommen.

                        Node.js ist mal installiert. Welche Version hast du genommen? Hab jetzt mal die 6er drauf `

                        Ich hab die nodjs 4.x, aber 6.x ist denke ich auch voll in Ordnung.

                        Zusätzlich solltest du noch Python 2.7 drauf haben, falls irgendwelche Pakete kompiliert werden müssen.

                        als root im terminal kommen folgende Schritte, immer darauf achten das die Befhle auch erfolgreich waren und ggf. prüfen ob die Verzeichnisse auch so passen:

                        #we must redirect the .npm and .node-gyp to another place, due to memory limitations

                        #user root in /share/homes

                        mkdir /share/homes/root

                        mkdir /share/homes/root/.node-gyp

                        mkdir /share/homes/root/.npm

                        chmod -R 777 /share/homes/root

                        #link in /root to /share/homes/root

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

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

                        #create iobroker directory

                        cd /share/CACHEDEV1_DATA/.qpkg

                        mkdir iobroker

                        evtl. chmod -R 777 iobroker

                        #install iobroker

                        cd iobroker

                        npm install iobroker –unsafe-perm

                        ggf muß noch der admin Adapter installiert werden

                        bzw. der port geändert werden, da 8081 schon belegt ist (adminv3 ist 9081)

                        ./iobroker add admin --port 8089

                        dann sollte iobroker start funktionieren und die admin seite verfügbar sein

                        da beim reboot komischerweise die gesetzten links verlorengehen, sind diese neu zu setzen, wenn man Adapter installiert die node_gyp aufrufen, sonst ist spontan das sehr klein bemessene root Verzeichnis voll

                        Ich hoffe es hilft

                        Gruß

                        Klaus

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

                          Also irgendwo hab ich da noch ein Fehler:

                          [~] # mkdir /share/homes/root
                          [~] # mkdir /share/homes/root/.node-gyp
                          [~] # mkdir /share/homes/root/.npm
                          [~] # chmod -R 777 /share/homes/root
                          [~] # ln -s /share/homes/root/.node-gyp /root/.
                          [~] # ln -s /share/homes/root/.npm /root/.
                          [~] # cd /share/CACHEDEV1_DATA/.qpkg
                          [/share/CACHEDEV1_DATA/.qpkg] # mkdir iobroker
                          [/share/CACHEDEV1_DATA/.qpkg] # chmod -R 777 iobroker
                          [/share/CACHEDEV1_DATA/.qpkg] # npm install iobroker --unsafe-perm
                          
                          > iobroker@1.0.8 install /share/CACHEDEV1_DATA/.qpkg/node_modules/iobroker
                          > node lib/setup.js
                          
                          NPM version: 3.10.10
                          
                          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
                          npm WARN deprecated localhost.daplie.me-certificates@1.3.5: this package has been deprecated
                          npm WARN prefer global npm@2.15.12 should be installed with -g
                          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
                          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
                          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
                          Non-critical error: EISDIR: illegal operation on a directory, open '/share/CACHEDEV1_DATA/.qpkg/iobroker'
                          /share/CACHEDEV1_DATA/.qpkg
                          └─┬ iobroker@1.0.8
                            └─┬ yargs@7.1.0
                              ├── camelcase@3.0.0
                              ├─┬ cliui@3.2.0
                              │ ├─┬ strip-ansi@3.0.1
                              │ │ └── ansi-regex@2.1.1
                              │ └── wrap-ansi@2.1.0
                              ├── decamelize@1.2.0
                              ├── get-caller-file@1.0.2
                              ├─┬ os-locale@1.4.0
                              │ └─┬ lcid@1.0.0
                              │   └── invert-kv@1.0.0
                              ├─┬ read-pkg-up@1.0.1
                              │ ├─┬ find-up@1.1.2
                              │ │ ├── path-exists@2.1.0
                              │ │ └─┬ pinkie-promise@2.0.1
                              │ │   └── pinkie@2.0.4
                              │ └─┬ read-pkg@1.1.0
                              │   ├─┬ load-json-file@1.1.0
                              │   │ ├── graceful-fs@4.1.11
                              │   │ ├─┬ parse-json@2.2.0
                              │   │ │ └─┬ error-ex@1.3.1
                              │   │ │   └── is-arrayish@0.2.1
                              │   │ ├── pify@2.3.0
                              │   │ └─┬ strip-bom@2.0.0
                              │   │   └── is-utf8@0.2.1
                              │   ├─┬ normalize-package-data@2.4.0
                              │   │ ├── hosted-git-info@2.5.0
                              │   │ ├─┬ is-builtin-module@1.0.0
                              │   │ │ └── builtin-modules@1.1.1
                              │   │ ├── semver@5.5.0
                              │   │ └─┬ validate-npm-package-license@3.0.1
                              │   │   ├─┬ spdx-correct@1.0.2
                              │   │   │ └── spdx-license-ids@1.2.2
                              │   │   └── spdx-expression-parse@1.0.4
                              │   └── path-type@1.1.0
                              ├── require-directory@2.1.1
                              ├── require-main-filename@1.0.1
                              ├── set-blocking@2.0.0
                              ├─┬ string-width@1.0.2
                              │ ├── code-point-at@1.1.0
                              │ └─┬ is-fullwidth-code-point@1.0.0
                              │   └── number-is-nan@1.0.1
                              ├── which-module@1.0.0
                              ├── y18n@3.2.1
                              └── yargs-parser@5.0.0
                          
                          npm WARN enoent ENOENT: no such file or directory, open '/share/CACHEDEV1_DATA/.qpkg/package.json'
                          npm WARN .qpkg No description
                          npm WARN .qpkg No repository field.
                          npm WARN .qpkg No README data
                          npm WARN .qpkg No license field.</module></module></module></module></module></module></module></module></module></module> 
                          

                          Und das hier hab ich leider noch nicht verstanden, was ich da genau machen muss:

                          > wenn man Adapter installiert die node_gyp aufrufen

                          1 Reply Last reply Reply Quote 0
                          • 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
                                            • First post
                                              Last post

                                            Support us

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

                                            519
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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