Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst]Hilfe InfluxDB

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [gelöst]Hilfe InfluxDB

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

      Hallo zusammen,
      ich möchte gerne Grafana nutzen und habe gelesen, dass man dafür eine Datenbank braucht. Habe mehrmals versucht eine InfluxDB zu installieren aber ich scheitere schon daran. Ich habe mehrere Anleitungen gefunden und befolgt, jedoch scheitert es wenn ich den befehl influxd eingeben soll um die db zu öffnen.
      könnte mir da jemand helfen?
      Hier ist das, was ich eingegeben habe

      
      pi@raspberrypi4-io:~ $ influxd
      pi@raspberrypi4-io:~ $ curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
      echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
      sudo apt update
      sudo apt install influxdb
      sudo systemctl enable influxdb
      sudo systemctl start influxdbOK
      pi@raspberrypi4-io:~ $ echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
      deb https://repos.influxdata.com/debian stretch stable
      pi@raspberrypi4-io:~ $ sudo apt update
      OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
      OK:2 http://archive.raspberrypi.org/debian buster InRelease
      Holen:3 https://repos.influxdata.com/debian stretch InRelease [4.732 B]
      OK:4 https://deb.nodesource.com/node_10.x buster InRelease
      Holen:5 https://repos.influxdata.com/debian stretch/stable armhf Packages [925 B]
      Es wurden 5.657 B in 1 s geholt (4.159 B/s).
      Paketlisten werden gelesen... Fertig
      Abhängigkeitsbaum wird aufgebaut.
      Statusinformationen werden eingelesen.... Fertig
      Aktualisierung für 71 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
      pi@raspberrypi4-io:~ $ sudo apt install influxdb
      Paketlisten werden gelesen... Fertig
      Abhängigkeitsbaum wird aufgebaut.
      Statusinformationen werden eingelesen.... Fertig
      influxdb ist schon die neueste Version (1.7.10-1).
      0 aktualisiert, 0 neu installiert, 0 zu entfernen und 71 nicht aktualisiert.
      pi@raspberrypi4-io:~ $ sudo systemctl enable influxdb
      pi@raspberrypi4-io:~ $ sudo systemctl start influxdb
      
      
       8888888           .d888 888                   8888888b.  888888b.
         888            d88P"  888                   888  "Y88b 888  "88b
         888            888    888                   888    888 888  .88P
         888   88888b.  888888 888 888  888 888  888 888    888 8888888K.
         888   888 "88b 888    888 888  888  Y8bd8P' 888    888 888  "Y88b
         888   888  888 888    888 888  888   X88K   888    888 888    888
         888   888  888 888    888 Y88b 888 .d8""8b. 888  .d88P 888   d88P
       8888888 888  888 888    888  "Y88888 888  888 8888888P"  8888888P"
      
      2020-02-15T20:43:03.121573Z     info    InfluxDB starting       {"log_id": "0KzeI4KG000", "version": "1.7.10", "branch": "1.7", "commit": "f46f63d4e2d9684a2dd716594ab609ccd32f0a5b"}
      2020-02-15T20:43:03.121638Z     info    Go runtime      {"log_id": "0KzeI4KG000", "version": "go1.12.6", "maxprocs": 4}
      run: create server: open /var/lib/influxdb/meta/meta.dbtmp: permission denied
      pi@raspberrypi4-io:~ $ CREATE USER "admin" WITH PASSWORD '<admin>' WITH ALL PRIVILEGES
      -bash: CREATE: Kommando nicht gefunden.
      pi@raspberrypi4-io:~ $ CREATE USER "user" WITH PASSWORD '<user>'
      -bash: CREATE: Kommando nicht gefunden.
      pi@raspberrypi4-io:~ $ CREATE DATABASE "iobroker"
      -bash: CREATE: Kommando nicht gefunden.
      pi@raspberrypi4-io:~ $ GRANT ALL ON "iobroker" TO "user"
      
      ostseereiter crunchip 2 Replies Last reply Reply Quote 0
      • ostseereiter
        ostseereiter @Dominik F. last edited by

        @Dominik-F Hier ist eine Superanleitung!

        Dominik F. 1 Reply Last reply Reply Quote 0
        • Dominik F.
          Dominik F. @ostseereiter last edited by

          @ostseereiter

          Das ist die Anleitung wo ich oben beschriebenen Fehler bekomme

          ostseereiter harrym 2 Replies Last reply Reply Quote 0
          • ostseereiter
            ostseereiter @Dominik F. last edited by

            @Dominik-F ok ich habe das noch nicht gemacht wollte es noch.

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

              @Dominik-F machs so wie hier beschrieben

              1 Reply Last reply Reply Quote 0
              • Dominik F.
                Dominik F. @ostseereiter last edited by

                @ostseereiter

                die gleiche Beschreibung hab ich jetzt schon öfters gelesen daher denke ich das das Problem ab mir oder meinem system liegt 😕

                1 Reply Last reply Reply Quote 0
                • harrym
                  harrym @Dominik F. last edited by harrym

                  @Dominik-F für die Datenbankbefehle musst du in der flux sein ... also erstmal die flux cli aufrufen (sudo influx) ....

                  Dominik F. 1 Reply Last reply Reply Quote 0
                  • Dominik F.
                    Dominik F. @harrym last edited by

                    @harrym

                    Wenn ich das eingebe kommt folgendes:

                    pi@raspberrypi4-io:~ $ sudo influx
                    Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: connect: connection refused
                    Please check your connection settings and ensure 'influxd' is running.
                    

                    @crunchip
                    also hab mir die ersten Minuten mal angeschaut und da müsste ich irgendwas installieren was Proxmos heisst und dann elexe oder sowas erstellen. Da ich den Anfang schon nicht verstehe hoffe ich, dass es auch eine Möglichkeit gibt ohne diese beiden sachen

                    harrym crunchip 2 Replies Last reply Reply Quote 0
                    • harrym
                      harrym @Dominik F. last edited by harrym

                      @Dominik-F deine influx läuft nicht! versuch mal "sudo systemctl enable --now influxdb" und dann ein "systemctl status influxdb"

                      gugg mal ==> https://computingforgeeks.com/install-influxdb-on-debian-10-buster-linux/ ... ist die standardinstallation unter Debian ohne Proxmox und co .

                      Dominik F. 1 Reply Last reply Reply Quote 0
                      • Dominik F.
                        Dominik F. @harrym last edited by

                        @harrym
                        Ich schau mir die Seite gleich an, danke.
                        das spuckt er dann aus :

                        pi@raspberrypi4-io:~ $ sudo systemctl enable --now influxdb
                        pi@raspberrypi4-io:~ $ systemctl status influxdb
                        ● influxdb.service - InfluxDB is an open-source, distributed, time series database
                           Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
                           Active: active (running) since Sun 2020-02-16 00:24:46 CET; 5s ago
                             Docs: https://docs.influxdata.com/influxdb/
                         Main PID: 1843 (influxd)
                            Tasks: 8 (limit: 4915)
                           Memory: 7.3M
                           CGroup: /system.slice/influxdb.service
                                   └─1843 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
                        
                        Feb 16 00:24:46 raspberrypi4-io systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
                        
                        
                        harrym 1 Reply Last reply Reply Quote 0
                        • harrym
                          harrym @Dominik F. last edited by

                          @Dominik-F Jetzt läuft die Datenbank. somit jetzt via CLI anmelden ... und dann kannste deine CREATES und Grants ausführen ... wobei die sich auf ne mySQL Datenbank beziehen ... mMn ....

                          Dominik F. 1 Reply Last reply Reply Quote 0
                          • Dominik F.
                            Dominik F. @harrym last edited by

                            @harrym

                            bekommen wieder den gleichen Fehler

                            pi@raspberrypi4-io:~ $ influx
                            Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: connect: connection refused
                            Please check your connection settings and ensure 'influxd' is running.
                            pi@raspberrypi4-io:~ $ sudo influx
                            Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: connect: connection refused
                            Please check your connection settings and ensure 'influxd' is running.
                            pi@raspberrypi4-io:~ $
                            
                            
                            harrym 1 Reply Last reply Reply Quote 0
                            • harrym
                              harrym @Dominik F. last edited by

                              @Dominik-F dein Problem dürfte in den Netzwerksettings von deinem PI liegen .... hosts und ip settings alle richtig?

                              Dominik F. 1 Reply Last reply Reply Quote 0
                              • Dominik F.
                                Dominik F. @harrym last edited by

                                @harrym

                                ich hab den pi vor nem halben Jahr nach Anleitungen im Internet installiert. Ich kann dir nicht sagen ob die hosts und ip settings richtig sind weil ich nicht weiß wie sie richtig sein sollten. Ich kann nur sagen das bisher alles lief.
                                Wie sollten die Settings denn sein und wo kann ich überprüfen ob die richtig sind?

                                harrym 1 Reply Last reply Reply Quote 0
                                • harrym
                                  harrym @Dominik F. last edited by

                                  @Dominik-F mach mal ein ===> sudo netstat -antp | grep "influx"

                                  Dominik F. 1 Reply Last reply Reply Quote 0
                                  • Dominik F.
                                    Dominik F. @harrym last edited by

                                    @harrym

                                    wenn ich das eingebe passiert gar nichts und der Fehler bleibt

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

                                      @Dominik-F proxmox ist nur das system....wichtig sind die befehle....ab minute 32 ,
                                      unabhängig davon, alles auf einen raspberry laufen zu lassen, macht meines Erachtens eher wenig Sinn

                                      harrym Dominik F. 2 Replies Last reply Reply Quote 0
                                      • harrym
                                        harrym @crunchip last edited by

                                        @crunchip proxmox ist eine visualisierung! und in soeinem zusammenhang nur verwirrend.

                                        1 Reply Last reply Reply Quote 0
                                        • Dominik F.
                                          Dominik F. @crunchip last edited by

                                          @crunchip

                                          Okay, kannst du das weiter erläutern warum das keinen Sinn macht? Wie du sicher bemerkt hast bin ich absoluter anfänger.....ich fand die Grafana Grafiken schön und wollte die auch haben 😄

                                          harrym 1 Reply Last reply Reply Quote 0
                                          • harrym
                                            harrym @Dominik F. last edited by harrym

                                            @Dominik-F wennste schöne grafiken haben willst ... geht auch über history und rickshaw

                                            Dominik F. 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

                                            456
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            influxdb
                                            4
                                            62
                                            8631
                                            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