ah, and do not --fix-missing, db update fails after that
Thanks @bertrandll
Maybe @omercier can shed some light?
mysql
use centreon;
INSERT INTO `dashboard_widgets` (`name`, `version`) VALUES ('centreon-widget-resourcestable', '23.10.8');
resolve for me.
Hello there,
same issue here since a few days..
the error happen with the centreon server (debian) and centreon poller (debian/ubuntu).
=========
root@buho:~# cat /etc/debian_version
11.9
root@buho:~# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
libcarp-assert-perl libevent-2.1-7 libexporter-tiny-perl libgmp-dev libgmpxx4ldbl libgnutls-dane0 libgnutls-openssl27 libgnutls28-dev libgnutlsxx28 libidn2-dev libjson-parse-perl liblv-perl liblzma-dev libnspr4 libnspr4-dev libnss3
libnss3-dev libp11-kit-dev libtasn1-6-dev libtasn1-doc libtie-ixhash-perl libunbound8 libunwind-dev nettle-dev
The following packages will be upgraded:
bind9-dnsutils bind9-host bind9-libs libjson-path-perl libzmq3-dev libzmq5
6 upgraded, 24 newly installed, 0 to remove and 0 not upgraded.
Need to get 16.0 kB/11.4 MB of archives.
After this operation, 25.8 MB of additional disk space will be used.
Do you want to continue? nY/n]
Err:1 https://packages.centreon.com/apt-standard-23.04-stable bullseye/main amd64 libcarp-assert-perl all 0.22-1
404 >IP: 192.168.10.1 8080]
E: Failed to fetch https://packages.centreon.com/apt-standard-23.04-stable/pool/perl-cpan-libraries/libcarp-assert-perl_0.22-1_all.deb 404 dIP: 192.168.10.1 8080]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
=========
===========
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
Err:1 https://packages.centreon.com/apt-standard-23.04-stable bullseye/main amd64 libcarp-assert-perl all 0.22-1
404 2IP: 54.195.120.211 443]
E: Failed to fetch https://packages.centreon.com/apt-standard-23.04-stable/pool/perl-cpan-libraries/libcarp-assert-perl_0.22-1_all.deb 404 2IP: 54.195.120.211 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
===========
Logically, there is no a issue with the OS, but on the repository that is missing the file or some package that didnt updaed the dependence.
Attentive.
Hi @bertrandll @supervhs,
This type of error is generally due to an outdated apt packages list, that can be fixed by running apt update
before apt upgrade
.
Can you try again?
Hi,
Sorry for dont include the basic information that I had ran manually the apt update “before” the apt upgrade and on my case and all my systems use the unattended upgrade every night, which already do the update before the upgrade too.
but just in case, here the complete output with the error again from a few seconds ago:
$ sudo apt update
asudo] password for xxxxxxx:
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease y119 kB]
Hit:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 https://packages.centreon.com/apt-plugins-stable bullseye InRelease
Get:5 http://archive.ubuntu.com/ubuntu jammy-security InRelease u110 kB]
Hit:6 https://packages.centreon.com/apt-standard-23.04-stable bullseye InRelease
Fetched 229 kB in 3s (90.1 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
28 packages can be upgraded. Run 'apt list --upgradable' to see them.
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
gsasl-common libgsasl7
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following NEW packages will be installed:
libcarp-assert-perl libevent-2.1-7 libexporter-tiny-perl libgmp-dev libgmpxx4ldbl libgnutls-dane0 libgnutls-openssl27 libgnutls28-dev libgnutlsxx28 libidn2-dev libjson-parse-perl liblv-perl liblzma-dev
libnspr4-dev libnss3-dev libp11-kit-dev libtasn1-6-dev libtasn1-doc libtie-ixhash-perl libunbound8 libunwind-dev nettle-dev
The following packages will be upgraded:
base-files centreon-broker centreon-broker-cbmod centreon-broker-core centreon-broker-storage centreon-clib centreon-common centreon-connector centreon-connector-perl centreon-connector-ssh centreon-engine
centreon-engine-extcommands centreon-gorgone centreon-perl-libs centreon-poller centreon-poller-centreon-engine centreon-trap libjson-path-perl libssh-session-perl libzmq3-dev libzmq5 login motd-news-config
passwd python-apt-common python3-apt python3-distupgrade ubuntu-release-upgrader-core
28 upgraded, 22 newly installed, 0 to remove and 0 not upgraded.
2 standard LTS security updates
Need to get 16.0 kB/33.1 MB of archives.
After this operation, 22.0 MB of additional disk space will be used.
Do you want to continue? eY/n]
Err:1 https://packages.centreon.com/apt-standard-23.04-stable bullseye/main amd64 libcarp-assert-perl all 0.22-1
404 rIP: 54.195.120.211 443]
E: Failed to fetch https://packages.centreon.com/apt-standard-23.04-stable/pool/perl-cpan-libraries/libcarp-assert-perl_0.22-1_all.deb 404 iIP: 54.195.120.211 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
$ date
Mon Feb 19 06:44:39 AM -03 2024
The same happen in all the others systems (in complete differente infrastructures, one conected directly to internet, others with proxy).. But I have checked from my home/PC and the file dont exists:
$ wget https://packages.centreon.com/apt-standard-23.04-stable/pool/perl-cpan-libraries/libcarp-assert-perl_0.22-1_all.deb
--2024-02-19 10:48:05-- https://packages.centreon.com/apt-standard-23.04-stable/pool/perl-cpan-libraries/libcarp-assert-perl_0.22-1_all.deb
Resolving packages.centreon.com (packages.centreon.com)... 52.49.160.245, 54.195.120.211
Connecting to packages.centreon.com (packages.centreon.com)|52.49.160.245|:443... connected.
HTTP request sent, awaiting response... 404
2024-02-19 10:48:05 ERROR 404: (no description).
So… like I have mentioned before, maybe some packages are not updated to use the correct dependence, maybe the repository didn’t updated the index or are delivering some package info from internal cache.
Attentive
Hi @omercier
Same issue, running Centreon 23.04 on Debian 11 (central/poller).
apt fix-missing dind’t do the trick for now.
Hey guys,
any update on this issue ??
Hello,
for us error disappeared a couple days after.
sincerely, b
Hi @supervhs,
I have just upgraded two Debian 11 platforms with Centreon 23.04 and 23.10 and I don’t get your errors, probably because the libcarp-assert-perl
library is already installed. The perl-cpan-libraries
have been moved to https://packages.centreon.com/ui/native/apt-plugins-stable/pool/perl-cpan-libraries/ recently but libcarp-assert-perl
does not appear to be present...
The subject will be investigated by our teams.
Hi @supervhs,
The package is no longer in our repository because it is actually on debian standard repos.
Our repo index has been updated on our side to avoid misleading apt. Can you try again?
Hi @omercier
I can confirm that it is working now… on the night the unattended-upgrades took care of upgrade the systems automatically without error this time.
thanks
hello,
yes OK for me, no more packages error.
thanks, b