Skip to main content

Hello everyone,

I'm trying to update Centreon 21.04.13 by following this procedure: Montée de version depuis Centreon 21.04 | Centreon Documentation

Everything is working fine during the installation but when it is finished and I try to login, I get the following error: internal server error

I’ve checked the Centreon logs but I could not find anything related to this error.

Thank you in advance for your help !

Kind regards

Hello @Alan Blanchard ,

After trying to login, did you get any error in /var/log/centreon/login.log, /var/log/centreon/sql-error.log or /var/log/php-fpm/centreon-error.log ?

Regards,


Hello @Kriko,

Thank you form your message !

/var/log/centreon/login.log : Nothing special

/var/log/centreon/sql-error.log : Empty

/var/log/php-fpm/centreon-error.log :

[21-Apr-2022 10:45:49 Europe/Paris] CRITICAL: Uncaught Error: Class "Centreon\Infrastructure\Security\AuthenticationRepositoryRDB" not found {"
exception":"[object] (Error(code: 0): Class \"Centreon\\Infrastructure\\Security\\AuthenticationRepositoryRDB\" not found at /var/cache/centreo
n/symfony/ContainerBSyok5T/getAuthenticationRepositoryInterfaceService.php:9)"}

[21-Apr-2022 10:45:49 Europe/Paris] CRITICAL: Attempted to load class "AuthenticationRepositoryRDB" from namespace "Centreon\Infrastructure\Sec
urity". Did you forget a "use" statement for another namespace? {"context":"[object] (Symfony\\Component\\ErrorHandler\\Error\\ClassNotFoundErr
or(code: 0): Attempted to load class \"AuthenticationRepositoryRDB\" from namespace \"Centreon\\Infrastructure\\Security\".\nDid you forget a \
"use\" statement for another namespace? at /var/cache/centreon/symfony/ContainerBSyok5T/getAuthenticationRepositoryInterfaceService.php:9)"}

[21-Apr-2022 10:45:56 Europe/Paris] PHP Warning:  Undefined array key "finish" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/ac81e1f21d5b4
453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 49
>21-Apr-2022 10:45:56 Europe/Paris] PHP Warning:  Attempt to read property "value" on null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/a
c81e1f21d5b4453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 49
/21-Apr-2022 10:45:56 Europe/Paris] PHP Warning:  Undefined array key "finish" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/ac81e1f21d5b4
453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 68
21-Apr-2022 10:45:56 Europe/Paris] PHP Warning:  Attempt to read property "value" on null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/a
c81e1f21d5b4453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 68
r21-Apr-2022 10:45:59 Europe/Paris] PHP Warning:  Undefined array key "finish" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/ac81e1f21d5b4
453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 49
b21-Apr-2022 10:45:59 Europe/Paris] PHP Warning:  Attempt to read property "value" on null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/a
c81e1f21d5b4453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 49
<21-Apr-2022 10:45:59 Europe/Paris] PHP Warning:  Undefined array key "finish" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/ac81e1f21d5b4
453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 68
821-Apr-2022 10:45:59 Europe/Paris] PHP Warning:  Attempt to read property "value" on null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/a
c81e1f21d5b4453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 68
621-Apr-2022 10:46:00 Europe/Paris] PHP Warning:  Undefined array key "finish" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/ac81e1f21d5b4
453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 49
21-Apr-2022 10:46:00 Europe/Paris] PHP Warning:  Attempt to read property "value" on null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/a
c81e1f21d5b4453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 49
e21-Apr-2022 10:46:00 Europe/Paris] PHP Warning:  Undefined array key "blockPreview" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/ac81e1f
21d5b4453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 61
n21-Apr-2022 10:46:00 Europe/Paris] PHP Warning:  Attempt to read property "value" on null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/a
c81e1f21d5b4453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 61
i21-Apr-2022 10:46:00 Europe/Paris] PHP Warning:  Undefined array key "finish" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/ac81e1f21d5b4
453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 68
l21-Apr-2022 10:46:00 Europe/Paris] PHP Warning:  Attempt to read property "value" on null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/a
c81e1f21d5b4453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 68
21-Apr-2022 10:46:01 Europe/Paris] PHP Warning:  Undefined array key "finish" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/ac81e1f21d5b4
453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 49
n21-Apr-2022 10:46:01 Europe/Paris] PHP Warning:  Attempt to read property "value" on null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/a
c81e1f21d5b4453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 49
o21-Apr-2022 10:46:01 Europe/Paris] PHP Warning:  Undefined array key "finish" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/ac81e1f21d5b4
453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 68
21-Apr-2022 10:46:01 Europe/Paris] PHP Warning:  Attempt to read property "value" on null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/a
c81e1f21d5b4453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 68
p21-Apr-2022 10:46:04 Europe/Paris] PHP Warning:  Undefined array key "finish" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/ac81e1f21d5b4
453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 49
h21-Apr-2022 10:46:04 Europe/Paris] PHP Warning:  Attempt to read property "value" on null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/a
c81e1f21d5b4453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 49
p21-Apr-2022 10:46:04 Europe/Paris] PHP Warning:  Undefined array key "finish" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/ac81e1f21d5b4
453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 68
.21-Apr-2022 10:46:04 Europe/Paris] PHP Warning:  Attempt to read property "value" on null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/a
c81e1f21d5b4453f8a41890089d1cc1725bf0e6_0.file.content.tpl.php on line 68

 

Do you have any idea from where it could come from ?

Thank you in advance for your feedback !


Kind regards


Hello,

I actually have the same problem (Internal server error in red) above the login form after upgrading Centreon from 21.04 to 21.10 with “dnf upgrade”, it was working perfectly before that.

In “/var/log/php-fpm/centreon-error.log”, I have an undefined method “setContact” as you can see :
 

a21-Apr-2022 10:48:48 Europe/Paris] CRITICAL: Uncaught Error: Call to undefined method Security\Domain\Authentication\Model\LocalProvider::setContact() {"exception":"{object] (Error(code: 0): Call to undefined method Security\\Domain\\Authentication\\Model\\LocalProvider::setContact() at /var/cache/centreon/symfony/ContainerR2MxUHs/getLocalProviderService.php:11)"}

 

l21-Apr-2022 10:48:48 Europe/Paris] CRITICAL: Attempted to call an undefined method named "setContact" of class "Security\Domain\Authentication\Model\LocalProvider". {"context":""object] (Symfony\\Component\\ErrorHandler\\Error\\UndefinedMethodError(code: 0): Attempted to call an undefined method named \"setContact\" of class \"Security\\Domain\\Authentication\\Model\\LocalProvider\". at /var/cache/centreon/symfony/ContainerR2MxUHs/getLocalProviderService.php:11)"}


Thanks.

 

Edit : While I was still connected on the web interface, It shows a blank page maybe because I cannot authenticate myself, but It’s showing me these errors (same as the log file)
 

Error messages from the Centreon web interface

I’m going to reinstall PHP in case that’ll help. Maybe it got upgraded badly.

Edit 2 : It didn’t solve the problem. I’m going to restore my backup from this night and I’ll try again to upgrade.

Edit 3 : I solved it. I reverted to my backup at 21.04 version, I followed back the upgrade documentation https://docs.centreon.com/fr/docs/upgrade/upgrade-from-21-04/ and after that followed https://docs.centreon.com/fr/docs/update/update-centreon-platform/ 

I probably skipped some step while upgrading, or I upgraded in wrong order, causing that.

So it’s solved for me but @Alan Blanchard if you can share some errors from your logs, it will be helpful.

Regards,
Kouenteen.


Hello guys !

Thank you for your answers.

I’ve noticed some PHP errors during the upgrade : https://paste.ofcode.org/68CEPG8pWetPYgJDard3Qq

Here are the errors when I’m trying to login : https://paste.ofcode.org/aYgbBBUswJvA89t8YQGKsm

Thank you in advance for your help !

Kind regards


You paste only the centreon-error.log right ?

Nothing for login.log or sql-error.log when you try to login ?

The errors during the “yum” are not significative for our issue.

Regards,
Kriko.


Dear @Kriko,

Thank you for your answer !

login.log is empty. However, here is sql-error.log : https://paste.ofcode.org/aYgbBBUswJvA89t8YQGKsm

Thank you in advance for your help !

Kind regards


Hello @Alan Blanchard 

Maybe I blind, but I have only the access to the php error on your paste.ofcode not the sql-error.log :/


Dear @Kriko ,

The PHP errors are the content of sql-error.log : https://paste.ofcode.org/aYgbBBUswJvA89t8YQGKsm

Kind regards


 

weird.

Have you try in private navigation too ?

Could you give the result of

rpm -qa | grep -i centreon-web

 


Dear @Kriko

I’ve checked all the logs and login.log and sql-error.log are empty when I try to login.

However, centreon-error.log contains the following errors : https://paste.ofcode.org/HtJS45EsbUeUvckEccTWRf

Here is the result of the command that you needed :

troot@centreon-central ~]# rpm -qa | grep -i centreon-web
centreon-web-21.10.5-2.el7.centos.noarch

I’ve tried in private navigation, same error...


Reply