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 ?


Reply