Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [Gelöst] ioBroker node.js weicht von Kommandozeile ab

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [Gelöst] ioBroker node.js weicht von Kommandozeile ab

    This topic has been deleted. Only users with topic management privileges can see it.
    • crunchip
      crunchip Forum Testing Most Active @lethuer last edited by crunchip

      @lethuer in der Theorie, könntest du schrittweise von einer Version zur nächsten updaten, das kann funktionieren, muss aber nicht unbedingt.
      die bessere Wahl wäre, System direkt neu aufsetzen und dann ein backup zurückspielen. macht zumindest was iobroker betrifft am wenigsten Probleme und du hast ein sauberes System.

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

        @lethuer sagte in ioBroker node.js weicht von Kommandozeile ab:

        das passiert eben bei "never touch a running system".

        Da passieren auch noch andere Dinge...
        Deswegen: GAAAAANZ doofe Taktik.

        Grundsätzlich geht das so:

        https://forum.iobroker.net/topic/47213/upgrade-von-debian-10-buster-auf-11-bullseye

        Müsste man halt zuerst für von Stretch zu Buster umsetzten und dann von Buster auf Bullseye. Vermutlich ist eine Neuinstallation da aber schmerzfreier als zwei Releases zu springen.

        Kurz: @crunchip hat Recht.

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

          @thomas-braun sagte in ioBroker node.js weicht von Kommandozeile ab:

          @lethuer

          Die nodesource.list anpassen. Steht in dem verlinkten How to drin.

          bin die liste (Nodejs Installation) eben durchgegangen.
          jetzt hab ich wohl node v16.16.0 drauf, zumindest das ist up to date.

          @crunchip sagte in ioBroker node.js weicht von Kommandozeile ab:

          @lethuer in der Theorie, könntest du schrittweise von einer Version zur nächsten updaten, das kann funktionieren, muss aber nicht unbedingt.
          die bessere Wahl wäre, System direkt neu aufsetzen und dann ein backup zurückspielen. macht zumindest was iobroker betrifft am wenigsten Probleme und du hast ein sauberes System.

          Bei dem komplett neu aufgesetzten System hab ich ein wenig angst...
          hab gerade neben iobroker noch octoprint an den start gebracht.

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

            @lethuer

            Willst du das jetzt aussitzen? Unkomplizierter wird es dadurch nicht.
            Das Release ist tot, das wird nicht wiederbelebt.
            Die octoprint.config kann man bestimmt auch sichern.

            lethuer 1 Reply Last reply Reply Quote 0
            • crunchip
              crunchip Forum Testing Most Active @lethuer last edited by

              @lethuer dann sichere dir die Karte und hebst mal dein System auf buster

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

                @thomas-braun gut gut ich hab ein backup davon, hoffentlich klappt das das wiederherzustellen.
                jetzt wollte ich noch schnell die adapter alle auf den letzten stand bringen und dann nochmal ein backup von iobroker fahren, allerdings wird noch der js-controller >= 3.3.0 gefordert.

                diese anleitung ging schief

                iobroker stop
                iobroker update
                iobroker upgrade self
                iobroker start
                
                pi@ioBroker-RasPi:~$ iobroker upgrade self
                Update js-controller from @3.1.6 to @4.0.23
                NPM version: 8.11.0
                npm install iobroker.js-controller@4.0.23 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                 Objects 127.0.0.1:51766 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets"]
                 Objects 127.0.0.1:51766 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.protocolVersion"]
                 Objects 127.0.0.1:51766 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/pi/.npm/_logs/2022-07-13T23_09_10_328Z-debug-0.log
                Starting node restart.js
                
                

                ein tipp auch dazu ?

                crunchip 1 Reply Last reply Reply Quote 0
                • crunchip
                  crunchip Forum Testing Most Active @lethuer last edited by crunchip

                  @lethuer sagte in ioBroker node.js weicht von Kommandozeile ab:

                  wollte ich noch schnell die adapter alle

                  Schnell geht da schon mal gar nix, das macht man in aller Ruhe.
                  Und je nachdem, gibt es in bestimmten Konstellationen zu beachten, in welcher Reihenfolge man die Adapter updatet.

                  Der Sprung von 3.1.6 auf 4.0.23 ist auch recht groß, meine mich zu erinnern, besser von 3.3 aus upgraden, steht allerdings im dazugehörigen Thread.

                  lethuer 1 Reply Last reply Reply Quote 0
                  • lethuer
                    lethuer @crunchip last edited by

                    @crunchip Vielleicht eine blöde frage aber wie komme ich denn auf 3.3.x ?
                    mit

                    iobroker upgrade self
                    

                    versucht er automatisch direkt auf 4.0.23 zu gehen...

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

                      @lethuer

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

                      Hatte dir aber auch @crunchip schon an's Herz gelegt.

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

                        @lethuer sagte in ioBroker node.js weicht von Kommandozeile ab:

                        aber wie komme ich denn auf 3.3.x ?

                        mit iobroker upgrade self@3.3.x

                        lethuer 1 Reply Last reply Reply Quote 0
                        • lethuer
                          lethuer @Homoran last edited by

                          @homoran sagte in ioBroker node.js weicht von Kommandozeile ab:

                          @lethuer sagte in ioBroker node.js weicht von Kommandozeile ab:

                          aber wie komme ich denn auf 3.3.x ?

                          mit iobroker upgrade self@3.3.x

                          Danke !

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

                            @thomas-braun sagte in ioBroker node.js weicht von Kommandozeile ab:

                            Aber dein Betriebssystem ist tot. Installier da was lebendiges.

                            Hi !
                            Heute habe ich endlich mal frisch aufgesetzt (https://www.youtube.com/watch?v=xb-S8pWtwu4).
                            Nun habe ich also das aktuelle Bullseye OS drauf.
                            ioBroker startete auch und ich hätte neu einrichten können.

                            Ich wollte also das zuvor erstellte Backup von GDrive über BackitUp einspielen, was auch gut aussah.
                            Nun ist die ioBroker Oberfläche aber nicht erreichbar.
                            Einen Neustart habe ich bereits versucht.

                            pi@raspberrypi:~ $ sudo reboot
                            

                            Aktuell kommt das hier:

                            pi@raspberrypi:~ $ iobroker status
                             Cannot read system.config: null (OK when migrating or restoring)
                            iobroker is running on this host.
                            
                            
                            Objects type: file
                            States  type: redis
                            
                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @lethuer last edited by

                              @lethuer

                              Ach, aus dem Video kommt also die Unsitte iobroker@iobroker auszuwählen. Interessant...

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

                                @thomas-braun sagte in ioBroker node.js weicht von Kommandozeile ab:

                                @lethuer

                                Ach, aus dem Video kommt also die Unsitte iobroker@iobroker auszuwählen. Interessant...

                                Hab ich ja nicht getan 🙂
                                Und die ioBroker Installation hat erstmal geklappt, nur ist dann irgendwas bei der Backup Wiederherstellung schief gegangen…

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

                                  @lethuer

                                  Und das Alt-System lief auch auf redis?

                                  iobroker list instances
                                  

                                  sagt?

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

                                    @thomas-braun sagte in ioBroker node.js weicht von Kommandozeile ab:

                                    Und das Alt-System lief auch auf redis?

                                    das weiß ich nicht...
                                    meine alte Config steht hier weiter oben in dem Post, vielleicht kann man daraus ja etwas ableiten ?
                                    Die war so alt (noch Stretch OS), dass ich updaten sollte 😉

                                    pi@raspberrypi:~ $ iobroker list instances
                                     Cannot read system.config: null (OK when migrating or restoring)
                                    
                                    
                                    + instance is alive
                                    
                                    Thomas Braun 2 Replies Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @lethuer last edited by

                                      @lethuer

                                      https://forum.iobroker.net/topic/59549/iob-diag-skript

                                      Schau mal ob du damit parat kommst.

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

                                        @lethuer

                                        apt policy redis
                                        

                                        sagt?

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

                                          @thomas-braun sagte in ioBroker node.js weicht von Kommandozeile ab:

                                          @lethuer

                                          apt policy redis
                                          

                                          sagt?

                                          pi@raspberrypi:~ $ apt policy redis
                                          redis:
                                            Installiert:           (keine)
                                            Installationskandidat: 5:6.0.16-1+deb11u2
                                            Versionstabelle:
                                               5:6.0.16-1+deb11u2 500
                                                  500 http://deb.debian.org/debian bullseye/main arm64 Packages
                                                  500 http://deb.debian.org/debian bullseye/main armhf Packages
                                                  500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages
                                                  500 http://security.debian.org/debian-security bullseye-security/main armhf Packages
                                          
                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @lethuer last edited by

                                            @lethuer

                                            Dann installier das mal.

                                            lethuer 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

                                            927
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            59
                                            2943
                                            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