Skip to main content
Solved

Centreon Administration - Parameters - Options site not loading - php error

  • October 24, 2023
  • 6 replies
  • 130 views

Forum|alt.badge.img+5

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

[24-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. 

Best answer by silex27

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

6 replies

ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • October 24, 2023

Hello @silex27 👋

Confirm the credentials under

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

Are you using the latest 22.10 ?

 


Forum|alt.badge.img+5
  • Author
  • Steward ***
  • October 24, 2023

Hello @ponchoh 
v. 22.10.7 the version im using. 

The credentials are present in the mentioned config file. 


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • October 24, 2023

Forum|alt.badge.img+5
  • Author
  • Steward ***
  • October 24, 2023

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. 


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • October 24, 2023

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.


Forum|alt.badge.img+5
  • Author
  • Steward ***
  • Answer
  • October 25, 2023

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