Skip to main content
Answer

centreon 24.04 web access stuck in centreon is loading

  • May 20, 2024
  • 10 replies
  • 1435 views

Forum|alt.badge.img+5

Hello,

 

I am trying to set up Centreon 24.04 on Debian 12. When I access the Centreon GUI, I encounter a loading issue. Checking the Apache2 logs reveals the following error:

 

[proxy_fcgi:error] [pid 29198] [client 192.168.1.33:61829] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught RuntimeException: Unable to create the "cache" directory (/var/cache/centreon/symfony). in /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php:598 Stack trace: #0 /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php(505): Symfony\Component\HttpKernel\Kernel->buildContainer() #1 /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php(763): Symfony\Component\HttpKernel\Kernel->initializeContainer() #2 /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php(185): Symfony\Component\HttpKernel\Kernel->preBoot() #3 /usr/share/centreon/api/index.php(47): Symfony\Component\HttpKernel\Kernel->handle() #4 {main} thrown in /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php on line 598', referer: http://192.168.1.2/centreon/

Steps to Reproduce:

  1. Install Centreon 24.04 on Debian 12.
  2. Access the Centreon GUI via a web browser.
  3. Observe the loading issue and check the Apache2 logs.

Additional Information:

  • OS: Debian 12
  • Centreon Version: 24.04
  • Apache Version: 2.4.59
  • PHP Version: 8.1.28 
  • mariadb Version : 15.1 Distrib 10.11.6-MariaDB

Troubleshooting Steps Taken:

  • Verified that the /var/cache/centreon/symfony directory not exists.

 

 

Thank you 

Best answer by m.lazar

Resolve it by using this command : 

sudo mkdir -p /var/cache/centreon/symfony && sudo chown www-data:www-data /var/cache/centreon/symfony

10 replies

Forum|alt.badge.img+5
  • Author
  • Steward **
  • Answer
  • May 21, 2024

Resolve it by using this command : 

sudo mkdir -p /var/cache/centreon/symfony && sudo chown www-data:www-data /var/cache/centreon/symfony


Forum|alt.badge.img+7
  • Steward ***
  • May 29, 2024

I had exactly the same thing on Debian 12, it's not normal that it’s not managed during installation!


Forum|alt.badge.img+7
  • Steward ***
  • May 31, 2024

More precisely, you must give the rights following

chmod 755 to the "centreon" folder in /var/cache/,

then after installing the centreon packets you must modify this folder again to put centreon as owner on this folder

chown centreon:centreon centreon


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • May 31, 2024

Hi we are solving this packaging issue.


Forum|alt.badge.img
  • Steward *
  • August 24, 2025

Hello,

I have had the same issue since updating to version 24.10. However, I have followed your discussions closely and I have the same rights mentioned above. I have cleared the cache of the supervisor as well as the browser (Firefox or Chromium).

 


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • August 25, 2025

Hi ​@cedben12 are you talking about your browser cache because you put symphony cache screenshot of the Centreon central server?


Forum|alt.badge.img
  • Steward *
  • August 25, 2025

Hi,

In fact, even after clearing the server cache, when I try to connect to the Centreon UI, the page displays “Centreon is loading.”


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • August 25, 2025

@cedben12 you need to clear your browser cache on your desktop too.


Forum|alt.badge.img+6
  • Steward **
  • November 19, 2025

Hi,

I have a similar issue but the error am getting on php-fpm logs are below.

This happens when we try to update to 24.04.18 from 24.04.05

[19-Nov-2025 13:05:36 Europe/Paris] PHP Warning:  Undefined array key "theme" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/3a12079fa2965478d76d72cc600318d6915d1f2a_0.file.global_health_host.ihtml.php on line 27
[19-Nov-2025 13:05:36 Europe/Paris] PHP Warning: Attempt to read property "value" on null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/3a12079fa2965478d76d72cc600318d6915d1f2a_0.file.global_health_host.ihtml.php on line 27
[19-Nov-2025 13:05:36 Europe/Paris] PHP Warning: Undefined array key "theme" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/3a12079fa2965478d76d72cc600318d6915d1f2a_0.file.global_health_host.ihtml.php on line 27
[19-Nov-2025 13:05:36 Europe/Paris] PHP Warning: Attempt to read property "value" on null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/3a12079fa2965478d76d72cc600318d6915d1f2a_0.file.global_health_host.ihtml.php on line 27
[19-Nov-2025 13:05:36 Europe/Paris] PHP Fatal error: Type of CentreonBam\ResourceAccess\Infrastructure\Repository\Dataset\DbWriteBusinessViewRepository::$db must be Adaptation\Database\Connection\ConnectionInterface (as in class Core\Common\Infrastructure\Repository\AbstractRepositoryRDB) in /usr/share/centreon/src/CentreonBam/ResourceAccess/Infrastructure/Repository/Dataset/DbWriteBusinessViewRepository.php on line 26
[19-Nov-2025 13:05:37 Europe/Paris] PHP Fatal error: Type of CentreonBam\ResourceAccess\Infrastructure\Repository\Dataset\DbWriteBusinessViewRepository::$db must be Adaptation\Database\Connection\ConnectionInterface (as in class Core\Common\Infrastructure\Repository\AbstractRepositoryRDB) in /usr/share/centreon/src/CentreonBam/ResourceAccess/Infrastructure/Repository/Dataset/DbWriteBusinessViewRepository.php on line 26
[19-Nov-2025 13:05:37 Europe/Paris] PHP Fatal error: Type of CentreonBam\ResourceAccess\Infrastructure\Repository\Dataset\DbWriteBusinessViewRepository::$db must be Adaptation\Database\Connection\ConnectionInterface (as in class Core\Common\Infrastructure\Repository\AbstractRepositoryRDB) in /usr/share/centreon/src/CentreonBam/ResourceAccess/Infrastructure/Repository/Dataset/DbWriteBusinessViewRepository.php on line 26
[19-Nov-2025 13:05:42 Europe/Paris] PHP Fatal error: Type of CentreonBam\ResourceAccess\Infrastructure\Repository\Dataset\DbWriteBusinessViewRepository::$db must be Adaptation\Database\Connection\ConnectionInterface (as in class Core\Common\Infrastructure\Repository\AbstractRepositoryRDB) in /usr/share/centreon/src/CentreonBam/ResourceAccess/Infrastructure/Repository/Dataset/DbWriteBusinessViewRepository.php on line 26
[19-Nov-2025 13:05:50 Europe/Paris] PHP Fatal error: Type of CentreonBam\ResourceAccess\Infrastructure\Repository\Dataset\DbWriteBusinessViewRepository::$db must be Adaptation\Database\Connection\ConnectionInterface (as in class Core\Common\Infrastructure\Repository\AbstractRepositoryRDB) in /usr/share/centreon/src/CentreonBam/ResourceAccess/Infrastructure/Repository/Dataset/DbWriteBusinessViewRepository.php on line 26
[19-Nov-2025 13:05:56 Europe/Paris] PHP Fatal error: Type of CentreonBam\ResourceAccess\Infrastructure\Repository\Dataset\DbWriteBusinessViewRepository::$db must be Adaptation\Database\Connection\ConnectionInterface (as in class Core\Common\Infrastructure\Repository\AbstractRepositoryRDB) in /usr/share/centreon/src/CentreonBam/ResourceAccess/Infrastructure/Repository/Dataset/DbWriteBusinessViewRepository.php on line 26
[19-Nov-2025 13:05:57 Europe/Paris] PHP Fatal error: Type of CentreonBam\ResourceAccess\Infrastructure\Repository\Dataset\DbWriteBusinessViewRepository::$db must be Adaptation\Database\Connection\ConnectionInterface (as in class Core\Common\Infrastructure\Repository\AbstractRepositoryRDB) in /usr/share/centreon/src/CentreonBam/ResourceAccess/Infrastructure/Repository/Dataset/DbWriteBusinessViewRepository.php on line 26
[19-Nov-2025 13:06:01 Europe/Paris] PHP Fatal error: Type of CentreonBam\ResourceAccess\Infrastructure\Repository\Dataset\DbWriteBusinessViewRepository::$db must be Adaptation\Database\Connection\ConnectionInterface (as in class Core\Common\Infrastructure\Repository\AbstractRepositoryRDB) in /usr/share/centreon/src/CentreonBam/ResourceAccess/Infrastructure/Repository/Dataset/DbWriteBusinessViewRepository.php on line 26

We’re getting Internal server Error 500 on /api/latest/platform/installation/status

 

Troubleshooting done:

tried to clear symfony cache getting php error which relates on the logs above.

/var/cache/centreon/symfony

-rw-r--r-- 1 apache apache 0 Nov 19 21:09 App_KernelProdContainer.php.lock
 


Appreciate your response here.

 

Thank you.

 


Forum|alt.badge.img+6
  • Steward **
  • November 20, 2025

Hi,

I have a similar issue but the error am getting on php-fpm logs are below.

This happens when we try to update to 24.04.18 from 24.04.05

[19-Nov-2025 13:05:36 Europe/Paris] PHP Warning:  Undefined array key "theme" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/3a12079fa2965478d76d72cc600318d6915d1f2a_0.file.global_health_host.ihtml.php on line 27
[19-Nov-2025 13:05:36 Europe/Paris] PHP Warning: Attempt to read property "value" on null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/3a12079fa2965478d76d72cc600318d6915d1f2a_0.file.global_health_host.ihtml.php on line 27
[19-Nov-2025 13:05:36 Europe/Paris] PHP Warning: Undefined array key "theme" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/3a12079fa2965478d76d72cc600318d6915d1f2a_0.file.global_health_host.ihtml.php on line 27
[19-Nov-2025 13:05:36 Europe/Paris] PHP Warning: Attempt to read property "value" on null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/3a12079fa2965478d76d72cc600318d6915d1f2a_0.file.global_health_host.ihtml.php on line 27
[19-Nov-2025 13:05:36 Europe/Paris] PHP Fatal error: Type of CentreonBam\ResourceAccess\Infrastructure\Repository\Dataset\DbWriteBusinessViewRepository::$db must be Adaptation\Database\Connection\ConnectionInterface (as in class Core\Common\Infrastructure\Repository\AbstractRepositoryRDB) in /usr/share/centreon/src/CentreonBam/ResourceAccess/Infrastructure/Repository/Dataset/DbWriteBusinessViewRepository.php on line 26
[19-Nov-2025 13:05:37 Europe/Paris] PHP Fatal error: Type of CentreonBam\ResourceAccess\Infrastructure\Repository\Dataset\DbWriteBusinessViewRepository::$db must be Adaptation\Database\Connection\ConnectionInterface (as in class Core\Common\Infrastructure\Repository\AbstractRepositoryRDB) in /usr/share/centreon/src/CentreonBam/ResourceAccess/Infrastructure/Repository/Dataset/DbWriteBusinessViewRepository.php on line 26
[19-Nov-2025 13:05:37 Europe/Paris] PHP Fatal error: Type of CentreonBam\ResourceAccess\Infrastructure\Repository\Dataset\DbWriteBusinessViewRepository::$db must be Adaptation\Database\Connection\ConnectionInterface (as in class Core\Common\Infrastructure\Repository\AbstractRepositoryRDB) in /usr/share/centreon/src/CentreonBam/ResourceAccess/Infrastructure/Repository/Dataset/DbWriteBusinessViewRepository.php on line 26
[19-Nov-2025 13:05:42 Europe/Paris] PHP Fatal error: Type of CentreonBam\ResourceAccess\Infrastructure\Repository\Dataset\DbWriteBusinessViewRepository::$db must be Adaptation\Database\Connection\ConnectionInterface (as in class Core\Common\Infrastructure\Repository\AbstractRepositoryRDB) in /usr/share/centreon/src/CentreonBam/ResourceAccess/Infrastructure/Repository/Dataset/DbWriteBusinessViewRepository.php on line 26
[19-Nov-2025 13:05:50 Europe/Paris] PHP Fatal error: Type of CentreonBam\ResourceAccess\Infrastructure\Repository\Dataset\DbWriteBusinessViewRepository::$db must be Adaptation\Database\Connection\ConnectionInterface (as in class Core\Common\Infrastructure\Repository\AbstractRepositoryRDB) in /usr/share/centreon/src/CentreonBam/ResourceAccess/Infrastructure/Repository/Dataset/DbWriteBusinessViewRepository.php on line 26
[19-Nov-2025 13:05:56 Europe/Paris] PHP Fatal error: Type of CentreonBam\ResourceAccess\Infrastructure\Repository\Dataset\DbWriteBusinessViewRepository::$db must be Adaptation\Database\Connection\ConnectionInterface (as in class Core\Common\Infrastructure\Repository\AbstractRepositoryRDB) in /usr/share/centreon/src/CentreonBam/ResourceAccess/Infrastructure/Repository/Dataset/DbWriteBusinessViewRepository.php on line 26
[19-Nov-2025 13:05:57 Europe/Paris] PHP Fatal error: Type of CentreonBam\ResourceAccess\Infrastructure\Repository\Dataset\DbWriteBusinessViewRepository::$db must be Adaptation\Database\Connection\ConnectionInterface (as in class Core\Common\Infrastructure\Repository\AbstractRepositoryRDB) in /usr/share/centreon/src/CentreonBam/ResourceAccess/Infrastructure/Repository/Dataset/DbWriteBusinessViewRepository.php on line 26
[19-Nov-2025 13:06:01 Europe/Paris] PHP Fatal error: Type of CentreonBam\ResourceAccess\Infrastructure\Repository\Dataset\DbWriteBusinessViewRepository::$db must be Adaptation\Database\Connection\ConnectionInterface (as in class Core\Common\Infrastructure\Repository\AbstractRepositoryRDB) in /usr/share/centreon/src/CentreonBam/ResourceAccess/Infrastructure/Repository/Dataset/DbWriteBusinessViewRepository.php on line 26

We’re getting Internal server Error 500 on /api/latest/platform/installation/status

 

Troubleshooting done:

tried to clear symfony cache getting php error which relates on the logs above.

/var/cache/centreon/symfony

-rw-r--r-- 1 apache apache 0 Nov 19 21:09 App_KernelProdContainer.php.lock
 


Appreciate your response here.

 

Thank you.

 

Update: Resolved my issue.
Updating centreon-bam-server resolves my issue.