Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst] Dash-Button Adapter kann nicht installiert werden

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    [gelöst] Dash-Button Adapter kann nicht installiert werden

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

      Hallo bei Installation des Dash Button erhalte ich folgenden Fehler.

      Installation aller anderer Adapter hat prima funktioniert.

      Was mache ich / ist hier faul?

      Node.js: v8.12.0

      NPM: 6.4.1

      $ ./iobroker add amazon-dash  --host ioBroker
      NPM version: 6.4.1
      npm install iobroker.amazon-dash --production --save --prefix "/opt/iobroker" (System call)
      npm
      
      ERR! 
      code
       128
      npm
      
      ERR!
       Command failed: /usr/bin/git submodule update -q --init --recursivenpm
      
      ERR! fatal: Could not change back to '/root/.npm/_cacache/tmp/git-clone-3cd59653': Keine Berechtigung
      npm 
      ERR!
      
      npm
       ERR!
       A complete log of this run can be found in:
      npm 
      ERR!     /root/.npm/_logs/2018-10-11T10_00_23_731Z-debug.log
      host.ioBroker create instance amazon-dash
      ERROR: host.ioBroker error: reading io-package.json Error: ENOENT: no such file or directory, open 'null/io-package.json'
      ERROR: process exited with code 20
      

      Bei einem iobroker upload all bekomme ich bei einigen Adaptern auch folgenden Fehler:

      Cannot find io-package.json in null

      Cannot parse null/io-package.json:Error: ENOENT: no such file or directory, open 'null/io-package.json'

      Cannot find io-package.json in null

      Cannot parse null/io-package.json:Error: ENOENT: no such file or directory, open 'null/io-package.json'

      hier die Log im Detail:

      ...
      24 verbose stack Error: Command failed: /usr/bin/git submodule update -q --init --recursive
      24 verbose stack fatal: Could not change back to '/root/.npm/_cacache/tmp/git-clone-3cd59653': Keine Berechtigung
      24 verbose stack
      24 verbose stack     at ChildProcess.exithandler (child_process.js:276:12)
      24 verbose stack     at emitTwo (events.js:126:13)
      24 verbose stack     at ChildProcess.emit (events.js:214:7)
      24 verbose stack     at maybeClose (internal/child_process.js:915:16)
      24 verbose stack     at Socket.stream.socket.on (internal/child_process.js:336:11)
      24 verbose stack     at emitOne (events.js:116:13)
      24 verbose stack     at Socket.emit (events.js:211:7)
      24 verbose stack     at Pipe._handle.close [as _onclose] (net.js:561:12)
      25 verbose cwd /opt
      26 verbose Linux 4.14.70-v7+
      27 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.amazon-dash" "--production" "--save" "--prefix" "/opt/iobroker"
      28 verbose node v8.12.0
      29 verbose npm  v6.4.1
      30 error code 128
      31 error Command failed: /usr/bin/git submodule update -q --init --recursive
      31 error fatal: Could not change back to '/root/.npm/_cacache/tmp/git-clone-3cd59653': Keine Berechtigung
      32 verbose exit [ 1, true ]
      
      

      vorab schon mal ein Danke für Eure Hilfe

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

        Keine Berechtigung … was könnte das heissen ...

        ruf es mal mit sudo auf

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

          Sorry, aber das verstehe ich nicht…

          Wie soll ich bei einer Adapter Installation im ioBroker Webinterface sudo angeben?

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

            ok habe 'per Hand' installiert (npm install iobroker.amazon-dash (ohne sudo)) und es ging. Aber da scheint ja trotzdem etwas nicht zu stimmen.

            1 Reply Last reply Reply Quote 0
            • F
              foerg last edited by

              Nabend zusammen.

              Ich habe auch das Problem das ich den Adapter nicht installieren kann. Hatte das selbe Problem wie "jf62".

              Habe dann den Adapter von Hand installiert über folgende befehle

              iobroker stop

              npm install iobroker.amazon-dash@0.2.7 –production

              iobroker upload amazon-dash

              iobroker start

              hier ausführlich:

              ! pi@All-In-One_RasPi:~ $ cd /opt/iobroker
              ! pi@All-In-One_RasPi:/opt/iobroker $ iobroker stop
              ! iobroker controller daemon is not running
              ! pi@All-In-One_RasPi:/opt/iobroker $ npm install iobroker.amazon-dash@0.2.7 –production
              ! > iobroker.amazon-dash@0.2.7 preinstall /opt/iobroker/node_modules/iobroker.amazon-dash
              ! > apt-get install libpcap-dev -y || true
              ! E: Sperrdatei /var/lib/dpkg/lock konnte nicht geöffnet werden. - open (13: Keine Berechtigung)
              ! E: Sperren des Administrationsverzeichnisses (/var/lib/dpkg/) nicht möglich, sind Sie root?
              ! > authenticate-pam@1.0.2 install /opt/iobroker/node_modules/authenticate-pam
              ! > node-gyp rebuild
              ! make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird betreten
              ! CXX(target) Release/obj.target/authenticate_pam/authenticate_pam.o
              ! ../authenticate_pam.cc:30:31: fatal error: security/pam_appl.h: Datei oder Verzeichnis nicht gefunden
              ! #include <security pam_appl.h="">^
              ! compilation terminated.
              ! authenticate_pam.target.mk:93: die Regel für Ziel „Release/obj.target/authenticate_pam/authenticate_pam.o“ scheiterte
              ! make: *** [Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1
              ! make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird verlassen
              ! gyp ERR! build error
              ! gyp ERR! stack Error: make failed with exit code: 2
              ! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/lib/build.js:258:23)
              ! gyp ERR! stack at emitTwo (events.js:126:13)
              ! gyp ERR! stack at ChildProcess.emit (events.js:214:7)
              ! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
              ! gyp ERR! System Linux 4.14.34-v7+
              ! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
              ! gyp ERR! cwd /opt/iobroker/node_modules/authenticate-pam
              ! gyp ERR! node -v v8.11.1
              ! gyp ERR! node-gyp -v v3.6.2
              ! gyp ERR! not ok
              ! > socketwatcher@0.3.0 install /opt/iobroker/node_modules/socketwatcher
              ! > node-gyp rebuild
              ! make: Verzeichnis „/opt/iobroker/node_modules/socketwatcher/build“ wird betreten
              ! CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
              ! ../socket_watcher.cpp: In static member function ‘static void SocketWatcher::Callback(uv_poll_t*, int, int)’:
              ! ../socket_watcher.cpp:77:60: warning: ‘v8::Local v8::valueNan::MakeCallback(v8::Localv8::object, v8::Localv8::function, int, v8::Localv8::value*)’ is deprecated [-Wdeprecated-declarations]
              ! Nan::MakeCallback(watcher->handle(), callback, argc, argv);
              ! ^
              ! In file included from ../socket_watcher.hpp:8:0,
              ! from ../socket_watcher.cpp:5:
              ! ../../nan/nan.h:929:46: note: declared here
              ! NAN_DEPRECATED inline v8::Local v8::valueMakeCallback(
              ! ^~~~~~~~~~~~
              ! SOLINK_MODULE(target) Release/obj.target/socketwatcher.node
              ! COPY Release/socketwatcher.node
              ! make: Verzeichnis „/opt/iobroker/node_modules/socketwatcher/build“ wird verlassen
              ! > pcap@2.1.0 install /opt/iobroker/node_modules/pcap
              ! > node-gyp rebuild
              ! make: Verzeichnis „/opt/iobroker/node_modules/pcap/build“ wird betreten
              ! CXX(target) Release/obj.target/pcap_binding/pcap_binding.o
              ! CXX(target) Release/obj.target/pcap_binding/pcap_session.o
              ! ../pcap_session.cc: In static member function ‘static void PcapSession::PacketReady(u_char*, const pcap_pkthdr*, const u_char*)’:
              ! ../pcap_session.cc:85:102: warning: ‘v8::Local v8::valueNan::MakeCallback(v8::Localv8::object, v8::Localv8::function, int, v8::Localv8::value*)’ is deprecated [-Wdeprecated-declarations]
              ! n::GetCurrentContext()->Global(), Nan::New(session->packet_ready_cb), 0, NULL);
              ! ^
              ! In file included from ../pcap_session.h:4:0,
              ! from ../pcap_session.cc:7:
              ! ../../nan/nan.h:929:46: note: declared here
              ! NAN_DEPRECATED inline v8::Local v8::valueMakeCallback(
              ! ^~~~~~~~~~~~
              ! SOLINK_MODULE(target) Release/obj.target/pcap_binding.node
              ! COPY Release/pcap_binding.node
              ! make: Verzeichnis „/opt/iobroker/node_modules/pcap/build“ wird verlassen
              ! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 (node_modules/authenticate-pam):
              ! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 install: node-gyp rebuild
              ! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
              ! + iobroker.amazon-dash@0.2.7
              ! added 3 packages from 4 contributors in 84.841s
              ! pi@All-In-One_RasPi:/opt/iobroker $ iobroker upload amazon-dash
              ! got /opt/iobroker/node_modules/iobroker.amazon-dash/admin
              ! upload [2] amazon-dash.admin /opt/iobroker/node_modules/iobroker.amazon-dash/admin/words.js words.js application/javascript
              ! upload [1] amazon-dash.admin /opt/iobroker/node_modules/iobroker.amazon-dash/admin/index.html index.html text/html
              ! upload [0] amazon-dash.admin /opt/iobroker/node_modules/iobroker.amazon-dash/admin/amazon-dash.png amazon-dash.png image/png
              ! system.adapter.amazon-dash does not exist
              ! pi@All-In-One_RasPi:/opt/iobroker $ iobroker start
              ! Starting iobroker controller daemon…
              ! iobroker controller daemon failed to start: Failed to write pidfile (EACCES)
              ! Error: Failed to write pidfile (EACCES)
              ! pi@All-In-One_RasPi:/opt/iobroker $</v8::value></v8::value></v8::function></v8::object></v8::value></v8::value></v8::value></v8::function></v8::object></v8::value></security>

              Danach zeigt er mir auch an das der Adapter intsalliert ist. Aber ich bekomme keine Instanz erzeugt.

              da kommt dann wieder diese Meldung.

              ! >! $ ./iobroker add amazon-dash
              ! host.All-In-One_RasPi install adapter amazon-dash
              ! npm install –production (System call) in "/opt/iobroker/node_modules/iobroker.amazon-dash"
              ! npm
              ! WARN
              ! lifecycle
              ! iobroker.amazon-dash@0.2.7~preinstall: cannot run in wd iobroker.amazon-dash@0.2.7 apt-get install libpcap-dev -y || true (wd=/opt/iobroker/node_modules/iobroker.amazon-dash)
              ! npm
              ! ERR! code 128
              ! npm
              ! ERR! Command failed: /usr/bin/git clone -q https://github.com/bytzdev/node-socketwatcher.git /root/.npm/_cacache/tmp/git-clone-018a68e7
              ! npm ERR! fatal: Konnte führende Verzeichnisse von '/root/.npm/_cacache/tmp/git-clone-018a68e7' nicht erstellen.: Keine Berechtigung
              ! npm ERR!
              ! npm
              ! ERR! A complete log of this run can be found in:npm
              ! ERR! /root/.npm/_logs/2018-10-12T19_46_47_681Z-debug.log
              ! Cannot install iobroker.amazon-dash: 1
              ! ERROR: process exited with code 25

              Ich habe nun keine Idee mehr, kann mir jemand helfen?

              Danke

              1 Reply Last reply Reply Quote 0
              • F
                foerg last edited by

                Hat sich erledigt.

                Ich habe noch folgendes gemacht:

                iobroker stop

                iobroker add amzon-dash

                iobroker start

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                Support us

                ioBroker
                Community Adapters
                Donate

                701
                Online

                31.6k
                Users

                79.5k
                Topics

                1.3m
                Posts

                3
                6
                891
                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