Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. InfluxDB
    5. Benötige Hilfe bei Influx DB

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    Benötige Hilfe bei Influx DB

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

      Hallo,
      Nachdem mein System neu installiert wurde und anschließend mittels Backup
      in den Betriebszustand versetzt ist hänge ich an der Influx7 Grafana Installation.
      Eigentlich sollte es von Grafana auch eine Sicherung geben, aber es ist nun mal nicht so.
      Mit meinen alten Installationsaufzeichnungen komme ich nicht weiter. Es hängt immer an einem veralteten Code.
      Jetzt habe ich hier im Forum eine neue Anleitung gefunden, Mit der ich aber auch nicht weiter komme.
      Hier der Code der besagten Anleitung.

      Zum Installieren von InfluxDB genügen zwei Befehle im Terminal.
      1. wget -qO- https://repos.influxdata.com/influxdb.key | gpg --dearmor | 
      sudo tee /etc/apt/trusted.gpg.d/influxdb.gpg > /dev/null export 
      DISTRIB_ID=$(lsb_release -si); export DISTRIB_CODENAME=$(lsb_release -
      sc) echo "deb [signed-by=/etc/apt/trusted.gpg.d/influxdb.gpg] 
      https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} 
      stable" | sudo tee /etc/apt/sources.list.d/influxdb.list > /dev/null
      2. sudo apt-get update && sudo apt-get install influxdb2
      Dass InfluxDB beim Booten ebenfalls als Service gestartet wird, bewirkt folgender Befehl .
      

      Und hier das Ergebnis bei mir:

      pi@raspberrypiioBroker:~ $ wget -qO- https://repos.influxdata.com/influxdb.key | gpg --dearmor |
      > sudo tee /etc/apt/trusted.gpg.d/influxdb.gpg > /dev/null export
      DISTRIB_ID=$(lsb_release -si); export DISTRIB_CODENAME=$(lsb_release -
      sc) echo "deb [signed-by=/etc/apt/trusted.gpg.d/influxdb.gpg]
      https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME}
      stable" | sudo tee /etc/apt/sources.list.d/influxdb.list > /dev/null
      Usage: lsb_release [options]
      
      lsb_release: error: No arguments are permitted
      -bash: sc: command not found
      -bash: export: `deb [signed-by=/etc/apt/trusted.gpg.d/influxdb.gpg]
      https://repos.influxdata.com/debian
      stable': not a valid identifier
      pi@raspberrypiioBroker:~ $ sudo apt-get update && sudo apt-get install influxdb2
      Hit:1 http://deb.debian.org/debian bullseye InRelease
      Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
      Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
      Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
      Get:5 https://packages.grafana.com/oss/deb stable InRelease [12.1 kB]
      Hit:6 https://deb.nodesource.com/node_16.x bullseye InRelease
      Get:7 https://packages.grafana.com/oss/deb stable/main armhf Packages [36.0 kB]
      Get:8 https://packages.grafana.com/oss/deb stable/main arm64 Packages [26.5 kB]
      Fetched 119 kB in 2s (65.8 kB/s)
      Reading package lists... Done
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      E: Unable to locate package influxdb2
      pi@raspberrypiioBroker:~ $ sudo service influxdb start
      Failed to start influxdb.service: Unit influxdb.service not found.
      pi@raspberrypiioBroker:~ $ iob start
      pi@raspberrypiioBroker:~ $
      
      

      Wo liegt mein Problem bzw. wie kann ich weiter kommen.
      Gruß Michael

      Homoran 1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators last edited by

        ich habe das mal nach OffTopic verschoben. InfluxDB und Grafana sind keine Bestandteile von ioBroker sonder "Fremdprogramme" die "nur" mit Daten von ioBroker gefüttert werden.

        @altersrentner sagte in Benötige Hilfe bei Influx DB:

        Eigentlich sollte es von Grafana auch eine Sicherung geben

        wie hast du denn Grafana gesichert?

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

          @homoran Danke

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

            @altersrentner

            wget -q https://repos.influxdata.com/influxdb.key
            echo '23a1c8836f0afc5ed24e0486339d7cc8f6790b83886c4c96995b88a061c5bb5d influxdb.key' | sha256sum -c && cat influxdb.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdb.gpg > /dev/null
            echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdb.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list
            
            sudo apt update && sudo apt install influxdb2
            
            A 1 Reply Last reply Reply Quote 0
            • A
              Altersrentner @Thomas Braun last edited by

              @thomas-braun
              Danke für Deine Hilfe.

              pi@raspberrypiioBroker:~ $ wget -q https://repos.influxdata.com/influxdb.key
              pi@raspberrypiioBroker:~ $ echo '23a1c8836f0afc5ed24e0486339d7cc8f6790b83886c4c96995b88a061c5bb5d influxdb.key' | sha256sum -c && cat influxdb.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdb.gpg > /dev/null
              influxdb.key: OK
              pi@raspberrypiioBroker:~ $ echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdb.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list
              deb [signed-by=/etc/apt/trusted.gpg.d/influxdb.gpg] https://repos.influxdata.com/debian stable main
              pi@raspberrypiioBroker:~ $ sudo apt update && sudo apt install influxdb2
              Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
              Hit:2 http://deb.debian.org/debian bullseye InRelease
              Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
              Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
              Get:5 https://repos.influxdata.com/debian stable InRelease [4,645 B]
              Hit:6 https://deb.nodesource.com/node_16.x bullseye InRelease
              Hit:7 https://packages.grafana.com/oss/deb stable InRelease
              Get:8 https://repos.influxdata.com/debian stable/main armhf Packages [779 B]
              Get:9 https://repos.influxdata.com/debian stable/main arm64 Packages [1,260 B]
              Fetched 50.8 kB in 2s (26.0 kB/s)
              Reading package lists... Done
              Building dependency tree... Done
              Reading state information... Done
              All packages are up to date.
              Reading package lists... Done
              Building dependency tree... Done
              Reading state information... Done
              The following additional packages will be installed:
                influxdb2-cli
              The following NEW packages will be installed:
                influxdb2 influxdb2-cli
              0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
              Need to get 94.3 MB of archives.
              After this operation, 160 MB of additional disk space will be used.
              Do you want to continue? [Y/n] y
              Get:1 https://repos.influxdata.com/debian stable/main arm64 influxdb2 arm64 2.3.0-1 [89.4 MB]
              Get:2 https://repos.influxdata.com/debian stable/main arm64 influxdb2-cli arm64 2.3.0 [4,953 kB]
              Fetched 94.3 MB in 17s (5,603 kB/s)
              Selecting previously unselected package influxdb2.
              (Reading database ... 45845 files and directories currently installed.)
              Preparing to unpack .../influxdb2_2.3.0-1_arm64.deb ...
              Unpacking influxdb2 (2.3.0-1) ...
              Selecting previously unselected package influxdb2-cli.
              Preparing to unpack .../influxdb2-cli_2.3.0_arm64.deb ...
              Unpacking influxdb2-cli (2.3.0) ...
              Setting up influxdb2 (2.3.0-1) ...
              Created symlink /etc/systemd/system/influxd.service → /lib/systemd/system/influxdb.service.
              Created symlink /etc/systemd/system/multi-user.target.wants/influxdb.service → /lib/systemd/system/influxdb.service.
              Setting up influxdb2-cli (2.3.0) ...
              pi@raspberrypiioBroker:~ $ sudo service influxdb2 start
              Failed to start influxdb2.service: Unit influxdb2.service not found.
              pi@raspberrypiioBroker:~ $ sudo service influxdb start
              pi@raspberrypiioBroker:~ $ sudo influx
              NAME:
                 influx - Influx Client
              
              USAGE:
                 influx [command]
              
              COMMANDS:
                 version              Print the influx CLI version
                 write                Write points to InfluxDB
                 bucket               Bucket management commands
                 completion           Generates completion scripts
                 query                Execute a Flux query
                 config               Config management commands
                 org, organization    Organization management commands
                 delete               Delete points from InfluxDB
                 user                 User management commands
                 task                 Task management commands
                 telegrafs            List Telegraf configuration(s). Subcommands manage Telegraf configurations.
                 dashboards           List Dashboard(s).
                 export               Export existing resources as a template
                 secret               Secret management commands
                 v1                   InfluxDB v1 management commands
                 auth, authorization  Authorization management commands
                 apply                Apply a template to manage resources
                 stacks               List stack(s) and associated templates. Subcommands manage stacks.
                 template             Summarize the provided template
                 bucket-schema        Bucket schema management commands
                 ping                 Check the InfluxDB /health endpoint
                 setup                Setup instance with initial user, org, bucket
                 backup               Backup database
                 restore              Restores a backup directory to InfluxDB
                 remote               Remote connection management commands
                 replication          Replication stream management commands
                 server-config        Display server config
                 help, h              Shows a list of commands or help for one command
              
              GLOBAL OPTIONS:
                 --help, -h  show help
              pi@raspberrypiioBroker:~ $
              
              

              Muss ich jetzt noch Rechte einfügen? Etwa so?

              CREATE USER "admin" WITH PASSWORD '<adminpassword>' WITH ALL PRIVILEGES
              CREATE USER "user" WITH PASSWORD '<userpassword>'
              CREATE DATABASE "iobroker"
              GRANT ALL ON "iobroker" TO "user"
              
              Thomas Braun R 2 Replies Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Altersrentner last edited by

                @altersrentner

                Ich setzte kein influx ein. Wie das zu konfigurieren ist kann ich dir nicht sagen.

                1 Reply Last reply Reply Quote 0
                • DJMarc75
                  DJMarc75 @Homoran last edited by DJMarc75

                  @homoran sagte in Benötige Hilfe bei Influx DB:

                  wie hast du denn Grafana gesichert?

                  Leider garnicht !

                  @altersrentner sagte in Benötige Hilfe bei Influx DB:

                  Muss ich jetzt noch Rechte einfügen?

                  Mach langsam damit.
                  Welche Anleitung hast Du genutzt ??

                  EDIT:
                  Du hast hoffentlich jetzt nicht influxdb2 installiert ???????????????????

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

                    @djmarc75

                    apt install influxdb2
                    

                    haut influxdb2 auf die Kiste.

                    Homoran DJMarc75 2 Replies Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @Thomas Braun last edited by

                      @thomas-braun sagte in Benötige Hilfe bei Influx DB:

                      @djmarc75

                      apt install influxdb2
                      

                      haut influxdb2 auf die Kiste.

                      aber nur mit 64bit

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

                        @homoran

                        Mit 32bit kann der nicht installiert werden, weil der dann gar nicht in der Auslage liegt.

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

                          @thomas-braun sagte in Benötige Hilfe bei Influx DB:

                          haut influxdb2 auf die Kiste.

                          Das wollen wir eigentlich vermeiden weil ... siehe gestern 😉

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

                            @djmarc75

                            Altersrentner kam mit influxdb2 an. Ich hab nur das Repo gerade gerückt. Aus der Quelle kann man ja beides schöpfen. Was dann da installiert und benötigt wird muss jeder selber wissen.

                            DJMarc75 1 Reply Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @Altersrentner last edited by

                              @thomas-braun sagte in Benötige Hilfe bei Influx DB:

                              weil der dann gar nicht in der Auslage liegt.

                              etwa so?

                              @altersrentner sagte in Benötige Hilfe bei Influx DB:

                              Unable to locate package influxdb2

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

                                @thomas-braun sagte in Benötige Hilfe bei Influx DB:

                                Altersrentner kam mit influxdb2 an

                                Jetzt hab ichs auch gesehen.... dann wird das hier wieder ein langer Thread 😩

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

                                  @homoran sagte in Benötige Hilfe bei Influx DB:

                                  etwa so?

                                  Nein, nicht so. Das lag ja am nicht korrekt eingebundenen Repo. Da hätte man auch kein influx1 drüber bekommen.

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

                                    @djmarc75 sagte in Benötige Hilfe bei Influx DB:

                                    Jetzt hab ichs auch gesehen.... dann wird das hier wieder ein langer Thread

                                    Da hast Du aber eine schlechte Meinung von mir😧

                                    Stand der Dinge aktuell:
                                    IoBroker läuft
                                    InfluxDB läuft
                                    Grafana läuft

                                    Soweit so gut
                                    Es fehlt nur noch die Verbindung von Grafana mit der InfluxDB

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

                                      @altersrentner sagte in Benötige Hilfe bei Influx DB:

                                      Da hast Du aber eine schlechte Meinung von mir

                                      Quatsch.
                                      Aber jetzt zum Thema. Welche influxdb hast Du denn nun installiert ? DIe 1er oder 2er?
                                      Und welche hattest Du vorher ?

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

                                        @djmarc75 sagte in Benötige Hilfe bei Influx DB:

                                        Aber jetzt zum Thema. Welche influxdb hast Du denn nun installiert ? DIe 1er oder 2er?

                                        Ich denke 1

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

                                          @altersrentner sagte in Benötige Hilfe bei Influx DB:

                                          Ich denke 1

                                          influxd version
                                          
                                          A 1 Reply Last reply Reply Quote 0
                                          • A
                                            Altersrentner @DJMarc75 last edited by

                                            @djmarc75
                                            In der influxDB muss unter Settings Benutzer und Passwort eingestellt werden.
                                            Dort stehen jetzt noch durch das eingespielte Backup die alten Daten drin.
                                            Das Passwort habe ich aber vergessen.
                                            Da es keine Sicherung von Grafana gibt, muss ich dort unter Datenquellen/Einstellungen/influxDB
                                            ganz unten:
                                            Datenbannk: iobroker
                                            Benutzer: admin
                                            Passwort:?
                                            eingeben.
                                            Das ist doch das Passwort aus der influxDB, oder?
                                            Wenn ja, kann ich ein neues Passwort vergeben?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            510
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            109
                                            5983
                                            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