Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Fehler Backitup Grafana

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Fehler Backitup Grafana

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @minkhx last edited by

      @minkhx

      apt policy grafana-enterprise
      

      grafana ist ja nicht installiert, hatten wir schon.

      M 1 Reply Last reply Reply Quote 0
      • M
        minkhx @Thomas Braun last edited by

        @thomas-braun Wie nicht installiert? Es läuft doch aber und ich kann micht :3000 anmelden?

        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @minkhx last edited by

          @minkhx

          Du hast grafana-enterprise installiert, du willst aber grafana installiert haben.

          M 1 Reply Last reply Reply Quote 0
          • M
            minkhx @Thomas Braun last edited by

            @thomas-braun Ach so, ja, sorry:) Sagt denn der Kommandoaufruf deiner drei Zeilen das so aus? Ich weiß nicht mehr, was ich installiert habe, und würde gerne versuchen, das rauszufinden.

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

              @minkhx

              Siehste doch oben:

              grafana:
              Installiert: (keine)
              Installationskandidat: 12.0.0
              

              Also muss
              grafana-enterprise installiert sein, das haste ja auch damit getan:

              sudo apt-get install grafana-enterprise
              
              1 Reply Last reply Reply Quote 0
              • M
                minkhx @minkhx last edited by

                @minkhx Hallo thomas, vielen Dank für die rege Unterstützung zu so später Stunde.
                Ich nehme mit, dass ich mal checke, was da installiert ist. Wenn es sich mit einem Befehl entfernen und dann ebenso wieder installieren lässt ohne die ganzen anderen commands, welche auf der Grafana-Site dargestellt werden, dann kann ich das ja mal machen...
                Ansosnsten switche ich zur backitup-Beta, wie simatic vorschlug.

                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @minkhx last edited by

                  @minkhx sagte in Fehler Backitup Grafana:

                  Ansosnsten switche ich zur backitup-Beta, wie simatic vorschlug.

                  Das musst du so oder so. grafana-enterprise hin oder her.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    minkhx @Thomas Braun last edited by

                    @thomas-braun Alles klar. Und das hier reicht?
                    sudo apt remove grafana-enterprise
                    sudo apt install grafana

                    Restloses entfernen und Neuinstallation von Grafana? Ohne diese ganzen Befehle von der Grafana-Site sieht das iwie so alleine aus:)

                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @minkhx last edited by

                      @minkhx sagte in Fehler Backitup Grafana:

                      Und das hier reicht?

                      Das reicht.
                      Einmal eingerichtet ist apt recht einfach zu verwenden.

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        minkhx @Thomas Braun last edited by

                        @thomas-braun Perfekt. Und vielen Dank nochmal für die Hilfe. Übrigens ist IOB sehr aufgeräumt und strukturiert im Gegensatz zu diesem HA-Labyrinth;)
                        Es ist für mich sehr ansprechend. Lob an die/den? Entwickler!

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          minkhx @minkhx last edited by

                          @minkhx So. Ich bin jetzt ein Stück weiter, d.h. es gibt neue IOBs-Botschaften bzw. Fehlermeldungen:)
                          Es sieht aber schon ganz gut aus, finde ich.
                          Grafana mit dem 2-Zeiler von Thomas von Enterprise auf OSS 12.0.0 geswitched (So ein ordentlicher Linux-Unterbau ist schon was wert).
                          Ich habe den alten backitup-Adapter einfach gelöscht.
                          Die Repos irgendwo von stable auf beta umgestellt und mit der Skimaske das Github-Icon freigeschaltet.
                          Dann dort backi eingegeben -> backitup[simatec] ausgewählt.
                          Jetzt habe ich 3.2.2, npm 10.8 und diesen output, beim Versuch von Grafana ein bckup anzulegen:
                          19:51:18.933
                          DEBUG
                          grafana
                          Start Grafana Backup ...
                          19:51:18.935
                          DEBUG
                          grafana
                          Created grafana_tmp directory: "/opt/iobroker/backups/grafana_tmp"
                          19:51:18.948
                          DEBUG
                          grafana
                          Created dashboard directory
                          19:51:18.954
                          DEBUG
                          grafana
                          Created folder directory
                          19:51:18.956
                          DEBUG
                          grafana
                          Created dashboards_manually_restore directory
                          19:51:18.959
                          DEBUG
                          grafana
                          Created datasource directory
                          19:51:18.993
                          DEBUG
                          grafana
                          start Grafana request ...
                          19:51:19.042
                          DEBUG
                          grafana
                          Grafana is available ... Status: 200
                          19:51:19.271
                          ERROR
                          grafana
                          Error on Grafana Dashboard Request: AxiosError: Request failed with status code 401
                          19:51:19.283
                          DEBUG
                          grafana
                          Saved dashboard-folder mapping
                          19:51:19.294
                          ERROR
                          grafana
                          Error on Grafana-Folder: AxiosError: Request failed with status code 401
                          19:51:19.299
                          DEBUG
                          grafana
                          start Grafana backup compress ...
                          19:51:19.314
                          DEBUG
                          grafana
                          Try deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp"
                          19:51:19.343
                          DEBUG
                          grafana
                          Grafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted
                          19:51:19.383
                          DEBUG
                          grafana
                          done

                          So ein 401er kann doch jetzt nicht so dramatisch sein, oder?
                          Ich nutze den Original admin-acc samt pwd aus der Ersteinrichtung, was seltsamerweise auch nach dem switch noch funktioniert und den API-Key, welcher bei der Ersti gewonnen wurde.
                          Im backitup Grafana-Reiter steht ja:
                          "Grafana API-Schlüssel oder Service Token".
                          Und API-Schlüssel ist doch der API-Key aus der Ersti, oder?
                          Falls jemand ähnliches Interesse an der beta verfolgt, kann er sich ja melden.
                          Danke.

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            minkhx @minkhx last edited by

                            @minkhx said in Fehler Backitup Grafana:

                            Error on Grafana-Folder: AxiosError: Request failed with status code 401

                            Ok, der 401er ist was mit Zugangsrechten.
                            Wenn man in Grafana einen Service-acc anlegt (hier name: backup, rights: admin), einen frischen Token zapft und diesen dann im Grafana-Reiter im backitup einträgt zusammen mit dem admin-Zugang läuft es.
                            Falls jemand eine Zusammenfassung benötigt, um nicht am Selbigen zu verzweifeln, kann ich das nochmal zusammen schreiben.
                            Danke Thomas und simatec. You did the trick.

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

                              @minkhx steht doch aber alles in der Doku

                              M 1 Reply Last reply Reply Quote 1
                              • M
                                minkhx @simatec last edited by

                                @simatec Das tut es bestimmt, allerdings ist es für einen Einsteiger nicht so eindeutig. ZB "API-Schlüssel bzw. Service Token" und das der Service-acc bestimmte Nutzerrechte braucht, was ich nur hier im Chatverlauf nachvollziehen konnte, da hab ich mich mit der Rumprobierei etwas verzettelt.
                                Der Hinweis auf die Beta wäre vllt. noch etwas für die Doku. Ist bestimmt schon woanders dokumentiert, aber ich hab da noch keinen roten Faden.
                                Dafür aber auch ein paar neue Linux-Befehle gelernt;) Und wie man seine fehlermeldungen am besten beschreibt. Z.B. mit dem log-ouput.
                                Aprospos, was bedeutet dies:
                                22:10:09.960
                                DEBUG
                                grafana
                                Start Grafana Backup ...
                                22:10:09.964
                                DEBUG
                                grafana
                                Created grafana_tmp directory: "/opt/iobroker/backups/grafana_tmp"
                                22:10:09.980
                                DEBUG
                                grafana
                                Created folder directory
                                22:10:09.982
                                DEBUG
                                grafana
                                Created dashboards_manually_restore directory
                                22:10:10.017
                                DEBUG
                                grafana
                                Created datasource directory
                                22:10:10.029
                                DEBUG
                                grafana
                                start Grafana request ...
                                22:10:10.075
                                DEBUG
                                grafana
                                Grafana is available ... Status: 200
                                22:10:10.650
                                DEBUG
                                grafana
                                Saved dashboard-folder mapping
                                22:10:10.833
                                DEBUG
                                grafana
                                start Grafana backup compress ...
                                22:10:10.851
                                DEBUG
                                grafana
                                Try deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp"
                                22:10:10.864
                                ERROR
                                grafana
                                cannot found Grafana Backup files
                                22:10:10.900
                                DEBUG
                                grafana
                                done

                                Liegt das an der manuellen Vorgehensweise, das Backup zu machen?
                                Eine Datei gibt es? /files/backitup.admin/grafana.jsonConfig.json5 mit 5 kB

                                M 1 Reply Last reply Reply Quote 0
                                • M
                                  minkhx @minkhx last edited by

                                  @minkhx Habs grad im Forum gesehen, so ist besser, oder?
                                  Z42-44 sieht komisch aus:

                                  23:50:49.636
                                  DEBUG
                                  grafana
                                  Created dashboard directory
                                  23:50:49.651
                                  DEBUG
                                  grafana
                                  Created folder directory
                                  23:50:49.671
                                  DEBUG
                                  grafana
                                  Created dashboards_manually_restore directory
                                  23:50:49.681
                                  DEBUG
                                  grafana
                                  Created datasource directory
                                  23:50:49.684
                                  DEBUG
                                  grafana
                                  start Grafana request ...
                                  23:50:49.752
                                  DEBUG
                                  grafana
                                  Grafana is available ... Status: 200
                                  23:50:50.202
                                  DEBUG
                                  grafana
                                  Saved dashboard-folder mapping
                                  23:50:50.273
                                  DEBUG
                                  grafana
                                  start Grafana backup compress ...
                                  23:50:50.281
                                  DEBUG
                                  grafana
                                  Try deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp"
                                  23:50:50.312
                                  DEBUG
                                  grafana
                                  Grafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted
                                  23:50:50.346
                                  ERROR
                                  grafana
                                  cannot found Grafana Backup files
                                  23:50:50.348
                                  DEBUG
                                  grafana
                                  done
                                  23:50:51.068
                                  DEBUG
                                  nodered
                                  Created nodered tmp directory
                                  23:50:51.149
                                  DEBUG
                                  nodered
                                  Node-Red tmp copy finish
                                  23:50:51.215
                                  DEBUG
                                  nodered
                                  Backup created: /opt/iobroker/backups/nodered.0_2025_05_22-23_50_52_backupiobroker.tar.gz
                                  23:50:51.256
                                  DEBUG
                                  nodered
                                  node-red tmp directory "/opt/iobroker/backups/noderedtmp0" successfully deleted
                                  23:50:51.271
                                  DEBUG
                                  nodered
                                  done
                                  23:50:52.441
                                  WARN
                                  clean
                                  No older backup files are deleted, because this backup was started manually
                                  
                                  simatec 1 Reply Last reply Reply Quote 0
                                  • simatec
                                    simatec Developer Most Active @minkhx last edited by

                                    @minkhx Dein Backup wird nicht korrekt erzeugt.
                                    Zeige bitte deine Config von Backitup als json File.
                                    Hast du den API Token / Service-Token mit Admin Rechten erzeugt? Hat der Token eine Gültigkeit?

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      minkhx @simatec last edited by

                                      @simatec
                                      Da wo die anderen json5-Dateien liegen, finde ich nichts mit Namen backitup. Nur eine .png und .svg? Weiß nicht, wo ich die Datei herkriegen soll. Über Putty?
                                      Serv-cc mit Token (straight nach Doku:)
                                      ed95dd34-28e2-4810-aece-49e08d9b97b6-grafik.png

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

                                        @minkhx sagte in Fehler Backitup Grafana:

                                        Weiß nicht, wo ich die Datei herkriegen soll.

                                        bc3bce8c-0f78-43de-bbfd-3a05016fc1da-grafik.png

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

                                          @marc-berg Ahh:)

                                          {
                                            "advancedDelete": false,
                                            "cacheLoose": false,
                                            "ccuCron": false,
                                            "ccuCronJob": "00 36 01 */3 * *",
                                            "ccuDeleteAfter": 10,
                                            "ccuEnabled": false,
                                            "ccuEvents": [],
                                            "ccuEveryXDays": 3,
                                            "ccuHost": "",
                                            "ccuMulti": false,
                                            "ccuNameSuffix": "",
                                            "ccuPassword": "",
                                            "ccuSignedCertificates": true,
                                            "ccuTime": "01:36",
                                            "ccuUsehttps": false,
                                            "ccuUser": "Admin",
                                            "cifsCcuDir": "sharename/backupDir",
                                            "cifsDeleteOldBackup": false,
                                            "cifsDir": "sharename/backupDir",
                                            "cifsDomain": "",
                                            "cifsEnabled": false,
                                            "cifsMinimalDir": "sharename/backupDir",
                                            "cifsMount": "",
                                            "cifsOwnDir": false,
                                            "cifsUser": "",
                                            "connectType": "NFS",
                                            "debugLevel": false,
                                            "deleteOldDataBase": false,
                                            "discordInstance": "discord.0",
                                            "discordNoticeType": "longDiscordNotice",
                                            "discordOnlyError": false,
                                            "discordTarget": "",
                                            "discordWaitToSend": 0,
                                            "dropboxAccessJson": "",
                                            "dropboxAccessToken": "",
                                            "dropboxCcuDir": "/backupDir/ccu",
                                            "dropboxCodeChallenge": "",
                                            "dropboxDeleteAfter": 10,
                                            "dropboxDeleteOldBackup": false,
                                            "dropboxDir": "/backupDir",
                                            "dropboxEnabled": false,
                                            "dropboxMinimalDir": "/backupDir/iobroker",
                                            "dropboxOwnDir": false,
                                            "dropboxTokenType": "custom",
                                            "emailInstance": "email.0",
                                            "emailNoticeType": "longEmailNotice",
                                            "emailOnlyError": false,
                                            "emailReceiver": "xxx@xxx.com",
                                            "emailSender": "xxx@xxx.com",
                                            "emailWaitToSend": 0,
                                            "esphomeEnabled": false,
                                            "expertMount": "sudo mount -t cifs -o username=<username>,password=\"<password>\",noserverino,cache=loose,rw,forceuid,uid=iobroker,forcegid,gid=iobroker,file_mode=0777,dir_mode=0777,vers=3.1.1 //192.168.0.1/NAS/BACKUP /opt/iobroker/backups",
                                            "fileSizeError": 512,
                                            "fileSizeWarning": 1024,
                                            "ftpCcuDir": "/backupDir/ccu",
                                            "ftpDeleteAfter": 10,
                                            "ftpDeleteOldBackup": false,
                                            "ftpDir": "/backupDir",
                                            "ftpEnabled": false,
                                            "ftpHost": "",
                                            "ftpMinimalDir": "/backupDir/iobroker",
                                            "ftpOwnDir": false,
                                            "ftpPassword": "",
                                            "ftpPort": 21,
                                            "ftpSecure": false,
                                            "ftpSignedCertificates": true,
                                            "ftpUser": "",
                                            "googledriveAccessTokens": "",
                                            "googledriveCcuDir": "/backupDir/ccu",
                                            "googledriveDeleteAfter": 10,
                                            "googledriveDeleteOldBackup": false,
                                            "googledriveDir": "/backupDir",
                                            "googledriveEnabled": false,
                                            "googledriveMinimalDir": "/backupDir/iobroker",
                                            "googledriveOwnDir": false,
                                            "gotifyInstance": "gotify.0",
                                            "gotifyNoticeType": "longGotifyNotice",
                                            "gotifyOnlyError": false,
                                            "gotifyWaitToSend": 0,
                                            "grafanaApiKey": "glsa_cnSQbtiq9K7eTerEvm3Z9Cm4YiOZRcVX_249c5ccc",
                                            "grafanaEnabled": true,
                                            "grafanaHost": "flowbox",
                                            "grafanaPassword": "xxx",
                                            "grafanaPort": "3000",
                                            "grafanaProtocol": "http",
                                            "grafanaSignedCertificates": true,
                                            "grafanaUsername": "admin",
                                            "historyEnabled": false,
                                            "historyEntriesNumber": 25,
                                            "historyPath": "/opt/iobroker/iobroker-data/history",
                                            "hostType": "Single",
                                            "ignoreErrors": false,
                                            "influxDBDeleteAfter": 5,
                                            "influxDBDumpExe": "",
                                            "influxDBEnabled": true,
                                            "influxDBEvents": [],
                                            "influxDBHost": "localhost",
                                            "influxDBMulti": false,
                                            "influxDBName": "buck",
                                            "influxDBPort": 8086,
                                            "influxDBProtocol": "http",
                                            "influxDBToken": "19JaEjvfdfgXb7pYrYD3pVrmPdtESYwcD7BmltjxNzloFiZPAMNESU93Hy9op8u_IY52Dfyt2yIHSdGgwRhkSw==",
                                            "influxDBType": "local",
                                            "influxDBVersion": "2.x",
                                            "iobrokerCron": false,
                                            "iobrokerCronJob": "00 48 02 */1 * *",
                                            "jarvisEnabled": false,
                                            "javascriptsEnabled": false,
                                            "macAd": "20:DE:20:DE:20:DE",
                                            "matrixInstance": "matrix-org.0",
                                            "matrixNoticeType": "longMatrixNotice",
                                            "matrixOnlyError": false,
                                            "matrixWaitToSend": 0,
                                            "minimalDeleteAfter": 20,
                                            "minimalEnabled": true,
                                            "minimalEveryXDays": 5,
                                            "minimalNameSuffix": "",
                                            "minimalTime": "02:48",
                                            "mySqlDeleteAfter": 5,
                                            "mySqlDumpExe": "",
                                            "mySqlEnabled": false,
                                            "mySqlEvents": [],
                                            "mySqlHost": "localhost",
                                            "mysqlMinimalEnabled": false,
                                            "mySqlMulti": false,
                                            "mySqlName": "iobroker",
                                            "mySqlPassword": "",
                                            "mySqlPort": "3306",
                                            "mysqlQuick": false,
                                            "mysqlSingleTransaction": false,
                                            "mySqlUser": "",
                                            "noderedEnabled": true,
                                            "noserverino": false,
                                            "notificationEnabled": false,
                                            "notificationsType": "Telegram",
                                            "onedriveAccessJson": "",
                                            "onedriveCcuDir": "backupDir/ccu",
                                            "onedriveDeleteAfter": 10,
                                            "onedriveDeleteOldBackup": false,
                                            "onedriveDir": "backupDir",
                                            "onedriveEnabled": false,
                                            "onedriveLastTokenRenew": "",
                                            "onedriveMinimalDir": "backupDir/iobroker",
                                            "onedriveOwnDir": false,
                                            "pgSqlDeleteAfter": 5,
                                            "pgSqlDumpExe": "",
                                            "pgSqlEnabled": false,
                                            "pgSqlEvents": [],
                                            "pgSqlHost": "",
                                            "pgSqlMulti": false,
                                            "pgSqlName": "",
                                            "pgSqlPassword": "",
                                            "pgSqlPort": "5432",
                                            "pgSqlUser": "",
                                            "pushoverDeviceID": "",
                                            "pushoverInstance": "pushover.0",
                                            "pushoverNoticeType": "longPushoverNotice",
                                            "pushoverOnlyError": false,
                                            "pushoverSilentNotice": false,
                                            "pushoverWaitToSend": 0,
                                            "redisAOFactive": false,
                                            "redisEnabled": false,
                                            "redisHost": "",
                                            "redisMinimalEnabled": false,
                                            "redisPassword": "",
                                            "redisPath": "/var/lib/redis",
                                            "redisPort": 6379,
                                            "redisType": "local",
                                            "redisUser": "default",
                                            "restoreSource": "local",
                                            "restoreTab": false,
                                            "signalInstance": "signal-cmb.0",
                                            "signalNoticeType": "longSignalNotice",
                                            "signalOnlyError": false,
                                            "signalWaitToSend": 0,
                                            "slaveInstance": "backitup.1",
                                            "slaveNameSuffix": "",
                                            "smbType": "vers=3.1.1",
                                            "sqliteDumpExe": "",
                                            "sqliteEnabled": false,
                                            "sqlitePath": "/opt/sqlite/data.db",
                                            "startAllRestore": false,
                                            "stopSlaveAfter": false,
                                            "sudoMount": true,
                                            "telegramInstance": "telegram.0",
                                            "telegramNoticeType": "longTelegramNotice",
                                            "telegramOnlyError": false,
                                            "telegramSilentNotice": false,
                                            "telegramUser": "allTelegramUsers",
                                            "telegramWaitToSend": 0,
                                            "wakeOnLAN": false,
                                            "webdavCcuDir": "/backupDir/ccu",
                                            "webdavDeleteAfter": 10,
                                            "webdavDeleteOldBackup": false,
                                            "webdavDir": "/backupDir",
                                            "webdavEnabled": false,
                                            "webdavMinimalDir": "/backupDir/iobroker",
                                            "webdavOwnDir": false,
                                            "webdavPassword": "",
                                            "webdavSignedCertificates": true,
                                            "webdavURL": "https://<example.com>/remote.php/dav/files/<username>/",
                                            "webdavUsername": "username",
                                            "whatsappInstance": "whatsapp-cmb.0",
                                            "whatsappNoticeType": "longWhatsappNotice",
                                            "whatsappOnlyError": false,
                                            "whatsappWaitToSend": 0,
                                            "wolExtra": false,
                                            "wolPort": 9,
                                            "wolWait": 25,
                                            "yahkaEnabled": false,
                                            "zigbee2mqttEnabled": false,
                                            "zigbee2mqttPath": "/opt/zigbee2mqtt/data",
                                            "zigbeeEnabled": false,
                                            "_nonSupportDockerDB": false
                                          }
                                          
                                          M simatec 2 Replies Last reply Reply Quote 0
                                          • M
                                            minkhx @minkhx last edited by

                                            @minkhx history enabled auf true setzen?

                                            simatec M 2 Replies 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

                                            988
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            87
                                            3827
                                            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