Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Syntax Error seit Stromausfall

    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

    Syntax Error seit Stromausfall

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @markphilip last edited by

      @markphilip sagte in Syntax Error seit Stromausfall:

      Der Syntax Fehler erscheint auch wenn ich Versuche JS Controller neu zu installieren

      welcher Syntaxfehler?

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

        @homoran hi oben im ersten Post im Code:

         SyntaxError: The requested module 'tar' does not provide an export named 'default'
            at ModuleJob._instantiate (node:internal/modules/esm/module_job:146:21)
            at async ModuleJob.run (node:internal/modules/esm/module_job:229:5)
            at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
        

        MOD-EDIT: Code in code-tags gesetzt!

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

          @markphilip
          Achso, im iob diag.
          Hatte ich mir gar nicht angesehen weil nur Summary.

          laut letztem debug-log ist da noch einiges mehr kaputt, und diese Meldung wohl nur eine Folge davon

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

            @homoran ok eine Idee was ich machen kann oder soll ich das System einmal neu aufsetzen?

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

              @markphilip sagte in Syntax Error seit Stromausfall:

              eine Idee was ich machen kann

              leider nein, das ist weit über meinen skills.

              @markphilip sagte in Syntax Error seit Stromausfall:

              soll ich das System einmal neu aufsetzen?

              das würde ich jetzt machen, aber vielleicht hat @thomas-braun eine Idee, oder gar Lust das zu fixen, wenn möglich.

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User @markphilip last edited by

                @markphilip

                da das ne VM ist, wuerd ich einfach das letzte Backup der VM wieder einspielen.

                Da hats was in deinem System geschossen.. hoffentlich ist nicht die Platte im Eimer.. hast du noch mehr VM's laufen?

                1 Reply Last reply Reply Quote 0
                • arteck
                  arteck Developer Most Active last edited by arteck

                  @ALLE

                  liest doch mal ALLE das diag richtig

                  Status admin and web instance:
                  
                  
                  Objects:                0
                  
                  States:                 0
                  

                  da ist NIX an objekten und states.. was soll dann da laufen

                  @markphilip
                  hoffe du hast ein backup.. sonst schaumal in den iobroker-data ordner da sollte eine objects.bak und eine states.bak liegen.. und die sollten grösser sein als die entsprechenden jsonl's

                  sonst hilft dir nur backup zurück

                  wendy2702 1 Reply Last reply Reply Quote 1
                  • wendy2702
                    wendy2702 @arteck last edited by

                    @arteck soll das jetzt die Erklärung für den Syntax Fehler sein oder was?

                    ? 1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User @wendy2702 last edited by

                      @wendy2702

                      Schlechte Laune? Geh mal an die Luft... 🙂

                      Wenn du weiter liest, siehst du, was passiert ist und warum das so ist.

                      wendy2702 1 Reply Last reply Reply Quote 0
                      • wendy2702
                        wendy2702 @Guest last edited by

                        @ilovegym keine schlechte Laune.

                        Hätte es nur gerne vernünftig erklärt wenn man schon schreibt wir würden alle nicht richtig lesen.

                        Vor allem warum es beim Versuch den Controller neu zu installieren immer noch zum Syntax Fehler kommt.

                        ? 1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User @wendy2702 last edited by

                          @wendy2702

                          Nehme an, dass es das Dateisystem zerrissen hat..
                          das kann uns aber auch nur der TE erklären..

                          Vielleicht war auch schon vorher was krumm und jetzt ist es endgültig durch…

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

                            @ilovegym sagte in Syntax Error seit Stromausfall:

                            Nehme an, dass es das Dateisystem zerrissen hat..

                            ich auch
                            Deswegen war meine Meinung

                            @homoran sagte in Syntax Error seit Stromausfall:

                            laut letztem debug-log ist da noch einiges mehr kaputt, und diese Meldung wohl nur eine Folge davon

                            1 Reply Last reply Reply Quote 0
                            • wendy2702
                              wendy2702 last edited by

                              Ja,

                              Dateisystem zerrissen ist gut möglich und wahrscheinlich. Mir erschließt sich nur gerade nicht wie man das an dem Status: "Objects & States" fest machen kann und was der Status "Objects & States" an der Stelle mit dem Syntax error zu tun hat.

                              Aber ist jetzt auch egal. Ich hoffe der TE hat ein Backup.

                              ? arteck 2 Replies Last reply Reply Quote 0
                              • ?
                                A Former User @wendy2702 last edited by

                                @wendy2702

                                naja der erwartet anstatt das "tar" ein andere variable, evtl. eine Zahl, und daher kommt dann der Syntax error.
                                wenn in den Objekts und States nix drin steht, dann kann er auch nix auslesen.. das wird dann als syntax error interpretiert.. vielleichit verwirrend aber so erklaer ich es mir..

                                bei so einem Fehler soll man sich keine Gedanken machen und auch keine Zeit verschwenden, einfach Restore vom letzten Image und gut ist..

                                1 Reply Last reply Reply Quote 1
                                • arteck
                                  arteck Developer Most Active @wendy2702 last edited by arteck

                                  @wendy2702 sagte in Syntax Error seit Stromausfall:

                                  Mir erschließt sich nur gerade nicht wie man das an dem Status: "Objects & States" fest machen kann und was der Status "Objects & States" an der Stelle mit dem Syntax error zu tun hat.

                                  wie soll ein system starten wen NIX aber auch NIX konfiguriert ist.. wenn ich dir sage dass die Datenbank des iobroker kaputt ist hilft dir das weiter ??

                                  es müssen zumindest standart Einstellungen da stehen aber da ist NIX = 0 drin
                                  da hilft auch nix wenn du den js-controller neu installierst..

                                  1 Reply Last reply Reply Quote 0
                                  • Z
                                    ZeroQool last edited by

                                    Also ich habe genau das gleiche Problem. Der ioBroker fährt sogar gar nicht hoch. Ich muss die Import Referenz hier ändern: /opt/iobroker/node_modules/@iobroker/js-controller-cli/build/esm/lib/setup/setupBackup.js dann fährt der ioBroker hoch, aber ich habe dennoch Probleme Adapter zu installieren. Denn dort kommt die gleiche TAR Fehlermeldung.

                                    Verfügbar js-controller:7.0.6
                                    Installiert js-controller:7.0.6
                                    
                                    Node.js
                                    v20.15.1 (Es gibt eine neuere Version: v20.19.2 - Empfohlene Version v18.20.8)
                                    

                                    der iob diag spuckt auch seltsames aus:

                                    ======================= SUMMARY =======================
                                                            v.2025-02-23
                                    
                                    
                                     Static hostname: iobroker
                                           Icon name: computer-container
                                             Chassis: container ☐
                                      Virtualization: lxc
                                    Operating System: Debian GNU/Linux 12 (bookworm)
                                              Kernel: Linux 6.5.13-3-pve
                                        Architecture: x86-64
                                    
                                    Installation:           lxc
                                    Kernel:                 x86_64
                                    Userland:               64 bit
                                    Timezone:               Europe/Berlin (CEST, +0200)
                                    User-ID:                1001
                                    Display-Server:         false
                                    Boot Target:            graphical.target
                                    
                                    Pending OS-Updates:     152
                                    /opt/iobroker/node_modules/standard-as-callback/built/index.js:6
                                            throw e;
                                            ^
                                    
                                    Error: Connection is closed.
                                        at close (/opt/iobroker/node_modules/ioredis/built/redis/event_handler.js:184:25)
                                        at Socket.<anonymous> (/opt/iobroker/node_modules/ioredis/built/redis/event_handler.js:151:20)
                                        at Object.onceWrapper (node:events:634:26)
                                        at Socket.emit (node:events:519:28)
                                        at TCP.<anonymous> (node:net:338:12)
                                    Emitted 'error' event on ScanStream instance at:
                                        at /opt/iobroker/node_modules/ioredis/built/ScanStream.js:38:22
                                        at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:12:23)
                                        at /opt/iobroker/node_modules/standard-as-callback/built/index.js:33:51
                                        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
                                    
                                    Node.js v20.15.1
                                    Pending iob updates:    0
                                    
                                    Nodejs-Installation:
                                    /usr/bin/nodejs         v20.15.1
                                    /usr/bin/node           v20.15.1
                                    /usr/bin/npm            10.7.0
                                    /usr/bin/npx            10.7.0
                                    /usr/bin/corepack       0.28.1
                                    
                                    Recommended versions are nodejs 20.19.2 and npm 10.8.2
                                    nodeJS installation is correct
                                    
                                    MEMORY:
                                                   total        used        free      shared  buff/cache   available
                                    Mem:             10G        3.5G        6.2G         86K        1.1G        7.2G
                                    Swap:           8.6G        2.3G        6.3G
                                    Total:           19G        5.8G         12G
                                    
                                    Active iob-Instances:   53
                                    Upgrade policy: none
                                    
                                    ioBroker Core:          js-controller           7.0.6
                                                            admin                   7.6.3
                                    
                                    ioBroker Status:        iobroker is running on this host.
                                    
                                    At least one iobroker host is running.
                                    
                                    Objects type: redis
                                    States  type: redis
                                    
                                    Status admin and web instance:
                                    + system.adapter.admin.0                  : admin                 : iobroker                                 -  enabled, port: 8081, bind: 192.168.178.83 (SSL), run as: admin
                                    + system.adapter.web.0                    : web                   : iobroker                                 -  enabled, port: 8082, bind: 0.0.0.0 (SSL), run as: admin
                                    
                                    Objects:                99529
                                    States:                 60846
                                    
                                    Size of iob-Database:
                                    
                                    find: Failed to change directory: /root: Permission denied
                                    find: Failed to restore initial working directory: /root: Permission denied
                                    find: Failed to change directory: /root: Permission denied
                                    find: Failed to restore initial working directory: /root: Permission denied
                                    
                                    
                                    Operating System is the current Debian stable version codenamed 'bookworm'!
                                    
                                    =================== END OF SUMMARY ====================
                                    
                                    
                                    Codierknecht 1 Reply Last reply Reply Quote 0
                                    • Codierknecht
                                      Codierknecht Developer Most Active @ZeroQool last edited by

                                      @zeroqool

                                      Pending OS-Updates:     152
                                      

                                      Du solltest zunächst mal Dein System auf Stand bringen.

                                      1 Reply Last reply Reply Quote 0
                                      • Z
                                        ZeroQool last edited by

                                        @codierknecht Stimmt

                                        ======================= SUMMARY =======================
                                                                v.2025-02-23
                                        
                                        
                                         Static hostname: iobroker
                                               Icon name: computer-container
                                                 Chassis: container ☐
                                          Virtualization: lxc
                                        Operating System: Debian GNU/Linux 12 (bookworm)
                                                  Kernel: Linux 6.5.13-3-pve
                                            Architecture: x86-64
                                        
                                        Installation:           lxc
                                        Kernel:                 x86_64
                                        Userland:               64 bit
                                        Timezone:               Europe/Berlin (CEST, +0200)
                                        User-ID:                1001
                                        Display-Server:         false
                                        Boot Target:            graphical.target
                                        
                                        Pending OS-Updates:     0
                                        Pending iob updates:    0
                                        
                                        Nodejs-Installation:
                                        /usr/bin/nodejs         v20.19.2
                                        /usr/bin/node           v20.19.2
                                        /usr/bin/npm            10.8.2
                                        /usr/bin/npx            10.8.2
                                        /usr/bin/corepack       0.31.0
                                        
                                        Recommended versions are nodejs 20.19.2 and npm 10.8.2
                                        nodeJS installation is correct
                                        
                                        MEMORY:
                                                       total        used        free      shared  buff/cache   available
                                        Mem:             10G        4.6G        3.4G        167K        2.7G        6.1G
                                        Swap:           8.6G         22M        8.6G
                                        Total:           19G        4.7G         11G
                                        
                                        Active iob-Instances:   53
                                        Upgrade policy: none
                                        
                                        ioBroker Core:          js-controller           7.0.6
                                                                admin                   7.6.3
                                        
                                        ioBroker Status:        iobroker is running on this host.
                                        
                                        At least one iobroker host is running.
                                        
                                        Objects type: redis
                                        States  type: redis
                                        
                                        Status admin and web instance:
                                        + system.adapter.admin.0                  : admin                 : iobroker                                 -  enabled, port: 8081, bind: 192.168.178.83 (SSL), run as: admin
                                        + system.adapter.web.0                    : web                   : iobroker                                 -  enabled, port: 8082, bind: 0.0.0.0 (SSL), run as: admin
                                        
                                        Objects:                99529
                                        States:                 60899
                                        
                                        Size of iob-Database:
                                        
                                        find: Failed to change directory: /root: Permission denied
                                        find: Failed to restore initial working directory: /root: Permission denied
                                        find: Failed to change directory: /root: Permission denied
                                        find: Failed to restore initial working directory: /root: Permission denied
                                        
                                        
                                        Operating System is the current Debian stable version codenamed 'bookworm'!
                                        
                                        
                                        
                                        Codierknecht Thomas Braun 2 Replies Last reply Reply Quote 0
                                        • Codierknecht
                                          Codierknecht Developer Most Active @ZeroQool last edited by

                                          @zeroqool
                                          Wenn Du jetzt noch die Langfassung statt Summary lieferst, könnte man sehen wie Du da unterwegs bist.

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

                                            @zeroqool sagte in Syntax Error seit Stromausfall:

                                            find: Failed to restore initial working directory: /root: Permission denied

                                            Im Verzeichnis /root hast du nix verloren. Und der ioBroker auch nicht. Da stimmt irgendwas nicht bei dir.

                                            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

                                            414
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            9
                                            28
                                            1213
                                            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