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 nach Backup

    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

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

    This topic has been deleted. Only users with topic management privileges can see it.
    • Rummelmug
      Rummelmug last edited by Jey Cee

      Hallo zusammen,

      ich hab eben ioBroker neu aufgesetzt und ein Backup eingespielt. Bis auf den Dash-Button Adapter hat es auch funktioniert.

      Die Dash Button-Instanz war noch da aber ohne Inhalt. Die habe ich gelöscht mit einem Klick auf den Mülleimer.

      Der Adapter bricht nun beim neuinstallieren mit einem Fehler ab.

      Dann habe ich das per Konsole versucht, was auch nicht funktioniert.

      Ich habe folgendes ausgeführt:

      sudo iobroker stop
      sudo npm install iobroker.amazon-dash@0.2.9 --production
      
      

      das bringt dann diesen Fehler:

      npm ERR! code 128
      npm ERR! Command failed: /usr/bin/git submodule update -q --init --recursive
      npm ERR! fatal: Could not change back to '/root/.npm/_cacache/tmp/git-clone-badf4c65': Keine Berechtigung
      npm ERR!
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /root/.npm/_logs/2018-12-02T09_00_04_624Z-debug.log
      
      

      Hier noch das Log:

      log.txt

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User last edited by

        hmm da steht "keine Berechtigung" - hast du als root oder mit sudo installiert?

        git und libpcap-dev installiert?

        Mehr dazu hier:

        https://github.com/PArns/ioBroker.amazon-dash

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

          libpcap-dev hab ich vor dem Restore von ioBroker schon installiert

          ich hab das mit sudo als Nutzer PI installiert

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

            ich hab mich jetzt mal mit sudo su als root angemeldet und bekomme nun folgende Meldung für:

            npm install iobroker.amazon-dash@0.2.9 –production

            > iobroker.amazon-dash@0.2.9 preinstall /home/pi/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?
            npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
            npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
            npm WARN pi No description
            npm WARN pi No repository field.
            npm WARN pi No README data
            npm WARN pi No license field.
            
            + iobroker.amazon-dash@0.2.9
            updated 1 package and audited 12 packages in 2.26s
            found 0 vulnerabilities
            
            
            1 Reply Last reply Reply Quote 0
            • Rummelmug
              Rummelmug last edited by

              Hat keiner eine Idee, was ich noch versuchen kann ohne alles komplett neu aufzusetzen? Der WAF ist gerade auf einem neuen Rekordtief (-:

              Gesendet von meinem ONEPLUS A5010 mit Tapatalk

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

                Er hat den Adapzer laut Log installiert nur eben libcap nicht.

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

                  verstehe ich nicht, wenn ich versuche libcap zu installieren kommt

                  pi@ioBroker-RasPi:~ $ sudo apt-get install libpcap-dev
                  Paketlisten werden gelesen... Fertig
                  Abhängigkeitsbaum wird aufgebaut.
                  Statusinformationen werden eingelesen.... Fertig
                  libpcap-dev ist schon die neueste Version (1.8.1-3).
                  0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
                  
                  

                  und auf der Adminoberfläche wird mir der Dashbutton Adapter als nicht installiert angezeigt
                  7700_dash.png

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

                    Laut dem Log hat er 0.2.9 installiert und konnte das Kommando zum Libcap installieren nicht durchführen (anscheinend wg. Rechteproblemen), was allerdings nicht schlimm ist wenn du es so schon installiert hast. Schau doch mal ob es den Ordner /opt/iobroker/node_modules/iobroker.amazon-dash/ gibt. Falls ja mach mal````
                    iobroker upload amazon-dash

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

                      @Rummelmugge:

                      ich hab mich jetzt mal mit sudo su als root angemeldet und bekomme nun folgende Meldung für:

                      npm install iobroker.amazon-dash@0.2.9 –production

                      > iobroker.amazon-dash@0.2.9 preinstall /home/pi/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?
                      npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
                      npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
                      npm WARN pi No description
                      npm WARN pi No repository field.
                      npm WARN pi No README data
                      npm WARN pi No license field.
                      
                      + iobroker.amazon-dash@0.2.9
                      updated 1 package and audited 12 packages in 2.26s
                      found 0 vulnerabilities
                      
                      ```` `  
                      

                      Oh.. wo hast du den Installationsversuch gestartet? Mach mal````
                      npm i iobroker.amazon-dash --production --prefix /opt/iobroker

                      
                      Scheint als wäre es zwar installiert worden allerdings im falschen Ordner. :–)
                      1 Reply Last reply Reply Quote 0
                      • Rummelmug
                        Rummelmug last edited by Jey Cee

                        Du hast recht, ich hab das in meinem /home/pi verzeichnis liegen :roll: das war so nicht geplant

                        offenbar ist da so einiges drin gelandet :?
                        7700_pi.png

                        ich jetzt folgendes versucht:

                        npm i iobroker.amazon-dash –production --prefix /opt/iobr oker brachte

                        log.txt

                        npm audit brachte
                        audit.txt

                        Auf der Admin-Oberfläche zeigte er mir nun an, das der Adapter installiert ist. Also hab ich noch ne Instanz erzeugt und da war die Indexseite wieder komplett leer. Deswegen hab ich den weider gelöscht und noch versucht per Admin-Oberfläche zu installieren, da bricht er aber nach wie vor ab.

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

                          Wenn die Index Seite fehlt ist der erste Schritt ein Upload des Adapters. Also wenn du es installiert hast mach noch````
                          iobroker upload amazon-dash

                          
                          Das mit audit nicht machen.
                          1 Reply Last reply Reply Quote 0
                          • Rummelmug
                            Rummelmug last edited by

                            Alles klar, hab ich gemacht. Wenn ich nun noch eine Instanz hinzufügen will kommt

                            ! iobroker 2018-12-04 10:55:15.402 info exit 25
                            ! iobroker 2018-12-04 10:55:15.389 info Cannot install iobroker.amazon-dash: 1
                            ! iobroker 2018-12-04 10:55:15.371 info npm ERR! /root/.npm/_logs/2018-12-04T09_55_15_346Z-debug.log
                            ! iobroker 2018-12-04 10:55:15.368 info npm ERR! A complete log of this run can be found in:
                            ! iobroker 2018-12-04 10:55:15.366 info
                            ! iobroker 2018-12-04 10:55:15.333 info
                            ! iobroker 2018-12-04 10:55:15.330 info ERR! fatal: Could not change back to '/root/.npm/_cacache/tmp/git-clone-1e65b925': Keine Berechtigungnpm ERR!
                            ! iobroker 2018-12-04 10:55:15.328 info ERR! Command failed: /usr/bin/git submodule update -q –init --recursivenpm
                            ! iobroker 2018-12-04 10:55:15.325 info npm
                            ! iobroker 2018-12-04 10:55:15.322 info code 128
                            ! iobroker 2018-12-04 10:55:15.320 info ERR!
                            ! iobroker 2018-12-04 10:55:15.317 info npm
                            ! iobroker 2018-12-04 10:55:09.121 info "WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to ""coffeescript"" (no hyphen)"
                            ! iobroker 2018-12-04 10:55:09.120 info npm
                            ! iobroker 2018-12-04 10:55:09.009 info WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
                            ! iobroker 2018-12-04 10:55:09.008 info npm
                            ! iobroker 2018-12-04 10:55:08.657 info WARN deprecated hoek@0.9.1: The major version is no longer supported. Please update to 4.x or newer
                            ! iobroker 2018-12-04 10:55:08.655 info npm
                            ! iobroker 2018-12-04 10:55:08.235 info WARN deprecated jscs-preset-wikimedia@1.0.1: Deprecated in favour of eslint-config-wikimedia. -- https://phabricator.wikimedia.org/T118941
                            ! iobroker 2018-12-04 10:55:08.234 info npm
                            ! iobroker 2018-12-04 10:55:08.019 info WARN deprecated cryptiles@2.0.5: This version is no longer maintained. Please upgrade to the latest version.
                            ! iobroker 2018-12-04 10:55:08.018 info npm
                            ! iobroker 2018-12-04 10:55:08.005 info WARN deprecated boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.
                            ! iobroker 2018-12-04 10:55:08.004 info npm
                            ! iobroker 2018-12-04 10:55:07.988 info WARN deprecated hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
                            ! iobroker 2018-12-04 10:55:07.987 info npm
                            ! iobroker 2018-12-04 10:55:07.842 info WARN deprecated node-uuid@1.4.8: Use uuid module instead
                            ! iobroker 2018-12-04 10:55:07.841 info npm
                            ! iobroker 2018-12-04 10:55:07.819 info WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
                            ! iobroker 2018-12-04 10:55:07.818 info npm
                            ! iobroker 2018-12-04 10:55:07.595 info WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
                            ! iobroker 2018-12-04 10:55:07.594 info npm
                            ! iobroker 2018-12-04 10:55:07.337 info WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
                            ! iobroker 2018-12-04 10:55:07.336 info npm
                            ! iobroker 2018-12-04 10:55:06.472 info WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
                            ! iobroker 2018-12-04 10:55:06.472 info npm
                            ! iobroker 2018-12-04 10:55:06.433 info "WARN deprecated coffee-script@1.3.3: CoffeeScript on NPM has moved to ""coffeescript"" (no hyphen)"
                            ! iobroker 2018-12-04 10:55:06.432 info npm
                            ! iobroker 2018-12-04 10:55:05.249 info WARN lifecycle iobroker.amazon-dash@0.2.9~preinstall: cannot run in wd iobroker.amazon-dash@0.2.9 apt-get install libpcap-dev -y || true (wd=/opt/iobroker/node_modules/iobroker.amazon-dash)
                            ! iobroker 2018-12-04 10:55:05.248 info npm
                            ! iobroker 2018-12-04 10:55:03.212 info "npm install --production (System call) in ""/opt/iobroker/node_modules/iobroker.amazon-dash"""
                            ! iobroker 2018-12-04 10:55:02.451 info host.ioBroker-RasPi install adapter amazon-dash

                            Gesendet von meinem ONEPLUS A5010 mit Tapatalk

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

                              Schaut ja nach dem gleichen Fehler wie am Anfang aus. Also der Adapter ist nun installiert und es wurde noch keine Instanz erzeugt?

                              Dann Probier das am besten auch mal über die Kommandozeile:

                              iobroker add amazon-dash
                              
                              1 Reply Last reply Reply Quote 0
                              • Rummelmug
                                Rummelmug last edited by

                                Hudellaly, es funktioniert. Vielen vielen Dank!

                                Er hat zwar wieder die gleichen Warnungen etc wie über den Admin ausgespuckt, aber hat die Instanz doch erzeugt. Die Einstellungen werden angezeigt und ich kann wieder meine Buttons hinzufügen. 😄 😄 😄

                                Ich arbeite zwar schon mein ganzes Leben mit Computer aber ich bin total windows-geschädigt. Ich glaube ich muss mich nochmal Tief in die Linuxmaterie einarbeiten. Mir war nicht bewußt, dass ich den Adapter in einem falschen Ordner installiert habe.

                                Und der Unterschied zwischen

                                ****sudo npm install iobroker.amazon-dash@0.2.9 –production

                                npm i iobroker.amazon-dash --production --prefix /opt/iobroker

                                iobroker upload amazon-dash

                                iobroker add amazon-dash****

                                ist mir noch vollkommen unklar :?:

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

                                  @Rummelmugge:

                                  Und der Unterschied zwischen

                                  ****sudo npm install iobroker.amazon-dash@0.2.9 –production

                                  npm i iobroker.amazon-dash --production --prefix /opt/iobroker

                                  iobroker upload amazon-dash

                                  iobroker add amazon-dash****

                                  ist mir noch vollkommen unklar :?: `

                                  Top, freut mich. Da ich lernwillige Personen gerne aufkläre:

                                  sudo npm install iobroker.amazon-dash@0.2.9 --production
                                  npm i iobroker.amazon-dash --production --prefix /opt/iobroker
                                  

                                  –prefix /opt/iobroker stellt sicher, dass es vom Ordner /opt/iobroker aus installiert wird, egal in welchem Ordner du das Kommando ausführst. Das @0.2.9 im oberen Kommando installiert explizit die Version 0.2.9, welche sowieso die neuste auf npm ist und somit automatisch auch im anderen Kommando angezogen wird.

                                  iobroker upload amazon-dash
                                  

                                  Aktualisiert die Frontend-Daten im ioBroker Admin, sowas wie die Konfigurationsseite, Logos, … sollte dann aktualisiert werden. Also wenn im Frontend irgendwas nicht aktuell ist nach einem Update oder nach der Installation die Konfig-Seite fehlt, ist das erst mal der Befehl der oft hilft.

                                  iobroker add amazon-dash
                                  

                                  Fügt einfach eine Instanz des Adapter hinzu, so wie das plus Symbol eines Adapters in der Adminoberfläche (ist der Adapter noch nicht installiert, wird er auch installiert)

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

                                    Danke jetzt wird einiges klarer. Ich hab bisher immer den Adapter solange gelöscht, bis alles wieder richtig war, wobei ich oft nur ein update hätte machen müssen.

                                    wenn ich das also richtig verstehe, kann ich bedenkenlos alles aus home/pi/ rauslöschen, was da falsch hingekommen ist.

                                    Oder gibt es da einen Befehl, der solche verwaisten Daten aufräumt?

                                    Edit: natürlich nicht alles, WiringPi und 433Utils sind ja bewusst da :lol:

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

                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate

                                    793
                                    Online

                                    31.8k
                                    Users

                                    80.0k
                                    Topics

                                    1.3m
                                    Posts

                                    dash-button
                                    3
                                    16
                                    1069
                                    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