Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. npm ERR! bei Update

    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

    npm ERR! bei Update

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

      Hallo,
      ich habe schon einige Threads durchgeschaut, aber meinen Fehler noch nicht finden können. Zugegeben: Ich habe iobroker länger nicht mehr geupdatet. Wollte ich jetzt nachholen, aber leider kommt folgende Fehlermeldung:

      pi@iobroker:~ $ iobroker upgrade self
      Update js-controller from @2.2.9 to @4.0.23
      NPM version: 8.19.2
      npm install iobroker.js-controller@4.0.23 --unsafe-perm --loglevel error --prefix "/opt/iobroker" (System call)
       Objects 127.0.0.1:46102 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets"]
       States 127.0.0.1:54494 Error from InMemDB: Error: GET-UNSUPPORTED for namespace meta.: Data=["meta.states.protocolVersion"]
       Objects 127.0.0.1:46102 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.protocolVersion"]
       Objects 127.0.0.1:46102 Error from InMemDB: Error: scan NOT SUPPORTED
      npm ERR! code 1
      npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller
      npm ERR! command failed
      npm ERR! command sh -c -- node iobroker.js setup first
      npm ERR! /opt/iobroker/node_modules/standard-as-callback/built/index.js:6
      npm ERR!         throw e;
      npm ERR!         ^
      npm ERR!
      npm ERR! ReplyError: Error scan NOT SUPPORTED
      npm ERR!     at parseError (/opt/iobroker/node_modules/redis-parser/lib/parser.js:179:12)
      npm ERR!     at parseType (/opt/iobroker/node_modules/redis-parser/lib/parser.js:302:14)
      npm ERR! Emitted 'error' event on ScanStream instance at:
      npm ERR!     at /opt/iobroker/node_modules/ioredis/built/ScanStream.js:38:22
      npm ERR!     at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:12:23)
      npm ERR!     at /opt/iobroker/node_modules/standard-as-callback/built/index.js:33:51
      npm ERR!     at processTicksAndRejections (node:internal/process/task_queues:96:5) {
      npm ERR!   command: {
      npm ERR!     name: 'scan',
      npm ERR!     args: [ '0', 'MATCH', 'cfg.o.system.host.*', 'COUNT', '250' ]
      npm ERR!   }
      npm ERR! }
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/iobroker/.npm/_logs/2022-10-24T18_59_26_083Z-debug-0.log
      Starting node restart.js
      
      pi@iobroker:~ $ which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
      /usr/bin/nodejs
      /usr/bin/node
      /usr/bin/npm
      v16.18.0
      v16.18.0
      8.19.2
      nodejs:
        Installiert:           16.18.0-deb-1nodesource1
        Installationskandidat: 16.18.0-deb-1nodesource1
        Versionstabelle:
       *** 16.18.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~deb10u2 500
              500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
              500 http://archive.raspbian.org/raspbian buster/main armhf Packages
      

      Könnte mir bitte jemand behilflich sein?
      Danke!
      Phil

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

        @philsynek sagte in npm ERR! bei Update:

        Update js-controller from @2.2.9 to @4.0.23

        Etwas länger ist gut...

        Schau hier rein:

        https://forum.iobroker.net/topic/52886/js-controller-4-0-x-jetzt-für-alle-user-im-stable

        P 1 Reply Last reply Reply Quote 1
        • P
          philsynek @Thomas Braun last edited by philsynek

          @thomas-braun Never change a running system... 🤷‍♂️ Danke Dir, aber das hab ich bereits versucht. Vergessen zu erwähnen. Ein fix, sowohl über iobroker als auch üper cURL brachte leider nichts.

          pi@iobroker:~ $ curl -sL https://iobroker.net/fix.sh | bash -
          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 http://raspbian.raspberrypi.org/raspbian buster InRelease
          OK:3 http://phoscon.de/apt/deconz buster InRelease
          OK:4 https://repos.influxdata.com/debian buster InRelease
          OK:5 https://deb.nodesource.com/node_16.x buster InRelease
          OK:6 http://archive.raspbian.org/raspbian buster InRelease
          Paketlisten werden gelesen... Fertig
          Installed gcc-c++
          
          ==========================================================================
              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@iobroker:~ $ iobroker upgrade self
          Update js-controller from @2.2.9 to @4.0.23
          NPM version: 8.19.2
          npm install iobroker.js-controller@4.0.23 --unsafe-perm --loglevel error --prefix "/opt/iobroker" (System call)
           Objects 127.0.0.1:46102 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets"]
           States 127.0.0.1:54494 Error from InMemDB: Error: GET-UNSUPPORTED for namespace meta.: Data=["meta.states.protocolVersion"]
           Objects 127.0.0.1:46102 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.protocolVersion"]
           Objects 127.0.0.1:46102 Error from InMemDB: Error: scan NOT SUPPORTED
          npm ERR! code 1
          npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller
          npm ERR! command failed
          npm ERR! command sh -c -- node iobroker.js setup first
          npm ERR! /opt/iobroker/node_modules/standard-as-callback/built/index.js:6
          npm ERR!         throw e;
          npm ERR!         ^
          npm ERR!
          npm ERR! ReplyError: Error scan NOT SUPPORTED
          npm ERR!     at parseError (/opt/iobroker/node_modules/redis-parser/lib/parser.js:179:12)
          npm ERR!     at parseType (/opt/iobroker/node_modules/redis-parser/lib/parser.js:302:14)
          npm ERR! Emitted 'error' event on ScanStream instance at:
          npm ERR!     at /opt/iobroker/node_modules/ioredis/built/ScanStream.js:38:22
          npm ERR!     at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:12:23)
          npm ERR!     at /opt/iobroker/node_modules/standard-as-callback/built/index.js:33:51
          npm ERR!     at processTicksAndRejections (node:internal/process/task_queues:96:5) {
          npm ERR!   command: {
          npm ERR!     name: 'scan',
          npm ERR!     args: [ '0', 'MATCH', 'cfg.o.system.host.*', 'COUNT', '250' ]
          npm ERR!   }
          npm ERR! }
          
          npm ERR! A complete log of this run can be found in:
          npm ERR!     /home/iobroker/.npm/_logs/2022-10-24T18_59_26_083Z-debug-0.log
          Starting node restart.js
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @philsynek last edited by Thomas Braun

            @philsynek sagte in npm ERR! bei Update:

            Never change a running system...

            Wenn ich den Mega-Quark schon wieder lese...

            iobroker stop
            cd /opt/iobroker
            sudo -H -u iobroker npm install iobroker.js-controller
            

            Wie bist du da sonst unterwegs?

            sudo ln -s /usr/bin/node /usr/bin/nodejs

            uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
            

            zeigen.

            P 1 Reply Last reply Reply Quote 1
            • P
              philsynek @Thomas Braun last edited by

              @thomas-braun said in npm ERR! bei Update:

              Wenn ich den Mega-Quark schon wieder lese...

              Hey, bitte nicht böse werden! 😉 Das war eher so gemeint, dass ich an iobroker selten rumfummel. Das Ding läuft einfach und ich bin da selten auf der Konsole...

              Wie bist du da sonst unterwegs?

              sudo ln -s /usr/bin/node /usr/bin/nodejs

              pi@iobroker:/opt/iobroker $ sudo ln -s /usr/bin/node /usr/bin/nodejs
              ln: die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits
              
              pi@iobroker:/opt/iobroker $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
              armv7l
              /usr/bin/nodejs
              /usr/bin/node
              /usr/bin/npm
              v16.18.0
              v16.18.0
              8.19.2
              4.0.23
              pi
              pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi iobroker
              /opt/iobroker
              OK:1 http://phoscon.de/apt/deconz buster InRelease
              OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
              OK:3 http://archive.raspberrypi.org/debian buster InRelease
              OK:4 https://repos.influxdata.com/debian buster InRelease
              OK:5 http://archive.raspbian.org/raspbian buster InRelease
              OK:6 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.18.0-deb-1nodesource1
                Installationskandidat: 16.18.0-deb-1nodesource1
                Versionstabelle:
               *** 16.18.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~deb10u2 500
                      500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                      500 http://archive.raspbian.org/raspbian buster/main armhf Packages
              

              Sonst update ich immer brav... hab halt nicht aufm Schirm gehabt, dass iobroker nicht per apt-get update mit aktualisiert wird.

              Ich danke Dir recht herzlich! iobroker ist jetzt aufm aktuellsten Stand, wie es scheint. 👍

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

                @philsynek

                iobroker update
                

                sagt? Die update und upgrade Kommandos sind übrigens ähnlich wie bei apt aufgebaut.

                P 1 Reply Last reply Reply Quote 1
                • P
                  philsynek @Thomas Braun last edited by

                  @thomas-braun

                  pi@iobroker:~ $ iobroker update
                  Used repository: stable
                  Adapter    "admin"        : 6.2.23   , installed 6.2.23
                  Adapter    "daswetter"    : 3.1.3    , installed 3.1.3
                  Adapter    "deconz"       : 1.3.21   , installed 1.3.21
                  Adapter    "discovery"    : 3.0.5    , installed 3.0.5
                  Adapter    "influxdb"     : 3.1.8    , installed 1.9.5  [Updatable]
                  Adapter    "info"         : 1.9.19   , installed 1.9.19
                  Controller "js-controller": 4.0.23   , installed 4.0.23
                  Adapter    "ping"         : 1.5.3    , installed 1.5.3
                  Adapter    "simple-api"   : 2.7.0    , installed 2.7.0
                  Adapter    "socketio"     : 4.2.0    , installed 4.2.0
                  Adapter    "telegram"     : 1.14.1   , installed 1.14.1
                  Adapter    "vis"          : 1.4.15   , installed 1.4.15
                  Adapter    "web"          : 4.3.0    , installed 4.3.0
                  Adapter    "ws"           : 1.3.0    , installed 1.3.0
                  

                  influxdb muss ich mich morgen mal reinlesen...

                  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

                  829
                  Online

                  31.9k
                  Users

                  80.1k
                  Topics

                  1.3m
                  Posts

                  2
                  7
                  340
                  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