Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. nach iobroker-update verliert instanz verbindung

    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

    nach iobroker-update verliert instanz verbindung

    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Chris1983 @Thomas Braun last edited by

      @Thomas-Braun Danke für die Antwort. mit dem Canvas hab ich mehrfach probiert, hilft nicht. Oder wie bau ich das neu? Das sind die Schritte die ich gemacht habe:

      sudo apt-get update
      sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev 
      sudo npm install canvas --unsafe-perm=true
      
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Chris1983 last edited by

        @Chris1983

        Vorab: Node nach dem Update desselben noch sauber?

        whoami && who -r && which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
        

        Ich bin nicht sicher, ob das so funktioniert:

        cd /opt/iobroker
        iobroker rebuild canvas
        

        Alternativ mal so:

        cd /opt/iobroker/node_modules
        npm rebuild canvas
        
        C 1 Reply Last reply Reply Quote 0
        • C
          Chris1983 @Thomas Braun last edited by

          @Thomas-Braun Ok, hab ich jetzt probiert, jetzt kann ich nicht mal mehr den Adapter installieren, er bricht die Installation ab mit dem Text:

          $ ./iobroker add ecovacs-deebot  --host raspberrypi
          NPM version: 6.14.8
          npm install iobroker.ecovacs-deebot@1.0.3 --loglevel error --prefix "/opt/iobroker" (System call)
          npm
           
          ERR! code
           ELOOPnpm
           ERR!
           syscall access
          npm 
          ERR! path
           /opt/iobroker/node_modules/canvas
          npm ERR! errno -40
          npm
           ERR! ELOOP: too many symbolic links encountered, access '/opt/iobroker/node_modules/canvas'
          
          npm 
          ERR! A complete log of this run can be found in:npm
           ERR!
               /home/iobroker/.npm/_logs/2020-09-15T16_08_20_190Z-debug.log
          ERROR: host.raspberrypi Cannot install iobroker.ecovacs-deebot@1.0.3: 216
          ERROR: process exited with code 25
          

          und den log legt er leider auch nicht an, der Ordner ist leer.

          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Chris1983 last edited by

            @Chris1983 Dann war es vermutlich das falsche Verzeichnis.

            C 1 Reply Last reply Reply Quote 0
            • C
              Chris1983 @Thomas Braun last edited by

              @Thomas-Braun An diese Stelle: VIELEN DANK!!!

              Das mit dem "cd /opt/iobroker/node_modules
              npm rebuild canvas" hat mich auf die richtige Spur gebracht. Deine hier vorgeschlagene lösung hat anfangs nicht funktioniert, bin aber auf einen älteren topic (https://forum.iobroker.net/topic/34945/too-many-symbolic-links-encountered-access-canvas/7) gestoßen bei dem Du auch schon in die richtung gegangen bist. Habe dann noch den Tipp des Hilfesuchenden genutzt und auf der Pi selbst canvas gelöscht, danach

              /opt/iobroker/node_modules sudo npm rebuild canvas

              ausgeführt und da hat es funktioniert. Instanzen wieder installiert und alles läuft wieder.

              Also nochmals: Vielen Dank für die schnelle Hilfe!

              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Chris1983 last edited by Thomas Braun

                @Chris1983
                Dann wirf noch ein

                iobroker fix
                

                hinterher, npm sollte man nicht per sudo einleiten.
                (Auch wenn ich das in dem besagten Thread vielleicht so geschrieben habe).

                C 1 Reply Last reply Reply Quote 0
                • C
                  Chris1983 @Thomas Braun last edited by

                  @Thomas-Braun Ok, ich bin leider nicht so der Iobroker Profi, bin noch recht neu bei der Sache und stelle hier wahrscheinlich die "Was ist ein Abseits"-Frage, aber warum nicht mit sudo? Lese das sehr häufig bei Befehlen.

                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @Chris1983 last edited by

                    @Chris1983
                    npm wird (wenn im Verzeichnis /opt/iobroker ausgeführt) ohnehin im richtigen User-Kontext ausgeführt. Das ist für den Befehl so definiert worden.

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      StefanMc @Thomas Braun last edited by

                      falls mal wer das selbe Problem hat:

                      Nach Systemupdate auf:

                      Plattform: linux
                      Betriebssystem: linux
                      Die Architektur: x64
                      CPUs: 4
                      Geschwindigkeit: 639 MHz
                      Modell: Intel(R) Atom(TM) x5-Z8350 CPU @ 1.44GHz
                      RAM: 3.7 GB
                      System-Betriebszeit: 00:23:08
                      Node.js: v12.20.0
                      Datenträgergröße: 52.7 GiB
                      Datenträger verfügbar: 45.0 GiB
                      Adapter-Anzahl: 322
                      NPM: v6.14.10
                      Betriebszeit: 00:11:01
                      Aktive Instanzen: 15
                      

                      bekam ich folgende Fehlermeldung:

                      ecovacs-deebot.0 2021-01-02 20:35:51.518 error (27734) uncaught exception: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 64. This version of Node.js requires NODE_MODULE_VERSION 72. Please try re-compiling or re-installing the module (for instance, using npm rebuild or npm install).

                      Lösung:

                      sudo npm uninstall canvas
                      sudo npm install canvas --unsafe-perm=true

                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @StefanMc last edited by Thomas Braun

                        @StefanMc Auch hier leitet man npm nicht per sudo ein.

                        Ein

                        npm rebuild canvas
                        

                        im entsprechenden Ordner hätte es auch getan.

                        Lass den Fixer jetzt nochmal auf das System los:

                        iobroker stop
                        iobroker fix
                        
                        S 1 Reply Last reply Reply Quote 0
                        • S
                          StefanMc @Thomas Braun last edited by

                          @Thomas-Braun
                          Hallo Thomas,
                          nein, eben nicht, ich habe mir den Beitrag genau durchgelesen und es probiert, jedoch ohne Erfolg, deswegen auch mein Post.

                          Homoran 1 Reply Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @StefanMc last edited by

                            @StefanMc
                            @Thomas-Braun

                            wovon redet ihr?
                            Thomas redet von sudo:
                            https://forum.iobroker.net/topic/17109/wichtige-hinweise-bei-neueren-npm-versionen-und-sudo

                            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

                            870
                            Online

                            31.9k
                            Users

                            80.1k
                            Topics

                            1.3m
                            Posts

                            4
                            14
                            1018
                            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