Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [ Geklärt ] Problem bei Influx Installation

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [ Geklärt ] Problem bei Influx Installation

    This topic has been deleted. Only users with topic management privileges can see it.
    • wendy2702
      wendy2702 @Altersrentner last edited by

      @altersrentner Hostname sollte der hier sein:

      raspberrypi
      

      Key... keine Ahnung.

      Vielleicht ist es einfacher wenn du über die Grafana GUI gehst und deine Dashboards einfach exportierst.

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

        @altersrentner sagte in [ Geklärt ] Problem bei Influx Installation:

        Was sollich dort eintragen bzw wie bekomme ich den Key

        Des Weiteren muss in der Grafana-Weboberfläche ein Api-Key erzeugt werden, um Zugriff auf die Dashboards zu bekommen.
        Der Api-Key kann unter "Configuration → API Keys" erstellt werden.

        Edit:
        Nochmal zusammengefasst, du hast möchtest umziehen von einer Hdd auf eine SSD. Iobroker hast du dort schon laufen, mittels Backup.
        Was du vergessen/nicht beachtet hast, das Grafana und InfluxDB zwei separate Installationen sind, die mit dem Backup des Iobrokers nichts zu tun haben, daher musst du beide entsprechend wieder auf deiner SSD installieren.
        wenn du beide Backups(via backitup) von Influx und Grafana hast, kannst du diese auch wieder per backitup zurückspielen, wenn nicht, musst du dir die Daten entsprechend aus deiner HDD holen und wieder in deiner SSD einfügen

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

          @crunchip sagte in [ Geklärt ] Problem bei Influx Installation:

          oder nur google drive?

          Nur Google Drive
          Den Key habe ich erstellt.
          Nun der Hostname
          Wo finde ich den?

          crunchip wendy2702 2 Replies Last reply Reply Quote 0
          • crunchip
            crunchip Forum Testing Most Active @Altersrentner last edited by crunchip

            @altersrentner sagte in [ Geklärt ] Problem bei Influx Installation:

            Nun der Hostname

            gib einfach deine Ip Adresse ein

            @altersrentner sagte in [ Geklärt ] Problem bei Influx Installation:

            Nur Google Drive

            dann hast du NAS/Kopieren scheinbar angehakt, in den Haupteinstellungen, daher der Fehler

            A 1 Reply Last reply Reply Quote 0
            • wendy2702
              wendy2702 @Altersrentner last edited by

              @altersrentner Hatt ich zwar schon geschrieben kannst aber auch gerne nochmal hier schauen

              cat /etc/hosts
              
              A 3 Replies Last reply Reply Quote 0
              • A
                Altersrentner @crunchip last edited by

                @crunchip
                Danke!
                Jetz mache ich noch ein Backup
                mal sehen was dann ist

                1 Reply Last reply Reply Quote 0
                • A
                  Altersrentner @wendy2702 last edited by

                  @wendy2702 super Danke😊 👍

                  1 Reply Last reply Reply Quote 0
                  • A
                    Altersrentner @wendy2702 last edited by

                    @wendy2702
                    Es erscheint wieder ein Error bei Grafana

                    DEBUG] [grafana] - Start Grafana Backup ...
                    [DEBUG] [grafana] - Created grafana_tmp directory
                    [DEBUG] [grafana] - Created dashboard directory
                    [DEBUG] [grafana] - Created dashboards_manually_restore directory
                    [DEBUG] [grafana] - Created datasource directory
                    [DEBUG] [grafana] - start Grafana request ...
                    [DEBUG] [grafana] - Grafana is available ... Status: 200
                    [DEBUG] [grafana] - Error on Grafana Dashoard Request: Error: Request failed with status code 401
                    [DEBUG] [grafana] - start Grafana backup compress ...
                    [DEBUG] [grafana] - Try deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp"
                    [DEBUG] [grafana] - Grafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted
                    [DEBUG] [grafana] - cannot found Grafana Backup files
                    [DEBUG] [grafana] - done
                    [DEBUG] [cifs] - done
                    [DEBUG] [googledrive] - Google Drive: Copy iobroker_2021_03_07-19_08_53_influx grafana_backupiobroker.tar.gz...
                    
                    crunchip 1 Reply Last reply Reply Quote 0
                    • crunchip
                      crunchip Forum Testing Most Active @Altersrentner last edited by

                      @altersrentner sagte in [ Geklärt ] Problem bei Influx Installation:

                      Error on Grafana Dashoard Request: Error: Request failed with status code 401

                      Falschen Benutzerdaten oder Api-Key falsch
                      Grafana ist erreichbar (siehe Status 200)

                      A 2 Replies Last reply Reply Quote 0
                      • A
                        Altersrentner @crunchip last edited by

                        @crunchip
                        Danke, habe jetzt beim Host die IP eingestellt
                        und ein neuer Versuch

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

                          @crunchip

                          Started iobroker ...
                          [DEBUG] [mount] - first mount attempt with smb option failed. try next mount attempt without smb option ...
                          [ERROR] [mount] - [undefined Error: Command failed: sudo mount -t cifs -o username=Backup,password=****,rw,file_mode=0777,dir_mode=0777 //192.168.178.35/homes/Backup/iobroker/minimalPi4 /opt/iobroker/backups
                          Unable to find suitable address.
                          
                          [ERROR] [mount] - [IGNORED] Error: Command failed: sudo mount -t cifs -o username=Backup,password=****,rw,file_mode=0777,dir_mode=0777 //192.168.178.35/homes/Backup/iobroker/minimalPi4 /opt/iobroker/backups
                          Unable to find suitable address.
                          
                          [DEBUG] [iobroker] - host.raspberrypi 14084 states saved
                          
                          [DEBUG] [iobroker] - host.raspberrypi 16331 objects saved
                          
                          [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2021_03_07-19_34_18_influx grafana2_backupiobroker.tar.gz
                          
                          [DEBUG] [iobroker] - done
                          [DEBUG] [influxDB] - Start InfluxDB Backup ...
                          [DEBUG] [influxDB] - InfluxDB Backup tmp directory created 
                          [DEBUG] [influxDB] - Packed 15MB so far...
                          [DEBUG] [influxDB] - Packed 47MB so far...
                          [DEBUG] [influxDB] - Packed 79MB so far...
                          [DEBUG] [influxDB] - Packed 149MB so far...
                          [DEBUG] [influxDB] - Packed 235MB so far...
                          [DEBUG] [influxDB] - Packed 313MB so far...
                          [DEBUG] [influxDB] - Packed 405MB so far...
                          [DEBUG] [influxDB] - Packed 481MB so far...
                          [DEBUG] [influxDB] - Packed 562MB so far...
                          [DEBUG] [influxDB] - Packed 646MB so far...
                          [DEBUG] [influxDB] - Packed 727MB so far...
                          [DEBUG] [influxDB] - Packed 817MB so far...
                          [DEBUG] [influxDB] - Backup created: /opt/iobroker/backups/influxDB_2021_03_07-19_34_51_influx grafana2_backupiobroker.tar.gz
                          [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory
                          [DEBUG] [influxDB] - InfluxDB tmp directory was successfully deleted
                          [DEBUG] [influxDB] - done
                          [DEBUG] [grafana] - Start Grafana Backup ...
                          [DEBUG] [grafana] - Created grafana_tmp directory
                          [DEBUG] [grafana] - Created dashboard directory
                          [DEBUG] [grafana] - Created dashboards_manually_restore directory
                          [DEBUG] [grafana] - Created datasource directory
                          [DEBUG] [grafana] - start Grafana request ...
                          [DEBUG] [grafana] - Grafana is available ... Status: 200
                          [DEBUG] [grafana] - found Dashboard: n1-aussen-wz
                          [DEBUG] [grafana] - start Grafana backup compress ...
                          [DEBUG] [grafana] - Backup created: /opt/iobroker/backups/grafana_2021_03_07-19_42_25_backupiobroker.tar.gz
                          [DEBUG] [grafana] - Try deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp"
                          [DEBUG] [grafana] - Grafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted
                          [DEBUG] [grafana] - done
                          [DEBUG] [cifs] - done
                          [DEBUG] [googledrive] - Google Drive: Copy iobroker_2021_03_07-19_34_18_influx grafana2_backupiobroker.tar.gz...
                          [DEBUG] [googledrive] - Google Drive: Copy influxDB_2021_03_07-19_34_51_influx grafana2_backupiobroker.tar.gz...
                          

                          Ich glaube jetzt hat es geklappt👍 oder👎

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

                            @altersrentner sieht so aus, grafana und influx, dein cifs hast aber noch aktiv(was du ja nicht nutzt), also Haken noch raus bei Nas.
                            aber deine Backups sind gemacht
                            musst nur dran denken, das du bei deiner SSD Influx und Grafana installiert haben musst um das backup ein zu spielen

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

                              @crunchip OK

                              
                              wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
                              source /etc/os-release
                              echo "deb https://repos.influxdata.com/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
                               
                              sudo apt update
                              sudo apt install -y influxdb
                              sudo systemctl unmask influxdb.service
                              sudo systemctl start influxdb.service
                              sudo systemctl enable influxdb.service
                              

                              Damit installiere ich Influx.
                              Kannst Du mir bitte noch den Code für Grafana mitteilen?
                              Danke
                              Mit freundlichen Grüßen
                              Michael

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

                                @altersrentner
                                apt-Schlüssel zufügen

                                wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
                                

                                grafana repository hinzufügen

                                echo "deb https://packages.grafana.com/oss/deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
                                

                                installieren

                                sudo apt-get update
                                sudo apt-get install -y grafana
                                

                                aktivieren und starten

                                sudo /bin/systemctl enable grafana-server
                                sudo /bin/systemctl start grafana-server
                                

                                aufrufen dann über http://<ip address>:3000
                                Name und Kennwort ist standard
                                admin
                                admin

                                A 2 Replies Last reply Reply Quote 0
                                • A
                                  Altersrentner @crunchip last edited by

                                  @crunchip D A N K E !
                                  Mit freundlichen Grüßen
                                  Michael

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

                                    @crunchip Hallo,
                                    Die neue SSD ist angeschlossen.
                                    ioBroker läuft,
                                    InfluxDB ist wieder hergestellt,
                                    Influx Adapter ist grün,
                                    Grafana ist wieder hergestellt,
                                    API Key ist eingegeben
                                    In vis kommt bei den Graphen die Meldung:
                                    IP hat Verbindung abgelehnt.
                                    Wenn ich Grafana öffne erscheinen meine angelegten
                                    Dashboards nicht.
                                    Gibt es eine Möglichkeit sie zu finden?
                                    Graf2.png
                                    Ist das Protokoll so ok?
                                    Mit freundlichen Grüßen
                                    Michael

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

                                      @altersrentner sagte in [ Geklärt ] Problem bei Influx Installation:

                                      In vis kommt bei den Graphen die Meldung:
                                      IP hat Verbindung abgelehnt.

                                      du meinst bei der Einbindung eines Dashboards in vis? dein Rechner hat ja nun ne neue Ip oder? Dann stimmt ja der Pfad nicht mehr(IP).
                                      in deinem Screen, sofern ichs richtig entziffern kann, steht dein api key, bez. Nutzername/Passwort falsch

                                      @altersrentner sagte in [ Geklärt ] Problem bei Influx Installation:

                                      IP hat Verbindung abgelehnt.

                                      du musst auch wieder die Grafana.ini bearbeiten

                                      sudo nano /etc/grafana/grafana.ini
                                      

                                      dort musst du folgende Einträge anppassen(ebenfalls das ; vor jeder dieser Zeilen entfernen, damit dies aktiv werden
                                      orgName musst du natürlich mit deinem ersetzen

                                      [security]
                                      allow_embedding = true
                                       
                                      [auth.anonymous]
                                      enabled = true 
                                      org_name = Main Org.
                                      org_role = Viewer
                                       
                                      [users]
                                      allow_sign_up = false
                                      

                                      anschliesssend grafana-server neustarten

                                      sudo service grafana-server restart
                                      
                                      A 3 Replies Last reply Reply Quote 0
                                      • A
                                        Altersrentner @crunchip last edited by

                                        @crunchip sagte in [ Geklärt ] Problem bei Influx Installation:

                                        dein Rechner hat ja nun ne neue Ip oder? Dann stimmt ja der Pfad nicht mehr(IP).
                                        Hallo,
                                        Neindie IP ist geblieben. Benutzer und Passwort solten auch richtig sein..
                                        Ich stecke nochmal die alte FP an. Mal sehen ob ich was finde
                                        MfG Michael

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

                                          @crunchip
                                          Bei mir steht ei Semikolon vor.
                                          Bleibt das stehen?

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

                                            @crunchip
                                            Die ini ist bearbeitet

                                            DEBUG] [grafana] - Start Grafana Restore ...
                                            [DEBUG] [grafana] - filename for restore: /opt/iobroker/backups/grafana_2021_03_08-02_18_32_backupiobroker.tar.gz
                                            [DEBUG] [grafana] - Grafana tmp directory created: /opt/iobroker/backups/grafana_tmp
                                            [DEBUG] [grafana] - start decompress
                                            [DEBUG] [grafana] - Grafana request started
                                            [DEBUG] [grafana] - Grafana is available ... Status: 200
                                            [DEBUG] [grafana] - Try to Restore: /opt/iobroker/backups/grafana_tmp/datasource/InfluxDB-1.json
                                            [DEBUG] [grafana] - Try to Restore: /opt/iobroker/backups/grafana_tmp/datasource/InfluxDB.json
                                            [DEBUG] [grafana] - datasoure restore "InfluxDB-1" finish: {"datasource":{"id":2,"uid":"s1r54cgRz","orgId":1,"name":"InfluxDB-1","type":"influxdb","typeLogoUrl":"","access":"proxy","url":"http://192.168.178.41:8086","password":"","user":"admin","database":"iobroker","basicAuth":false,"basicAuthUser":"","basicAuthPassword":"","withCredentials":false,"isDefault":false,"jsonData":{"httpMode":"GET"},"secureJsonFields":{},"version":1,"readOnly":false},"id":2,"message":"Datasource added","name":"InfluxDB-1"}
                                            [DEBUG] [grafana] - cannot restore datasource "InfluxDB": "data source with the same name already exists"
                                            [DEBUG] [grafana] - Try to Restore: /opt/iobroker/backups/grafana_tmp/dashboards/n1-aussen-wz.json
                                            [DEBUG] [grafana] - cannot restore dashboard "n1-aussen-wz": {"message":"invalid API key"}
                                            [DEBUG] [grafana] - Grafana request ended
                                            [DEBUG] [grafana] - Try deleting the Grafana tmp directory
                                            [DEBUG] [grafana] - Grafana tmp directory was successfully deleted
                                            [DEBUG] [grafana] - Grafana Restore completed successfully
                                            [EXIT] Grafana restore done
                                            

                                            Da stehen die Daten:

                                            /opt/iobroker/backups/grafana_tmp/dashboards/n1-aussen-wz.json
                                            [DEBUG] [grafana] - cannot restore dashboard "n1-aussen-wz": 
                                            

                                            irgend etwas stimmt noch nicht

                                            crunchip 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

                                            1.1k
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            influxdb
                                            12
                                            178
                                            27959
                                            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