Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. EXPERIMENTELL: JsonL Datenbank für js-controller

    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

    EXPERIMENTELL: JsonL Datenbank für js-controller

    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      Kueppert @saeft_2003 last edited by

      @saeft_2003 schau mal hier: https://forum.iobroker.net/topic/42053/experimentell-jsonl-datenbank-für-js-controller/1
      ich nutze das Format bereits erfolgreich:

      Objects type: jsonl
      States  type: jsonl
      
      S 1 Reply Last reply Reply Quote 0
      • S
        saeft_2003 Most Active @Kueppert last edited by

        @kueppert

        was ich nicht kapiert habe was ich hier machen muss? Weil ich habe auch einen Slave...

        dann Wählen (beim mster bzw single host sowieso) das er migriert (Bei Slaves natürlich keine Migration)

        AlCalzone 1 Reply Last reply Reply Quote 0
        • S
          saeft_2003 Most Active last edited by

          Würde es auch reichen in der iobroker.json unter states und objects den Typ von file auf jsonl zu ändern?

          },
            "objects": {
              "type": "file",
              "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379], couch - [port 5984].",
              "host": "0.0.0.0",
              "port": 9001,
              "user": "",
              "pass": "",
              "noFileCache": false,
              "connectTimeout": 2000,
              "options": {
                "auth_pass": null,
                "enableReadyCheck": true,
                "host": "0.0.0.0",
                "port": 9001,
                "db": 0,
                "family": 0,
                "password": null,
                "autoResubscribe": false,
                "connectionName": "host.iobroker"
              },
              "maxQueue": 1000
            },
            "states": {
              "type": "file",
              "typeComment": "Possible values: 'file' - [port 9000], 'redis' - [port 6379].",
              "host": "0.0.0.0",
              "port": 9000,
              "maxQueue": 1000,
              "writeFileInterval": 360000,
              "options": {
                "auth_pass": null,
                "enableReadyCheck": true,
                "host": "0.0.0.0",
                "port": 9000,
                "db": 0,
                "family": 0,
                "password": null,
                "autoResubscribe": false,
                "connectionName": "host.iobroker"
              }
          
          
          1 Reply Last reply Reply Quote 0
          • M
            Megawaldi last edited by

            @saeft_2003
            Bitte nicht falsch verstehen, aber wenn du nicht genau verstehst was hier gemacht werden muss würde ich es lassen.

            S 1 Reply Last reply Reply Quote 1
            • S
              saeft_2003 Most Active @Megawaldi last edited by

              @megawaldi

              Ich hab schon öfter was gemacht was ich nicht genau verstanden habe, aber mit Hilfe hier aus dem Forum hat das bis jetzt sehr gut geklappt. Dafür ist es ja da.

              Und bitte nicht falsch verstehen, aber dein Kommentar hilft nicht wirklich weiter.

              1 Reply Last reply Reply Quote 0
              • AlCalzone
                AlCalzone Developer @saeft_2003 last edited by

                @saeft_2003 sagte in EXPERIMENTELL: JsonL Datenbank für js-controller:

                dann Wählen (beim mster bzw single host sowieso) das er migriert (Bei Slaves natürlich keine Migration)

                Wenn du umstellst auf JSONL fragt dich ioBroker, ob du die DB migrieren willst. Auf dem Master beantwortest du das mit "ja", auf dem Slave mit "nein".

                S 2 Replies Last reply Reply Quote 0
                • S
                  saeft_2003 Most Active @AlCalzone last edited by

                  @alcalzone

                  Alles klar damit kann ich was anfangen. Ich habe das heute auf meinem Testsystem kurz probiert und darauf wahrscheinlich nicht genau geachtet.

                  1 Reply Last reply Reply Quote 0
                  • S
                    saeft_2003 Most Active @AlCalzone last edited by

                    @alcalzone

                    Sorry das ich nochmal nachfragen muss. Aber ist das die Abfrage „Data directory“? Falls ja was muss hier eingeben werden?

                    35C7A86F-9D28-4A8E-8437-5DC0D9D37657.jpeg

                    Dr. Bakterius 1 Reply Last reply Reply Quote 0
                    • Dr. Bakterius
                      Dr. Bakterius Most Active @saeft_2003 last edited by

                      @saeft_2003 sagte in EXPERIMENTELL: JsonL Datenbank für js-controller:

                      Aber ist das die Abfrage „Data directory“?

                      Nein, das ist der Pfad zu den Datenbankdateien. Wenn von den Standardwerten her nichts geändert wurde, einfach so übernehmen. Die Abfrage zur Konvertierung wird erst danach gestellt.

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        saeft_2003 Most Active @Dr. Bakterius last edited by

                        @dr-bakterius

                        Ok, aber nach "host name of this maschine" kam nichts mehr? Deswegen bin ich etwas verwirrst.

                        Dr. Bakterius 1 Reply Last reply Reply Quote 0
                        • Dr. Bakterius
                          Dr. Bakterius Most Active @saeft_2003 last edited by

                          @saeft_2003 Nach deinem Screenshot änderst du ja auch nichts an den Einstellungen. Du bist bereits auf jsonl. Also braucht auch nichts konvertiert werden.

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            saeft_2003 Most Active @Dr. Bakterius last edited by

                            @dr-bakterius

                            OK das könnte der Grund sein, ich probiere heute Abend an meinem Testsystem nochmal einen Wechsel von jsonl auf file und wieder zurück um zu schauen ob dann eine Abfrage zu Konvertierung kommt. Ich muss das erstmal üben bevor ich mich an mein Produktivsystem rantraue 😉

                            Noch kurz eine Frage wenn ich ein Backup von der Datei iobroker.json mache, könnte ich doch einfach wieder den Zustand herstellen falls irgendwas nicht geklappt hat, oder?

                            apollon77 1 Reply Last reply Reply Quote 0
                            • apollon77
                              apollon77 @saeft_2003 last edited by

                              @saeft_2003 Nein, vorauss Richtung Oktober mit controller 3.4

                              1 Reply Last reply Reply Quote 0
                              • apollon77
                                apollon77 @saeft_2003 last edited by

                                @saeft_2003 An sich dachte ich das der Migrationsprozess und die Fragen und so da drin recht eindeutig sind 🙂 Scheinbar nicht ...

                                Wenn Du von file auf jsonl migrierst musst di an sich nur am Anfang einmal jsonl eingeben und dann alle settings einfach bestötigen 😉 (quasi). Dann die Migrationsfragen beantworten. Der Rest sollte automatisch passieren - auf dem Master wird migriert, auf dem Slave nicht.

                                Am besten ist es auf allen Systemen den gleichen DB typ zu konfigurieren ... kann sonst ggf komische Effekte haben.

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  saeft_2003 Most Active @apollon77 last edited by

                                  @apollon77

                                  Alles klar danke für deine Info 👍

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

                                    @apollon77 wollte gerade mal den Controller testen, scheitere jedoch schon zu Beginn an diesem

                                    root@IoBroker:/opt/iobroker# iobroker stop
                                    root@IoBroker:/opt/iobroker# iobroker update
                                    No connection to databases possible ...
                                    Server Cannot start inMem-objects on port 9001: The "fd" argument must be of type number. Received undefined
                                    root@IoBroker:/opt/iobroker#
                                    
                                    
                                    apollon77 1 Reply Last reply Reply Quote 0
                                    • apollon77
                                      apollon77 @crunchip last edited by

                                      @crunchip Für "controller testen" ist das aber der falsche Thread hier ...

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

                                        @apollon77 nein, das ist schon richtig, geht ja um jsonl

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

                                          @crunchip Dann musst Du jetzt mal sagen was Du schon getan hast ... ist das jetzt schon nach jsonl Paket Install oder was?

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

                                            @apollon77 jsonL läuft bei mir schon sei 14.Feb., siehe https://forum.iobroker.net/post/581193 und folgende

                                            was ich gerade getan hab
                                            iobroker stop
                                            iobroker update

                                            mehr hab ich nicht gemacht

                                            apollon77 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            522
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            20
                                            187
                                            17539
                                            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