Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler

    This topic has been deleted. Only users with topic management privileges can see it.
    • Marc Berg
      Marc Berg Most Active @akuhnsh last edited by Marc Berg

      @akuhnsh sagte in InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler:

      @marc-berg @thomas-braun

      @akuhnsh said in InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler:

      Ich habe das System neu aufgesetzt, um zu sehen, ob sich die Backups dann einspielen lassen und nach wie vor keine Chance die Datenbank aus dem Backup wiederherzustellen:

      [ERROR] [influxDB] - Error: failed to check existence of organization "privat": 401 Unauthorized: unauthorized access
      

      zeig mal bitte die Ausgabe von

      influx auth list --json
      

      und

      influx organization list
      
      akuhnsh 1 Reply Last reply Reply Quote 0
      • akuhnsh
        akuhnsh @Marc Berg last edited by

        @marc-berg said in InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler:

        @akuhnsh sagte in InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler:

        @marc-berg @thomas-braun

        @akuhnsh said in InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler:

        Ich habe das System neu aufgesetzt, um zu sehen, ob sich die Backups dann einspielen lassen und nach wie vor keine Chance die Datenbank aus dem Backup wiederherzustellen:

        [ERROR] [influxDB] - Error: failed to check existence of organization "privat": 401 Unauthorized: unauthorized access
        

        zeig mal bitte die Ausgabe von

        influx auth list --json
        
        [
        	{
        		"id": "0b28411ba4dca000",
        		"description": "admin's Token",
        		"token": "wljQN6vtZ1a4hNNORVh55RM2u0o1V3XXh708y7yKPmtdBIV5tG5hxucGRGnBX1IdQoYh9Mnd5dsbBBV551nDUw==",
        		"status": "active",
        		"userName": "admin",
        		"userID": "0b28411b6b9ca000",
        		"permissions": [
        			"read:/authorizations",
        			"write:/authorizations",
        			"read:/buckets",
        			"write:/buckets",
        			"read:/dashboards",
        			"write:/dashboards",
        			"read:/orgs",
        			"write:/orgs",
        			"read:/sources",
        			"write:/sources",
        			"read:/tasks",
        			"write:/tasks",
        			"read:/telegrafs",
        			"write:/telegrafs",
        			"read:/users",
        			"write:/users",
        			"read:/variables",
        			"write:/variables",
        			"read:/scrapers",
        			"write:/scrapers",
        			"read:/secrets",
        			"write:/secrets",
        			"read:/labels",
        			"write:/labels",
        			"read:/views",
        			"write:/views",
        			"read:/documents",
        			"write:/documents",
        			"read:/notificationRules",
        			"write:/notificationRules",
        			"read:/notificationEndpoints",
        			"write:/notificationEndpoints",
        			"read:/checks",
        			"write:/checks",
        			"read:/dbrp",
        			"write:/dbrp",
        			"read:/notebooks",
        			"write:/notebooks",
        			"read:/annotations",
        			"write:/annotations",
        			"read:/remotes",
        			"write:/remotes",
        			"read:/replications",
        			"write:/replications"
        		]
        	},
        	{
        		"id": "0b2852f1fbdca000",
        		"description": "admin's Token (cloned at 2023-05-06 13:44:19)",
        		"token": "uZKGetlcGZSZbteI1gwpkJwsCIHpj0bI5ZLdRTvEuDqds7B9X04Q8LKhPYQArrWRJ3nnQS3xfQcwDkwhOKKoCw==",
        		"status": "active",
        		"userName": "admin",
        		"userID": "0b28411b6b9ca000",
        		"permissions": [
        			"read:/authorizations",
        			"write:/authorizations",
        			"read:/buckets",
        			"write:/buckets",
        			"read:/dashboards",
        			"write:/dashboards",
        			"read:/orgs",
        			"write:/orgs",
        			"read:/sources",
        			"write:/sources",
        			"read:/tasks",
        			"write:/tasks",
        			"read:/telegrafs",
        			"write:/telegrafs",
        			"read:/users",
        			"write:/users",
        			"read:/variables",
        			"write:/variables",
        			"read:/scrapers",
        			"write:/scrapers",
        			"read:/secrets",
        			"write:/secrets",
        			"read:/labels",
        			"write:/labels",
        			"read:/views",
        			"write:/views",
        			"read:/documents",
        			"write:/documents",
        			"read:/notificationRules",
        			"write:/notificationRules",
        			"read:/notificationEndpoints",
        			"write:/notificationEndpoints",
        			"read:/checks",
        			"write:/checks",
        			"read:/dbrp",
        			"write:/dbrp",
        			"read:/notebooks",
        			"write:/notebooks",
        			"read:/annotations",
        			"write:/annotations",
        			"read:/remotes",
        			"write:/remotes",
        			"read:/replications",
        			"write:/replications"
        		]
        	}
        ]
        

        und

        influx organization list
        
        ID			Name
        2ecf2d695d1722e9	privat
        
        akuhnsh 1 Reply Last reply Reply Quote 0
        • akuhnsh
          akuhnsh @akuhnsh last edited by

          @Marc-Berg @Thomas-Braun

          An die alten Tokens aus dem Backup komme ich über die *.bolt Datei ran:

          influxd recovery auth list --bolt-path /opt/iobroker/backups/20230503T213019Z.bolt
          2023-05-06T14:09:35.271809Z	info	Resources opened	{"log_id": "0hdMBf9l000", "system": "bolt-kvstore", "path": "/opt/iobroker/backups/20230503T213019Z.bolt"}
          ID			User Name	User ID			Description						Token							Permissions
          0ab87d8e68295000	admin		0ab87d8e29e95000	admin's Token						lGhesEEm7Osc8iF3Atk0ukEZhEOLdg98AQXojtHwao1MrEOYiv0uaa3BrxS-QXp3T54dXJgDECIu7zuByns0Ug==	[read:authorizations write:authorizations read:buckets write:buckets read:dashboards write:dashboards read:orgs write:orgs read:sources write:sources read:tasks write:tasks read:telegrafs write:telegrafs read:users write:users read:variables write:variables read:scrapers write:scrapers read:secrets write:secrets read:labels write:labels read:views write:views read:documents write:documents read:notificationRules write:notificationRules read:notificationEndpoints write:notificationEndpoints read:checks write:checks read:dbrp write:dbrp read:notebooks write:notebooks read:annotations write:annotations read:remotes write:remotes read:replications write:replications]
          0b07e2e2b57cb000	admin		0ab87d8e29e95000	admin's Token (cloned at 2023-04-11 09:03:19)		06eJGdVPZPMsCad0sRvWS32YvB-F3Fifn3nTCM0oNBzDaY5I7Q0n-St-82r9vj1dZRnOONeIiWmTFDYIZoe3Gg==	[read:authorizations write:authorizations read:buckets write:buckets read:dashboards write:dashboards read:orgs write:orgs read:sources write:sources read:tasks write:tasks read:telegrafs write:telegrafs read:users write:users read:variables write:variables read:scrapers write:scrapers read:secrets write:secrets read:labels write:labels read:views write:views read:documents write:documents read:notificationRules write:notificationRules read:notificationEndpoints write:notificationEndpoints read:checks write:checks read:dbrp write:dbrp read:notebooks write:notebooks read:annotations write:annotations read:remotes write:remotes read:replications write:replications]
          0b07e9d2857cb000	admin		0ab87d8e29e95000	admin's Token BackItUp (cloned at 2023-04-11 09:33:38)	Tvm2bJ9-WsIoyNowWCasjc2ukqsFTIj3xQjp_q_1U-sPb6sH21n35nUzV99EOJ3JE2vLKKwCPIrN8jtT4xcT4A==	[read:authorizations write:authorizations read:buckets write:buckets read:dashboards write:dashboards read:orgs write:orgs read:sources write:sources read:tasks write:tasks read:telegrafs write:telegrafs read:users write:users read:variables write:variables read:scrapers write:scrapers read:secrets write:secrets read:labels write:labels read:views write:views read:documents write:documents read:notificationRules write:notificationRules read:notificationEndpoints write:notificationEndpoints read:checks write:checks read:dbrp write:dbrp read:notebooks write:notebooks read:annotations write:annotations read:remotes write:remotes read:replications write:replications]
          0b07f463437cb000	admin		0ab87d8e29e95000	admin's Token Grafana (cloned at 2023-04-11 10:19:47)	AQLf8Jld1fY0LYd3Cs0Pt4hKtzMbXK0t0_kMdh6eXzBxHiPJWR1t5OYHr7Qvx4-4zf1Q4ETOfII5W1oNCKvR5w==	[read:authorizations write:authorizations read:buckets write:buckets read:dashboards write:dashboards read:orgs write:orgs read:sources write:sources read:tasks write:tasks read:telegrafs write:telegrafs read:users write:users read:variables write:variables read:scrapers write:scrapers read:secrets write:secrets read:labels write:labels read:views write:views read:documents write:documents read:notificationRules write:notificationRules read:notificationEndpoints write:notificationEndpoints read:checks write:checks read:dbrp write:dbrp read:notebooks write:notebooks read:annotations write:annotations read:remotes write:remotes read:replications write:replications]
          

          Aber wie soll ich über das GUI einen alten Token rekonstruieren?

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

            @akuhnsh sagte in InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler:

            Aber wie soll ich über das GUI einen alten Token rekonstruieren?

            Das würde nur Sinn ergeben, wenn die alte Datenbank noch vorhanden ist. Hast du bei der Neuinstallation die Datenverzeichnisse gelöscht? Nicht, dass da noch Überbleibsel stören.

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

              @marc-berg said in InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler:

              @akuhnsh sagte in InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler:

              Aber wie soll ich über das GUI einen alten Token rekonstruieren?

              Das würde nur Sinn ergeben, wenn die alte Datenbank noch vorhanden ist. Hast du bei der Neuinstallation die Datenverzeichnisse gelöscht? Nicht, dass da noch Überbleibsel stören.

              Die alten token sind halt im Backup hinterlegt. Wenn die abgefragt werden, passen sie halt nicht zum neuen admin token. Deshalb dachte ich an die Rolle Rückwärts. Erst die alten token wieder herstellen in der neuen influxdb und dann das Backup mit denselben token wieder herstellen. Denke da liegt der Hase im Pfeffer.

              Hab ein frisches Image auf die SD geschrieben und iobroker, influxdb und grafana neu installiert, wie sonst auch schon mal. Da sollte alles überschrieben worden sein.

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

                @akuhnsh sagte in InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler:

                Die alten token sind halt im Backup hinterlegt. Wenn die abgefragt werden, passen sie halt nicht zum neuen admin token. Deshalb dachte ich an die Rolle Rückwärts. Erst die alten token wieder herstellen in der neuen influxdb und dann das Backup mit denselben token wieder herstellen. Denke da liegt der Hase im Pfeffer.

                nein. Du brauchst nach einer Neuinstallation für das Restore die neuen Token.

                akuhnsh 2 Replies Last reply Reply Quote 0
                • akuhnsh
                  akuhnsh @Marc Berg last edited by

                  @marc-berg

                  Okay verstanden. Vielleicht liegt es daran, dass das Backup aus einem Upgrade von 1.8 auf 2.7 stammt? Ich bekomme eine ähnliche Fehlermeldung, wenn ich in dem Reiter bei "Sicherung mehrerer Systeme" raus nehme und nur den einen bucket angebe, der auch zur Wiederherstellung ausgewählt wird:

                  Started restore ...
                  [DEBUG] [influxDB] - Created tmp directory
                  [DEBUG] [influxDB] - Start infuxDB Restore ...
                  [ERROR] [influxDB] - 2023/05/06 16:49:17 INFO: Restoring bucket "0db467ecf59e0de1" as "iobroker"
                  Error: failed to restore bucket "iobroker": 401 Unauthorized: read:authorizations is unauthorized
                  
                  [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory
                  [DEBUG] [influxDB] - InfluxDB tmp directory was successfully deleted
                  [DEBUG] [influxDB] - infuxDB Restore completed successfully
                  [EXIT] influxDB restore done
                  

                  Muss der neue token noch irgendwo anders eingetragen werden als unter dem Reiter influxdb in BackItUp?

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

                    @marc-berg

                    Wenn ich den bucket vorher anlege kommt folgende Meldung:

                    Started restore ...
                    [DEBUG] [influxDB] - Created tmp directory
                    [DEBUG] [influxDB] - Start infuxDB Restore ...
                    [ERROR] [influxDB] - 2023/05/06 16:52:54 INFO: Restoring bucket "0db467ecf59e0de1" as "iobroker"
                    Error: failed to restore bucket "iobroker": 422 Unprocessable Entity: bucket with name iobroker already exists
                    
                    [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory
                    [DEBUG] [influxDB] - InfluxDB tmp directory was successfully deleted
                    [DEBUG] [influxDB] - infuxDB Restore completed successfully
                    [EXIT] influxDB restore done
                    
                    1 Reply Last reply Reply Quote 0
                    • Marc Berg
                      Marc Berg Most Active @akuhnsh last edited by

                      @akuhnsh sagte in InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler:

                      Vielleicht liegt es daran, dass das Backup aus einem Upgrade von 1.8 auf 2.7 stammt

                      Das verstehe ich nicht. Das Backup wurde doch aber nach dem Upgrade aus der 2.7 gezogen, oder?

                      Ganz sicher, dass der Token, der auch über "influx auth list" sichtbar ist, korrekt und ohne Leerzeichen im Backitip-Adapter eingetragen ist? An eine andere Stelle muss der für den reinen Rstore nicht eingetragen werden.

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

                        @marc-berg said in InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler:

                        @akuhnsh sagte in InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler:

                        Vielleicht liegt es daran, dass das Backup aus einem Upgrade von 1.8 auf 2.7 stammt

                        Das verstehe ich nicht. Das Backup wurde doch aber nach dem Upgrade aus der 2.7 gezogen, oder?

                        Ganz sicher, dass der Token, der auch über "influx auth list" sichtbar ist, korrekt und ohne Leerzeichen im Backitip-Adapter eingetragen ist? An eine andere Stelle muss der für den reinen Rstore nicht eingetragen werden.

                        Das ist jetzt neu. Funktionierte doch vorhin noch einwandfrei...

                        pi@raspberrypi:~ $ influx auth list --json
                        Error: could not find authorization with given parameters: 401 Unauthorized: unauthorized access
                        
                        Marc Berg 1 Reply Last reply Reply Quote 0
                        • Marc Berg
                          Marc Berg Most Active @akuhnsh last edited by Marc Berg

                          @akuhnsh sagte in InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler:

                          Das ist jetzt neu. Funktionierte doch vorhin noch einwandfrei...

                          Ja, was soll man dazu noch sagen? Ein System, welches sich mehrfach "von selbst" vergisst ...
                          Ist das noch die selbe SD Card?

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

                            @marc-berg said in InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler:

                            @akuhnsh sagte in InfluxDB 2.7 Totalabsturz - BackItUp mit Fehler:

                            Das ist jetzt neu. Funktionierte doch vorhin noch einwandfrei...

                            Ja, was soll man dazu noch sagen? Ein System, welches sich mehrfach "von selbst" vergisst ...
                            Ist das noch die selbe SD Card?

                            Genau um den Punkt drehten sich die Überlegungen die letzten Tage und ich habe eine Lösung gefunden. Die alte SD-Karte habe ich zwar auf Herz und Nieren geprüft und keine defekten Sektoren gefunden, aber die Wiederherstellung auf dieser Karte funktionierte für die InfluxDB 2 nicht mehr. Dann habe ich die Wiederherstellung mit einem USB-Stick vorgenommen und siehe da, alles wieder im grünen Bereich.

                            Da dies aber ebenfalls keine Dauerlösung war und der Stick zudem füchterlich heiß wurde, habe ich mir ein neues Gehäuse samt aktivem Kühler für den Raspi zugelegt und ein Board für eine M.2 SSD lag ebenfalls bei, das nun mit einer 256GB SSD bestückt ist. Den USB-Stick habe ich einfach mit Balena Etcher darauf geklont und dann später über die raspi-config mit einem Klick bis zur vollen Größe erweitert.

                            Damit läuft nun alles wieder einwandfrei und hoffentlich auch störungsfrei in die Zukunft.

                            Danke für eure Hilfe und beste Grüße, Alex...

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

                            Support us

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

                            878
                            Online

                            31.6k
                            Users

                            79.6k
                            Topics

                            1.3m
                            Posts

                            5
                            28
                            1176
                            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