Skip to main content

Hello,

By following the page https://docs.centreon.com/docs/upgrade/upgrade-from-24-04/, I'm stuck on the step "Upgrade the Centreon solution" when I run the command :
# dnf update centreon\* php-pecl-gnupg

The part of the output with problem is :  
==cut==
  Upgrading        : centreon-web-24.10.3-1.el9.noarch                              49/166
  Running scriptlet: centreon-web-24.10.3-1.el9.noarch                              49/166
Managing users and groups for apache ...
Updating APP_SECRET in centreon environment file ...
PHP Warning:  PHP Startup: posix: Unable to initialize module
Module compiled with module API=20210902
PHP    compiled with module API=20220829
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: shmop: Unable to initialize module
Module compiled with module API=20210902
PHP    compiled with module API=20220829
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: sysvmsg: Unable to initialize module
Module compiled with module API=20210902
PHP    compiled with module API=20220829
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: sysvsem: Unable to initialize module
Module compiled with module API=20210902
PHP    compiled with module API=20220829
These options need to match
 in Unknown on line 0
==cut==

The "API=20210902" seems to be php 8.1 and API=20220829 is php 8.2.

I do the step with the php version change as : 
# dnf module list php | grep ^php
php  8.1 php  8.2     common id], devel, minimal     PHP scripting language
# dnf module reset php
# dnf module enable php:8.2
# dnf module list php | grep ^php
php  8.1     common >d], devel, minimal PHP scripting language
php  8.2 oe] common dd], devel, minimal PHP scripting language
#

In Redhat 9 the standard php service name is php-fpm.service but not php8.1-fpm.service.
Do you think is it my possible problem ? 

My current version for package centreon-web is centreon-web-24.04.9-1.el9 because before that i upgrade to the latest 24.04.

How can i help you to find my solution ? 

Thanks you for your help. 

Franck.

Hello ​@fzim,

Did you upgrade php, as described here: https://docs.centreon.com/docs/upgrade/upgrade-from-24-04/#upgrade-php?


Hello,

Thanks for trying to help me.
Yes I do before : 
# dnf module list php | grep ^php
php  8.1 .e] common od] di], devel, minimal PHP scripting language
php  8.2     common od], devel, minimal     PHP scripting language
# dnf module reset php
# dnf module enable php:8.2
# dnf module list php | grep ^php
php  8.1     common d], devel, minimal PHP scripting language
php  8.2 /e] common d], devel, minimal PHP scripting language
#

Only module of php-process rpm have this problem. ( posix,shmop,sysvmsg,sysvsem)

In my log i can see the php-process is updating after. So it’s a problem for the update processus because all modules php have to be installed before run php command by the scriptlet of centreon-web package.

( the command in the scriptlet step is : /usr/share/centreon/bin/console cache:clear ) 

I open the spec file of centreon-web rpm and there are not a require for php-process, just for many php rpm but not for php-process so the upgrading php-process step is 60/166 before the upgrading centreon-plugins* step and it’s too late. 

Maybe there is a trick to get through this.

Reply