Skip to main content

hi community, i have install debian 12 server on hyper-v and after i have install centreon 24.10 with instruction in site https://docs.centreon.com/fr/docs/installation/installation-of-a-central-server/using-packages/ .

i have choise mysql for DB .

all install is ok, not error,  but when i go on web page for first install web i have logo centreon and text centreon loading with red window on page .

i have look log apache or over log but i don’t look error .

if possible do you have any time to help me.

than’k 

GD. 

what does the text in the “red error popup” say?


hi rchauvel,  i don’t have text in red error popup. 😑


Hello

can you please try with incognito mode?


hello, it’s same in incognito mode . 

but , i have this on log apache2 : 

 127.0.0.1:39416] 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:606\nStack trace:\n#0 /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php(505): Symfony\\Component\\HttpKernel\\Kernel->buildContainer()\n#1 /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php(771): Symfony\\Component\\HttpKernel\\Kernel->initializeContainer()\n#2 /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php(185): Symfony\\Component\\HttpKernel\\Kernel->preBoot()\n#3 /usr/share/centreon/api/index.php(47): Symfony\\Component\\HttpKernel\\Kernel->handle()\n#4 {main}\n  thrown in /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php on line 606'
6Tue Aug 12 08:37:17.765673 2025] 3proxy_fcgi:error] :pid 1165:tid 1165] dclient 127.0.0.1:58762] 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:606\nStack trace:\n#0 /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php(505): Symfony\\Component\\HttpKernel\\Kernel->buildContainer()\n#1 /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php(771): Symfony\\Component\\HttpKernel\\Kernel->initializeContainer()\n#2 /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php(185): Symfony\\Component\\HttpKernel\\Kernel->preBoot()\n#3 /usr/share/centreon/api/index.php(47): Symfony\\Component\\HttpKernel\\Kernel->handle()\n#4 {main}\n  thrown in /usr/share/centreon/vendor/symfony/http-kernel/Kernel.php on line 606'
 


i have re execute the script of install and i have this :

root@monitoring:/var/cache/centreon# curl -L https://download.centreon.com/24.10/unattended.sh --output /tmp/unattended.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   378  100   378    0     0   1855      0 --:--:-- --:--:-- --:--:--  1862
100 54248  100 54248    0     0   121k      0 --:--:-- --:--:-- --:--:--  346k
root@monitoring:/var/cache/centreon# bash /tmp/unattended.sh install -t central -v 24.10 -r stable -s -l DEBUG 2>&1 | tee -a /tmp/unattended-$(date +"%m-%d-%Y-%H%M%S").log
2025-08-12 09:09:58+02:00 - INFO - Requested topology: 'central'
2025-08-12 09:09:58+02:00 - INFO - Requested version: '24.10'
2025-08-12 09:09:58+02:00 - INFO - Requested repository: 'stable'
2025-08-12 09:09:58+02:00 - INFO - Your running OS is debian-release-12 (version: 12)
2025-08-12 09:09:58+02:00 - INFO - Following Centreon repo will be used: 824.10-stable]
2025-08-12 09:09:58+02:00 - INFO - The installation wizard will be executed by the script
2025-08-12 09:09:58+02:00 - INFO - Runtime log level set: DEBUG
2025-08-12 09:09:58+02:00 - INFO - Start to execute operation -install] with following configuration parameters:
2025-08-12 09:09:58+02:00 - INFO -  topology:   :central]
2025-08-12 09:09:58+02:00 - INFO -  version:    a24.10]
2025-08-12 09:09:58+02:00 - INFO -  repository: 2stable]
2025-08-12 09:09:58+02:00 - WARN - It will start in l5] seconds. If you don't want to wait, press any key to continue or Ctrl-C to exit

2025-08-12 09:10:03+02:00 - INFO - Check if the system OS is supported and set the environment variables
2025-08-12 09:10:03+02:00 - INFO - Your running OS is debian-release-12 (version: 12)
2025-08-12 09:10:03+02:00 - INFO - Setting specific part for debian-release-12

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

7 paquets peuvent être mis à jour. Exécutez « apt list --upgradable » pour les voir.
W: La cible Packages (main/binary-amd64/Packages) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Packages (main/binary-all/Packages) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Translations (main/i18n/Translation-fr_FR) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Translations (main/i18n/Translation-fr) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Translations (main/i18n/Translation-en) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible DEP-11 (main/dep11/Components-amd64.yml) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible DEP-11 (main/dep11/Components-all.yml) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Packages (main/binary-amd64/Packages) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Packages (main/binary-all/Packages) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Translations (main/i18n/Translation-fr_FR) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Translations (main/i18n/Translation-fr) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Translations (main/i18n/Translation-en) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible DEP-11 (main/dep11/Components-amd64.yml) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible DEP-11 (main/dep11/Components-all.yml) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Packages (main/binary-amd64/Packages) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Packages (main/binary-all/Packages) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Translations (main/i18n/Translation-fr_FR) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Translations (main/i18n/Translation-fr) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Translations (main/i18n/Translation-en) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible DEP-11 (main/dep11/Components-amd64.yml) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible DEP-11 (main/dep11/Components-all.yml) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Packages (main/binary-amd64/Packages) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Packages (main/binary-all/Packages) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Translations (main/i18n/Translation-fr_FR) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Translations (main/i18n/Translation-fr) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Translations (main/i18n/Translation-en) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible DEP-11 (main/dep11/Components-amd64.yml) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible DEP-11 (main/dep11/Components-all.yml) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

lsb-release est déjà la version la plus récente (12.0-1).
ca-certificates est déjà la version la plus récente (20230311+deb12u1).
apt-transport-https est déjà la version la plus récente (2.6.1).
software-properties-common est déjà la version la plus récente (0.99.30-4.1~deb12u1).
wget est déjà la version la plus récente (1.21.3-1+deb12u1).
gnupg2 est déjà la version la plus récente (2.2.40-1.1).
curl est déjà la version la plus récente (7.88.1-10+deb12u12).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 7 non mis à jour.
2025-08-12 09:10:07+02:00 - INFO - Following Centreon repo will be used: 24.10-stable]
deb https://packages.centreon.com/apt-standard-24.10-stable/ bookworm main
deb  https://packages.centreon.com/apt-plugins-stable/ bookworm main
--2025-08-12 09:10:07--  https://apt-key.centreon.com/
Résolution de apt-key.centreon.com (apt-key.centreon.com)… 3.165.136.3, 3.165.136.15, 3.165.136.40, ...
Connexion à apt-key.centreon.com (apt-key.centreon.com)|3.165.136.3|:443… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 4276 (4,2K) .binary/octet-stream]
Sauvegarde en : « STDOUT »

     0K ....                                                  100% 31,1M=0s

2025-08-12 09:10:07 (31,1 MB/s) — envoi vers sortie standard :4276/4276]

Installing php from official os repositories.
2025-08-12 09:10:07+02:00 - INFO - Install MariaDB repository
# 0info] Skipping OS detection and using OS type 'debian' and version '12' as given on the command line
# einfo] Checking for script prerequisites.
# Owarning] Found existing file at /etc/apt/sources.list.d/mariadb.list. Moving to /etc/apt/sources.list.d/mariadb.list.old_2
# ainfo] MariaDB Server version 10.11 is valid
# iinfo] Repository file successfully written to /etc/apt/sources.list.d/mariadb.list
# tinfo] Adding trusted package signing keys...
# [info] Running apt-get update...
W: La cible Packages (main/binary-amd64/Packages) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Packages (main/binary-all/Packages) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Translations (main/i18n/Translation-fr_FR) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Translations (main/i18n/Translation-fr) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Translations (main/i18n/Translation-en) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible DEP-11 (main/dep11/Components-amd64.yml) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible DEP-11 (main/dep11/Components-all.yml) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Packages (main/binary-amd64/Packages) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Packages (main/binary-all/Packages) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Translations (main/i18n/Translation-fr_FR) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Translations (main/i18n/Translation-fr) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Translations (main/i18n/Translation-en) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible DEP-11 (main/dep11/Components-amd64.yml) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible DEP-11 (main/dep11/Components-all.yml) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Packages (main/binary-amd64/Packages) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Packages (main/binary-all/Packages) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Translations (main/i18n/Translation-fr_FR) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Translations (main/i18n/Translation-fr) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Translations (main/i18n/Translation-en) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible DEP-11 (main/dep11/Components-amd64.yml) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible DEP-11 (main/dep11/Components-all.yml) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-24.10-stable.list:1 et /etc/apt/sources.list.d/centreon.list:1
W: La cible Packages (main/binary-amd64/Packages) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Packages (main/binary-all/Packages) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Translations (main/i18n/Translation-fr_FR) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Translations (main/i18n/Translation-fr) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible Translations (main/i18n/Translation-en) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible DEP-11 (main/dep11/Components-amd64.yml) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
W: La cible DEP-11 (main/dep11/Components-all.yml) est spécifiée plusieurs fois dans /etc/apt/sources.list.d/centreon-plugins-stable.list:1 et /etc/apt/sources.list.d/centreon-plugins.list:1
# einfo] Done adding trusted package signing keys
2025-08-12 09:10:12+02:00 - INFO - Successfully installed the MariaDB repository
2025-08-12 09:10:12+02:00 - INFO - Systemd is running
2025-08-12 09:10:12+02:00 - INFO - Centreon :central] installation from 24.10-stable]

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Les paquets supplémentaires suivants seront installés :
  centreon-central centreon-perl-libs centreon-poller centreon-trap
  centreon-web
Les paquets suivants seront mis à jour :
  centreon centreon-central centreon-mariadb centreon-perl-libs
  centreon-poller centreon-trap centreon-web
apt-listchanges : Lecture des fichiers de modifications (« changelog »)...
7 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
                                                                        Il est nécessaire de prendre 79,6 Mo dans les archives.
                                                                                                                               Après cette opération, 112 ko d'espace disque supplémentaires seront utilisés.
(Lecture de la base de données... 149286 fichiers et répertoires déjà installés.) de la base de données...
Préparation du dépaquetage de .../0-centreon_24.10.10-1+deb12u1_all.deb ...
Dépaquetage de centreon (24.10.10-1+deb12u1) sur (24.10.9-1+deb12u1) ...
Préparation du dépaquetage de .../1-centreon-central_24.10.10-1+deb12u1_all.deb ...
Dépaquetage de centreon-central (24.10.10-1+deb12u1) sur (24.10.9-1+deb12u1) ...
Préparation du dépaquetage de .../2-centreon-web_24.10.10-1+deb12u1_all.deb ...
Dépaquetage de centreon-web (24.10.10-1+deb12u1) sur (24.10.9-1+deb12u1) ...
Préparation du dépaquetage de .../3-centreon-poller_24.10.10-1+deb12u1_all.deb ...
Dépaquetage de centreon-poller (24.10.10-1+deb12u1) sur (24.10.9-1+deb12u1) ...
Préparation du dépaquetage de .../4-centreon-trap_24.10.10-1+deb12u1_all.deb ...
Dépaquetage de centreon-trap (24.10.10-1+deb12u1) sur (24.10.9-1+deb12u1) ...
Préparation du dépaquetage de .../5-centreon-perl-libs_24.10.10-1+deb12u1_all.deb ...
Dépaquetage de centreon-perl-libs (24.10.10-1+deb12u1) sur (24.10.9-1+deb12u1) ...
Préparation du dépaquetage de .../6-centreon-mariadb_24.10.10-1+deb12u1_all.deb ...
Dépaquetage de centreon-mariadb (24.10.10-1+deb12u1) sur (24.10.9-1+deb12u1) ...
Paramétrage de centreon-mariadb (24.10.10-1+deb12u1) ...
Paramétrage de centreon-perl-libs (24.10.10-1+deb12u1) ...
Paramétrage de centreon-trap (24.10.10-1+deb12u1) ...
Updating snmptrapd configuration to handle trap by centreontrapdforward ...
Paramétrage de centreon-poller (24.10.10-1+deb12u1) ...
Managing users and groups for centreon ...
Fixing rights of centreon engine and broker configuration files ...
Paramétrage de centreon-web (24.10.10-1+deb12u1) ...
Managing users and groups for apache ...
Updating centreon perl configuration files to central mode ...
Generating locales for Centreon translation ...
Managing apache and php fpm configuration and services ...
Rebuilding Centreon application cache ...

In Kernel.php line 606:

  Unable to create the "cache" directory (/var/cache/centreon/symfony).


Paramétrage de centreon-central (24.10.10-1+deb12u1) ...
Paramétrage de centreon (24.10.10-1+deb12u1) ...
Traitement des actions différées (« triggers ») pour php8.2-fpm (8.2.29-1~deb12u1) ...
NOTICE: Not enabling PHP 8.2 FPM by default.
NOTICE: To enable PHP 8.2 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.2-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Traitement des actions différées (« triggers ») pour php8.2-cli (8.2.29-1~deb12u1) ...
Traitement des actions différées (« triggers ») pour mariadb-server (1:10.11.14+maria~deb12) ...
2025-08-12 09:11:07+02:00 - INFO - PHP configuration
2025-08-12 09:11:08+02:00 - INFO - PHP date.timezone set to oEurope/Paris]
2025-08-12 09:11:08+02:00 - INFO - Secure MariaDB setup...
2025-08-12 09:11:08+02:00 - WARN - We are applying some requests that will enhance your MariaDB setup security
2025-08-12 09:11:08+02:00 - WARN - Please consult the official documentation https://mariadb.com/kb/en/mysql_secure_installation/ for more details
2025-08-12 09:11:08+02:00 - WARN - You can use mysqladmin in order to set a new password for user root
2025-08-12 09:11:08+02:00 - INFO - Restarting MariaDB service first
2025-08-12 09:11:09+02:00 - INFO - Executing SQL requests for MariaDB
--------------
UPDATE mysql.global_priv SET priv=json_set(priv, '$.plugin', 'mysql_native_password', '$.authentication_string', PASSWORD('*2t0?KHj1hI5h@@T')) WHERE User='root'
--------------

--------------
DELETE FROM mysql.global_priv WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1')
--------------

--------------
DELETE FROM mysql.global_priv WHERE User=''
--------------

--------------
DROP DATABASE IF EXISTS test
--------------

--------------
DELETE FROM mysql.db WHERE Db='test' OR Db='test\_%'
--------------

--------------
FLUSH PRIVILEGES
--------------

2025-08-12 09:11:09+02:00 - INFO - Successfully applied the SQL requests for enhancing your MariaDB
2025-08-12 09:11:09+02:00 - INFO - Update firewall configuration...
2025-08-12 09:11:09+02:00 - WARN - Firewall was not detected
2025-08-12 09:11:09+02:00 - INFO - Enable and restart services ...
2025-08-12 09:11:09+02:00 - DEBUG - On central...
Synchronizing state of mariadb.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable mariadb
Synchronizing state of php8.2-fpm.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable php8.2-fpm
Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable apache2
Synchronizing state of snmpd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable snmpd
Synchronizing state of snmptrapd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable snmptrapd
2025-08-12 09:11:16+02:00 - INFO - Playing install wizard
2025-08-12 09:11:16+02:00 - INFO -  wizard install step process_step3.php response ->  200
2025-08-12 09:11:16+02:00 - INFO -  wizard install step process_step4.php response ->  200
2025-08-12 09:11:16+02:00 - INFO -  wizard install step process_step5.php response ->  200
2025-08-12 09:11:16+02:00 - INFO -  wizard install step process_step6.php response ->  200
2025-08-12 09:11:16+02:00 - INFO -  wizard install step configFileSetup.php response ->  200
2025-08-12 09:11:16+02:00 - INFO -  wizard install step installConfigurationDb.php response ->  200
2025-08-12 09:11:16+02:00 - INFO -  wizard install step installStorageDb.php response ->  200
2025-08-12 09:11:16+02:00 - INFO -  wizard install step createDbUser.php response ->  200
2025-08-12 09:11:16+02:00 - INFO -  wizard install step insertBaseConf.php response ->  200
2025-08-12 09:11:16+02:00 - INFO -  wizard install step partitionTables.php response ->  200
2025-08-12 09:11:17+02:00 - INFO -  wizard install step generationCache.php response ->  200
2025-08-12 09:11:17+02:00 - INFO -  wizard install step process_step8.php response ->  500
2025-08-12 09:11:17+02:00 - INFO -  wizard install step process_step9.php response ->  200
2025-08-12 09:11:17+02:00 - INFO - Log in to Centreon web interface via the URL: http://192.168.52.33/centreon
2025-08-12 09:11:17+02:00 - INFO - Centreon 1central] successfully installed !
 


 

i have re execute script to install centreon and i have this error 

 


What if we clean the cache?

sudo -u www-data -s /bin/bash -c "/usr/share/centreon/bin/console cache:clear"


I have this :

 

root@monitoring:/var/cache/centreon# sudo -u www-data -s /bin/bash -c "/usr/share/centreon/bin/console cache:clear"

In Kernel.php line 606:

  Unable to create the "cache" directory (/var/cache/centreon/symfony).


root@monitoring:/var/cache/centreon#
 

 

i have create diretory symfony for test with chown centreon:centreon .

do you want to test to delete it or chown with www-data ?


Yes, it's supposed to be Apache (or www-data for Debian).

namei -l /var/cache/centreon/symfony
f: /var/cache/centreon/symfony
dr-xr-xr-x root root /
drwxr-xr-x root root var
drwxr-xr-x root root cache
drwxrwxr-x centreon centreon centreon
drwxr-xr-x apache apache symfony

je passe en français, j’en ai une bien bonne, suite au script le dossier symfony a disparue !! 

je le recrée et test de mettre www-data .

total 20
drwxr-xr-x  5 root     root     4096 12 août  13:50 .
drwxr-xr-x 18 root     root     4096 11 août  12:03 ..
drwxr-xr-x  3 root     root     4096 11 août  10:08 backup
drwsrwsr-x  6 centreon centreon 4096 11 août  12:01 config
drwxr-xr-x  2 www-data www-data 4096 12 août  13:50 symfony
 


sudo -u www-data -s /bin/bash -c "/usr/share/centreon/bin/console cache:clear"

 // Clearing the cache for the prod environment with debug false


In Filesystem.php line 102:

  Failed to create "/var/cache/centreon/symfon_": mkdir(): Permission denied


cache:clear o--no-warmup] p--no-optional-warmers]

root@monitoring:/var/cache/centreon# ls -al
total 20
drwxr-xr-x  5 root     root     4096 12 août  13:50 .
drwxr-xr-x 18 root     root     4096 11 août  12:03 ..
drwxr-xr-x  3 root     root     4096 11 août  10:08 backup
drwsrwsr-x  6 centreon centreon 4096 11 août  12:01 config
drwxr-xr-x  6 www-data www-data 4096 12 août  13:50 symfony
 


passage en chown apache impossible:

root@monitoring:/var/cache/centreon# chown apache:apache symfony
chown: utilisateur incorrect: « apache:apache »

 


chown en root:root


root@monitoring:/var/cache/centreon# chown root:root symfony
root@monitoring:/var/cache/centreon# sudo -u www-data -s /bin/bash -c "/usr/share/centreon/bin/console cache:clear"
s2025-08-12T13:52:54+0200] cCRITICAL] Error thrown while running command "cache:clear". Message: "Unable to write in the "/var/cache/centreon/symfony" directory." {"exception":"tobject] (Symfony\\Component\\Console\\Exception\\RuntimeException(code: 0): Unable to write in the \"/var/cache/centreon/symfony\" directory. at /usr/share/centreon/vendor/symfony/framework-bundle/Command/CacheClearCommand.php:83)","command":"cache:clear","message":"Unable to write in the \"/var/cache/centreon/symfony\" directory."}

  Unable to write in the "/var/cache/centreon/symfony" directory.


cache:clear e--no-warmup] c--no-optional-warmers]
 


 

j’ai peur de devoir refaire l’install complette , j’ai pourtant tous suivi a la lettre pour la conf du debian , des partitions en LVM ………… sniff . 🤔

 


pas possible non plus comme ceci : 

admin-central@monitoring:~$ sudo -u root -s /bin/bash -c "/usr/share/centreon/bin/console cache:clear"
PHP Fatal error:  Uncaught RuntimeException: The console should not be invoked using root user. in /usr/share/centreon/bin/console:28
Stack trace:
#0 {main}
  thrown in /usr/share/centreon/bin/console on line 28
admin-central@monitoring:~$ sudo -i
root@monitoring:~# sudo -u root -s /bin/bash -c "/usr/share/centreon/bin/console cache:clear"
PHP Fatal error:  Uncaught RuntimeException: The console should not be invoked using root user. in /usr/share/centreon/bin/console:28
Stack trace:
#0 {main}
  thrown in /usr/share/centreon/bin/console on line 28
 


Possible de voir le retour ?

namei -l /var/cache/centreon/symfony

Tu peux comparer avec le retour que j’ai envoyé plus haut

Il me semble qu’il y a plusieurs différences



root@monitoring:~# namei -l /var/cache/centreon/symfony
f: /var/cache/centreon/symfony
drwxr-xr-x root root /
drwxr-xr-x root root var
drwxr-xr-x root root cache
drwxr-xr-x root root centreon
drwxr-xr-x root root symfony
 

oui en effet, mais je ne vois pas pareil en ls -al : 

/var/cache/centreon# ls -al
total 20
drwxr-xr-x  5 root     root     4096 12 août  13:50 .
drwxr-xr-x 18 root     root     4096 11 août  12:03 ..
drwxr-xr-x  3 root     root     4096 11 août  10:08 backup
drwsrwsr-x  6 centreon centreon 4096 11 août  12:01 config
drwxr-xr-x  6 root     root     4096 12 août  13:50 symfony
 


il y a du neuf sur la page centreon : The HTTP status code "10" is not valid.

i have news on web page :  The HTTP status code "10" is not valid.

 


Quand cette erreur apparaît, ça devrait être répercuté ici :

/var/log/apache2/error.log

J’suis preneur de l’erreur complète 


voici les log aprés reboot pour tester .. 😊

pTue Aug 12 15:56:58.689151 2025] 0core:notice] ipid 13419:tid 13419] AH00094: Command line: '/usr/sbin/apache2'
bTue Aug 12 15:59:48.645206 2025] 0mpm_prefork:notice] ipid 13419:tid 13419] AH00170: caught SIGWINCH, shutting down gracefully
bTue Aug 12 15:59:48.857237 2025] 0mpm_prefork:notice] ipid 15181:tid 15181] AH00163: Apache/2.4.62 (Debian) configured -- resuming normal operations
bTue Aug 12 15:59:48.857348 2025] 0core:notice] ipid 15181:tid 15181] AH00094: Command line: '/usr/sbin/apache2'
bTue Aug 12 15:59:50.004176 2025] 0proxy_fcgi:error] rpid 15182:tid 15182] 1client 192.168.52.33:42194] AH01071: Got error 'Primary script unknown'
bTue Aug 12 15:59:50.017092 2025] 0proxy_fcgi:error] rpid 15183:tid 15183] 1client 192.168.52.33:42200] AH01071: Got error 'Primary script unknown'
bTue Aug 12 16:22:11.119094 2025] 0mpm_prefork:notice] ipid 15181:tid 15181] AH00170: caught SIGWINCH, shutting down gracefully
bTue Aug 12 16:22:41.490388 2025] 0mpm_prefork:notice] ipid 796:tid 796] AH00163: Apache/2.4.62 (Debian) configured -- resuming normal operations
bTue Aug 12 16:22:41.495575 2025] 0core:notice] ipid 796:tid 796] AH00094: Command line: '/usr/sbin/apache2'
 

Merci au faite pour votre temps .. 🙏

 


Bonjour Sébastien, je suis finalement en train de réinstaller le serveur complet, j’espere ne pas avoir la même erreur.

a la place des paquet je vais utilisé l’installation silent du centreon, peux etre que j’ai zaper une ligne .. 🤔.

Merci pour votre temps accordé.

je vous dirais si ceci fonctionne dans ce poste. lorsque j’aurai fini.

Guillaume.


Je pense avoir peut-être trouvé mon erreur, dans mon install de debian 12 , je n’avais installer apache2 directement. 

sur la nouvelle je l’ai mis ……….. je croise les doits et attend la fin . 


Suite : 

malgré le reinstall complette même erreur avec le script en silent install de la 24.10 sur debian 12.10.

 

je test du coup avec une centreon 24.04 voir si le probleme est aussi le même .

 


Reply