NEWS
Beim Installieren von influx CLI
-
@thomas-braun
Da gebe ich dir recht, nur warum schreibt das keiner mal in so einer Anleitung wie ich es gerade versuche zu schreiben??
Das müßte doch ganz vielen so gehen, ich erfinde das rad doch nicht neu!
Egal, ich versuche mich daran und wenn es zu einem Ergebnis führt dann hat es sich wenigstens gelohnt.
Das Blöde ist halt, es hat ja meist schon einer gehabt, aber das zu finden ist die größere Herausforderung.
So ich mach mal weiter.
Habe schon wieder eine hürde.
Hoffe ich kann anderen damit helfen.Übrigens kann man das influxdb-Repo ohne root shell so installieren:
sudo apt update sudo apt install -y gnupg2 curl wget wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add - echo "deb https://repos.influxdata.com/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/influxdb.list(Jedenfalls bis 'bookworm' kommt, dann muss das wieder anders gemacht werden, weil apt-key dann nicht mehr verwendet werden kann)
-
@crunchip
Influx unter Proxmox im LXC erstellen:- Create CT
- debian-11-standard_11.3-1_amd64.tar.zst als Image
- Ich habe mal 2GB Ram und 3 Cores sowie 32GB HDD zugewiesen hoffe es reicht
- Nach der Installation einen neuen USER mit root rechten angelegt
- adduser maxmustermann und ein passwort vergeben
- usermod -aG sudo maxmustermann
- apt get update && atp get upgrade && apt get autoremove -y
- noch als root eingeloggt weiter mit wget -qO- https://repos.influxdata.com/influxdb.key | gpg --dearmor > /etc/apt/trusted.gpg.d/influxdb.gpg
Es kommt eine Fehlermeldung, -bash: gpg: command not found
- Mit apt-get install gpg wird dies installiert und es kann weiter gehen
- export DISTRIB_ID=$(lsb_release -si); export DISTRIB_CODENAME=$(lsb_release -sc)
Es kommen diese zwei Fehler - -bash: lsb_release: command not found
- -bash: lsb_release: command not found
- apt-get install lsb-release behebt dieses und weiter
@einstein2002 deine Zeitzone haste vergessen anzupassen, muss man bei einem LXC extra machen, anders als bei einer VM, wird aber auch in der Doku darauf hingewiesen.
-
@einstein2002 sagte in Beim Installieren von influx CLI:
Das müßte doch ganz vielen so gehen, ich erfinde das rad doch nicht neu!
Für Proxmox gibt es eine Anleitung in der iobroker-Dokumentation, soweit ich weiß.
@thomas-braun die hatte ich ihm schon verlinkt
-
@thomas-braun die hatte ich ihm schon verlinkt
@crunchip sagte in Beim Installieren von influx CLI:
@thomas-braun die hatte ich ihm schon verlinkt
Ja, hatte ich gesehen... Aber @Einstein2002 wohl nicht.
-
@crunchip sagte in Beim Installieren von influx CLI:
@thomas-braun die hatte ich ihm schon verlinkt
Ja, hatte ich gesehen... Aber @Einstein2002 wohl nicht.
@thomas-braun
ich suche, finde es aber nicht!!
Oh man.... ich könnt ......Network Time Protocol (NTP)
InfluxDB uses a host’s local time in UTC to assign timestamps to data and for coordination purposes. Use the Network Time Protocol (NTP) to synchronize time between hosts; if hosts' clocks aren’t synchronized with NTP, the timestamps on the data written to InfluxDB can be inaccurate.Das hier???
Was sagt das aus??
-
@thomas-braun
ich suche, finde es aber nicht!!
Oh man.... ich könnt ......Network Time Protocol (NTP)
InfluxDB uses a host’s local time in UTC to assign timestamps to data and for coordination purposes. Use the Network Time Protocol (NTP) to synchronize time between hosts; if hosts' clocks aren’t synchronized with NTP, the timestamps on the data written to InfluxDB can be inaccurate.Das hier???
Was sagt das aus??
-
@thomas-braun
Hab auf Berlin umgestellt -
Nein, die Pakete heißen unterschiedlich, kommen aber aus dem gleichen Repository.
apt policy influxdb influxdb2zeigt dir das, wenn das Repo sauber drin ist und die Quellen per
sudo apt updateaktualisiert wurden.
(Die Anleitung von influx selber ist aber auch zum Heulen schlecht, stimmt)
@thomas-braun Nun habe ich das problem
root@Influxdb2:~# apt policy influxdb2 N: Unable to locate package influxdb2 root@Influxdb2:~#wobei ich ```
root@Influxdb2:~# apt policy influxdb influxdb2
durch
root@Influxdb2:~# apt policy influxdb2
ersetzt habe -
@thomas-braun Nun habe ich das problem
root@Influxdb2:~# apt policy influxdb2 N: Unable to locate package influxdb2 root@Influxdb2:~#wobei ich ```
root@Influxdb2:~# apt policy influxdb influxdb2
durch
root@Influxdb2:~# apt policy influxdb2
ersetzt habe -
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.)
@thomas-braun sagte in Beim Installieren von influx CLI:
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.)
Ich denke NICHT als USER
Hast Du doch vorhin geschrieben.
-
@thomas-braun sagte in Beim Installieren von influx CLI:
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.)
Ich denke NICHT als USER
Hast Du doch vorhin geschrieben.
Ich hatte dann die 'non-root' Version noch gepostet:
Übrigens kann man das influxdb-Repo ohne root shell so installieren:
sudo apt update sudo apt install -y gnupg2 curl wget wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add - echo 'deb https://repos.influxdata.com/debian $(lsb_release -cs) stable' | sudo tee /etc/apt/sources.list.d/influxdb.list -
Ich hatte dann die 'non-root' Version noch gepostet:
Übrigens kann man das influxdb-Repo ohne root shell so installieren:
sudo apt update sudo apt install -y gnupg2 curl wget wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add - echo 'deb https://repos.influxdata.com/debian $(lsb_release -cs) stable' | sudo tee /etc/apt/sources.list.d/influxdb.list@thomas-braun sagte in Beim Installieren von influx CLI:
wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
Ich gelobe Besserung!!
Was sagt das aus? Kann ich da einfach weitermachen?
michael@Influxdb2:~$ wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add - Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). OK michael@Influxdb2:~$ -
@thomas-braun sagte in Beim Installieren von influx CLI:
wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
Ich gelobe Besserung!!
Was sagt das aus? Kann ich da einfach weitermachen?
michael@Influxdb2:~$ wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add - Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). OK michael@Influxdb2:~$ -
Ich hatte dann die 'non-root' Version noch gepostet:
Übrigens kann man das influxdb-Repo ohne root shell so installieren:
sudo apt update sudo apt install -y gnupg2 curl wget wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add - echo 'deb https://repos.influxdata.com/debian $(lsb_release -cs) stable' | sudo tee /etc/apt/sources.list.d/influxdb.list@thomas-braun sagte in Beim Installieren von influx CLI:
echo 'deb https://repos.influxdata.com/debian $(lsb_release -cs) stable' | sudo tee /etc/apt/sources.list.d/influxdb.list
Das habe ich jetzt soweit alles gemacht, nun steh ich wieder auf dem Schlauch.
Hatte noch etwas mit den SUDO rechten zu kämpfen, war auch kein sudo installiert. Wie geht es jetzt weiter? Nee Idee? -
@thomas-braun sagte in Beim Installieren von influx CLI:
echo 'deb https://repos.influxdata.com/debian $(lsb_release -cs) stable' | sudo tee /etc/apt/sources.list.d/influxdb.list
Das habe ich jetzt soweit alles gemacht, nun steh ich wieder auf dem Schlauch.
Hatte noch etwas mit den SUDO rechten zu kämpfen, war auch kein sudo installiert. Wie geht es jetzt weiter? Nee Idee? -
Ich hatte dann die 'non-root' Version noch gepostet:
Übrigens kann man das influxdb-Repo ohne root shell so installieren:
sudo apt update sudo apt install -y gnupg2 curl wget wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add - echo 'deb https://repos.influxdata.com/debian $(lsb_release -cs) stable' | sudo tee /etc/apt/sources.list.d/influxdb.list@thomas-braun sagte in Beim Installieren von influx CLI:
Ich hatte dann die 'non-root' Version noch gepostet:
Übrigens kann man das influxdb-Repo ohne root shell so installieren:
sudo apt update sudo apt install -y gnupg2 curl wget wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add - echo 'deb https://repos.influxdata.com/debian $(lsb_release -cs) stable' | sudo tee /etc/apt/sources.list.d/influxdb.listSorry das hier meinte ich
-
@thomas-braun sagte in Beim Installieren von influx CLI:
apt policy influxdb influxdb2
Das sieht so aus
michael@Influxdb2:~$ sudo apt update Hit:1 http://ftp.debian.org/debian bullseye InRelease Hit:2 http://security.debian.org bullseye-security InRelease Hit:3 http://ftp.debian.org/debian bullseye-updates InRelease Ign:4 https://repos.influxdata.com/debian $(lsb_release InRelease Err:5 https://repos.influxdata.com/debian $(lsb_release Release 404 Not Found [IP: 2600:9000:21f3:e000:7:7790:e740:93a1 443] Reading package lists... Done E: The repository 'https://repos.influxdata.com/debian $(lsb_release Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. michael@Influxdb2:~$ apt policy influxdb influxdb2 influxdb: Installed: (none) Candidate: 1.6.7~rc0-1+b5 Version table: 1.6.7~rc0-1+b5 500 500 http://ftp.debian.org/debian bullseye/main amd64 Packages N: Unable to locate package influxdb2 michael@Influxdb2:~$ -
@thomas-braun sagte in Beim Installieren von influx CLI:
apt policy influxdb influxdb2
Das sieht so aus
michael@Influxdb2:~$ sudo apt update Hit:1 http://ftp.debian.org/debian bullseye InRelease Hit:2 http://security.debian.org bullseye-security InRelease Hit:3 http://ftp.debian.org/debian bullseye-updates InRelease Ign:4 https://repos.influxdata.com/debian $(lsb_release InRelease Err:5 https://repos.influxdata.com/debian $(lsb_release Release 404 Not Found [IP: 2600:9000:21f3:e000:7:7790:e740:93a1 443] Reading package lists... Done E: The repository 'https://repos.influxdata.com/debian $(lsb_release Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. michael@Influxdb2:~$ apt policy influxdb influxdb2 influxdb: Installed: (none) Candidate: 1.6.7~rc0-1+b5 Version table: 1.6.7~rc0-1+b5 500 500 http://ftp.debian.org/debian bullseye/main amd64 Packages N: Unable to locate package influxdb2 michael@Influxdb2:~$Hm. Dann ist in meinen Kommandozeilen noch ein Fehler drin.
Muss ich mir später nochmal anschauen.
In der Datei /etc/apt/sources.list.d/influxdb.list
muss$(lsb_release Releasedurchbullseyeersetz werden. -
Hm. Dann ist in meinen Kommandozeilen noch ein Fehler drin.
Muss ich mir später nochmal anschauen.
In der Datei /etc/apt/sources.list.d/influxdb.list
muss$(lsb_release Releasedurchbullseyeersetz werden.@thomas-braun
Okay, meinst Du es klappt heute noch??
Gibst Du Bescheid, bitte.Dankeschön jetzt schon einmal, ist echt sehr gut was Ihr,Du hier macht.
-
Hm. Dann ist in meinen Kommandozeilen noch ein Fehler drin.
Muss ich mir später nochmal anschauen.
In der Datei /etc/apt/sources.list.d/influxdb.list
muss$(lsb_release Releasedurchbullseyeersetz werden.@thomas-braun
Könnte es das sein:https://repos.influxdata.com/debian/dists/bullseye/stable/binary-amd64/Zumindest sehe ich dann die Dateien
Aber er läuft ins leere wenn ich apt update mache