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.
    • M
      markphilip @wendy2702 last edited by

      @wendy2702

      iobroker fixer läuft durch ändert allerdings nichts. Der Fehler bleibt der gleiche.

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

      wendy2702 Homoran 2 Replies Last reply Reply Quote 0
      • wendy2702
        wendy2702 @markphilip last edited by wendy2702

        @markphilip Dann zeige uns deinen Versuch den JS Controller neu zu installieren mal als log komplett mit ein und Ausgabe der Konsole

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

          @wendy2702 Ich hoffe das ist so richtig

          mark@IoBroker:/opt/iobroker$ sudo -H -u iobroker npm install iobroker.js-controller
          npm warn skipping integrity check for git dependency ssh://git@github.com/klein0r/ioBroker.comfoairq.git
          npm warn deprecated dgram@1.0.1: npm is holding this package for security reasons. As it's a core Node module, we will not transfer it over to other users. You may safely remove the package from your dependencies.
          npm warn deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
          npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
          npm warn deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
          npm warn deprecated npmlog@6.0.2: This package is no longer supported.
          npm warn deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
          npm warn deprecated har-validator@5.1.5: this library is no longer supported
          npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
          npm warn deprecated are-we-there-yet@3.0.1: This package is no longer supported.
          npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
          npm warn deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3
          npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
          npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
          npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
          npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
          npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
          npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
          npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
          npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
          npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
          npm warn deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
          npm warn deprecated node-inspect@2.0.0: This module is part of Node.js core and does not need to be installed separately. It is now unmaintained.
          npm warn deprecated google-p12-pem@4.0.1: Package is no longer maintained
          npm warn deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
          npm warn deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
          npm warn deprecated gauge@4.0.4: This package is no longer supported.
          npm warn deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
          npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
          npm warn deprecated xmldom@0.1.16: Deprecated due to CVE-2021-21366 resolved in 0.5.0
          npm warn deprecated sinon@15.2.0: 16.1.1
          npm warn deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.
          npm error code 1
          npm error path /opt/iobroker/node_modules/iobroker.js-controller
          npm error command failed
          npm error command sh -c node iobroker.js setup first
          npm error file:///opt/iobroker/node_modules/@iobroker/js-controller-cli/build/esm/lib/setup/setupBackup.js:5
          npm error import tar from 'tar';
          npm error        ^^^
          npm error SyntaxError: The requested module 'tar' does not provide an export named 'default'
          npm error     at ModuleJob._instantiate (node:internal/modules/esm/module_job:146:21)
          npm error     at async ModuleJob.run (node:internal/modules/esm/module_job:229:5)
          npm error     at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
          npm error
          npm error Node.js v20.18.1
          npm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2025-01-04T17_51_36_141Z-debug-0.log
          
          mark@IoBroker:/opt/iobroker$ /home/iobroker/.npm/_logs/2025-01-04T17_51_36_141Z-debug-0.log
          -bash: /home/iobroker/.npm/_logs/2025-01-04T17_51_36_141Z-debug-0.log: Keine Berechtigung
          
          
          
          mikeal created this issue in request/request

          open Request’s Past, Present and Future #3142

          Qix- created this issue in visionmedia/debug

          closed ReDos Vulnerability Regression Visibility Notice #797

          Qix- created this issue in visionmedia/debug

          closed ReDos Vulnerability Regression Visibility Notice #797

          mikeal created this issue in request/request

          open Request’s Past, Present and Future #3142

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

            Hm,

            Fällt mir auf die schnelle nichts zu ein.

            Vielleicht hat @Thomas-Braun eine Idee.

            1 Reply Last reply Reply Quote 0
            • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            948
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

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