Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. InfluxDB
    5. Beim Installieren von influx CLI

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Beim Installieren von influx CLI

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

      Hallo zusammen,
      ist das normal oder mache ich da was falsch?
      Halte mich an die Anleitung und der Download hat auch ohne Fehler geklappt,
      wget https://dl.influxdata.com/influxdb/releases/influxdb2-client-2.3.0-linux-amd64.tar.gz
      beim Entpacken mit: tar xvzf path/to/influxdb2-client-2.3.0-linux-amd64.tar.gz kommt dann ein Fehler.

      root@Influxdb2:~# service influxdb status
      * 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 Wed 2022-06-01 09:47:09 UTC; 31min ago
             Docs: https://docs.influxdata.com/influxdb/
          Process: 113 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=0/SUCCESS)
         Main PID: 119 (influxd)
            Tasks: 8 (limit: 76884)
           Memory: 109.2M
              CPU: 635ms
           CGroup: /system.slice/influxdb.service
                   `-119 /usr/bin/influxd
      
      Jun 01 09:47:08 Influxdb2 influxd-systemd-start.sh[119]: ts=2022-06-01T09:47:08.146511Z lvl=info msg="Starting retention policy enforcement service" log_id=0aofRDpl000 service=retention check_interval=30m
      Jun 01 09:47:08 Influxdb2 influxd-systemd-start.sh[119]: ts=2022-06-01T09:47:08.146520Z lvl=info msg="Starting precreation service" log_id=0aofRDpl000 service=shard-precreation check_interval=10m advance_period=30m
      Jun 01 09:47:08 Influxdb2 influxd-systemd-start.sh[119]: ts=2022-06-01T09:47:08.147275Z lvl=info msg="Starting query controller" log_id=0aofRDpl000 service=storage-reads concurrency_quota=1024 initial_memory_bytes_quota_per_query=9223372036854775807 m>
      Jun 01 09:47:08 Influxdb2 influxd-systemd-start.sh[119]: ts=2022-06-01T09:47:08.148476Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0aofRDpl000 max_select_point=0 max_select_series=0 max_select_buckets=0
      Jun 01 09:47:08 Influxdb2 influxd-systemd-start.sh[119]: ts=2022-06-01T09:47:08.162511Z lvl=info msg=Listening log_id=0aofRDpl000 service=tcp-listener transport=http addr=:8086 port=8086
      Jun 01 09:47:08 Influxdb2 influxd-systemd-start.sh[119]: ts=2022-06-01T09:47:08.162529Z lvl=info msg=Starting log_id=0aofRDpl000 service=telemetry interval=8h
      Jun 01 09:47:09 Influxdb2 influxd-systemd-start.sh[113]: InfluxDB started
      Jun 01 09:47:09 Influxdb2 systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
      Jun 01 10:17:08 Influxdb2 influxd-systemd-start.sh[119]: ts=2022-06-01T10:17:08.146836Z lvl=info msg="Retention policy deletion check (start)" log_id=0aofRDpl000 service=retention op_name=retention_delete_check op_event=start
      Jun 01 10:17:08 Influxdb2 influxd-systemd-start.sh[119]: ts=2022-06-01T10:17:08.146864Z lvl=info msg="Retention policy deletion check (end)" log_id=0aofRDpl000 service=retention op_name=retention_delete_check op_event=end op_elapsed=0.038ms
      
      root@Influxdb2:~# influx version
      Influx CLI 2.3.0 (git: 88ba346) build_date: 2022-04-06T19:30:53Z
      root@Influxdb2:~# ls -la
      total 5252
      drwx------  3 root root    4096 Jun  1 09:54 .
      drwxr-xr-x 18 root root    4096 Jun  1 09:47 ..
      -rw-------  1 root root     824 Jun  1 09:47 .bash_history
      -rw-r--r--  1 root root    3106 Jul 28  2020 .bashrc
      drwx------  2 root root    4096 Jun  1 09:38 .cache
      -rw-r--r--  1 root root     161 Apr 28  2021 .profile
      -rw-r--r--  1 root root 5350662 Apr  6 19:32 influxdb2-client-2.3.0-linux-amd64.tar.gz
      root@Influxdb2:~# tar xvzf path/to/influxdb2-client-2.3.0-linux-amd64.tar.gz
      tar (child): path/to/influxdb2-client-2.3.0-linux-amd64.tar.gz: Cannot open: No such file or directory
      tar (child): Error is not recoverable: exiting now
      tar: Child returned status 2
      tar: Error is not recoverable: exiting now
      root@Influxdb2:~# 
      
      

      Was soll ich machen?

      SBorg 1 Reply Last reply Reply Quote 0
      • SBorg
        SBorg Forum Testing Most Active @Einstein2002 last edited by

        @einstein2002
        Zuerst nicht als root arbeiten 😉

        Mit

        tar xvzf path/to/influxdb2-client-2.3.0-linux-amd64.tar.gz

        steht "path/to" für das Verzeichnis in dem die tar.gz gedownloaded wurde und muss damit ersetzt werden. Wenn sie im aktuellen Verzeichnis liegt wäre

        tar xvzf ./influxdb2-client-2.3.0-linux-amd64.tar.gz
        

        korrekt.

        E crunchip 2 Replies Last reply Reply Quote 0
        • E
          Einstein2002 @SBorg last edited by

          @sborg
          Danke hab sie eben erst aufgesetzt und noch keinen User eingerichtet. Ist aber jetzt gemacht.
          Muss ich die ganzen Schritte unter dem neuen User auch noch einmal machen?

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

            @sborg oder man installier per apt

            E 1 Reply Last reply Reply Quote 1
            • E
              Einstein2002 @crunchip last edited by

              @crunchip
              das steht leider nicht in der Doku
              aber wäre das dann apt get influx
              ??

              crunchip E 2 Replies Last reply Reply Quote 0
              • crunchip
                crunchip Forum Testing Most Active @Einstein2002 last edited by

                @einstein2002 da musst du die repo list anlegen und dann kann man per Apt installieren. Influxdb und influx cli

                E 1 Reply Last reply Reply Quote 0
                • E
                  Einstein2002 @Einstein2002 last edited by

                  @einstein2002
                  Das heißt um es jetzt endlich mal richtig zu verstehen:
                  LXC erstellen und dann als erstes einen neuen User anlegen
                  Mit dem einloggen und alle schritte machen.

                  Ist das so richtig???

                  crunchip Thomas Braun 2 Replies Last reply Reply Quote 0
                  • crunchip
                    crunchip Forum Testing Most Active @Einstein2002 last edited by crunchip

                    @einstein2002 ja, schau in die Doku, da steht was bei einem Lxc zu tun ist bevor man etwas installiert

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

                      @einstein2002

                      Ja, als erstes einen user anlegen. Dem dann sudo-Rechte verpassen,

                      Und unter Linux/Debian installiert man so gut wie nie direkt Programme, man nutzt seinen Paketmanager dafür.
                      Falls aktuellere Versionen von influxdb verwendet werden sollen als 'von Haus aus' dem Debian Release beiliegen muss/sollte man eine Softwarequelle/Repository anlegen.

                      Für influxdb so:

                      https://docs.influxdata.com/influxdb/v1.8/introduction/install/

                      wget -qO- https://repos.influxdata.com/influxdb.key | gpg --dearmor > /etc/apt/trusted.gpg.d/influxdb.gpg
                      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" > /etc/apt/sources.list.d/influxdb.list
                      

                      (Wobei das nicht als user funktioniert, mach das ausnahmsweise mal als root. Ich muss das mal umbauen, dass es auch als user funktioniert.)

                      E 3 Replies Last reply Reply Quote 0
                      • E
                        Einstein2002 @Thomas Braun last edited by

                        @thomas-braun
                        Das hab ich eben über sudo rechte erlesen,

                        Benutzer erstellen und root rechte erteilen

                        Ubuntu 18.04, Ubuntu 20.04, Debian 10 und Debian 11
                        • Loggen Sie sich als Root-Benutzer auf dem gewünschten Server ein.
                        • Um einen neuen Benutzer zu erstellen, geben Sie den folgenden Befehl ein:
                        [root@localhost ~]# adduser BENUTZERNAME
                        Beispiel:
                        [root@localhost ~]# adduser maxmustermann
                        • Geben Sie das gewünschte Passwort ein und wiederholen Sie es.
                        • Optional: Geben Sie zusätzliche Benutzerinformationen ein. Um die Eingabe dieser Informationen zu überspringen, drücken Sie die Enter-Taste.
                        Changing the user information for maxmustermann
                        Enter the new value, or press ENTER for the default
                        Full Name [ ]:
                        Room Number [ ]:
                        Work Phone [ ]:
                        Home Phone [ ]:
                        Other [ ]:
                        Is the information correct? [Y/n]
                        • Geben Sie Y ein und drücken Sie die Enter-Taste.

                        Debian und Ubuntu
                        Um einem Benutzer in Debian und Ubuntu sudo-Rechte zuzuweisen, müssen Sie diesen zur Gruppe sudo hinzufügen. Um den Benutzer dieser Gruppe hinzuzufügen, geben Sie den folgenden Befehl ein:
                        [root@localhost ~]# usermod -aG sudo BENUTZERNAME
                        Beispiel
                        [root@localhost ~]# usermod -aG sudo maxmustermann
                        Um zu kontrollieren, ob die Änderung erfolgreich war, geben Sie den folgenden Befehl ein:
                        localhost:~ # groups BENUTZERNAME
                        Beispiel:
                        localhost:~ # groups maxmustermann

                        Ist das soweit in Ordnung?
                        Ps. Sorry für die Mühe und Arbeit mit mir!! Dankeschön

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

                          @einstein2002 sagte in Beim Installieren von influx CLI:

                          Ist das soweit in Ordnung?

                          Ja. Schaut soweit i. O. aus.

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

                            @thomas-braun
                            Soweit ganz gut, aber wenn ich 1-3 ausführe dann mit apt installiere macht er ja die 1.8 drauf.
                            Ich hatte aber schon 2xx glaube ich drauf.
                            Und beim weiterleiten auf die neue Webseite komm ich wieder dahin wo ich ganz am Anfang war.
                            Um dann doch wieder von hand zu installieren.
                            https://docs.influxdata.com/influxdb/v1.8/introduction/install/ Version 1.8
                            https://docs.influxdata.com/influxdb/v2.2/install/ Version2.2

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

                              @einstein2002

                              Nein, die Pakete heißen unterschiedlich, kommen aber aus dem gleichen Repository.

                              apt policy influxdb influxdb2
                              

                              zeigt dir das, wenn das Repo sauber drin ist und die Quellen per

                              sudo apt update
                              

                              aktualisiert wurden.

                              (Die Anleitung von influx selber ist aber auch zum Heulen schlecht, stimmt)

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

                                @einstein2002

                                So schaut das mit richtigem Setup aus:

                                echad@chet:~ $ apt policy influxdb influxdb2
                                influxdb:
                                  Installed: (none)
                                  Candidate: 1.8.10-1
                                  Version table:
                                     1.8.10-1 500
                                        500 https://repos.influxdata.com/debian bullseye/stable arm64 Packages
                                        100 /var/lib/dpkg/status
                                     1.6.7~rc0-1+b5 500
                                        500 http://deb.debian.org/debian bullseye/main arm64 Packages
                                influxdb2:
                                  Installed: (none)
                                  Candidate: 2.2.0
                                  Version table:
                                     2.2.0 500
                                        500 https://repos.influxdata.com/debian bullseye/stable arm64 Packages
                                     2.1.1 -1
                                        100 /var/lib/dpkg/status
                                echad@chet:~ $
                                
                                E 1 Reply Last reply Reply Quote 0
                                • E
                                  Einstein2002 @Thomas Braun last edited by

                                  @thomas-braun sagte in Beim Installieren von influx CLI:

                                  apt policy influxdb influxdb2

                                  michael@Influxdb2:~$ apt policy influxdb influxdb2
                                  influxdb:
                                    Installed: 1.8.10-1
                                    Candidate: 1.8.10-1
                                    Version table:
                                   *** 1.8.10-1 500
                                          500 https://repos.influxdata.com/ubuntu impish/stable amd64 Packages
                                          100 /var/lib/dpkg/status
                                       1.6.7~rc0-1 500
                                          500 http://archive.ubuntu.com/ubuntu impish/universe amd64 Packages
                                  influxdb2:
                                    Installed: (none)
                                    Candidate: 2.2.0
                                    Version table:
                                       2.2.0 500
                                          500 https://repos.influxdata.com/ubuntu impish/stable amd64 Packages
                                          100 /var/lib/dpkg/status
                                  michael@Influxdb2:~$ ^C
                                  michael@Influxdb2:~$ 
                                  
                                  

                                  So bei mir

                                  Thomas Braun E crunchip 3 Replies Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Einstein2002 last edited by

                                    @einstein2002

                                    Dann passt es doch.

                                    E 1 Reply Last reply Reply Quote 0
                                    • E
                                      Einstein2002 @Einstein2002 last edited by

                                      @einstein2002
                                      ich setzt den noch einmal neu auf.
                                      Habe gesehen du hast eine neuere Debian drauf.
                                      Hatte gedacht das geht mit der noch nicht.
                                      Noch ist es alles im grünen Bereich ohne Daten und gaaaaaanz am Anfang

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

                                        @thomas-braun
                                        Was ist denn mit der CLI?
                                        Wurde diese mitberücksichtigt?
                                        Ich glaube nein??
                                        Bin mir jetzt überhaupt nicht mehr sicher

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

                                          @einstein2002 sagte in Beim Installieren von influx CLI:

                                          Habe gesehen du hast eine neuere Debian drauf.

                                          Auf den Punkt wollte ich gerade hinweisen. Dein Ubuntu stirbt im July eh, man nimmt entweder deren LTS-Versionen oder gleich ein Debian stable für Server.

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

                                            @einstein2002 sagte in Beim Installieren von influx CLI:

                                            Was ist denn mit der CLI?

                                            Was meinst du?
                                            Falls du die influx clients meinst:

                                            apt policy influxdb-client influxdb2-cli
                                            
                                            E 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            948
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            78
                                            5433
                                            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