Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. yahka adapter: terminated with code 6 (UNCAUGHT_EXCEPTION)

    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

    yahka adapter: terminated with code 6 (UNCAUGHT_EXCEPTION)

    This topic has been deleted. Only users with topic management privileges can see it.
    • Codierknecht
      Codierknecht Developer Most Active @mcm1957 last edited by

      @mcm57
      Ähh, ja - das ist sein Issue dazu, das er vor 2 Tagen eröffnet hat.
      Sagt aber noch nix zu seinem System.

      1 Reply Last reply Reply Quote 0
      • M
        mimei @Codierknecht last edited by

        @codierknecht

        sorry, ist korrigiert.
        genügt das Summary?

        ======================= SUMMARY =======================
                                v.2023-10-10
        
        
           Static hostname: jportal1
                 Icon name: computer
          Operating System: Raspbian GNU/Linux 10 (buster)
                    Kernel: Linux 5.10.103-v7l+
              Architecture: arm
        
        Installation:           native
        Kernel:                 armv7l
        Userland:               armhf
        Timezone:               Europe/Zurich (CEST, +0200)
        User-ID:                1000
        X-Server:               false
        Boot Target:            graphical.target
        
        Pending OS-Updates:     0
        Pending iob updates:    1
        
        Nodejs-Installation:    /usr/bin/nodejs         v18.17.1
                                /usr/bin/node           v18.17.1
                                /usr/bin/npm            9.6.7
                                /usr/bin/npx            9.6.7
                                /usr/bin/corepack       0.18.0
        
        Recommended versions are nodejs 18.18.1 and npm 9.8.1
        Your nodejs installation is correct
        
        MEMORY:
                      total        used        free      shared  buff/cache   available
        Mem:           3.8G        1.6G        736M        6.0M        1.5G        2.1G
        Swap:           99M        4.0M         95M
        Total:         3.9G        1.6G        832M
        
        Active iob-Instances:   27
        Active repo(s): Stable (default)
        
        ioBroker Core:          js-controller           5.0.12
                                admin                   6.10.1
        
        ioBroker Status:        iobroker is running on this host.
        
        
        Objects type: jsonl
        States  type: jsonl
        
        Status admin and web instance:
        + system.adapter.admin.0                  : admin                 : jportal1                                 -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
        + system.adapter.web.0                    : web                   : jportal1                                 -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
        
        Objects:                10558
        States:                 8763
        
        Size of iob-Database:
        
        25M     /opt/iobroker/iobroker-data/objects.jsonl
        8.8M    /opt/iobroker/iobroker-data/objects.json.migrated
        8.8M    /opt/iobroker/iobroker-data/objects.json.bak.migrated
        16M     /opt/iobroker/iobroker-data/states.jsonl
        1.2M    /opt/iobroker/iobroker-data/states.json.migrated
        1.2M    /opt/iobroker/iobroker-data/states.json.bak.migrated
        
        
        
        =================== END OF SUMMARY ====================
        

        was ich sonst grad in iob diag noch gesehen habe:

        Errors in npm tree:
        npm ERR! code ELSPROBLEMS
        npm ERR! missing: jimp@^0.22.10, required by iobroker.javascript@7.1.4
        
        npm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2023-10-11T21_05_40_796Z-debug-0.log
        
        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @mimei last edited by

          @mimei sagte in yahka adapter: terminated with code 6 (UNCAUGHT_EXCEPTION):

          buster

          Tot. Muss ersetzt werden

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

            @thomas-braun
            hab ich mittelfristig vor, aber ist das die Ursache?

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

              @mimei sagte in yahka adapter: terminated with code 6 (UNCAUGHT_EXCEPTION):

              mittelfristig

              Mittelfristig ist vorbei, es gibt mittlerweile den Nach-Nachfolger. Du hinkst komplett hinterher. Also KURZFRISTIG updaten.

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

                @thomas-braun
                so, ich habs durchgezogen, ging problemlos, insbesondere dank diesem super Forum 👍

                yahka.0 2023-10-12 21:59:42.981	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
                yahka.0 2023-10-12 21:59:42.980	info	terminating
                yahka.0 2023-10-12 21:59:42.979	info	cleaned up ...
                yahka.0 2023-10-12 21:59:42.979	info	cleaning up ...
                yahka.0 2023-10-12 21:59:42.943	error	Cannot read properties of null (reading 'val')
                yahka.0 2023-10-12 21:59:42.943	error	TypeError: Cannot read properties of null (reading 'val') at TIoBrokerInOutFunction_Homematic_Dimmer_On.cacheChanged (/opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.functions/iofunc.homematic.dimmer.ts:38:39) at TIoBrokerInOutFunction_Homematic_Dimmer_On.subscriptionEvent (/opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.functions/functions.base.ts:61:14) at changeInterceptor (/opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.ioBroker-adapter.ts:145:75) at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.ioBroker-adapter.ts:160:21) at processImmediate (node:internal/timers:478:21)
                yahka.0 2023-10-12 21:59:42.941	error	uncaught exception: Cannot read properties of null (reading 'val')
                

                iob diag:

                ======================= SUMMARY =======================
                                        v.2023-10-10
                
                
                 Static hostname: jportal1
                       Icon name: computer
                Operating System: Debian GNU/Linux 12 (bookworm)
                          Kernel: Linux 5.10.103-v7l+
                    Architecture: arm
                
                Installation:           native
                Kernel:                 armv7l
                Userland:               armhf
                Timezone:               Europe/Zurich (CEST, +0200)
                User-ID:                1000
                X-Server:               false
                Boot Target:            graphical.target
                
                Pending OS-Updates:     0
                Pending iob updates:    1
                
                Nodejs-Installation:    /usr/bin/nodejs         v18.17.1
                                        /usr/bin/node           v18.17.1
                                        /usr/bin/npm            9.6.7
                                        /usr/bin/npx            9.6.7
                                        /usr/bin/corepack       0.18.0
                
                Recommended versions are nodejs 18.18.1 and npm 9.8.1
                Your nodejs installation is correct
                
                MEMORY:
                               total        used        free      shared  buff/cache   available
                Mem:            4.0G        1.5G        1.6G        1.2M        1.1G        2.6G
                Swap:           104M          0B        104M
                Total:          4.1G        1.5G        1.7G
                
                Active iob-Instances:   28
                Active repo(s): Stable (default)
                
                ioBroker Core:          js-controller           5.0.12
                                        admin                   6.10.1
                
                ioBroker Status:        iobroker is running on this host.
                
                
                Objects type: jsonl
                States  type: jsonl
                
                Status admin and web instance:
                + system.adapter.admin.0                  : admin                 : jportal1                                 -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                + system.adapter.web.0                    : web                   : jportal1                                 -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                
                Objects:                10654
                States:                 8881
                
                Size of iob-Database:
                
                19M     /opt/iobroker/iobroker-data/objects.jsonl
                8.8M    /opt/iobroker/iobroker-data/objects.json.migrated
                8.8M    /opt/iobroker/iobroker-data/objects.json.bak.migrated
                12M     /opt/iobroker/iobroker-data/states.jsonl
                1.2M    /opt/iobroker/iobroker-data/states.json.migrated
                1.2M    /opt/iobroker/iobroker-data/states.json.bak.migrated
                
                
                
                =================== END OF SUMMARY ====================
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @mimei last edited by

                  @mimei
                  Ich hätte den Pi4 ja mit einem 64bit-System bestückt.
                  Und nodejs bzw. das nodesource-Repository musst du auch noch anpacken.
                  Siehe Fix-Skript in meiner Signatur.

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

                    @thomas-braun
                    nodefix habe ich gemacht. Ist den 64bit die Ursache? Es hat ja vor kurzem noch funktioniert. Es klingt mir nach irgendeinem Javascript Problem, das ist aber leider nicht mein Spezialgebiet.

                    hier zur Vollständigkeit das aktuelle Summary:

                    ======================= SUMMARY =======================
                                            v.2023-10-10
                    
                    
                     Static hostname: jportal1
                           Icon name: computer
                    Operating System: Debian GNU/Linux 12 (bookworm)
                              Kernel: Linux 5.10.103-v7l+
                        Architecture: arm
                    
                    Installation:           native
                    Kernel:                 armv7l
                    Userland:               armhf
                    Timezone:               Europe/Zurich (CEST, +0200)
                    User-ID:                1000
                    X-Server:               false
                    Boot Target:            graphical.target
                    
                    Pending OS-Updates:     0
                    Pending iob updates:    0
                    
                    Nodejs-Installation:    /usr/bin/nodejs         v18.18.1
                                            /usr/bin/node           v18.18.1
                                            /usr/bin/npm            9.8.1
                                            /usr/bin/npx            9.8.1
                                            /usr/bin/corepack       0.19.0
                    
                    Recommended versions are nodejs 18.18.1 and npm 9.8.1
                    Your nodejs installation is correct
                    
                    MEMORY:
                                   total        used        free      shared  buff/cache   available
                    Mem:            4.0G        1.4G        1.9G        1.2M        903M        2.6G
                    Swap:           104M          0B        104M
                    Total:          4.1G        1.4G        2.0G
                    
                    Active iob-Instances:   27
                    Active repo(s): Stable (default)
                    
                    ioBroker Core:          js-controller           5.0.12
                                            admin                   6.10.1
                    
                    ioBroker Status:        iobroker is running on this host.
                    
                    
                    Objects type: jsonl
                    States  type: jsonl
                    
                    Status admin and web instance:
                    + system.adapter.admin.0                  : admin                 : jportal1                                 -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                    + system.adapter.web.0                    : web                   : jportal1                                 -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                    
                    Objects:                10689
                    States:                 8913
                    
                    Size of iob-Database:
                    
                    24M     /opt/iobroker/iobroker-data/objects.jsonl
                    8.8M    /opt/iobroker/iobroker-data/objects.json.migrated
                    8.8M    /opt/iobroker/iobroker-data/objects.json.bak.migrated
                    19M     /opt/iobroker/iobroker-data/states.jsonl
                    1.2M    /opt/iobroker/iobroker-data/states.json.migrated
                    1.2M    /opt/iobroker/iobroker-data/states.json.bak.migrated
                    
                    
                    
                    =================== END OF SUMMARY ====================
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @mimei last edited by

                      @mimei sagte in yahka adapter: terminated with code 6 (UNCAUGHT_EXCEPTION):

                      Ist den 64bit die Ursache?

                      Nein, aber Stand der Technik.
                      Und beim Kernel stimmt glaube ich auch was nicht. Da müsste eigentlich ein Kernel 6.1 geladen werden.

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

                        @thomas-braun
                        Kernel wurde auf 6.1 aktualisiert. An 64bit habe ich mich aus Zeitgründen nicht herangewagt. Anyway, aus meiner Sicht immer klar, dass es nicht an einer bestimmten Version liegen kann.

                        Ich konnte es lösen, cacheValue wurde nicht auf null geprüft.

                        das Problem war folgender Schnipsel im main.js

                        if (cacheValue ....
                        
                        cacheChanged(stateName, callback) {
                        // save level if we are switching off
                        if (stateName === this.parameters.levelState) {
                          const cacheValue = this.readValueFromCache(stateName);
                           if (cacheValue && parseFloat(cacheValue.val) > 0) {
                                 this.lastOnLevel = cacheValue;
                           }
                         }
                        super.cacheChanged(stateName, callback);
                        }
                        
                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        961
                        Online

                        31.8k
                        Users

                        80.0k
                        Topics

                        1.3m
                        Posts

                        4
                        13
                        628
                        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