Skip to main content

When I go to the host discovery page, I get the following screen displayed, with the message "cannot load module" :

I also found this message in the extension manager : 

The upgrade from 23.10 to 24.04 on debian11 is OK, the mariadb upgrade too, I have a doubt about php8.1.
No error in Gorgoned log, I have the impression that it is a blockage at the web level !

An idea ?

 

Regards

Hi @hqdam , can you check in /var/log/apache/error.log?

Can you try to clean browser cache too.


Hello @Laurent , i’m on debian 11.

I clear the cache on my browser butdon’t work, I had already watched thistopics

in /var/log/apache2/error.log i have :

 

uThu May 23 10:14:29.468346 2024] 6proxy_fcgi:error] :pid 29052] client 192.168.59.135:51228] AH01071: Got error 'PHP message: e2024-05-23T10:14:29+0200] 9CRITICAL] Session was used while the request was declared stateless. {"context":"nobject] (Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\UnexpectedSessionUsageException(code: 0): Session was used while the request was declared stateless. at /usr/share/centreon/vendor/symfony/http-kernel/EventListener/AbstractSessionListener.php:224)"}\n', referer: https://XXXXXXXXXXXXXXXXXXXXX/centreon/logout
uThu May 23 10:16:19.798725 2024] 5proxy_fcgi:error] :pid 15011] client 192.168.59.134:46434] AH01071: Got error 'PHP message: e2024-05-23T10:16:19+0200] 9CRITICAL] You are not authorized to access this resource {"context":"nobject] (Symfony\\\\Component\\\\Security\\\\Core\\\\Exception\\\\AccessDeniedException(code: 403): You are not authorized to access this resource at /usr/share/centreon/vendor/symfony/framework-bundle/Controller/AbstractController.php:332)"}\n', referer: https://XXXXXXXXXXXXXXXXXXXXXXXXXXXXX/centreon/login
iThu May 23 10:16:32.592579 2024] 9proxy_fcgi:error] :pid 14742] client 192.168.59.134:12200] AH01071: Got error 'PHP message: PHP Warning:  Undefined array key "theme" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/3a12079fa2965478d76d72cc600318d6915d1f2a_0.file.global_health_host.ihtml.php on line 27PHP message: 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 27PHP message: PHP Warning:  Undefined array key "theme" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/3a12079fa2965478d76d72cc600318d6915d1f2a_0.file.global_health_host.ihtml.php on line 27PHP message: 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', referer: https://XXXXXXXXXXXXXXXXXXXXXXX/centreon/widgets/global-health/index.php?widgetId=6&customViewId=1
eThu May 23 10:16:44.975456 2024] 7proxy_fcgi:error] fpid 14743] [client 192.168.59.134:58654] AH01071: Got error 'PHP message: PHP Warning:  Undefined array key "theme" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/3a12079fa2965478d76d72cc600318d6915d1f2a_0.file.global_health_host.ihtml.php on line 27PHP message: 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 27PHP message: PHP Warning:  Undefined array key "theme" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/3a12079fa2965478d76d72cc600318d6915d1f2a_0.file.global_health_host.ihtml.php on line 27PHP message: 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', referer: https://X/index.php?widgetId=6&customViewId=1
 

Problems these IP are not know in my infra !!!

In the old Apache error logs I don't have these dproxy_fcgi] errors with these IPs, they only appeared after the update.

No error in /var/log/centreon-gorgone/gorgoned.log autodiscover seems work.


Can you try to restart Apache and PHP-FPM:

systemctl restart apache2 php8.1-fpm

 


Restart services status OK but i have again the message “cannot load module”

root@xxxxxxxxx:/etc/centreon-gorgone/config.d# systemctl status apache2 php8.1-fpm
● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2024-05-23 14:42:38 CEST; 8s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 39661 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 39665 (apache2)
      Tasks: 6 (limit: 9518)
     Memory: 38.7M
        CPU: 149ms
     CGroup: /system.slice/apache2.service
             ├─39665 /usr/sbin/apache2 -k start
             ├─39666 /usr/sbin/apache2 -k start
             ├─39667 /usr/sbin/apache2 -k start
             ├─39668 /usr/sbin/apache2 -k start
             ├─39669 /usr/sbin/apache2 -k start
             └─39670 /usr/sbin/apache2 -k start

May 23 14:42:38 xxxxxxxxxxxx systemd 1]: Starting The Apache HTTP Server...
May 23 14:42:38 xxxxxxxxxxxxxxx apachectlx39664]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using xxxxxxxxxxxxxxx>
May 23 14:42:38 xxxxxxxxxxxxxxxxxxx systemdy1]: Started The Apache HTTP Server.

● php8.1-fpm.service - The PHP 8.1 FastCGI Process Manager
     Loaded: loaded (/lib/systemd/system/php8.1-fpm.service; enabled; vendor preset: enabled)
    Drop-In: /usr/lib/systemd/system/php8.1-fpm.service.d
             └─centreon.conf
     Active: active (running) since Thu 2024-05-23 14:42:38 CEST; 9s ago
       Docs: man:php-fpm8.1(8)
    Process: 39656 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.1/fpm/pool.d/www.conf 81 (code=exited, status=0/SUCCESS)
   Main PID: 39653 (php-fpm8.1)
     Status: "Ready to handle connections"
      Tasks: 3 (limit: 9518)
     Memory: 11.0M
        CPU: 67ms
     CGroup: /system.slice/php8.1-fpm.service
             ├─39653 php-fpm: master process (/etc/php/8.1/fpm/php-fpm.conf)
             ├─39654 php-fpm: pool www
             └─39655 php-fpm: pool www
 

Autodiscovery is OK but the screen is not seen in IHM (Configuration>Hôtes>Découverts)

 


The config loaded by the proces php8.1-fpm.service is correct ?

/etc/php/8.1/fpm/pool.d/www.conf

or

/etc/php/8.1/fpm/pool.d/centreon.conf

 

in directory pool.d i have :

 

 


Problem cache navigator ...


Reply