NEWS
Influx DB unter bookworm installieren
-
Danke, hat sehr geholfen. InfluxDB und Grafana sind nun wieder am Start.
-
Bitte bei Anleitungen, die mehrere Jahre auf dem Buckel haben und sich auf die Vor-vor-vor-Version beziehen mehr als kritisch sein. Meist sind die nicht mehr zu verwenden, dafür geht sie Entwicklung zu schnell.
-
Ich hänge mich mal hieran, das es mir seit 2 Tagen nicht gelingt Influxdb unter bookworm zu installieren:
Was habe ich getan:
Zunächst gem. o.a. Beschreibung die beiden Repos angelegt, dann gem. Beschreibung von hotspot_2 die Installation angestoßen.pi@RasPi-ioBroker:~ $ wget -q https://repos.influxdata.com/influxdata-archive_co mpat.key echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdat a-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdata-archive_compat.gpg > /dev/nu ll 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/infl uxdata.list rm influxdata-archive_compat.key influxdata-archive_compat.key: OK deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos. influxdata.com/debian stable main pi@RasPi-ioBroker:~ $ sudo apt-get install -y apt-transport-https sudo apt-get install -y software-properties-common wget sudo wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com st able main" | sudo tee /etc/apt/sources.list.d/grafana.list Reading package lists... Done Building dependency tree... Done Reading state information... Done apt-transport-https is already the newest version (2.6.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree... Done Reading state information... Done software-properties-common is already the newest version (0.99.30-4). wget is already the newest version (1.21.3-1+b1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable m ain pi@RasPi-ioBroker:~ $ sudo apt-get update sudo apt install -y influxdb Hit:1 http://deb.debian.org/debian bookworm InRelease Get:2 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB ] Get:3 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB] Get:4 https://deb.nodesource.com/node_18.x nodistro InRelease [12.1 kB] Hit:5 https://repos.influxdata.com/debian stable InRelease Get:6 https://apt.grafana.com stable InRelease [5,984 B] Hit:7 http://archive.raspberrypi.com/debian bookworm InRelease Ign:8 https://repos.influxdata.com/debian bookworm InRelease Err:9 https://repos.influxdata.com/debian bookworm Release 404 Not Found [IP: 99.86.4.4 443] Get:10 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages [6,123 B] Get:11 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages [6,155 B] Get:12 https://apt.grafana.com stable/main arm64 Packages [124 kB] Get:13 https://apt.grafana.com stable/main armhf Packages [106 kB] Err:7 http://archive.raspberrypi.com/debian bookworm InRelease The following signatures couldn't be verified because the public key is not av ailable: NO_PUBKEY 82B129927FA3303E Reading package lists... Done E: The repository 'https://repos.influxdata.com/debian bookworm Release' does no t have a Release file. N: Updating from such a repository can't be done securely, and is therefore disa bled by default. N: See apt-secure(8) manpage for repository creation and user configuration deta ils. W: An error occurred during the signature verification. The repository is not up dated and the previous index files will be used. GPG error: http://archive.raspb errypi.com/debian bookworm InRelease: The following signatures couldn't be verif ied because the public key is not available: NO_PUBKEY 82B129927FA3303E Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed: influxdb 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 50.7 MB of archives. After this operation, 148 MB of additional disk space will be used. Get:1 https://repos.influxdata.com/debian stable/main arm64 influxdb arm64 1.8.1 0-1 [50.7 MB] Fetched 50.7 MB in 11s (4,611 kB/s) Selecting previously unselected package influxdb. (Reading database ... 69131 files and directories currently installed.) Preparing to unpack .../influxdb_1.8.10-1_arm64.deb ... Unpacking influxdb (1.8.10-1) ... Setting up influxdb (1.8.10-1) ... Processing triggers for man-db (2.11.2-2) ... pi@RasPi-ioBroker:~ $ sudo systemctl unmask influxdb.service sudo systemctl start influxdb.service sudo systemctl enable influxdb.service
Wo liegen denn hier die Fehler, die ich aus dem Meldungen mangels Kenntnissen nicht herauslesen, bzw. beseitigen kann?
Hab mittlerweile versucht, die Installation zu löschen, da ich sie unter dem Port 8086 nicht erreichen kann.pi@RasPi-ioBroker:~ $ sudo apt-get autoremove influxdb Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be REMOVED: influxdb 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 148 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 69156 files and directories currently installed.) Removing influxdb (1.8.10-1) ... Processing triggers for man-db (2.11.2-2) ...
Schaue ich mir mit htop an, was noch übrig gebleiben ist, finde ich noch Rest von influxdb
/usr/bin/influxd -config /etc/influxdb/influxdb.conf
Wie bekomme ich diese Reste weg und wie bewerkstelle ich eine erneute Insatllation?
-
-
@thomas-braun wo sollte ich das finden?
-
? Steht im LogFile doch drin. Danach hast du es, warum auch immer, ja wieder rausgeworfen.
-
@thomas-braun Weil die Installation nicht klappte, wollte ich alles wieder blank ziehen und einen neuen Weg suchen, deshalb bin ich hier!
-
-
@thomas-braun sagte in Influx DB unter bookworm installieren:
sudo apt update
ls -lah /etc/apt/sources.list.d/pi@RasPi-ioBroker:~ $ sudo apt update ls -lah /etc/apt/sources.list.d/ Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Hit:4 https://repos.influxdata.com/debian stable InRelease Get:5 https://repos.influxdata.com/debian stretch InRelease [7,048 B] Hit:6 https://apt.grafana.com stable InRelease Hit:7 https://deb.nodesource.com/node_18.x nodistro InRelease Hit:8 http://archive.raspberrypi.com/debian bookworm InRelease Get:9 https://repos.influxdata.com/debian stretch/stable armhf Packages [3,639 B] Get:10 https://repos.influxdata.com/debian stretch/stable arm64 Packages [7,071 B] Err:8 http://archive.raspberrypi.com/debian bookworm InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E Fetched 17.8 kB in 2s (7,507 B/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.raspberrypi.com/debian bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E W: Failed to fetch http://archive.raspberrypi.com/debian/dists/bookworm/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E W: Some index files failed to download. They have been ignored, or old ones used instead. total 28K drwxr-xr-x 2 root root 4.0K Oct 30 21:43 . drwxr-xr-x 9 root root 4.0K Oct 31 13:19 .. -rw-r--r-- 1 root root 84 Oct 31 13:14 grafana.list -rw-r--r-- 1 root root 114 Oct 31 13:14 influxdata.list -rw-r--r-- 1 root root 55 Oct 31 13:19 influxdb.list -rw-r--r-- 1 root root 100 Oct 27 13:37 nodesource.list -rw-r--r-- 1 root root 191 Oct 10 05:37 raspi.list
-
sudo rm /etc/apt/sources.list.d/influxdb.list sudo apt update apt policy influxdb*
-
@thomas-braun sagte in Influx DB unter bookworm installieren:
pi@RasPi-ioBroker:~ $ sudo rm /etc/apt/sources.list.d/influxdb.list sudo apt update apt policy influxdb* Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Hit:4 https://repos.influxdata.com/debian stable InRelease Hit:5 https://apt.grafana.com stable InRelease Hit:6 https://deb.nodesource.com/node_18.x nodistro InRelease Hit:7 http://archive.raspberrypi.com/debian bookworm InRelease Err:7 http://archive.raspberrypi.com/debian bookworm InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.raspberrypi.com/debian bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E W: Failed to fetch http://archive.raspberrypi.com/debian/dists/bookworm/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E W: Some index files failed to download. They have been ignored, or old ones used instead. N: Unable to locate package influxdb.key N: Couldn't find any package by glob 'influxdb.key'
-
rm influxdb.key sudo apt update apt policy influxdb*
-
@thomas-braun sagte in Influx DB unter bookworm installieren:
rm influxdb.key
pi@RasPi-ioBroker:~ $ rm influxdb.key sudo apt update apt policy influxdb* Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Hit:4 https://repos.influxdata.com/debian stable InRelease Hit:5 https://apt.grafana.com stable InRelease Hit:6 https://deb.nodesource.com/node_18.x nodistro InRelease Hit:7 http://archive.raspberrypi.com/debian bookworm InRelease Err:7 http://archive.raspberrypi.com/debian bookworm InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.raspberrypi.com/debian bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E W: Failed to fetch http://archive.raspberrypi.com/debian/dists/bookworm/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E W: Some index files failed to download. They have been ignored, or old ones used instead. influxdb2-cli: Installed: (none) Candidate: 2.7.3-1 Version table: 2.7.3-1 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.1-2 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.6.1 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.6.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.5.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.4.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.3.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages influxdb-client: Installed: (none) Candidate: 1.6.7~rc0-1+b13 Version table: 1.6.7~rc0-1+b13 500 500 http://deb.debian.org/debian bookworm/main arm64 Packages influxdb-dev: Installed: (none) Candidate: (none) Version table: influxdb2-client: Installed: (none) Candidate: 2.7.1-1 Version table: 2.7.1-1 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages influxdb: Installed: (none) Candidate: 1.8.10-1 Version table: 1.8.10-1 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 100 /var/lib/dpkg/status 1.6.7~rc0-1+b13 500 500 http://deb.debian.org/debian bookworm/main arm64 Packages influxdb2: Installed: (none) Candidate: 2.7.3-1 Version table: 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
-
-
@thomas-braun Du sprichst in Rätseln, wahrscheinlich hast du schon bemerkt, dass ich kein Linux-Fan/-Freund/-Kenner bin. bitte sag mir, was ich zu tun habe, sprich den Key "reinziehen" kann
-
wget http://archive.raspberrypi.org/debian/raspberrypi.gpg.key sudo apt-key add raspberrypi.gpg.key rm raspberrypi.gpg.key
Dann prüfen:
sudo apt update
-
@thomas-braun sagte in Influx DB unter bookworm installieren:
wget http://archive.raspberrypi.org/debian/raspberrypi.gpg.key
sudo apt-key add raspberrypi.gpg.key
rm raspberrypi.gpg.keypi@RasPi-ioBroker:~ $ wget http://archive.raspberrypi.org/debian/raspberrypi.gpg.key sudo apt-key add raspberrypi.gpg.key rm raspberrypi.gpg.key --2023-10-31 14:32:52-- http://archive.raspberrypi.org/debian/raspberrypi.gpg.key Resolving archive.raspberrypi.org (archive.raspberrypi.org)... 46.235.231.151, 46.235.231.145, 93.93.130.212, ... Connecting to archive.raspberrypi.org (archive.raspberrypi.org)|46.235.231.151|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1719 (1.7K) [application/pgp-keys] Saving to: ‘raspberrypi.gpg.key’ raspberrypi.gpg.key 100%[==================================================================================================================>] 1.68K --.-KB/s in 0.002s 2023-10-31 14:32:52 (785 KB/s) - ‘raspberrypi.gpg.key’ saved [1719/1719] Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). OK
pi@RasPi-ioBroker:~ $ sudo apt update Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Hit:4 http://archive.raspberrypi.com/debian bookworm InRelease Hit:5 https://repos.influxdata.com/debian stable InRelease Hit:6 https://apt.grafana.com stable InRelease Hit:7 https://deb.nodesource.com/node_18.x nodistro InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. W: http://archive.raspberrypi.com/debian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Wenn ich das mit meinem Geringwissen richtig interpretiere, sieht das gut aus, zumindest wurde offenbar der key für den raspberry gespeichert.
Kann ich denn jetzt die erstgenannte influxdb-Installation erneut starten?
Install lt. Hausautomation, s.o. -
sudo mv /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d/
Dann halt die gewünschte Version von influxdb installieren. Ich würde die influxdb2 nehmen.
-
@thomas-braun sagte in Influx DB unter bookworm installieren:
sudo mv /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d/
Ich verneige mich vor dir und deiner Hilfsbereitschaft, wahrscheinlich hätte ich das ohne Hilfe nicht hinbekommen - sag mir, wo ich dir einen Kaffee spendieren kann!
Aber noch eines: weißt du, ob ich vor der Installation mit
sudo apt-get install influxdb2
noch einen Key installieren muss? Ich frage, weil unter einer YT-Anleitung, ab 8:43 davon gesprochen wird.
-
Ich schau keine YT-Filmchen. Solltest du auch nicht, die wenigsten davon sind wirklich zu gebrauchen.
apt wird aber Meckern, wenn ein Key fehlen sollte. Es fehlt aber keiner, sonst hättest du da Meldungen analog zu der Meldung gesehen, die du jetzt ja angegangen bist.