Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. InfluxDB
    5. InfluxDB installieren wie

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    InfluxDB installieren wie

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

      @mico

      https://forum.iobroker.net/topic/59231/phantastische-repositories-und-wo-sie-zu-finden-sind?_=1730787835545

      Und Fehlermeldungen bitte im Wortlaut hier rein, damit man sieht welcher Fehler es denn sein könnte.

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

        auf diesen befehl

        1.) wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
        Meldung: Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
        OK
        2.) source /etc/lsb-release
        Meldung: -bash: /etc/lsb-release: No such file or directory
        3.) echo "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee
        /etc/apt/sources.list.d/influxdb.list
        Meldung: deb https://repos.influxdata.com/ stable
        4.) sudo apt-get update && sudo apt-get install influxdb
        Meldung: E: Malformed entry 1 in list file /etc/apt/sources.list.d/influxdb.list (Component)
        E: The list of sources could not be read.
        5.) sudo service influxdb start
        Meldung: Failed to start influxdb.service: Unit influxdb.service not found.
        6:) sudo apt update
        Meldung: E: Malformed entry 1 in list file /etc/apt/sources.list.d/influxdb.list (Component)
        E: The list of sources could not be read.
        7.) apt-get install gnupg
        Meldung: E: Malformed entry 1 in list file /etc/apt/sources.list.d/influxdb.list (Component)
        E: The list of sources could not be read.
        8.) apt install influxdb-client
        Meldung wie in Punkt 6 und 7
        9.) influx
        Meldung: -bash: influx: command not found

        Anleitung von Homepage Smarthome-tricks

        Gruß
        Mico

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

          @mico

          Dann mach es wie von mir gepostet.

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

            @mico

            Und dem Kollegen kannst du eine Nachricht hinterlassen, das seine Anleitung veraltet ist.

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

              @thomas-braun

              Danke für die Anleitung

              Wie sieht es denn mit Grafana aus?
              bei sudo rm /etc/apt/sources.list.d/grafana*
              kommt diese Meldung:
              rm: cannot remove '/etc/apt/sources.list.d/grafana*': No such file or directory

              Gruß
              Mico

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

                @mico sagte in InfluxDB installieren wie:

                No such file or directory

                Dann gibt es die Datei, die gelöscht werden soll erst gar nicht. Also nicht weiter wild.

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

                  @thomas-braun
                  so influxDB ist ja jetzt installiert der Adapter gibt leider das er nicht mit Geräten oder Diensten verbunden ist.

                  Die Einstellungen der Instanz wurden noch nicht verändert, was muss ich den dort alles eintragen damit er den Dienst erkennt und akzeptiert.

                  Bei einem zu überwachenden Objekt (Waschmaschine) habe ich influxDB aktiviert.

                  Gruß
                  Mico

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

                    @mico sagte in InfluxDB installieren wie:

                    Die Einstellungen der Instanz wurden noch nicht verändert, was muss ich den dort alles eintragen damit er den Dienst erkennt und akzeptiert.

                    Die Daten zum influxdb-Server... Token usw.
                    Genaueres kann ich dir aber auch nicht sagen, ich habe influxdb nicht im Einsatz.

                    1 Reply Last reply Reply Quote 0
                    • L
                      Laser last edited by Laser

                      @mico nach welcher Anleitung genau hast Du influxDB installiert? Es gibt ja x fehlerhafte Anleitungen...Mit diesem Befehl kommen gleich Fehlermeldungen:

                      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 
                      
                      /etc/apt/sources.list.d $ 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
                      -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
                      
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Laser last edited by

                        @laser

                        Mach es so:

                        sudo rm /etc/apt/sources.list.d/influ*
                        
                        wget -q https://repos.influxdata.com/influxdata-archive_compat.key
                        
                        echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdata-archive_compat.gpg > /dev/null
                        
                        echo 'deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list
                        
                        rm influxdata-archive_compat.key
                        
                        L 1 Reply Last reply Reply Quote 0
                        • L
                          Laser @Thomas Braun last edited by Laser

                          @thomas-braun Danke, so funktioniert es bei mir nicht. Diese beiden echo Befehle einzeln oder zusammen ausführen? Habe Beides versucht, ohne Erfolg. In der influxdata.list steht jetzt folgendes:

                          deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main
                          
                          

                          und:

                          /etc/apt/sources.list.d $ rm influxdata-archive_compat.key
                          rm: cannot remove 'influxdata-archive_compat.key': No such file or directory
                          
                          

                          stehe ich im falschen Verzeichnis? Ich gehe ganz zurück. Da funktioniert es.

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

                            @laser

                            Die fünf Zeilen auch zeilenweise in dein Terminal kopieren.

                            1 Reply Last reply Reply Quote 0
                            • L
                              Laser @Laser last edited by

                              @Thomas Braun
                              Bei dieser Zeile kommt:

                              /etc/apt/sources.list.d $ echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdata-archive_compat.gpg > /dev/null
                              sha256sum: influxdata-archive_compat.key: No such file or directory
                              influxdata-archive_compat.key: FAILED open or read
                              sha256sum: WARNING: 1 listed file could not be read
                              
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Laser last edited by Thomas Braun

                                @laser

                                Keine Ahnung was du da machst...
                                Stell dich in dein /home und nicht in /etc/apt/irgendwas herumspuken.

                                Bei mir läuft das ohne weiteres durch:

                                echad@chet:~ $ sudo rm /etc/apt/sources.list.d/influ*
                                echad@chet:~ $ wget -q https://repos.influxdata.com/influxdata-archive_compat.key
                                echad@chet:~ $ echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdata-archive_compat.gpg > /dev/null
                                influxdata-archive_compat.key: OK
                                echad@chet:~ $ echo 'deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list
                                deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main
                                echad@chet:~ $ rm influxdata-archive_compat.key
                                echad@chet:~ $ 
                                
                                

                                Edit: Klar, du darfst als user nicht in /etc/apt herumschreiben. Deswegen funktioniert das auch nicht.
                                Also per cd in dein eigenes Verzeichnis hüpfen.

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

                                  @thomas-braun ja, ich bin ganz zurückgegangen und da lassen sich diese 5 Zeilen fehlerfrei ausführen.
                                  versuche jetzt weiter:

                                  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
                                  

                                  aber:

                                  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
                                  -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
                                  
                                  
                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Laser last edited by

                                    @laser

                                    ???
                                    WAS tust du da?
                                    Den key hast du doch gerade mit meinen fünf Zeilen angelegt, jetzt ziehst du da wieder 'irgendwas' anderes rein.
                                    Kann ja nicht funktionieren, wenn du kreuz und quer irgendwas da reinklatschst.

                                    Noch mal meine fünf Zeilen. Und dann ist auch influx über den Paketmanager installierbar:

                                    sudo apt update
                                    apt policy influxdb2
                                    
                                    L 1 Reply Last reply Reply Quote 0
                                    • L
                                      Laser @Thomas Braun last edited by Laser

                                      @thomas-braun Habe ich gemacht (ne die 5 Zeilen).Ein Problem gibt es noch (Influxdb läßt sich auch nicht starten).

                                      $ apt policy influxdb2
                                      influxdb2:
                                        Installed: 2.7.11-1
                                        Candidate: 2.7.11-1
                                        Version table:
                                       *** 2.7.11-1 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                              100 /var/lib/dpkg/status
                                           2.7.10-1 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                           2.7.9-1 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                           2.7.8-1 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                           2.7.7-1 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                           2.7.6-1 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                           2.7.5-1 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                           2.7.4-1 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                           2.7.3-1 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                           2.7.1-1 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                           2.7.0-1 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                           2.6.1-1 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                           2.6.0-1 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                           2.5.1-1 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                           2.4.0-1 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                           2.3.0-1 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                           2.2.0 500
                                              500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                      N: Ignoring file 'export' in directory '/etc/apt/sources.list.d/' as it has no filename extension
                                      
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @Laser last edited by

                                        @laser sagte in InfluxDB installieren wie:

                                        /etc/apt/sources.list.d/
                                        Da haste dir jetzt irgendwelchen Unfug in das Verzeichnis geballert.

                                        ls -lh /etc/apt/sources.list.d/
                                        
                                        L 1 Reply Last reply Reply Quote 0
                                        • L
                                          Laser @Thomas Braun last edited by Laser

                                          @thomas-braun sagte in InfluxDB installieren wie:

                                          ls -lh /etc/apt/sources.list.d/

                                           ls -lh /etc/apt/sources.list.d/
                                          total 20K
                                          -rw-r--r-- 1 root root 2.8K Jan  1 14:53 export
                                          -rw-r--r-- 1 root root   60 Nov 20  2023 grafana.list
                                          -rw-r--r-- 1 root root  114 Jan  1 15:18 influxdata.list
                                          -rw-r--r-- 1 root root  100 Oct 15 18:10 nodesource.list
                                          -rw-r--r-- 1 root root  191 Oct 10  2023 raspi.list
                                          
                                          

                                          in influxdata.list steht:

                                          deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main
                                          
                                          
                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Laser last edited by

                                            @laser sagte in InfluxDB installieren wie:

                                            /etc/apt/sources.list.d/

                                            sudo rm /etc/apt/sources.list.d/export
                                            

                                            Und gewöhn dir bitte an, die Ein- und Ausgaben aus der Konsole VOLLSTÄNDIG zu posten.
                                            Dann würde man nämlich eher sehen, mit welchem user du da in welchem Verzeichnis herumhampelst.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            973
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            3
                                            48
                                            2022
                                            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