Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Adapter updaten nicht mehr nach Update auf Node.js 16.17.0

    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

    Adapter updaten nicht mehr nach Update auf Node.js 16.17.0

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

      @weiland sagte in Adapter updaten nicht mehr nach Update auf Node.js 16.17.0:

      /usr/local/bin/npm

      Das ist falsch.

      sudo rm /usr/local/bin/npm
      type -P nodejs node npm && nodejs
      
      W 1 Reply Last reply Reply Quote 0
      • W
        Weiland @Thomas Braun last edited by

        @thomas-braun

        Das habe ich auch in deiner Anleitung gelesen, aber wie behebe ich den Fehler?

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

          @weiland

          Steht dabei:

          sudo rm /usr/local/bin/npm
          type -P nodejs node npm && nodejs
          
          W 1 Reply Last reply Reply Quote 0
          • W
            Weiland @Thomas Braun last edited by

            @thomas-braun

            Sorry, mein Fehler.

            Jetzt sieht es so aus:

            pi@raspberrypi:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
            armv7l
            /usr/bin/nodejs
            /usr/bin/node
            /usr/bin/npm
            v16.17.0
            v16.17.0
            8.15.0
            pi
            /home/pi
            OK:1 http://archive.raspberrypi.org/debian buster InRelease
            OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
            OK:3 https://deb.nodesource.com/node_16.x buster InRelease
            Paketlisten werden gelesen... Fertig
            Abhängigkeitsbaum wird aufgebaut.
            Statusinformationen werden eingelesen.... Fertig
            Alle Pakete sind aktuell.
            nodejs:
              Installiert:           16.17.0-deb-1nodesource1
              Installationskandidat: 16.17.0-deb-1nodesource1
              Versionstabelle:
             *** 16.17.0-deb-1nodesource1 500
                    500 https://deb.nodesource.com/node_16.x buster/main armhf Packages
                    100 /var/lib/dpkg/status
                 10.24.0~dfsg-1~deb10u1 500
                    500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
            pi@raspberrypi:~ $
            
            

            Jetzt nochmal die Anleitung komplett durchgehen bis Fehler kommen?

            Thomas Braun W 2 Replies Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @Weiland last edited by

              @weiland

              for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done
              

              sollte das Problem mit den Adapter-Updates lösen.

              iobroker update -i
              iobroker upgrade all
              
              W 1 Reply Last reply Reply Quote 0
              • W
                Weiland @Weiland last edited by

                @weiland said in Adapter updaten nicht mehr nach Update auf Node.js 16.17.0:

                Jetzt nochmal die Anleitung komplett durchgehen bis Fehler kommen?

                Sieht noch nicht gut aus.

                pi@raspberrypi:~ $ cd /opt/iobroker
                pi@raspberrypi:/opt/iobroker $ npm ls | grep -E 'github|ERR'
                npm ERR! code ELSPROBLEMS
                npm ERR! extraneous: @types/component-emitter@1.2.11 /opt/iobroker/node_modules/@types/component-emitter
                npm ERR! extraneous: @types/cookie@0.4.1 /opt/iobroker/node_modules/@types/cookie
                npm ERR! extraneous: @types/cors@2.8.12 /opt/iobroker/node_modules/@types/cors
                npm ERR! invalid: iobroker.node-red@4.0.0 /opt/iobroker/node_modules/iobroker.node-red
                
                npm ERR! A complete log of this run can be found in:
                npm ERR!     /home/iobroker/.npm/_logs/2022-09-06T08_34_41_336Z-debug-0.log
                pi@raspberrypi:/opt/iobroker $ cd /opt/iobroker && npm prune
                npm WARN old lockfile
                npm WARN old lockfile The package-lock.json file was created with an old version of npm,
                npm WARN old lockfile so supplemental metadata must be fetched from the registry.
                npm WARN old lockfile
                npm WARN old lockfile This is a one-time fix-up, please be patient...
                npm WARN old lockfile
                npm ERR! code ENOTEMPTY
                npm ERR! syscall rename
                npm ERR! path /opt/iobroker/node_modules/acorn
                npm ERR! dest /opt/iobroker/node_modules/.acorn-zHERliMH
                npm ERR! errno -39
                npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/acorn' -> '/opt/iobroker/node_modules/.acorn-zHERliMH'
                
                npm ERR! A complete log of this run can be found in:
                npm ERR!     /home/iobroker/.npm/_logs/2022-09-06T08_35_22_749Z-debug-0.log
                pi@raspberrypi:/opt/iobroker $
                
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Weiland last edited by

                  @weiland

                  Hast du

                  for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done
                  

                  ausgeführt?

                  1 Reply Last reply Reply Quote 0
                  • W
                    Weiland @Thomas Braun last edited by

                    @thomas-braun said in Adapter updaten nicht mehr nach Update auf Node.js 16.17.0:

                    for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done

                    Hier fehlen wohl Berechtigungen, in ioBroker?

                    Gekürzt:

                    rm: das Entfernen von '/opt/iobroker/node_modules/.js-yaml-mxBLENxb/lib/js-yaml/type/set.js' ist nicht möglich: Keine Berechtigung
                    rm: das Entfernen von '/opt/iobroker/node_modules/.js-yaml-mxBLENxb/lib/js-yaml/type/timestamp.js' ist nicht möglich: Keine Berechtigung
                    rm: das Entfernen von '/opt/iobroker/node_modules/.js-yaml-mxBLENxb/lib/js-yaml/type/pairs.js' ist nicht möglich: Keine Berechtigung
                    rm: das Entfernen von '/opt/iobroker/node_modules/.js-yaml-mxBLENxb/lib/js-yaml/type/null.js' ist nicht möglich: Keine Berechtigung
                    rm: das Entfernen von '/opt/iobroker/node_modules/.js-yaml-mxBLENxb/lib/js-yaml/type/merge.js' ist nicht möglich: Keine Berechtigung
                    rm: das Entfernen von '/opt/iobroker/node_modules/.js-yaml-mxBLENxb/lib/js-yaml/schema.js' ist nicht möglich: Keine Berechtigung
                    rm: das Entfernen von '/opt/iobroker/node_modules/.js-yaml-mxBLENxb/lib/js-yaml.js' ist nicht möglich: Keine Berechtigung
                    rm: das Entfernen von '/opt/iobroker/node_modules/.js-yaml-mxBLENxb/dist/js-yaml.min.js' ist nicht möglich: Keine Berechtigung
                    rm: das Entfernen von '/opt/iobroker/node_modules/.js-yaml-mxBLENxb/dist/js-yaml.js' ist nicht möglich: Keine Berechtigung
                    
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Weiland last edited by Thomas Braun

                      @weiland

                      Dann hast du da vermutlich mal als root herumgeschraubt, denn eigentlich reichen die Berechtigungen von 'pi' aus.

                      groups
                      iobroker stop 
                      iobroker fix
                      for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done
                      
                      W 1 Reply Last reply Reply Quote 1
                      • W
                        Weiland @Thomas Braun last edited by

                        @thomas-braun said in Adapter updaten nicht mehr nach Update auf Node.js 16.17.0:

                        for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done

                        Ich hoffe das war kein Problem "groups" zwischenzuschieben:

                        pi@raspberrypi:~ $ iobroker stop
                        iobrokepi@raspberrypi:~ $
                        pi@raspberrypi:~ $ iobroker fix
                        library: loaded
                        Library version=2022-06-15
                        
                        ==========================================================================
                        
                            Welcome to the ioBroker installation fixer!
                            Script version: 2022-06-03
                        
                            You might need to enter your password a couple of times.
                        
                        ==========================================================================
                        
                        
                        ==========================================================================
                            Installing prerequisites (1/3)
                        ==========================================================================
                        
                        OK:1 http://archive.raspberrypi.org/debian buster InRelease
                        OK:2 https://deb.nodesource.com/node_16.x buster InRelease
                        OK:3 http://raspbian.raspberrypi.org/raspbian buster InRelease
                        Paketlisten werden gelesen... Fertig
                        Installed gcc-c++
                        Installed cmake
                        
                        ==========================================================================
                            Checking ioBroker user and directory permissions (2/3)
                        ==========================================================================
                        
                        Created /etc/sudoers.d/iobroker
                        Fixing directory permissions...
                        
                        ==========================================================================
                            Checking autostart (3/3)
                        ==========================================================================
                        
                        Enabling autostart...
                        Autostart enabled!
                        
                        ==========================================================================
                        
                            Your installation was fixed successfully
                            Run iobroker start to start ioBroker again!
                        
                        ==========================================================================
                        
                        pi@raspberrypi:~ $ groups
                        pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi iobroker
                        pi@raspberrypi:~ $ for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done
                        pi@raspberrypi:~ $
                        
                        
                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Weiland last edited by

                          @weiland sagte in Adapter updaten nicht mehr nach Update auf Node.js 16.17.0:

                          Ich hoffe das war kein Problem "groups" zwischenzuschieben:

                          Nein, dient nur zur Info für mich, ob die Gruppenzugehörigkeiten richtig sind.
                          Sind sie, und nach dem Fix kommst du ja auch an die Verzeichnisse ran.
                          Also hast du da mal mit zu hohen Rechten herumgefummelt. Mit 'sudo' oder direkt als root. Ist beides verboten im Zusammenhang mit dem ioBroker.

                          W 2 Replies Last reply Reply Quote 0
                          • W
                            Weiland @Thomas Braun last edited by

                            @thomas-braun

                            Scheint nun zu klappen, update gerade die Adapter. Tausend Dank! Würde dir gerne nen Kaffee rüberschieben.

                            Soll ich nun noch was an der NPM-Version machen?

                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • W
                              Weiland @Thomas Braun last edited by

                              @thomas-braun said in Adapter updaten nicht mehr nach Update auf Node.js 16.17.0:

                              Also hast du da mal mit zu hohen Rechten herumgefummelt. Mit 'sudo' oder direkt als root. Ist beides verboten im Zusammenhang mit dem ioBroker.

                              Das ist übrigens möglich, ich werde es mir hinter die Ohren schreiben

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

                                @weiland sagte in Adapter updaten nicht mehr nach Update auf Node.js 16.17.0:

                                Soll ich nun noch was an der NPM-Version machen?

                                Nein, nur die Finger davon lassen.
                                npm wird immer zusammen mit nodejs automatisch in der richtigen Version installiert, da muss man gar nix dran machen.

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

                                  @weiland sagte in Adapter updaten nicht mehr nach Update auf Node.js 16.17.0:

                                  Das ist übrigens möglich

                                  Das ist auch die einzige Möglichkeit, warum in dem Pfad Dateien oder Verzeichnisse liegen können auf die du mit einem Standarduser aus der Gruppe 'iobroker' nicht zugreifen kannst.

                                  cd /opt/iobroker
                                  npm ls
                                  

                                  sagt nun?

                                  W 1 Reply Last reply Reply Quote 0
                                  • W
                                    Weiland @Thomas Braun last edited by Weiland

                                    @thomas-braun said in Adapter updaten nicht mehr nach Update auf Node.js 16.17.0:

                                    cd /opt/iobroker
                                    npm ls

                                    sagt nun?

                                    pi@raspberrypi:/opt/iobroker $ npm ls
                                    iobroker.inst@2.0.3 /opt/iobroker
                                    ├── @types/component-emitter@1.2.11 extraneous
                                    ├── @types/cookie@0.4.1 extraneous
                                    ├── @types/cors@2.8.12 extraneous
                                    ├── colors@1.4.0
                                    ├── fs-extra@7.0.1
                                    ├── iobroker.accuweather@1.2.4
                                    ├── iobroker.admin@6.2.21
                                    ├── iobroker.alexa2@3.19.7
                                    ├── iobroker.backitup@2.4.12
                                    ├── iobroker.binance@1.1.3
                                    ├── iobroker.bosesoundtouch@0.10.3
                                    ├── iobroker.botvac@1.0.0
                                    ├── iobroker.cloud@4.2.2
                                    ├── iobroker.daswetter@3.1.4
                                    ├── iobroker.discovery@3.0.5
                                    ├── iobroker.fakeroku@0.2.1
                                    ├── iobroker.flot@1.11.0
                                    ├── iobroker.fritzdect@2.2.3
                                    ├── iobroker.ham@5.1.0
                                    ├── iobroker.harmony@1.2.2
                                    ├── iobroker.history@2.2.1
                                    ├── iobroker.hm-rega@3.0.43
                                    ├── iobroker.hm-rpc@1.15.15
                                    ├── iobroker.hmip@1.19.1
                                    ├── iobroker.homeconnect@1.0.1
                                    ├── iobroker.hue-extended@2.0.0
                                    ├── iobroker.hue@3.7.1
                                    ├── iobroker.icons-icons8@0.0.1
                                    ├── iobroker.info@1.9.19
                                    ├── iobroker.javascript@6.0.1
                                    ├── iobroker.js-controller@4.0.23
                                    ├── iobroker.material@1.1.2
                                    ├── iobroker.mihome-vacuum@3.6.0
                                    ├── iobroker.mobile@1.0.1
                                    ├── iobroker.node-red@4.0.0 invalid: "3.3.0" from the root project
                                    ├── iobroker.openweathermap@0.3.0
                                    ├── iobroker.pi-hole@1.3.4
                                    ├── iobroker.ping@1.5.3
                                    ├── iobroker.samsung@0.5.11
                                    ├── iobroker.schoolfree@1.0.1
                                    ├── iobroker.simple-api@2.7.1
                                    ├── iobroker.socketio@6.1.10
                                    ├── iobroker.spotify-premium@1.2.2
                                    ├── iobroker.sql@2.1.8
                                    ├── iobroker.synology@2.1.9
                                    ├── iobroker.tileboard@0.3.1
                                    ├── iobroker.tr-064@4.2.16
                                    ├── iobroker.trashschedule@2.0.3
                                    ├── iobroker.vis-google-fonts@1.0.3
                                    ├── iobroker.vis-history@1.0.0
                                    ├── iobroker.vis-hqwidgets@1.3.0
                                    ├── iobroker.vis-materialdesign@0.5.9
                                    ├── iobroker.vis@1.4.15
                                    ├── iobroker.web@5.2.5
                                    ├── iobroker.whatsapp-cmb@0.2.3
                                    ├── iobroker.ws@2.1.5
                                    ├── iobroker.yahka@0.13.1
                                    ├── iobroker@2.0.3
                                    ├── semver@5.7.1
                                    └── yargs@7.1.0
                                    
                                    npm ERR! code ELSPROBLEMS
                                    npm ERR! extraneous: @types/component-emitter@1.2.11 /opt/iobroker/node_modules/@types/component-emitter
                                    npm ERR! extraneous: @types/cookie@0.4.1 /opt/iobroker/node_modules/@types/cookie
                                    npm ERR! extraneous: @types/cors@2.8.12 /opt/iobroker/node_modules/@types/cors
                                    npm ERR! invalid: iobroker.node-red@4.0.0 /opt/iobroker/node_modules/iobroker.node-red
                                    
                                    npm ERR! A complete log of this run can be found in:
                                    npm ERR!     /home/iobroker/.npm/_logs/2022-09-06T09_12_10_695Z-debug-0.log
                                    pi@raspberrypi:/opt/iobroker $
                                    
                                    

                                    Tatsächlich habe ich auch festgestellt, dass der Node-Red-Adapter der einzige ist der sich nicht updaten lässt.

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

                                      @weiland

                                      node-red 4.0.0 ist eh erst noch Beta. Solltest du nicht verwenden.

                                      iobroker update
                                      iobroke upgrade node-red@3.3.1
                                      

                                      Du scheinst da generell als Beta-Tester unterwegs zu sein.

                                      iobroker repo list
                                      

                                      sagt?

                                      W 1 Reply Last reply Reply Quote 0
                                      • W
                                        Weiland @Thomas Braun last edited by

                                        @thomas-braun said in Adapter updaten nicht mehr nach Update auf Node.js 16.17.0:

                                        @weiland

                                        node-red 4.0.0 ist eh erst noch Beta. Solltest du nicht verwenden.

                                        iobroker update
                                        iobroke upgrade node-red@3.3.1
                                        

                                        Du scheinst da generell als Beta-Tester unterwegs zu sein.

                                        iobroker repo list
                                        

                                        sagt?

                                        stimmt:

                                        pi@raspberrypi:/opt/iobroker $ iobroker repo list
                                        stable        : http://download.iobroker.net/sources-dist.json
                                        beta          : http://download.iobroker.net/sources-dist-latest.json
                                        
                                        Active repo(s): beta
                                        
                                        
                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @Weiland last edited by Thomas Braun

                                          @weiland

                                          Und warum?

                                          Stell das auf stable ein.

                                          iobroker repo unset beta
                                          iobroker repo set stable
                                          iobroker update
                                          
                                          W 1 Reply Last reply Reply Quote 0
                                          • W
                                            Weiland @Thomas Braun last edited by

                                            @thomas-braun

                                            erledigt, genau kann ich dir das garnicht sagen, wahrscheinlich gab es mal einen Adapter den ich brauchte nur in Beta

                                            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

                                            850
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            94
                                            9128
                                            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