Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [Gelöst] Systeminfo: Nach Update keine Konfiguration mehr

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    [Gelöst] Systeminfo: Nach Update keine Konfiguration mehr

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

      Hallo zusammen,

      vor einiger Zeit habe ich ich ziemlich viele Adapter aktualisiert, um auf den aktuellen js-Adapter 4.0 aufzurüsten.
      Ich habe gerade entdeckt, dass die Daten, die vom systeminfo-Adapter kommen, nicht mehr aktualisiert werden.
      Bei der Fehlersuche habe ich festgestellt, dass der Adapter nicht mehr startet und im log einige Fehler stehen:

      host.PIioBroker 2022-05-05 02:01:46.291	error	instance system.adapter.systeminfo.1 terminated with code 6 (UNCAUGHT_EXCEPTION)
      systeminfo.1 	2022-05-05 22:01:45.605	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
      systeminfo.1	2022-05-05 22:01:45.603	info	terminating
      systeminfo.1	2022-05-05 22:01:45.090	error	Cannot read property 'getObjectList' of undefined
      systeminfo.1	2022-05-05 22:01:45.089	error	TypeError: Cannot read property 'getObjectList' of undefined at Function.initAdapter (/opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js:44:55) at Adapter.<anonymous> (/opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js:118:37) at Adapter.emit (events.js:314:20) at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:8226:26
      systeminfo.1 	2022-05-05 22:01:45.085	error	unhandled promise rejection: Cannot read property 'getObjectList' of undefined
      systeminfo.1	2022-05-05 22:01:45.085	error	Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
      

      Dann habe ich mir die Einstellungen angesehen und ...
      ... die gesamte Konfiguration ist weg 😞
      Da dürfte wohl beim Aktualisieren irgendwo etwas schief gelaufen zu sein.
      Backups vom Backup-Adapter liegen vor (danke den Entwicklern hierfür).
      Wie bekomme ich denn (nur) die Einstellungen vom Systeminfo wieder?
      Ist es möglich, nur diese Konfig zu restaurieren? Gefunden habe ich dazu leider nichts.

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

        @hans_999

        systeminfo.1

        Was ist denn mit systeminfo.0 los?

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

          @thomas-braun said in Systeminfo: Nach Update keine Konfiguration mehr:

          Was ist denn mit systeminfo.0 los?

          Das gleiche. Da steht / stand aber nur die Beispiel-Konfig drin.

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

            @hans_999

            sudo ln -s /usr/bin/node /usr/bin/nodejs
            uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
            

            sagt?

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

              @hans_999

              Schaut aber vielleicht danach aus:

              https://github.com/frankjoke/ioBroker.systeminfo/issues/39

              Trunks1982 created this issue in frankjoke/ioBroker.systeminfo

              closed Neuer JS Controller Update #39

              1 Reply Last reply Reply Quote 1
              • H
                hans_999 @Thomas Braun last edited by

                Leider bin ich erst jetzt dazu gekommen, mich wieder um dieses Problem zu kümmern.

                @thomas-braun said in Systeminfo: Nach Update keine Konfiguration mehr:

                @hans_999
                Schaut aber vielleicht danach aus:
                https://github.com/frankjoke/ioBroker.systeminfo/issues/39

                Danke für diesen Tipp. Das

                in file /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js
                change line 44 from
                this.getObjectList = this.c2p(adapter.objects.getObjectList).bind(adapter.objects);
                to
                this.getObjectList = this.c2p(adapter.getObjectList).bind(adapter.objects);
                

                scheint geholfen zu haben. Der Adapter startet wieder ohne Fehler, findet die Konfiguration und liefert auch wieder Daten.

                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

                838
                Online

                32.1k
                Users

                80.7k
                Topics

                1.3m
                Posts

                2
                6
                397
                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