Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Kein iobroker Backup mehr über BackitUp Adapter

    NEWS

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    Kein iobroker Backup mehr über BackitUp Adapter

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

      @laser Zeige mal, was hier für Token angelegt sind
      15eb463b-1c2b-4b7f-8332-d05aef5b9983-image.png

      Was kommt für eine Ausgabe, wenn du den Befehl absetzt?

      influx auth list -t <TOKEN> --json
      
      L 1 Reply Last reply Reply Quote 0
      • L
        Laser @simatec last edited by

        @simatec soll ich dazu den letzten generierten Token einsetzen?

        otto@raspberrypi:/opt/iobroker/backups $ influx auth list -t Z50uyViNwOSShEX2jY2A09cHyCCavlnqe1GFdkzGnYWZ4a2uQ2ghc9wahuCQwuNrpDuWHhGj7_wrrflgHMkpMA== --json
        [
                {
                        "id": "0b485bd1c75e4000",
                        "description": "onboarding-cliWizard-token-1685530468858",
                        "token": "zijB7piBzzSSLchg2TCyrp2MViRxSJ5_HQP_ynLZO_T8K6Wy-guPxh9uI75KjCKFKIhzTGhpSSeyMpp58Z_juw==",
                        "status": "active",
                        "userName": "iobroker",
                        "userID": "0b4721cca3305000",
                        "permissions": [
                                "read:orgs/56ed5fe7a100c804/annotations",
                                "write:orgs/56ed5fe7a100c804/annotations",
                                "read:orgs/56ed5fe7a100c804/authorizations",
                                "write:orgs/56ed5fe7a100c804/authorizations",
                                "read:orgs/56ed5fe7a100c804/buckets",
                                "write:orgs/56ed5fe7a100c804/buckets",
                                "read:orgs/56ed5fe7a100c804/checks",
                                "write:orgs/56ed5fe7a100c804/checks",
                                "read:orgs/56ed5fe7a100c804/dashboards",
                                "write:orgs/56ed5fe7a100c804/dashboards",
                                "read:orgs/56ed5fe7a100c804/dbrp",
                                "write:orgs/56ed5fe7a100c804/dbrp",
                                "read:orgs/56ed5fe7a100c804/documents",
        ]       }       ]       "write:orgs/56ed5fe7a100c804/views"les",s",les",ts",ghc9wahuCQwuNrpDuWHhGj7_wrrflgHMkpMA==",
        
        
        1 Reply Last reply Reply Quote 0
        • simatec
          simatec Developer Most Active last edited by

          @laser Wie erstellst du denn die ganzen Token?
          Bist du als Admin im WebUi von Influx angemeldet?

          Zeige doch mal bitte deinen Weg...
          Hier ist alles gut beschrieben...

          L 1 Reply Last reply Reply Quote 0
          • L
            Laser @simatec last edited by Laser

            @simatec Diese Beschreibung habe ich ständig aufgeklappt und versuche, Schritt für Schritt durchzugehen.
            In der Influx-DB bin ich als Admin eingeloggt. Ich erzeuge jetzt nochmal einen neuen all-access- API-Token.
            Q494kw0QVOhk3if8D-cZsqjlggKCOIEJcD8gW1Za4vUzKGYYQO7RoraoIrmmPm-NjdaChpZAddzXtsQ7Mw5GBg==

            
            otto@raspberrypi:/opt/iobroker/backups $ influx auth list -t Q494kw0QVOhk3if8D-cZsqjlggKCOIEJcD8gW1Za4vUzKGYYQO7RoraoIrmmPm-NjdaChpZAddzXtsQ7Mw5GBg== --json
            [
                    {
                            "id": "0b485bd1c75e4000",
                            "description": "onboarding-cliWizard-token-1685530468858",
                            "token": "zijB7piBzzSSLchg2TCyrp2MViRxSJ5_HQP_ynLZO_T8K6Wy-guPxh9uI75KjCKFKIhzTGhpSSeyMpp58Z_juw==",
                            "status": "active",
                            "userName": "iobroker",
                            "userID": "0b4721cca3305000",
            
            

            ist das ober der Operator Token oder ist der unwiederbringlich weg? Auszug aus der Beschreibung:
            5. Wenn es keinen solchen Eintrag gibt, dann wurde das Operator-Token gelöscht. Auch das kann repariert werden. Hier ist ein Link zu einem Artikel Link
            (Der Link zum Neu- Anlegen des Operator Tokens funktioniert nicht)

            simatec 2 Replies Last reply Reply Quote 0
            • simatec
              simatec Developer Most Active @Laser last edited by

              @laser Der Link ist extern und leider nicht für uns greifbar

              Versuche hiermit mal einen neuen zu erstellen
              https://docs.influxdata.com/influxdb/v2/reference/cli/influxd/recovery/auth/

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

                @laser

                Versuche es mal wie folgt...

                influxd recovery auth create-operator --username admin --org privat
                

                Dieser Befehl kann nur ausgeführt werden, wenn der InfluxDB-Server ( influxd) nicht läuft.

                L 1 Reply Last reply Reply Quote 0
                • L
                  Laser @simatec last edited by Laser

                  @simatec versuche ich, jedoch klappt das nicht ich bin als iobroker angemeldet, nicht als admin. Beides versucht...

                  otto@raspberrypi:/opt/iobroker/backups $ sudo service influxdb stop
                  otto@raspberrypi:/opt/iobroker/backups $ influxd recovery auth create-operator --username admin --org privat
                  2023-11-20T14:51:36.698840Z     info    Resources opened        {"log_id": "0lcJIBTG000", "system": "bolt-kvstore", "path": "/home/otto/.influxdbv2/influxd.bolt"}
                  Error: bucket "authorizationsv1": bucket not found
                  See 'influxd -h' for help
                  otto@raspberrypi:/opt/iobroker/backups $ sudo service influxdb start
                  otto@raspberrypi:/opt/iobroker/backups $
                  otto@raspberrypi:/opt/iobroker/backups $ sudo service influxdb stop
                  otto@raspberrypi:/opt/iobroker/backups $ influxd recovery auth create-operator --username iobroker --org privat
                  2023-11-20T14:55:10.325204Z     info    Resources opened        {"log_id": "0lcJVDy0000", "system": "bolt-kvstore", "path": "/home/otto/.influxdbv2/influxd.bolt"}
                  Error: bucket "authorizationsv1": bucket not found
                  See 'influxd -h' for help
                  
                  
                  simatec 1 Reply Last reply Reply Quote 0
                  • simatec
                    simatec Developer Most Active @Laser last edited by

                    @laser führe mal mit sudo aus

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      Laser @simatec last edited by Laser

                      @simatec sagte in Kein iobroker Backup mehr über BackitUp Adapter:

                      @laser führe mal mit sudo aus

                      Geht auch nicht:

                      
                      otto@raspberrypi:/opt/iobroker/backups $ sudo influxd recovery auth create-operator --username admin --org privat
                      2023-11-20T14:59:54.826071Z     info    Resources opened        {"log_id": "0lcJlaGW000", "system": "bolt-kvstore", "path": "/root/.influxdbv2/influxd.bolt"}
                      Error: bucket "authorizationsv1": bucket not found
                      See 'influxd -h' for help
                      otto@raspberrypi:/opt/iobroker/backups $ sudo influxd recovery auth create-operator --username iobroker --org privat
                      2023-11-20T15:00:12.179537Z     info    Resources opened        {"log_id": "0lcJme4l000", "system": "bolt-kvstore", "path": "/root/.influxdbv2/influxd.bolt"}
                      Error: bucket "authorizationsv1": bucket not found
                      See 'influxd -h' for help
                      
                      

                      Examples
                      Generate a new operator token
                      influxd
                      --org example-org
                      --username example-user

                      Thomas Braun simatec 2 Replies Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Laser last edited by

                        @laser sagte in Kein iobroker Backup mehr über BackitUp Adapter:

                        "path": "/root/.influxdbv2/influxd.bolt"

                        Der Pfad ist aber auch schon merkwürdig. Warum sollte das in /root liegen?

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

                          @laser

                          sudo influxd recovery auth create-operator --username iobroker --org privat --bolt-path ~/.influxdbv2/influxd.bolt
                          
                          1 Reply Last reply Reply Quote 0
                          • L
                            Laser @Thomas Braun last edited by

                            @thomas-braun evtl. habe ich beim Neuanlegen der DB etwas falsch gemacht. Das Ganze ist ja mehr gesichert als ein Atomkraftwerk!

                            L 1 Reply Last reply Reply Quote 0
                            • L
                              Laser @Laser last edited by

                              @simatec :

                              
                              otto@raspberrypi:~ $ sudo influxd recovery auth create-operator --username iobroker --org privat --bolt-path ~/.influxdbv2/influxd.bolt
                              2023-11-20T15:05:44.345023Z     info    Resources opened        {"log_id": "0lcK5vb0000", "system": "bolt-kvstore", "path": "/home/otto/.influxdbv2/influxd.bolt"}
                              Error: bucket "authorizationsv1": bucket not found
                              See 'influxd -h' for help
                              
                              
                              simatec Marc Berg 2 Replies Last reply Reply Quote 0
                              • simatec
                                simatec Developer Most Active @Laser last edited by simatec

                                @laser sagte in Kein iobroker Backup mehr über BackitUp Adapter:

                                authorizationsv1

                                Was ist das für ein Bucket??? Was hast du denn da gemacht... Laut deiner Config ist dein Bucket "iobroker"
                                Zeige doch bitte mal die Config in der Influx UI ...
                                Hatte ich schon mehrfach nach gefragt

                                L 1 Reply Last reply Reply Quote 0
                                • L
                                  Laser @simatec last edited by Laser

                                  @simatec mein Bucket ist auch iobroker! Was genau soll ich zeigen?

                                  1 Reply Last reply Reply Quote 0
                                  • Marc Berg
                                    Marc Berg Most Active @Laser last edited by Marc Berg

                                    @laser sagte in Kein iobroker Backup mehr über BackitUp Adapter:

                                    otto@raspberrypi:~ $ sudo influxd recovery auth create-operator --username iobroker --org privat --bolt-path ~/.influxdbv2/influxd.bolt

                                    Ich trau' mir ja kaum noch was zu sagen, weil wenn ich sage "Guck mal hier, das ist dein Operator-Token, trage den mal in Backitup ein." wird verstanden: "LÖSCH SOFORT ALLE TOKENS UND VERGISS DEN OPERATOR TOKEN NICHT!!!"

                                    Ich versuchs trotzdem mal: Das hier ist in 99% aller Installationen der korrekte Aufruf:

                                    influxd recovery auth create-operator --org privat --username iobroker --bolt-path /var/lib/influxdb2/influxd.bolt
                                    
                                    L 1 Reply Last reply Reply Quote 0
                                    • L
                                      Laser @Marc Berg last edited by Laser

                                      @marc-berg die Tokens habe ich gelöscht. Nirgendwo habe ich einen Hinweis gefunden, ob man alte Tokens für irgend etwas braucht. Ich wollte damit "Ordnung" reinbringen. Meine irrige Annahme war eben, der neue Token ersetzt den Alten.
                                      Den Originalen habe ich mir ja notiert.

                                      Marc Berg 1 Reply Last reply Reply Quote 0
                                      • Marc Berg
                                        Marc Berg Most Active @Laser last edited by

                                        @laser sagte in Kein iobroker Backup mehr über BackitUp Adapter:

                                        Meine irrige Annahme war eben, der neue Token ersetzt den Alten.

                                        Alles gut, ich habe den Befehl noch korrigiert, sollte jetzt laufen.

                                        L 1 Reply Last reply Reply Quote 0
                                        • L
                                          Laser @Marc Berg last edited by Laser

                                          @marc-berg

                                          
                                          otto@raspberrypi:~ $ sudo service influxdb stop
                                          otto@raspberrypi:~ $ influxd recovery auth create-operator --org privat --username iobroker --bolt-path /var/lib/influxdb2/influxd.bolt
                                          Error: unable to create directory /var/lib/influxdb2/influxd.bolt: mkdir /var/lib/influxdb2: permission denied
                                          See 'influxd -h' for help
                                          otto@raspberrypi:~ $ sudo influxd recovery auth create-operator --org privat --username iobroker --bolt-path /var/lib/influxdb2/influxd.bolt
                                          2023-11-20T15:16:38.172849Z     info    Resources opened        {"log_id": "0lcKipYG000", "system": "bolt-kvstore", "path": "/var/lib/influxdb2/influxd.bolt"}
                                          Error: bucket "authorizationsv1": bucket not found
                                          See 'influxd -h' for help
                                          
                                          

                                          Ergänzung:
                                          5e0b7f82-bd9c-4446-888e-3633bfc550d0-image.png

                                          Marc Berg 1 Reply Last reply Reply Quote 0
                                          • Marc Berg
                                            Marc Berg Most Active @Laser last edited by

                                            @laser sagte in Kein iobroker Backup mehr über BackitUp Adapter:

                                            /var/lib/influxdb2

                                            ls /var/lib/influxdb2
                                            
                                            L 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

                                            736
                                            Online

                                            32.0k
                                            Users

                                            80.5k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            112
                                            5235
                                            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