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 last edited by

      @altersrentner Das ist jetzt deine alte HDD ?

      sudo systemctl status grafana-server
      
      A 1 Reply Last reply Reply Quote 0
      • A
        Altersrentner @wendy2702 last edited by

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

        sudo systemctl status grafana-server

        pi@raspberrypi:/opt/iobroker $ sudo systemctl status grafana-server
        ● grafana-server.service - Grafana instance
           Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; enabled; vendor preset: enabled)
           Active: active (running) since Sun 2021-03-07 14:28:17 CET; 3h 59min ago
             Docs: http://docs.grafana.org
         Main PID: 606 (grafana-server)
            Tasks: 17 (limit: 4915)
           CGroup: /system.slice/grafana-server.service
                   └─606 /usr/sbin/grafana-server --config=/etc/grafana/grafana.ini --pidfile=/var/run/grafana/grafana-server.
        
        Mar 07 18:19:44 raspberrypi grafana-server[606]: t=2021-03-07T18:19:44+0100 lvl=info msg="Request Completed" logger=co
        Mar 07 18:21:23 raspberrypi grafana-server[606]: t=2021-03-07T18:21:23+0100 lvl=info msg="Request Completed" logger=co
        Mar 07 18:21:23 raspberrypi grafana-server[606]: t=2021-03-07T18:21:23+0100 lvl=info msg="Request Completed" logger=co
        Mar 07 18:21:27 raspberrypi grafana-server[606]: t=2021-03-07T18:21:27+0100 lvl=info msg="Request Completed" logger=co
        Mar 07 18:21:33 raspberrypi grafana-server[606]: t=2021-03-07T18:21:33+0100 lvl=info msg="Request Completed" logger=co
        Mar 07 18:21:34 raspberrypi grafana-server[606]: t=2021-03-07T18:21:33+0100 lvl=info msg="Request Completed" logger=co
        Mar 07 18:21:37 raspberrypi grafana-server[606]: t=2021-03-07T18:21:37+0100 lvl=info msg="Request Completed" logger=co
        Mar 07 18:21:44 raspberrypi grafana-server[606]: t=2021-03-07T18:21:44+0100 lvl=info msg="Request Completed" logger=co
        Mar 07 18:21:44 raspberrypi grafana-server[606]: t=2021-03-07T18:21:44+0100 lvl=info msg="Request Completed" logger=co
        Mar 07 18:21:47 raspberrypi grafana-server[606]: t=2021-03-07T18:21:47+0100 lvl=info msg="Request Completed" logger=co
        lines 1-19/19 (END)...skipping...
        
        
        wendy2702 1 Reply Last reply Reply Quote 0
        • wendy2702
          wendy2702 @Altersrentner last edited by

          @altersrentner Also Grafane läuft. Ich gehe davon aus das es noch deine alte HDD ist.

          Hat er jetzt ein Grafana Backup erstellt?

          Wenn es noch die alte HDD ist kopiere die Backup files per FTP runter.

          Boote wieder von SSD und mach ein Restore von Influx und Grafana mit Backitup

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

            @wendy2702 Ja es ist noch die alte HDD angeschlossen
            Nein erhat kein Grafana Backup gemacht.
            Habe eben gesehen, das unter
            Backitup Grafana der Hostname und der Grafana API Key fehlen
            Was sollich dort eintragen bzw wie bekomme ich den Key

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

              @crunchip

              pi@raspberrypi:~ $ systemctl daemon-reload
              ==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
              Authentication is required to reload the systemd state.
              Authenticating as: ,,, (pi)
              Password:
              ==== AUTHENTICATION COMPLETE ===
              pi@raspberrypi:~ $ systemctl enable influxdb
              ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ===
              Authentication is required to manage system service or unit files.
              Authenticating as: ,,, (pi)
              Password:
              ==== AUTHENTICATION COMPLETE ===
              ==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
              Authentication is required to reload the systemd state.
              Authenticating as: ,,, (pi)
              Password:
              ==== AUTHENTICATION COMPLETE ===
              pi@raspberrypi:~ $ systemctl start influxdb
              ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
              Authentication is required to start 'influxdb.service'.
              Authenticating as: ,,, (pi)
              Password:
              ==== AUTHENTICATION COMPLETE ===
              pi@raspberrypi:~ $
              
              
              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:

                Was kann ich hinsichtlich cifs machen?

                ich habe keine Ahnung was du alles eingerichtet hast, bzw was du wohin schickst um backup's zu machen. Nutzt du überhaupt cifs oder nur google drive?
                grafana läuft, aber du hast wahrscheinlich die Einstellungen für das Grafana Backup nicht richtig gesetzt.(benutzername/passwort/api-key)

                A 1 Reply Last reply Reply Quote 0
                • 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
                                            • First post
                                              Last post

                                            Support us

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

                                            902
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

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