Question

Migration EL7 to EL8 with OVF VMWare erreur: PDO object is not initialized

  • 20 September 2023
  • 5 replies
  • 245 views

Badge +1

Hi,

I installed Centreon 23.04 from the Vmware image. No problem. Then I started the migration from my EL7 centreon 22.10. After migrating the folders (step 4 of the migration) I can no longer connect to the web page. Error: "PDO object is not initialized, constructor was not called"

No error in login.log but in centreon-web.log :

[2023-09-20T09:19:05+0200] [ERROR] [Core\Security\ProviderConfiguration\Application\UseCase\FindProviderConfigurations\FindProviderConfigurations:61]: PDO object is not initialized, constructor was not called {"trace":"#0 /usr/share/centreon/src/Core/Security/ProviderConfiguration/Infrastructure/Repository/DbReadConfigurationRepository.php(281): PDO->query()\n#1 /usr/share/centreon/src/Core/Security/ProviderConfiguration/Application/UseCase/FindProviderConfigurations/FindProviderConfigurations.php(59): Core\\Security\\ProviderConfiguration\\Infrastructure\\Repository\\DbReadConfigurationRepository->findConfigurations()\n#2 /usr/share/centreon/src/Core/Security/ProviderConfiguration/Infrastructure/Api/FindProviderConfigurations/FindProviderConfigurationsController.php(42): Core\\Security\\ProviderConfiguration\\Application\\UseCase\\FindProviderConfigurations\\FindProviderConfigurations->__invoke()\n#3 /usr/share/centreon/vendor/symfony/http-kernel/HttpKernel.php(163): Core\\Security\\ProviderConfiguration\\Infrastructure\\Api\\FindProviderConfigurations\\FindProviderConfigurationsController->__invoke()\n#4 /usr/share/centreon/vendor/symfony/http-kernel/HttpKernel.php(75): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw()\n#5 /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php(202): Symfony\\Component\\HttpKernel\\HttpKernel->handle()\n#6 /usr/share/centreon/api/index.php(47): Symfony\\Component\\HttpKernel\\Kernel->handle()\n#7 {main}"}

 

Thanks for your help


5 replies

Badge +4

Hello,

did you find the solution? i have the same problem.

Thanks,,

Badge +1

Hello i have the exact same problem in the same situation of migration. Do someone have the solution please ? 

Badge +4

Hello i have the exact same problem in the same situation of migration. Do someone have the solution please ? 

 

https://thewatch.centreon.com/platform-7/mariadb-access-denied-for-user-centreonatlocalhost-2439

 

Badge +1

Hello i have the exact same problem in the same situation of migration. Do someone have the solution please ? 

 

https://thewatch.centreon.com/platform-7/mariadb-access-denied-for-user-centreonatlocalhost-2439

 

Did you just changed the password in those two file /etc/centreon/centreon.conf.php & /etc/centreon/conf.pm and it work fine ? I already have a password set in those file and i tried changing them but it don’t resolve it. 
Thanks for your reply !

Badge +1

Did you just changed the passwrd in those two file /etc/centreon/centreon.conf.php & /etc/centreon/conf.pm ? I already have password set up in those files. I tried changing them but it didn’t resolve the problem. 
Thanks for your reply !

Reply