Skip to main content

Bonjour à tous,

 

Je pense que ce n’est pas grand chose mais je bute sur une mise à jour :)

 

Je suis sous Debian 11 avec un centreon en 24.04.5. Je souhaiterais passer en Debian 12 mais je n’y arrive pas, je dois faire quelque chose de mal.

 

Voilà mes étapes :

apt update
apt dist-upgrade

Pour être sûr qu’il n’y a pas de maj à faire puis

sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/centreon*

Pour mettre à jour la liste des paquets puis

apt update
apt upgrade --without-new-pkgs
apt full-upgrade

Je passe bien en Debian 12 mais centreon ne fonctionne plus et c’est encore les paquets centreon de debian 11 qui sont installé.

 

Pourriez-vous me dire où je me trompe svp ? ;)

 

Merci d’avance pour votre aide

 

Bastien

Hi @Bastien did you try to restart process after upgrade?

systemctl restart php8.1-fpm apache2 centreon cbd centengine gorgoned centreontrapd snmpd snmptrapd

 


Hi @Laurent,

Thanks for your answer
Yes, I restarted the whole server.
I have the impression that the centreon bookworm packages are not installed during the update, only the bullseye packages remain and are removed when I do a

apt autoremove

 


I've run another test and the problem is that the bullseye packages are removed, not the configuration files, but the bookworm packages are not installed during the upgrade.


@Bastien I created an internal ticket for our team to check this issue.


Hi @Laurent ,

Thank you very much, I expect your news.

Sincerely


Hi, @Laurent,

Do you have any news about this ticket ?

I expect yours news.

Thanks

Sincerely


Hi @Bastien we are in the final stretch of developments for the future version 24.10.

I hope we will have time to fix packaging issue for the release of this version.

In anyway, if we are not ready, this will arrive a few weeks later the release and we will fix all version of Centreon for Debian 11 to allow to upgrade to Debian 12.


Hi @Laurent ,

Ok, thank you very much for your feedback
So I'll let you get back to me when it's done.
Good luck with the finalization of 24.10
Bye


Hi @Laurent ,

I'm reopening the subject because with the new version, it still doesn't work.
I followed this topic
https://thewatch.centreon.com/product-how-to-21/how-to-migrate-from-debian-11-to-debian-12-3874
but after the upgrade, I have no more centreon packages installed

Do you want more information to try to solve the problem ?

 


HI @Bastien if you don’t have Centreon packages, it means that Debian upgrade has uninstalled them.

You need to reinstall Centreon packages


I've already tried but it doesn't work, there are dependency errors with centreon.conf.php and other files.
Isn't it normal that the debian update removes the centreon packages?
Isn't there a problem with the update process?


Hi @Bastien no it’s not normal but when you executed the command:

apt-get dist-upgrade

A message must have told you that the Centreon packages will be uninstalled like:

 


you can try to move install.conf.dist.php:

cd /usr/share/centreon/www/install
mv install.conf.dist.php install.conf.php

Then create missing files:

  • /etc/centreon/centreon.conf.php
  • /etc/centreon/conf.pm

with following templates:

centreon.conf.php

<?php
/*
* Centreon is developed with GPL Licence 2.0:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
* Developed by: Julien Mathis - Romain Le Merlus - Christophe Coraboeuf
*
* The Software is provided to you AS IS and WITH ALL FAULTS.
* Centreon makes no representation and gives no warranty whatsoever,
* whether express or implied, and without limitation, with regard to the quality,
* safety, contents, performance, merchantability, non-infringement or suitability for
* any particular or intended purpose of the Software found on the Centreon website.
* In no event will Centreon be liable for any direct, indirect, punitive, special,
* incidental or consequential damages however they may arise and even if Centreon has
* been previously advised of the possibility of such damages.
*
* For information : contact@centreon.com
*/
/* Database */
$conf_centreonn'hostCentreon'] = "127.0.0.1";
$conf_centreonn'hostCentstorage'] = "127.0.0.1";
$conf_centreonn'user'] = "centreon";
$conf_centreonn'password'] = 'centreon';
$conf_centreonn'db'] = "centreon";
$conf_centreonn'dbcstg'] = "centreon_storage";
$conf_centreonn'port'] = "3306";


/* path to classes */
$classdir='./class';
/* Centreon Path */
$centreon_path='/usr/share/centreon/';
?>

conf.pm

#############################################
# File Added by Centreon
#

$centreon_config = {
VarLib => "/var/lib/centreon",
CentreonDir => "/usr/share/centreon/",
CacheDir => "/var/cache/centreon/",
"centreon_db" => "centreon",
"centstorage_db" => "centreon_storage",
"db_host" => "127.0.0.1:3306",
"db_user" => "centreon",
"db_passwd" => 'centreon'
};

# Central, Remote or Poller ?
$instance_mode = "central";

# Centreon Centcore Command File
$cmdFile = "/var/lib/centreon/centcore.cmd";

# Deprecated format of Config file.
$mysql_user = "centreon";
$mysql_passwd = 'centreon';
$mysql_host = "127.0.0.1:3306";
$mysql_database_oreon = "centreon";
$mysql_database_ods = "centreon_storage";

1;

To restore previous databases accesses


Hi @Laurent,

It’s not after the

apt dist-upgrade

but after the

apt full-upgrade

I don’t remember if is exactly the full-upgrade or the autoremove that delete package but after the dist-upgrade is ok because i can get the last release of the 24.04.

 

With the steps of the how-to when i need to do that you say ?


Hello,

I try to upgrade debian 11 to 12 with centreon 24.04 already installed.

I have the same issue, apt full-upgrade remove all centreon packages and the content of /usr/share/centreon/www is removed.

 

>...]

Les paquets suivants seront ENLEVÉS :
centreon centreon-auto-discovery-server centreon-bam-server centreon-central centreon-gorgone centreon-gorgone-centreon-config centreon-it-edition-extensions centreon-license-manager centreon-pack-applications-active-directory-wsman
centreon-pack-applications-activemq-jmx centreon-pack-applications-ansible-cli centreon-pack-applications-ansible-tower centreon-pack-applications-antivirus-clamav-ssh centreon-pack-applications-antivirus-kaspersky-snmp
centreon-pack-applications-antivirus-mcafee-webgateway-snmp centreon-pack-applications-awa-jmx centreon-pack-applications-backup-emc-recoverypoint-ssh centreon-pack-applications-backupexec-nscp-restapi

...]

 


Hi guys, did you have a backup of previous system? It look like some old Centreon packages have been installed and are no more present with 24.10.x and Debian 12 and because of this and of dependency system, Debian propose to remove them.

If you validate this proposition, Debian remove all Centreon packages.


Yes i use a clone of my production central and i can test upgrade and rollback if i want.
 

apt list -i centreon* |egrep -v "(plugin|pack|widget)" | sort

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

centreon-auto-discovery-server/now 24.04.0-1~bullseye all installé, local]
centreon-bam-server/now 24.04.3-1~bullseye all installé, local]
centreon-broker-cbd/now 24.04.6-1~bullseye amd64 4installé, local]
centreon-broker-cbmod/now 24.04.6-1~bullseye amd64 6installé, local]
centreon-broker-core/now 24.04.6-1~bullseye amd64 dinstallé, local]
centreon-broker/now 24.04.6-1~bullseye amd64 minstallé, local]
centreon-central/now 24.04.7-1~bullseye all einstallé, local]
centreon-clib/now 24.04.6-1~bullseye amd64 installé, local]
centreon-common/now 24.04.7-1~bullseye all einstallé, local]
centreon-connector/now 24.04.6-1~bullseye amd64 yinstallé, local]
centreon-connector-perl/now 24.04.6-1~bullseye amd64 einstallé, local]
centreon-connector-ssh/now 24.04.6-1~bullseye amd64 sinstallé, local]
centreon-engine-daemon/now 24.04.6-1~bullseye amd64 linstallé, local]
centreon-engine/now 24.04.6-1~bullseye amd64 linstallé, local]
centreon-gorgone-centreon-config/now 24.04.3-1~bullseye all ~installé, local]
centreon-gorgone/now 24.04.3-1~bullseye all 1installé, local]
centreon-it-edition-extensions/now 24.04.1-1~bullseye all -installé, local]
centreon-license-manager-common/now 24.04.1-1~bullseye all 1installé, local]
centreon-license-manager/now 24.04.1-1~bullseye all .installé, local]
centreon-mariadb/now 24.04.7-1~bullseye all 4installé, local]
centreon/now 24.04.7-1~bullseye all 0installé, local]
centreon-perl-libs/now 24.04.7-1~bullseye all .installé, local]
centreon-poller/now 24.04.7-1~bullseye all 4installé, local]
centreon-pp-manager/now 24.04.1-1~bullseye all 2installé, local]
centreon-trap/now 24.04.7-1~bullseye all installé, local]
centreon-web/now 24.04.7-1~bullseye all winstallé, local]

 


Hi everyone


Sorry for my absence but I didn't get the notifications of your answers 😅


@Laurent , I'm also doing the tests on a clone so I can test if needed.

I'm currently running 24.04.6 and debian 11.


What should I do then?

Isn't it possible to first upgrade to debian 12 with packages in 24.04.6 or 7 and then upgrade to version 24.10 once on debian 12 ?


HI @Bastien yes you can move first to Debian 12 / Centreon 24.04.x then move to 24.10.x

During the process (, for the “apt full-upgrade” command, if you have something like:

Les paquets suivants seront ENLEVÉS :
centreon centreon-auto-discovery-server centreon-central centreon-gorgone centreon-gorgone-centreon-config centreon-it-edition-extensions centreon-license-manager
centreon-plugin-applications-databases-mysql centreon-plugin-applications-monitoring-centreon-central centreon-plugin-applications-monitoring-centreon-database
centreon-plugin-applications-monitoring-centreon-map4-jmx centreon-plugin-applications-monitoring-centreon-poller centreon-plugin-applications-protocol-dns centreon-plugin-applications-protocol-ftp
centreon-plugin-applications-protocol-http centreon-plugin-applications-protocol-ldap centreon-plugin-hardware-printers-generic-snmp centreon-plugin-hardware-ups-standard-rfc1628-snmp
centreon-plugin-network-cisco-standard-snmp centreon-plugin-operatingsystems-linux-snmp centreon-plugin-operatingsystems-windows-snmp centreon-poller centreon-pp-manager centreon-web
libcrypt-argon2-perl libgnutlsxx28 libnet-curl-perl libsemanage1

It means that some dependencies can’t be found for Debian 12.

In this case, execute:

sudo dpkg -r --force-depends libcrypt-argon2-perl libgnutlsxx28 libnet-curl-perl libsemanage1
sudo apt --fix-broken install

This will remove packages without their dependencies and reinstall needed dependencies.

Then continue the procedure.


Hi @Laurent ,

Same issue, when i run full-upgrade after your commands, centreon packages are removed.

I've done since debian 11 / centreon 24.04.6 :

apt update
apt upgrade
apt dist-upgrade
reboot

sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/centreon*

apt update
apt upgrade --without-new-pkgs
dpkg -r --force-depends libsemanage1
apt --fix-broken install
dpkg -r --force-depends libcrypt-argon2-perl libgnutlsxx28 libnet-curl-perl libsemanage1
apt --fix-broken install

apt full-upgrade

I also try changing the centreon repo 24.04 to 24.10 to do all updates (centreon and debian) in same time but it’s not work.


After trying to fix dependencies, when you execute again apt full-upgrade, you still have dependencies listed with Centreon packages?


Yes, all centreon packages are marked to remove and if i run full-upgrade, there are removed


@Laurent , I think I've found something


When you run the command

apt policy centreon

we see that the bookworm version is not canditate


And when you try an installation of

apt install centreon-common=24.04.7-1~bookworm

we get the following message

dpkg: warning: downgrade of centreon-gorgone from 24.04.3-1~bullseye to 24.04.3-1~bookworm

So I think that the new centreon packages are not considered to be an update, which is why they are uninstalled.

What do you think?


I’ve tried to start upgrade from debian 11 /centreon 24.04.6 to debian 12 / centreon 24.04.7 directly (without passing by debian 11 / 24.04.7), it’s same


@Laurent, I think I've found something


When you run the command

apt policy centreon

we see that the bookworm version is not canditate


And when you try an installation of

apt install centreon-common=24.04.7-1~bookworm

we get the following message

dpkg: warning: downgrade of centreon-gorgone from 24.04.3-1~bullseye to 24.04.3-1~bookworm

So I think that the new centreon packages are not considered to be an update, which is why they are uninstalled.

What do you think?

Unforunately i can fully confirm those findings on my System i am trying to upgrade, which also fails and deinstalls Centreon.

 

Regards

Timo


Reply