Skip to main content

Hey there!

when I try to install a new central server with an extra db server I get the following errors when I try to install the central-server:

Installation in a debian 11 fails - with the following errors:

WARNING: Failed to generate ConfigBuilder for extension Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension. {"exception":"[object] (Symfony\\Component\\DependencyInjection\\Exception\\EnvNotFoundException(code: 0): Environment variable not found: \"hostCentreon\". at /usr/share/centreon/vendor/symfony/dependency-injection/EnvVarProcessor.php:172)","extensionClass":"Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\FrameworkExtension"}

WARNING: Failed to generate ConfigBuilder for extension FOS\RestBundle\DependencyInjection\FOSRestExtension. {"exception":"[object] (Symfony\\Component\\DependencyInjection\\Exception\\EnvNotFoundException(code: 0): Environment variable not found: \"hostCentreon\". at /usr/share/centreon/vendor/symfony/dependency-injection/EnvVarProcessor.php:172)","extensionClass":"FOS\\RestBundle\\DependencyInjection\\FOSRestExtension"}

WARNING: Failed to generate ConfigBuilder for extension JMS\SerializerBundle\DependencyInjection\JMSSerializerExtension. {"exception":"[object] (Symfony\\Component\\DependencyInjection\\Exception\\EnvNotFoundException(code: 0): Environment variable not found: \"hostCentreon\". at /usr/share/centreon/vendor/symfony/dependency-injection/EnvVarProcessor.php:172)","extensionClass":"JMS\\SerializerBundle\\DependencyInjection\\JMSSerializerExtension"}

WARNING: Failed to generate ConfigBuilder for extension Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension. {"exception":"[object] (Symfony\\Component\\DependencyInjection\\Exception\\EnvNotFoundException(code: 0): Environment variable not found: \"hostCentreon\". at /usr/share/centreon/vendor/symfony/dependency-injection/EnvVarProcessor.php:172)","extensionClass":"Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\SecurityExtension"}

WARNING: Failed to generate ConfigBuilder for extension Sensio\Bundle\FrameworkExtraBundle\DependencyInjection\SensioFrameworkExtraExtension. {"exception":"[object] (Symfony\\Component\\DependencyInjection\\Exception\\EnvNotFoundException(code: 0): Environment variable not found: \"hostCentreon\". at /usr/share/centreon/vendor/symfony/dependency-injection/EnvVarProcessor.php:172)","extensionClass":"Sensio\\Bundle\\FrameworkExtraBundle\\DependencyInjection\\SensioFrameworkExtraExtension"}

WARNING: Failed to generate ConfigBuilder for extension Nelmio\CorsBundle\DependencyInjection\NelmioCorsExtension. {"exception":"[object] (Symfony\\Component\\DependencyInjection\\Exception\\EnvNotFoundException(code: 0): Environment variable not found: \"hostCentreon\". at /usr/share/centreon/vendor/symfony/dependency-injection/EnvVarProcessor.php:172)","extensionClass":"Nelmio\\CorsBundle\\DependencyInjection\\NelmioCorsExtension"}

WARNING: Failed to generate ConfigBuilder for extension Symfony\Bundle\MonologBundle\DependencyInjection\MonologExtension. {"exception":"[object] (Symfony\\Component\\DependencyInjection\\Exception\\EnvNotFoundException(code: 0): Environment variable not found: \"hostCentreon\". at /usr/share/centreon/vendor/symfony/dependency-injection/EnvVarProcessor.php:172)","extensionClass":"Symfony\\Bundle\\MonologBundle\\DependencyInjection\\MonologExtension"}

 
and later….
 

and ERROR: Module php8.0 does not exist!
ERROR: Conf centreon does not exist!


besides of that, I had to add apt install cpp
and the the files

/etc/centreon-gorgone/config.d/gorgone-config.yaml
/etc/centreon-gorgone/config.d/centreon-api.yaml
/etc/centreon-gorgone/config.d/cron.d/gorgone-cron-service-discovery.yaml

were not created

Missing repos under DEBIAN? 

 

https://docs.centreon.com/docs/installation/installation-of-a-central-server/using-packages/#install-the-repositories

 

 


ls -lah /etc/apt/sources.list.d/

-rw-r--r-- 1 root root   75  6. Mär 09:46 centreon.list
-rw-r--r-- 1 root root   68  6. Mär 09:46 centreon-plugins.list
-rw-r--r-- 1 root root   49  6. Mär 09:45 sury-php.list

 

tail /etc/apt/sources.list.d/* -n20

==> /etc/apt/sources.list.d/centreon.list <==
deb https://packages.centreon.com/apt-standard-23.10-stable/ bullseye main

==> /etc/apt/sources.list.d/centreon-plugins.list <==
deb https://packages.centreon.com/apt-plugins-stable/ bullseye main

==> /etc/apt/sources.list.d/sury-php.list <==
deb https://packages.sury.org/php/ bullseye main


Reply