Skip to main content

Hello , 
After a restore from backup, the Administration > parameters > option site is not working, its a blank page. 
The error : 

d24-Oct-2023 11:54:39 Europe/Paris] PHP Fatal error:  Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, bool given in /usr/share/centreon/www/include/Administration/parameters/centstorage/form.php:48
Stack trace:
#0 /usr/share/centreon/www/include/Administration/parameters/centstorage/form.php(48): array_map()
#1 /usr/share/centreon/www/include/Administration/parameters/parameters.php(77): require_once('...')
#2 /usr/share/centreon/www/main.get.php(271): include_once('...')
#3 {main}
thrown in /usr/share/centreon/www/include/Administration/parameters/centstorage/form.php on line 48


I have one more centreon instance and the form.php is the same on both. 
Version 22.10. 
Its propably something went wrong in database, but im not sure how to fix. 
Everything else works. 

Hello @silex27 👋

Confirm the credentials under

/etc/centreon-gorgone/config.d/31-centreon-api.yaml

Are you using the latest 22.10 ?

 


Hello @ponchoh 
v. 22.10.7 the version im using. 

The credentials are present in the mentioned config file. 


Is it possible to do an update?

 

https://docs.centreon.com/docs/22.10/releases/centreon-os/


I would prefer not to update the whole thing if it is fixable on an other way. 
Is there a way to restore somehow this function ?

My main issue what is caused by this , that I dont have Graph’s anymore, becaure the path is just not there, the files arent generated now. 

 

If it help and something needs to be checked, I have one more identical centreon, i installed both with ansible, so shoud be 1:1 copy. 


It is always recommended to have an updated copy. Since you mention you have an identical copy, can you compare the centreon_storage.config table.


Hello ! 
Restoring the centreon_storage.config table from the other identical centreon solved it instantly. No restart were needed. Graphs being created again :)


Reply