Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Backitup: Fehler .eslintrc.json is not a valid json file

    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

    Backitup: Fehler .eslintrc.json is not a valid json file

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

      Hallo,
      bei einem Backup mit Backitup erhalte ich diese Fehlermeldung, VM habe ich auch mal rebootet, Fehler bleibt.

      ERROR - iobroker:
      host.iobroker One or more optional files are corrupted: host.iobroker /opt/iobroker/node_modules/iobroker.js-controller/tmp/backup/files/vis/widgets/.eslintrc.json is not a valid json file
      

      Den Ordner gibt es auch nicht (mehr), die Ordnerstruktur hört hier auf:
      /opt/iobroker/node_modules/iobroker.js-controller/tmp

      Ist das irgendwo eine "Leiche", die ich wo löschen oder raus konfigurieren muss?
      Ein Widget mit Namen "eslintrc" sagt mir auch nichts.

      simatec 1 Reply Last reply Reply Quote 0
      • simatec
        simatec Developer Most Active @topsurfer last edited by

        @topsurfer schaue mal in folgenden Pfad:

        /opt/iobroker/iobroker-data/files/vis/widgets
        
        T 1 Reply Last reply Reply Quote 1
        • T
          topsurfer @simatec last edited by

          @simatec Hi,
          das ist nichts mit "eslint" oder so.
          Seit gestern (nach zwei reboots) läuft das Backitup auch wieder ohne Fehler durch, k.A. was da war.
          Was kann dieses "eslint" gewesen sein, ein Widget? Hab aber nix neu installiert gehabt ....

          SmartStuffCoyote 1 Reply Last reply Reply Quote 0
          • SmartStuffCoyote
            SmartStuffCoyote @topsurfer last edited by SmartStuffCoyote

            @topsurfer Ich bin auch just dabei, den Fehler zu beheben. Mit ls -al habe ich auch die .eslintrc.json im Verzeichnis /opt/iobroker/iobroker-data/files/vis/widgets gefunden. Wenn ich die mit nano öffne, sehe ich darin:

            {
                "env": {
                    "browser": true,
                    "commonjs": true,
                    "es2022": true,
                    "jquery": true
                },
                "parserOptions": {
                    "ecmaVersion": 2024,
                    "sourceType": "module"
                },
                "rules": {
                    // Visualizations may run in very old browsers without `let` and `const`
                    "no-var": "off",
                    // The example code does not use some parameters. If unused variables should be
                    // an error, delete the following rule
                    "no-unused-vars": [
                        "warn", {
                            "ignoreRestSiblings": true,
                            "argsIgnorePattern": "^_"
                        }
                    ]
                }
            }
            

            Ich behaupte, dass die drei Kommentarzeilen (beginnend mit "//") dort nicht sein dürfen, JSON kennt keine Kommentare. Wenn ich die rauslösche, ist das JSON valide. Das allein half aber nicht. Mit sudo find / -name .eslintrc.json hab ich dann nach weiteren Vorkommen der Datei gesucht. Da gibts einige, und manche davon hatten auch diese Kommentare. Die habe ich da auch rausgelöscht.

            Trotzdem kommt die Fehlermeldung weiterhin, wenn ich das Backup anstoße. Bin dann nochmal mit grep -rl '//.*' --include=".eslintrc.json" / rangegangen, fand da aber nichts mehr. Entrsprechend bin ich auch am Ende meines Lateins und weiß nicht, wo er sich die Datei herzieht. Ich konnte aber feststellen, dass die tmp-Datei exakt den o.g. Inhalt hat.

            "Linting" ist eigentlich die Überprüfung, ob Code den Vorgaben/Regeln entspricht. Die Datei scheint so eine Linting-Vorgabe für die jeweiligen Adapter zu sein.

            haus-automatisierung 1 Reply Last reply Reply Quote 0
            • haus-automatisierung
              haus-automatisierung Developer Most Active @SmartStuffCoyote last edited by

              @smartstuffcoyote sagte in Backitup: Fehler .eslintrc.json is not a valid json file:

              Ich behaupte, dass die drei Kommentarzeilen (beginnend mit "//") dort nicht sein dürfen, JSON kennt keine Kommentare.

              JSON5 schon. Kommt drauf an wer die Datei liest. Die Frage ist aber, warum die da überhaupt enthalten ist.

              SmartStuffCoyote 1 Reply Last reply Reply Quote 0
              • SmartStuffCoyote
                SmartStuffCoyote @haus-automatisierung last edited by

                @haus-automatisierung Und wo sie herkommt. Laut grep gibts in opt/iobroker keine Datei mehr mit dem String "// Visualizations". Trotzdem taucht das Ding im tmp-Verzeichnis auf. Ich vermute fast, die wird von irgendetwas generiert?

                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

                682
                Online

                31.9k
                Users

                80.2k
                Topics

                1.3m
                Posts

                4
                6
                162
                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