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.
    • 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
                    • L
                      Laser @Thomas Braun last edited by Laser

                      @thomas-braun OK, mache ich. habe aus Datenschutzgründen meinen streng geheimen Usernamen weg gelassen.

                      otto@neuheizung:~ $  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
                      
                      

                      Jetzt:

                      
                      otto@neuheizung:~ $ ls -lh /etc/apt/sources.list.d/
                      total 16K
                      -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
                      
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Laser last edited by

                        @laser

                        Dann sollte das nun richtig funktionieren.

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

                          @thomas-braun eine Fehlermeldung kommt schon mal nicht mehr.

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

                            @laser

                            sudo apt update
                            

                            läuft sauber durch?

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

                              @thomas-braun sudo apt update und apt policy influxdb2 läuft durch, die influxdb läßt sich aber noch nicht starten. Muß ich noch mehr installieren? in meiner alten Anleitung stand noch:

                               sudo apt-get install -y apt-transport-https
                               sudo apt-get install -y software-properties-common wget
                              
                               evtl. zwischendurch "reboot"
                              
                              sudo apt install influxdb-client
                              sudo service influxdb start
                              sudo service influxdb status
                              
                              sudo systemctl unmask influxdb.service
                              sudo systemctl start influxdb.service
                              sudo systemctl enable influxdb.service
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Laser last edited by

                                @laser

                                Ist doch installiert:

                                influxdb2:
                                  Installed: 2.7.11-1
                                  Candidate: 2.7.11-1
                                
                                systemctl status influxdb*
                                

                                sagt?

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

                                  @thomas-braun sagte in InfluxDB installieren wie:

                                  systemctl status influxdb*

                                  otto@neuheizung:~ $ systemctl status influxdb*
                                  × influxdb.service - InfluxDB is an open-source, distributed, time series database
                                       Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; preset: enabled)
                                       Active: failed (Result: exit-code) since Wed 2025-01-01 15:33:58 CET; 4min 27s ago
                                         Docs: https://docs.influxdata.com/influxdb/
                                      Process: 12396 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=127)
                                          CPU: 8ms
                                  
                                  Jan 01 15:33:58 neuheizung systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5.
                                  Jan 01 15:33:58 neuheizung systemd[1]: Stopped influxdb.service - InfluxDB is an open-source, distributed, time series databa>
                                  Jan 01 15:33:58 neuheizung systemd[1]: influxdb.service: Start request repeated too quickly.
                                  Jan 01 15:33:58 neuheizung systemd[1]: influxdb.service: Failed with result 'exit-code'.
                                  Jan 01 15:33:58 neuheizung systemd[1]: Failed to start influxdb.service - InfluxDB is an open-source, distributed, time serie>
                                  
                                  
                                  

                                  werde noch ein reboot machen. Hat aber nicht geholfen.

                                  
                                  otto@neuheizung:~ $ systemctl status influxdb*
                                  × influxdb.service - InfluxDB is an open-source, distributed, time series database
                                       Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; preset: enabled)
                                       Active: failed (Result: exit-code) since Wed 2025-01-01 15:42:56 CET; 5s ago
                                         Docs: https://docs.influxdata.com/influxdb/
                                      Process: 799 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=127)
                                          CPU: 7ms
                                  
                                  Jan 01 15:42:56 neuheizung systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5.
                                  Jan 01 15:42:56 neuheizung systemd[1]: Stopped influxdb.service - InfluxDB is an open-source, distributed, time series database.
                                  Jan 01 15:42:56 neuheizung systemd[1]: influxdb.service: Start request repeated too quickly.
                                  Jan 01 15:42:56 neuheizung systemd[1]: influxdb.service: Failed with result 'exit-code'.
                                  Jan 01 15:42:56 neuheizung systemd[1]: Failed to start influxdb.service - InfluxDB is an open-source, distributed, time series database.
                                  otto@neuheizung:~ $ sudo service influxdb start
                                  Job for influxdb.service failed because the control process exited with error code.
                                  See "systemctl status influxdb.service" and "journalctl -xeu influxdb.service" for details.
                                  
                                  

                                  da fehlt noch was...

                                  otto@neuheizung:~ $ journalctl -xeu influxdb.service
                                  ░░ Subject: A stop job for unit influxdb.service has finished
                                  ░░ Defined-By: systemd
                                  ░░ Support: https://www.debian.org/support
                                  ░░
                                  ░░ A stop job for unit influxdb.service has finished.
                                  ░░
                                  ░░ The job identifier is 1512 and the job result is done.
                                  Jan 01 15:51:25 neuheizung systemd[1]: influxdb.service: Start request repeated too quickly.
                                  Jan 01 15:51:25 neuheizung systemd[1]: influxdb.service: Failed with result 'exit-code'.
                                  ░░ Subject: Unit failed
                                  ░░ Defined-By: systemd
                                  ░░ Support: https://www.debian.org/support
                                  ░░
                                  ░░ The unit influxdb.service has entered the 'failed' state with result 'exit-code'.
                                  Jan 01 15:51:25 neuheizung systemd[1]: Failed to start influxdb.service - InfluxDB is an open-source, distributed, time series database.
                                  ░░ Subject: A start job for unit influxdb.service has failed
                                  ░░ Defined-By: systemd
                                  ░░ Support: https://www.debian.org/support
                                  ░░
                                  ░░ A start job for unit influxdb.service has finished with a failure.
                                  ░░
                                  ░░ The job identifier is 1512 and the job result is failed.
                                  
                                  
                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Laser last edited by

                                    @laser

                                    Lt. offizieller Anleitung war es das:

                                    If InfluxDB was installed as a systemd service, systemd manages the influxd daemon and no further action is required.

                                    Was du da nun unterdessen noch nebenher anders gemacht hast weißt nur du.

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

                                      @thomas-braun Ich habe versucht, influxdb zu deinstallieren und wieder neu zu installieren. Die Daten waren mir erst mal egal. Von der letzten Installation vor 1 Jahr weiß ich noch schwach, daß z.B. ein influx-CLI gebraucht wird. Ist das nicht so? Wie das geht, habe ich mir nicht aufgeschrieben.

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

                                        @laser

                                        Das dürfte entweder influxdb2-cli oder influxdb2-client sein.

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

                                          @thomas-braun ein Influx CLI habe ich installiert. Ein Befehl scheint auch zu funktionieren:

                                          
                                          otto@neuheizung:~ $ influx config
                                          Active  Name    URL                     Org
                                          *       default http://localhost:8086
                                          
                                          

                                          allerdings kann ich influxdb immer noch nicht starten.

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

                                            @laser

                                            Was läuft da sonst noch so?

                                            Steht in der Langversion von

                                            iob diag
                                            

                                            drin. Und lösch da nichts raus oder veränder in irgendeiner Form die Ausgabe!

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            658
                                            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