Question

Plus de journaux d'évènements sur hôtes et services depuis MAJ 22.04.7

  • 5 December 2022
  • 5 replies
  • 68 views

Badge +2

Bonjour, 

 

Depuis une mise à jour de ce matin, je n’ai plus aucune remontée de journaux d’évènement ou de logs pour mes hôtes/sondes…

 

Je ne sais pas ce qui bloque. J’ai un message d’erreur que voici : 

Symfony\Component\HttpFoundation\Response::__construct(): Argument #2 ($status) must be of type int, string given, called in /usr/share/centreon/src/EventSubscriber/CentreonEventSubscriber.php on line 422

Je vous joins une capture d’écran également.

 

D’avance merci !

 

Florian.

 


5 replies

Userlevel 3
Badge +11

👋

 

@Florian VAC, did you follow this for the update?

 

https://docs.centreon.com/docs/22.04/update/update-centreon-platform/#update-the-centreon-central-server

 

Also, can you clear your Symfony cache for good measure

 

su - apache -s /bin/bash -c "/usr/share/centreon/bin/console cache:clear"

 

🐱👤

Badge +2

Good morning !

Sorry for the absence...

I just updated to ne 22.04.2 and I still get the same message when I look for my service history...

I despair.

 

I'm trying to understand the error message but I don't see why the returned value is not an int. Nothing change on Centreon.

 

 

Best regards.

Badge +2

Hello, 

 

Here are the error code when i try to see history : 

{"code":500,"message":"Symfony\\Component\\HttpFoundation\\Response::__construct(): Argument #2 ($status) must be of type int, string given, called in \/usr\/share\/centreon\/src\/EventSubscriber\/CentreonEventSubscriber.php on line 421"}

If i try to force value into int, here is the new message : 

{"code":404,"message":"Service 91 de l'h\u00f4te 430 non trouv\u00e9"}

 

Modification with intval

 

Userlevel 3
Badge +11

Hi, can you confirm you are using MariaDB 10.5.x

https://docs.centreon.com/docs/22.04/installation/prerequisites/#dbms

Badge +2

Hello, 

 

Yes, i’m using MariaDB 10.5.18.

 

This bug appear with no reasons… 

 

Regards.

Reply