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 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
                              • L
                                Laser @Marc Berg last edited by

                                @marc-berg sagte in Kein iobroker Backup mehr über BackitUp Adapter:

                                ls /var/lib/influxdb2

                                otto@raspberrypi:~ $ ls /var/lib/influxdb2
                                ls: cannot open directory '/var/lib/influxdb2': Permission denied
                                otto@raspberrypi:~ $ sudo ls /var/lib/influxdb2
                                influxd.bolt
                                otto@raspberrypi:~ $
                                
                                
                                simatec 1 Reply Last reply Reply Quote 0
                                • simatec
                                  simatec Developer Most Active @Laser last edited by

                                  @laser Zeige mal die Rechte dazu

                                  sudo ls -lah /var/lib/influxdb2
                                  
                                  L Marc Berg 2 Replies Last reply Reply Quote 0
                                  • L
                                    Laser @simatec last edited by Laser

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

                                    sudo ls -lah /var/lib/influxdb2

                                    
                                    otto@raspberrypi:~ $ sudo ls -lah /var/lib/influxdb2
                                    total 24K
                                    drwx------  2 root root 4.0K Nov 20 16:16 .
                                    drwxr-xr-x 30 root root 4.0K Nov 20 16:16 ..
                                    -rw-------  1 root root  16K Nov 20 16:16 influxd.bolt
                                    
                                    

                                    Hilft das weiter?

                                    otto@raspberrypi:~ $ sudo service influxdb status
                                    ● influxdb.service - InfluxDB is an open-source, distributed, time series database
                                         Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
                                         Active: active (running) since Mon 2023-11-20 16:18:14 CET; 5min ago
                                           Docs: https://docs.influxdata.com/influxdb/
                                        Process: 160456 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=0/SUCCESS)
                                       Main PID: 160457 (influxd)
                                          Tasks: 11 (limit: 8754)
                                            CPU: 25.211s
                                         CGroup: /system.slice/influxdb.service
                                                 └─160457 /usr/bin/influxd
                                    
                                    Nov 20 16:22:29 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:22:29.456805Z lvl=error msg="api error encountered" log_id=0lcKo5TW000 handler=session error="unauthorized access"
                                    Nov 20 16:22:34 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:22:34.531661Z lvl=info msg=Unauthorized log_id=0lcKo5TW000 error="authorization not found"
                                    Nov 20 16:22:44 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:22:44.540406Z lvl=info msg=Unauthorized log_id=0lcKo5TW000 error="authorization not found"
                                    Nov 20 16:22:46 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:22:46.522636Z lvl=error msg="api error encountered" log_id=0lcKo5TW000 handler=session error="unauthorized access"
                                    Nov 20 16:22:54 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:22:54.547785Z lvl=info msg=Unauthorized log_id=0lcKo5TW000 error="authorization not found"
                                    Nov 20 16:23:04 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:23:04.556455Z lvl=info msg=Unauthorized log_id=0lcKo5TW000 error="authorization not found"
                                    Nov 20 16:23:14 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:23:14.563884Z lvl=info msg=Unauthorized log_id=0lcKo5TW000 error="authorization not found"
                                    Nov 20 16:23:24 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:23:24.570846Z lvl=info msg=Unauthorized log_id=0lcKo5TW000 error="authorization not found"
                                    Nov 20 16:23:34 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:23:34.578017Z lvl=info msg=Unauthorized log_id=0lcKo5TW000 error="authorization not found"
                                    Nov 20 16:23:44 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:23:44.584759Z lvl=info msg=Unauthorized log_id=0lcKo5TW000 error="authorization not found"
                                    
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • Marc Berg
                                      Marc Berg Most Active @simatec last edited by

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

                                      sudo ls -lah /var/lib/influxdb2

                                      und bitte

                                      sudo ls -lah /etc/influxdb2
                                      
                                      L 1 Reply Last reply Reply Quote 0
                                      • L
                                        Laser @Marc Berg last edited by

                                        @marc-berg

                                        
                                        otto@raspberrypi:~ $ sudo ls -lah /etc/influxdb2
                                        ls: cannot access '/etc/influxdb2': No such file or directory
                                        
                                        
                                        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:

                                          Dein Datenverzeichnis für die InfluxDB liegt irgendwo anders, als normal. Versuch mal noch

                                          ls -lah /var/lib/influxdb
                                          
                                          L 1 Reply Last reply Reply Quote 0
                                          • L
                                            Laser @Marc Berg last edited by

                                            @marc-berg

                                            
                                            otto@raspberrypi:/etc $ ls -lah /var/lib/influxdb
                                            ls: cannot open directory '/var/lib/influxdb': Permission denied
                                            otto@raspberrypi:/etc $ sudo ls -lah /var/lib/influxdb
                                            total 296K
                                            drwxr-x---  4 influxdb influxdb 4.0K Nov 20 16:18 .
                                            drwxr-xr-x 30 root     root     4.0K Nov 20 16:16 ..
                                            drwxr-x---  3 influxdb influxdb 4.0K May 30 13:44 .cache
                                            drwxr-x---  5 influxdb influxdb 4.0K May 30 14:02 engine
                                            -rw-------  1 influxdb influxdb 256K Nov 20 16:18 influxd.bolt
                                            -rw-r-----  1 influxdb influxdb    7 Nov 20 16:18 influxd.pid
                                            -rw-r-----  1 influxdb influxdb 120K May 30 13:44 influxd.sqlite
                                            
                                            
                                            
                                            otto@raspberrypi:/etc $ sudo ls -lah /etc/influxdb
                                            total 16K
                                            drwxr-xr-x  2 root root 4.0K Nov 18 18:07 .
                                            drwxr-xr-x 89 root root 4.0K Nov 18 18:07 ..
                                            -rw-r--r--  1 root root   86 May 30 13:44 config.toml
                                            -rw-r--r--  1 root root   86 Nov 18 18:07 config.toml.defaults
                                            
                                            
                                            Marc Berg 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

                                            742
                                            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