Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Nodejs und Vis Probleme

    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

    Nodejs und Vis Probleme

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

      @wurschtbrot

      Das vollständige, 'richtige' log. Gibt es mit

      iob logs --watch
      
      W 1 Reply Last reply Reply Quote 0
      • crunchip
        crunchip Forum Testing Most Active @wurschtbrot last edited by

        @wurschtbrot probier mal ein upload vom Adapter

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

          @thomas-braun

          .
          2023-07-09 20:34:32.842  - error: systeminfo.0 (29931) unhandled promise rejection: Cannot read properties of undefined (reading 'getObjectList')
          2023-07-09 20:34:32.845  - error: systeminfo.0 (29931) TypeError: Cannot read properties of undefined (reading 'getObjectList')
              at MyAdapter.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 (node:events:513:28)
              at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:8232:26
          2023-07-09 20:34:32.847  - error: systeminfo.0 (29931) Cannot read properties of undefined (reading 'getObjectList')
          2023-07-09 20:34:33.366  - info: host.iobr22 stopInstance system.adapter.systeminfo.0 (force=false, process=true)
          2023-07-09 20:34:33.372  - info: systeminfo.0 (29931) terminating
          2023-07-09 20:34:33.374  - warn: systeminfo.0 (29931) Terminated (UNCAUGHT_EXCEPTION): Without reason
          2023-07-09 20:34:33.414  - info: systeminfo.0 (29931) Got terminate signal TERMINATE_YOURSELF
          2023-07-09 20:34:33.591  - info: host.iobr22 stopInstance system.adapter.systeminfo.0 send kill signal
          2023-07-09 20:34:33.995  - info: host.iobr22 instance system.adapter.systeminfo.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
          2023-07-09 20:34:32.795  - info: systeminfo.0 (29931) starting. Version 0.3.1 in /opt/iobroker/node_modules/iobroker.systeminfo, node: v18.16.1, js-controller: 4.0.24
          2023-07-09 20:34:32.840  - error: systeminfo.0 (29931) 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().
          2023-07-09 20:34:32.842  - error: systeminfo.0 (29931) unhandled promise rejection: Cannot read properties of undefined (reading 'getObjectList')
          2023-07-09 20:34:32.845  - error: systeminfo.0 (29931) TypeError: Cannot read properties of undefined (reading 'getObjectList')
              at MyAdapter.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 (node:events:513:28)
              at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:8232:26
          2023-07-09 20:34:32.847  - error: systeminfo.0 (29931) Cannot read properties of undefined (reading 'getObjectList')
          2023-07-09 20:34:33.366  - info: host.iobr22 stopInstance system.adapter.systeminfo.0 (force=false, process=true)
          2023-07-09 20:34:33.372  - info: systeminfo.0 (29931) terminating
          2023-07-09 20:34:33.374  - warn: systeminfo.0 (29931) Terminated (UNCAUGHT_EXCEPTION): Without reason
          2023-07-09 20:34:33.414  - info: systeminfo.0 (29931) Got terminate signal TERMINATE_YOURSELF
          2023-07-09 20:34:33.591  - info: host.iobr22 stopInstance system.adapter.systeminfo.0 send kill signal
          2023-07-09 20:34:33.995  - info: host.iobr22 instance system.adapter.systeminfo.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
          2023-07-09 20:34:36.631  - info: host.iobr22 instance system.adapter.systeminfo.0 started with pid 30008
          2023-07-09 20:34:36.631  - info: host.iobr22 instance system.adapter.systeminfo.0 started with pid 30008
          2023-07-09 20:34:39.474  - info: systeminfo.0 (30008) starting. Version 0.3.1 in /opt/iobroker/node_modules/iobroker.systeminfo, node: v18.16.1, js-controller: 4.0.24
          2023-07-09 20:34:39.515  - error: systeminfo.0 (30008) 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().
          2023-07-09 20:34:39.516  - error: systeminfo.0 (30008) unhandled promise rejection: Cannot read properties of undefined (reading 'getObjectList')
          2023-07-09 20:34:39.519  - error: systeminfo.0 (30008) TypeError: Cannot read properties of undefined (reading 'getObjectList')
              at MyAdapter.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 (node:events:513:28)
              at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:8232:26
          2023-07-09 20:34:39.520  - error: systeminfo.0 (30008) Cannot read properties of undefined (reading 'getObjectList')
          2023-07-09 20:34:40.052  - info: systeminfo.0 (30008) terminating
          2023-07-09 20:34:40.053  - warn: systeminfo.0 (30008) Terminated (UNCAUGHT_EXCEPTION): Without reason
          2023-07-09 20:34:39.474  - info: systeminfo.0 (30008) starting. Version 0.3.1 in /opt/iobroker/node_modules/iobroker.systeminfo, node: v18.16.1, js-controller: 4.0.24
          2023-07-09 20:34:39.515  - error: systeminfo.0 (30008) 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().
          2023-07-09 20:34:39.516  - error: systeminfo.0 (30008) unhandled promise rejection: Cannot read properties of undefined (reading 'getObjectList')
          2023-07-09 20:34:39.519  - error: systeminfo.0 (30008) TypeError: Cannot read properties of undefined (reading 'getObjectList')
              at MyAdapter.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 (node:events:513:28)
              at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:8232:26
          2023-07-09 20:34:39.520  - error: systeminfo.0 (30008) Cannot read properties of undefined (reading 'getObjectList')
          2023-07-09 20:34:40.052  - info: systeminfo.0 (30008) terminating
          2023-07-09 20:34:40.053  - warn: systeminfo.0 (30008) Terminated (UNCAUGHT_EXCEPTION): Without reason
          2023-07-09 20:34:40.705  - error: host.iobr22 instance system.adapter.systeminfo.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
          2023-07-09 20:34:40.707  - info: host.iobr22 Restart adapter system.adapter.systeminfo.0 because enabled
          2023-07-09 20:34:40.708  - warn: host.iobr22 Do not restart adapter system.adapter.systeminfo.0 because restart loop detected
          2023-07-09 20:34:40.705  - error: host.iobr22 instance system.adapter.systeminfo.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
          2023-07-09 20:34:40.707  - info: host.iobr22 Restart adapter system.adapter.systeminfo.0 because enabled
          2023-07-09 20:34:40.708  - warn: host.iobr22 Do not restart adapter system.adapter.systeminfo.0 because restart loop detected
          
          

          ich hoffe das reicht so

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

            @wurschtbrot https://forum.iobroker.net/post/770008

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

              @crunchip bin da nicht so fit was genau muss ich da machen

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

                Dürfte das sein:
                https://github.com/iobroker-community-adapters/ioBroker.systeminfo/issues/35
                Wundert mich nur, dass da so lange nichts passiert ist. Der Adapter scheint aber auch verwaist zu sein.

                foxriver76 created this issue in iobroker-community-adapters/ioBroker.systeminfo

                open adapter.objects.getObjectList will be removed with controller v4 #35

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

                  @wurschtbrot

                  Ich zitiere mal:

                  du musst /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js öffnen und dort in Zeile 44 das "object." vor dem getObjectList entfernen.

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

                    @thomas-braun

                    : No such file or directoryiobroker.systeminfo/myAdapter.js: line 1: /**
                    /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js: line 2: node_modules: command not found
                    /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js: line 3: syntax error near unexpected token `c'
                    /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js: line 3: ` *      (c' 2016- <frankjoke@hotmail.com>
                    
                    

                    das kommt dann

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

                      @wurschtbrot sagte in Nodejs und Vis Probleme:

                      das kommt dann

                      Wann kommt das? Bitte immer vollständige Eingabezeilen posten.

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

                        @thomas-braun finde ich bei mir gar nicht

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

                          @crunchip

                          pi@iobr22:~ $ /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js
                          : No such file or directoryiobroker.systeminfo/myAdapter.js: line 1: /**
                          /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js: line 2: node_modules: command not found
                          /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js: line 3: syntax error near unexpected token `c'
                          /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js: line 3: ` *      (c' 2016- <frankjoke@hotmail.com>
                          pi@iobr22:~ $
                          
                          
                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @wurschtbrot last edited by

                            @wurschtbrot

                            Du musst auch einen Editor angeben, mit dem du werkeln willst.
                            nano ist z. B. einer.

                            Oder du installierst den Adapter aus dem github, da dürfte das bereinigt sein.

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

                              @crunchip

                              Im Master scheint es auch behoben zu sein:

                              https://github.com/iobroker-community-adapters/ioBroker.systeminfo/blob/master/myAdapter.js

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

                                @thomas-braun bei mir gibt es aber auch kein
                                /opt/iobroker/node_modules/iobroker.systeminfo

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

                                  @crunchip

                                  Zu warm? Hast du den Adapter installiert?

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

                                    @thomas-braun ja der Adapter läuft bei mir, hab ihn nur in der Regel aus und schalt gelegentlich die Instanz mal ein
                                    gibt vllt mit dem neuen Js-controller/admin nicht mehr

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

                                      @crunchip
                                      Hier gibt es das:

                                      echad@chet:/opt/iobroker $ ls -lAh /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js
                                      -rw-rw-r--+ 1 iobroker iobroker 25K Jul  9 21:08 /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js
                                      
                                      crunchip 1 Reply Last reply Reply Quote 0
                                      • crunchip
                                        crunchip Forum Testing Most Active @Thomas Braun last edited by

                                        @thomas-braun sagte in Nodejs und Vis Probleme:

                                        ls -lAh /opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js

                                        Zugriff auf '/opt/iobroker/node_modules/iobroker.systeminfo/myAdapter.js' nicht möglich: Datei oder Verzeichnis nicht gefunden

                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Homoran
                                          Homoran Global Moderator Administrators last edited by

                                          :räusper:

                                          wir befinden uns in den Einsteigerfragen!

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

                                            @crunchip

                                            In der Version aus dem Beta-Repo:

                                                    this.D(`Adapter ${this.ains} starting.`);
                                                    this.getObjectList = this.c2p(adapter.objects.getObjectList).bind(adapter.objects);
                                                    this.getForeignState = this.c2p(adapter.getForeignState).bind(adapter);
                                            

                                            Da ist der Fehler noch drin.

                                            Github kommt so daher:

                                                static initAdapter() {
                                                    states = {};
                                                    this.D(`Adapter ${this.ains} starting.`);
                                                    this.getObjectList = this.c2p(adapter.getObjectList);
                                                    this.getForeignState = this.c2p(adapter.getForeignState);
                                                    this.setForeignState = this.c2p(adapter.setForeignState);
                                                    this.getState = this.c2p(adapter.getState);
                                            
                                            crunchip 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            499
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            47
                                            1867
                                            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