Skip to main content

Hi all !

While upgrading from 23.10 to 24.04, I ended up with a failure, as shown below.

Does anyone has experienced a same issue and would have a clue to finalize the upgrade ?

In upgrade.log :

2024-05-06 10:00|0|0|UPGRADE - 24.04.0: Unable to install core widgets - Code : 0 - Error : Widget is already installed. - Trace : #0 /usr/share/centreon/src/CentreonModule/Infrastructure/Source/SourceAbstract.php(73): CentreonLegacy\Core\Widget\Installer->install()
#1 /usr/share/centreon/src/CentreonModule/Infrastructure/Service/CentreonModuleService.php(109): CentreonModule\Infrastructure\Source\SourceAbstract->install()
#2 /usr/share/centreon/www/install/php/Update-24.04.0.php(58): CentreonModule\Infrastructure\Service\CentreonModuleService->install()
#3 /usr/share/centreon/www/install/php/Update-24.04.0.php(267): Core\Platform\Infrastructure\Repository\DbWriteUpdateRepository->{closure}()
#4 /usr/share/centreon/src/Core/Platform/Infrastructure/Repository/DbWriteUpdateRepository.php(144): include_once('...')
#5 /usr/share/centreon/src/Core/Platform/Infrastructure/Repository/DbWriteUpdateRepository.php(61): Core\Platform\Infrastructure\Repository\DbWriteUpdateRepository->runScript()
#6 /usr/share/centreon/www/install/step_upgrade/process/process_step4.php(46): Core\Platform\Infrastructure\Repository\DbWriteUpdateRepository->runUpdate()
#7 {main}
 

Thanks for any idea.

Shiroh

Hi @shiroh 

Can you tell us if you try to do the upgrade multiple times?
Or refresh the page during the upgrade?

If yes, it’s normal that Centreon can’t install twice the same widgets.

To fix it, you can edit the file /usr/share/centreon/www/install/php/Update-24.04.0.php and comment the line 267:

//$installCoreWidgets();

 


Hi @sduret ,

I did not tried mutiple times nor refreshing the page, but I got the support on this case, and you’re right, the solution was to comment the line 267 in /usr/share/centreon/www/install/php/Update-24.04.0.php

Now, I can upgrade to 24.04 but some services are missing, so I’ll wait for an update from the support.

 

Thanks anyway for your help.


Reply