NEWS
[Gelöst] InfluxDB Upgrade error
-
Hi,
wollte heute endlich mal mein Influx/Grafana Server updaten. Ich weiß, sind ein paar mehr updates in der Pipe.
Habe nach der Anleitung von @Thomas-Braun das Grafana repo aktualisiert was scheinbar auch funktioniert hat.
Jetzt meckert mir das Upgrade aber bei Influx rum:
mirko@influxdb-grafana:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following package was automatically installed and is no longer required: libllvm10 Use 'sudo apt autoremove' to remove it. The following packages will be upgraded: apt apt-transport-https apt-utils base-files command-not-found distro-info-data grafana influxdb-client kmod libapt-pkg6.0 libc-bin libc6 libkeyutils1 libkmod2 libnetplan0 libnss-systemd libpam-systemd libsensors-config libsensors5 libsystemd0 libudev1 locales netplan.io openssh-client openssh-server openssh-sftp-server python-apt-common python3-apt python3-commandnotfound python3-distupgrade python3-update-manager python3-urllib3 ssh systemd systemd-sysv systemd-timesyncd ubuntu-advantage-tools ubuntu-release-upgrader-core udev unattended-upgrades update-manager-core 41 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 standard security updates Need to get 107 MB/109 MB of archives. After this operation, 51.7 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libc6 amd64 2.31-0ubuntu9.9 [2722 kB] Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 base-files amd64 11ubuntu5.6 [60.4 kB] Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 locales all 2.31-0ubuntu9.9 [3869 kB] Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libc-bin amd64 2.31-0ubuntu9.9 [633 kB] Get:5 https://apt.grafana.com stable/main amd64 grafana amd64 9.3.2 [89.2 MB] Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libnss-systemd amd64 245.4-4ubuntu3.19 [95.8 kB] Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 udev amd64 245.4-4ubuntu3.19 [1367 kB] Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libudev1 amd64 245.4-4ubuntu3.19 [75.5 kB] Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 kmod amd64 27-1ubuntu2.1 [94.8 kB] Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libkmod2 amd64 27-1ubuntu2.1 [45.3 kB] Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd-sysv amd64 245.4-4ubuntu3.19 [10.3 kB] Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd-timesyncd amd64 245.4-4ubuntu3.19 [28.1 kB] Get:13 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpam-systemd amd64 245.4-4ubuntu3.19 [186 kB] Get:14 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd amd64 245.4-4ubuntu3.19 [3812 kB] Get:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libsystemd0 amd64 245.4-4ubuntu3.19 [268 kB] Get:16 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libapt-pkg6.0 amd64 2.0.9 [839 kB] Get:17 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 apt amd64 2.0.9 [1294 kB] Get:18 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 apt-utils amd64 2.0.9 [213 kB] Get:19 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-sftp-server amd64 1:8.2p1-4ubuntu0.5 [51.5 kB] Get:20 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-server amd64 1:8.2p1-4ubuntu0.5 [377 kB] Get:21 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-client amd64 1:8.2p1-4ubuntu0.5 [671 kB] Get:22 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 ssh all 1:8.2p1-4ubuntu0.5 [5084 B] Get:23 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 distro-info-data all 0.43ubuntu1.11 [4672 B] Get:24 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libnetplan0 amd64 0.104-0ubuntu2~20.04.2 [82.5 kB] Get:25 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 netplan.io amd64 0.104-0ubuntu2~20.04.2 [88.0 kB] Get:26 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python-apt-common all 2.0.1 [17.0 kB] Get:27 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-apt amd64 2.0.1 [154 kB] Get:28 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 ubuntu-advantage-tools amd64 27.12~20.04.1 [167 kB] Get:29 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 command-not-found all 20.04.6 [5264 B] Get:30 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-commandnotfound all 20.04.6 [10.4 kB] Get:31 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libkeyutils1 amd64 1.6-6ubuntu1.1 [10.3 kB] Get:32 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 ubuntu-release-upgrader-core all 1:20.04.39 [24.4 kB] Get:33 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-distupgrade all 1:20.04.39 [104 kB] Get:34 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-update-manager all 1:20.04.10.11 [38.0 kB] Get:35 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 update-manager-core all 1:20.04.10.11 [11.6 kB] Get:36 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 apt-transport-https all 2.0.9 [1704 B] Get:37 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libsensors-config all 1:3.6.0-2ubuntu1.1 [6052 B] Get:38 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libsensors5 amd64 1:3.6.0-2ubuntu1.1 [27.2 kB] Get:39 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 unattended-upgrades all 2.3ubuntu0.3 [48.5 kB] Fetched 107 MB in 8s (13.7 MB/s) Extracting templates from packages: 100% Preconfiguring packages ... (Reading database ... 24306 files and directories currently installed.) Preparing to unpack .../libc6_2.31-0ubuntu9.9_amd64.deb ... Unpacking libc6:amd64 (2.31-0ubuntu9.9) over (2.31-0ubuntu9.7) ... Setting up libc6:amd64 (2.31-0ubuntu9.9) ... (Reading database ... 24306 files and directories currently installed.) Preparing to unpack .../base-files_11ubuntu5.6_amd64.deb ... Warning: Stopping motd-news.service, but it can still be activated by: motd-news.timer Unpacking base-files (11ubuntu5.6) over (11ubuntu5.4) ... Setting up base-files (11ubuntu5.6) ... Installing new version of config file /etc/issue ... Installing new version of config file /etc/issue.net ... Installing new version of config file /etc/lsb-release ... motd-news.service is a disabled or a static unit, not starting it. (Reading database ... 24306 files and directories currently installed.) Preparing to unpack .../locales_2.31-0ubuntu9.9_all.deb ... Unpacking locales (2.31-0ubuntu9.9) over (2.31-0ubuntu9.7) ... Preparing to unpack .../libc-bin_2.31-0ubuntu9.9_amd64.deb ... Unpacking libc-bin (2.31-0ubuntu9.9) over (2.31-0ubuntu9.7) ... Setting up libc-bin (2.31-0ubuntu9.9) ... (Reading database ... 24306 files and directories currently installed.) Preparing to unpack .../libnss-systemd_245.4-4ubuntu3.19_amd64.deb ... Unpacking libnss-systemd:amd64 (245.4-4ubuntu3.19) over (245.4-4ubuntu3.15) ... Preparing to unpack .../udev_245.4-4ubuntu3.19_amd64.deb ... Unpacking udev (245.4-4ubuntu3.19) over (245.4-4ubuntu3.15) ... Preparing to unpack .../libudev1_245.4-4ubuntu3.19_amd64.deb ... Unpacking libudev1:amd64 (245.4-4ubuntu3.19) over (245.4-4ubuntu3.15) ... Setting up libudev1:amd64 (245.4-4ubuntu3.19) ... (Reading database ... 24306 files and directories currently installed.) Preparing to unpack .../0-kmod_27-1ubuntu2.1_amd64.deb ... Unpacking kmod (27-1ubuntu2.1) over (27-1ubuntu2) ... Preparing to unpack .../1-libkmod2_27-1ubuntu2.1_amd64.deb ... Unpacking libkmod2:amd64 (27-1ubuntu2.1) over (27-1ubuntu2) ... Preparing to unpack .../2-systemd-sysv_245.4-4ubuntu3.19_amd64.deb ... Unpacking systemd-sysv (245.4-4ubuntu3.19) over (245.4-4ubuntu3.15) ... Preparing to unpack .../3-systemd-timesyncd_245.4-4ubuntu3.19_amd64.deb ... Unpacking systemd-timesyncd (245.4-4ubuntu3.19) over (245.4-4ubuntu3.15) ... Preparing to unpack .../4-libpam-systemd_245.4-4ubuntu3.19_amd64.deb ... Unpacking libpam-systemd:amd64 (245.4-4ubuntu3.19) over (245.4-4ubuntu3.15) ... Preparing to unpack .../5-systemd_245.4-4ubuntu3.19_amd64.deb ... Unpacking systemd (245.4-4ubuntu3.19) over (245.4-4ubuntu3.15) ... Preparing to unpack .../6-libsystemd0_245.4-4ubuntu3.19_amd64.deb ... Unpacking libsystemd0:amd64 (245.4-4ubuntu3.19) over (245.4-4ubuntu3.15) ... Setting up libsystemd0:amd64 (245.4-4ubuntu3.19) ... (Reading database ... 24306 files and directories currently installed.) Preparing to unpack .../libapt-pkg6.0_2.0.9_amd64.deb ... Unpacking libapt-pkg6.0:amd64 (2.0.9) over (2.0.6) ... Setting up libapt-pkg6.0:amd64 (2.0.9) ... (Reading database ... 24306 files and directories currently installed.) Preparing to unpack .../archives/apt_2.0.9_amd64.deb ... Unpacking apt (2.0.9) over (2.0.6) ... Setting up apt (2.0.9) ... Removing obsolete conffile /etc/kernel/postinst.d/apt-auto-removal ... (Reading database ... 24305 files and directories currently installed.) Preparing to unpack .../00-apt-utils_2.0.9_amd64.deb ... Unpacking apt-utils (2.0.9) over (2.0.6) ... Preparing to unpack .../01-openssh-sftp-server_1%3a8.2p1-4ubuntu0.5_amd64.deb ... Unpacking openssh-sftp-server (1:8.2p1-4ubuntu0.5) over (1:8.2p1-4ubuntu0.3) ... Preparing to unpack .../02-openssh-server_1%3a8.2p1-4ubuntu0.5_amd64.deb ... Unpacking openssh-server (1:8.2p1-4ubuntu0.5) over (1:8.2p1-4ubuntu0.3) ... Preparing to unpack .../03-openssh-client_1%3a8.2p1-4ubuntu0.5_amd64.deb ... Unpacking openssh-client (1:8.2p1-4ubuntu0.5) over (1:8.2p1-4ubuntu0.3) ... Preparing to unpack .../04-ssh_1%3a8.2p1-4ubuntu0.5_all.deb ... Unpacking ssh (1:8.2p1-4ubuntu0.5) over (1:8.2p1-4ubuntu0.3) ... Preparing to unpack .../05-distro-info-data_0.43ubuntu1.11_all.deb ... Unpacking distro-info-data (0.43ubuntu1.11) over (0.43ubuntu1.10) ... Preparing to unpack .../06-libnetplan0_0.104-0ubuntu2~20.04.2_amd64.deb ... Unpacking libnetplan0:amd64 (0.104-0ubuntu2~20.04.2) over (0.103-0ubuntu5~20.04.5) ... Preparing to unpack .../07-netplan.io_0.104-0ubuntu2~20.04.2_amd64.deb ... Unpacking netplan.io (0.104-0ubuntu2~20.04.2) over (0.103-0ubuntu5~20.04.5) ... Preparing to unpack .../08-python-apt-common_2.0.1_all.deb ... Unpacking python-apt-common (2.0.1) over (2.0.0ubuntu0.20.04.6) ... Preparing to unpack .../09-python3-apt_2.0.1_amd64.deb ... Unpacking python3-apt (2.0.1) over (2.0.0ubuntu0.20.04.6) ... Preparing to unpack .../10-ubuntu-advantage-tools_27.12~20.04.1_amd64.deb ... Unpacking ubuntu-advantage-tools (27.12~20.04.1) over (27.4.2~20.04.1) ... Preparing to unpack .../11-command-not-found_20.04.6_all.deb ... Unpacking command-not-found (20.04.6) over (20.04.4) ... Preparing to unpack .../12-python3-commandnotfound_20.04.6_all.deb ... Unpacking python3-commandnotfound (20.04.6) over (20.04.4) ... Preparing to unpack .../13-libkeyutils1_1.6-6ubuntu1.1_amd64.deb ... Unpacking libkeyutils1:amd64 (1.6-6ubuntu1.1) over (1.6-6ubuntu1) ... Preparing to unpack .../14-ubuntu-release-upgrader-core_1%3a20.04.39_all.deb ... Unpacking ubuntu-release-upgrader-core (1:20.04.39) over (1:20.04.36) ... Preparing to unpack .../15-python3-distupgrade_1%3a20.04.39_all.deb ... Unpacking python3-distupgrade (1:20.04.39) over (1:20.04.36) ... Preparing to unpack .../16-python3-update-manager_1%3a20.04.10.11_all.deb ... Unpacking python3-update-manager (1:20.04.10.11) over (1:20.04.10.9) ... Preparing to unpack .../17-update-manager-core_1%3a20.04.10.11_all.deb ... Unpacking update-manager-core (1:20.04.10.11) over (1:20.04.10.9) ... Preparing to unpack .../18-apt-transport-https_2.0.9_all.deb ... Unpacking apt-transport-https (2.0.9) over (2.0.6) ... Preparing to unpack .../19-libsensors-config_1%3a3.6.0-2ubuntu1.1_all.deb ... Unpacking libsensors-config (1:3.6.0-2ubuntu1.1) over (1:3.6.0-2ubuntu1) ... Preparing to unpack .../20-libsensors5_1%3a3.6.0-2ubuntu1.1_amd64.deb ... Unpacking libsensors5:amd64 (1:3.6.0-2ubuntu1.1) over (1:3.6.0-2ubuntu1) ... Preparing to unpack .../21-python3-urllib3_1.25.8-2ubuntu0.2_all.deb ... Unpacking python3-urllib3 (1.25.8-2ubuntu0.2) over (1.25.8-2ubuntu0.1) ... Preparing to unpack .../22-unattended-upgrades_2.3ubuntu0.3_all.deb ... Unpacking unattended-upgrades (2.3ubuntu0.3) over (2.3ubuntu0.1) ... Preparing to unpack .../23-grafana_9.3.2_amd64.deb ... Unpacking grafana (9.3.2) over (8.3.3) ... Preparing to unpack .../24-influxdb-client_1.6.4-1+deb10u1ubuntu0.1_amd64.deb ... Unpacking influxdb-client (1.6.4-1+deb10u1ubuntu0.1) over (1.6.4-1build1) ... dpkg: error processing archive /tmp/apt-dpkg-install-zGIs5r/24-influxdb-client_1.6.4-1+deb10u1ubuntu0.1_amd64.deb (--unpack): trying to overwrite '/usr/bin/influx', which is also in package influxdb 1.8.10-1 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing: /tmp/apt-dpkg-install-zGIs5r/24-influxdb-client_1.6.4-1+deb10u1ubuntu0.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) mirko@influxdb-grafana:~$
Hat jemand ne Idee?
Danke und Gruß
-
Ja, bei influx das gleiche in grün. Findet sich im Thread zu Grafana aber auch eine Anleitung zu.
-
@thomas-braun Habe ich dann wohl übersehen
-
Und ich gerade erst dein Log gelesen.
Hier musst du zuvorsudo apt remove influxdb-client sudo apt update sudo apt full-upgrade
machen. Das ist in der Version 1.8 schon drin und es scheppert mit der Version 1.6 bei dir.
-
@thomas-braun Ja,
dachte ich mir gerade auch da nach der Ändeung der gleiche Error kommt.
-
Versuch es mit dem Dreizeiler von oben.
-
@thomas-braun Ok.
Dann ist der Client natürlich weg und er bietet mir auch keine neue Version zur Installation an da dieser ja in meiner Version schon enthalten ist:
InfluxDB v1.8.10 (git: 1.8 688e697c51fd)
Danke für die schnelle Antwort
-
@wendy2702 sagte in InfluxDB Upgrade error:
Dann ist der Client natürlich weg
Jein, der ist jetzt nur in einem anderen Paket.
Influx baut das Paket 'mit alles', Debian/Ubuntu splitten die Funktionen in separate Pakete.
Und genau diese veränderte Struktur wird von Apt erkannt und es wird beim Systemadministrator (also dir) nachgefragt, was da nun passieren soll. -
@thomas-braun sagte in [Gelöst] InfluxDB Upgrade error:
Jein, der ist jetzt nur in einem anderen Paket.
So meinte ich das, nur andere Worte verwendet.
Kennst du Vor/Nachteil von Influx 1.x zu 2.x ?
-
@wendy2702
Ich setze kein influx ein, da kann ich also gar nix zu sagen. -
@thomas-braun OK.
-
@wendy2702 sagte in [Gelöst] InfluxDB Upgrade error:
Kennst du Vor/Nachteil von Influx 1.x zu 2.x ?
Hi,
kennst Du dich mit der InfluxDB AbfragespracheinfluxQL
gut aus undFlux
ist häh wasn das, dann bleib lieber bei der 1.8 Version und fang heute schon mal an Dich mitFlux
zu beschäftigen
Wenn Du gerade erst beginnst, dann kannst Du auch gleich mit V2.x weitermachen, vorher natürlich gut einlesen, wegen Datenmigration 1.8 -> 2.x und wie immer Backups nicht vergessenIrgendwann müssen wir alle auf influxDb 2.x umstellen, aktuell ist es aber noch nicht abgekündigt, somir drängelt da noch keiner Roadmap
VG
Bernd -
@dp20eic Habe mich als ich mit Indlux angefangen habe (lange ists her) zwangsweise kurz mit der Abfrage usw. beschäftigt.
Das meiste davon aber mittlerweile wieder vergessen.
Mal bisschen lesen wenn ich Zeit habe was mich erwartet.
-
@Thomas-Braun Hallo,
bin jetzt auch über das Influxrepoproblem gestolpert.
Hab im anderen Fred deine Anleitung gefunden.Kann ich die jetzt direkt übenehmen?
Auch diese Zeile:
sudo apt-key del 05CE 1508 5FC0 9D18 E99E FB22 684A 14CF 2582 E0C5
Die /etc/apt/sources.list.d/influxdata.list existiert bei mir nicht, ich habe:
Ist da influxdb.list gemeint?Hier noch mein LOG beim Update:
pi@Smartazamba:~ $ iobroker stop && sudo apt update && sudo apt full-upgrade --yes && sudo reboot Hit:1 http://deb.debian.org/debian bullseye InRelease Get:2 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB] Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB] Ign:4 https://repos.influxdata.com/debian bullseye InRelease Hit:5 https://deb.nodesource.com/node_16.x bullseye InRelease Get:6 https://packages.grafana.com/oss/deb stable InRelease [5984 B] Err:7 https://repos.influxdata.com/debian bullseye Release 404 Not Found [IP: 13.224.189.2 443] Get:8 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [311 kB] Err:6 https://packages.grafana.com/oss/deb stable InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9E439B102CF3C0C6 Get:9 http://archive.raspberrypi.org/debian bullseye/main arm64 Packages [302 kB] Get:10 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB] Reading package lists... Done E: The repository 'https://repos.influxdata.com/debian bullseye Release' no longer has 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. W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.grafana.com/oss/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9E439B102CF3C0C6 pi@Smartazamba:~ $ ^C pi@Smartazamba:~ $ cat /etc/apt/sources.list.d/influxdb.list deb [signed-by=/etc/apt/trusted.gpg.d/influxdb.gpg] https://repos.influxdata.com/debian bullseye stable pi@Smartazamba:~ $ apt-key list | grep influx | wc -l Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). 3
-
Ich glaube da ist was anderes im Busch. Das Repository hängt bei mir auch in den Seilen. Hatte aber noch keine Zeit mir das genauer anzuschauen.
-
@thomas-braun @thomas-braun Ok, als sollte ich deine Anleitung lieber nicht probieren?
-
@rushmed sagte in [Gelöst] InfluxDB Upgrade error:
@thomas-braun @thomas-braun Ok, als sollte ich deine Anleitung lieber nicht probieren?
Moin,
habe gerade auf den offiziellen Seiten, dieses gefundenLinux Package Signing Key Rotation All signed InfluxData Linux packages have been resigned with an updated key. If using Linux, you may need to update your package configuration to continue to download and verify InfluxData software packages. For more information, see the Linux Package Signing Key Rotation blog post.
Auf der Seite steht auch wie man das wohl wieder gerade zieht, dem
Blog post
folgen .VG
BerndEdit
Die server zum Abfragen des Keys scheinen ein Problem zu haben.404 Not Found Code: NoSuchKey Message: The specified key does not exist. Key: index.html RequestId: A83EH4N357J8FS56 HostId: rY32TvnfiL+lAZxL/OaRzX5reFs6R4ORaEN6L6FtqO1ndkv29+EIkdMQDGOFn7DjHV6phMr1m/k=
-
@dp20eic Bist du danach vorgegangen?
-
Moin,
ja, aber es wird nicht der
key
geladen, da die Server ZickenSprich, der Befehl kann nichts holen
wget -q https://repos.influxdata.com/influxdata-archive_compat.key
Dann kommt halt, als Konsequenz,
gpg: can't open './influxdata-archive_compat.key': No such file or directory
Also auf die fünf Buchstaben setzen und warten, bis die das repariert haben
VG
Bernd -
@dp20eic Oke, ich gedulde mich.