centreon/centreon-archived

No plugin pack found appears after 7 days of use.

Closed this issue · 1 comments

BUG REPORT INFORMATION

Versions

centreon-21.10.5-2.el7.centos.noarch
centreon-auto-discovery-server-21.10.3-2.el7.centos.noarch
centreon-base-config-centreon-engine-21.10.5-2.el7.centos.noarch
centreon-broker-21.10.1-8.el7.x86_64
centreon-broker-cbd-21.10.1-8.el7.x86_64
centreon-broker-cbmod-21.10.1-8.el7.x86_64
centreon-broker-core-21.10.1-8.el7.x86_64
centreon-broker-storage-21.10.1-8.el7.x86_64
centreon-clib-21.10.1-8.el7.x86_64
centreon-common-21.10.5-2.el7.centos.noarch
centreon-connector-21.10.1-8.el7.x86_64
centreon-connector-perl-21.10.1-8.el7.x86_64
centreon-connector-ssh-21.10.1-8.el7.x86_64
centreon-database-21.10.5-2.el7.centos.noarch
centreon-engine-21.10.1-8.el7.x86_64
centreon-engine-daemon-21.10.1-8.el7.x86_64
centreon-engine-extcommands-21.10.1-8.el7.x86_64
centreon-gorgone-21.10.2-3.el7.centos.noarch
centreon-gorgone-centreon-config-21.10.2-3.el7.centos.noarch
centreon-license-manager-21.10.0-1.el7.centos.noarch
centreon-license-manager-common-21.10.0-1.el7.centos.noarch
centreon-perl-libs-21.10.5-2.el7.centos.noarch
centreon-poller-centreon-engine-21.10.5-2.el7.centos.noarch
centreon-pp-manager-21.10.0-2.el7.centos.noarch
centreon-release-21.10-5.el7.centos.noarch
centreon-trap-21.10.5-2.el7.centos.noarch
centreon-web-21.10.5-2.el7.centos.noarch
centreon-widget-engine-status-21.10.0-3.el7.centos.noarch
centreon-widget-global-health-21.10.1-1.el7.centos.noarch
centreon-widget-graph-monitoring-21.10.0-2.el7.centos.noarch
centreon-widget-grid-map-21.10.0-2.el7.centos.noarch
centreon-widget-hostgroup-monitoring-21.10.0-2.el7.centos.noarch
centreon-widget-host-monitoring-21.10.0-2.el7.centos.noarch
centreon-widget-httploader-21.10.0-3.el7.centos.noarch
centreon-widget-live-top10-cpu-usage-21.10.0-2.el7.centos.noarch
centreon-widget-live-top10-memory-usage-21.10.0-2.el7.centos.noarch
centreon-widget-servicegroup-monitoring-21.10.0-2.el7.centos.noarch
centreon-widget-service-monitoring-21.10.1-1.el7.centos.noarch
centreon-widget-tactical-overview-21.10.0-2.el7.centos.noarch

Operating System

CentOS official ISO from Centreon website.

Browser used

  • Google Chrome

Version : 99.0.4844.84 (Build official) (64 bits)

Description

It has been 7 days since I'm using centreon everything work perfectly I have a free license and I installed some plugin pack added hosts and monitored services.
It was great until today I discovered I have an error when trying to access plugin pack or extension manager.

I have a "No plugin pack found" and "Oops, something went wrong".
The last time the plugin pack manager was working was two days ago, I did not operate any change on the server.

I also want to precise that this bug does not affect the monitoring, the plugin already installed work great.

Steps to Reproduce

  1. I logged in Centreon
  2. I reached the Parameter-plugin pack

Describe the received result

I used the chrome inspector to try to understand what was causing the error, I discovered that the server returned a "404 Object not found" when trying to access the link below, this link seems to try to recover the list of installed plugin but receive a 404 error.

http://192.168.1.253/centreon/api/internal.php?object=centreon_pp_manager_pluginpack&action=ListInstalledOrdered&locale=en

The same goes for the extension manager, I get a "404 Object not found" for the link :

http://192.168.1.253/centreon/api/internal.php?object=centreon_license_manager&action=stepStatus

Describe the expected result

Before the bug I was getting the list of my installed plugin pack then the list of the available ones.

Logs

PHP error logs

Version PHP 8

[07-Apr-2022 14:30:26 Europe/Paris] WARNING: Warning: Trying to access array offset on value of type null {"exception":"[object] (ErrorException(code: 0): Warning: Trying to access array offset on value of type null at /usr/share/centreon/src/Security/Domain/Authentication/Model/LocalProvider.php:128)"}

[07-Apr-2022 14:30:26 Europe/Paris] WARNING: Warning: Trying to access array offset on value of type null {"exception":"[object] (ErrorException(code: 0): Warning: Trying to access array offset on value of type null at /usr/share/centreon/src/Security/Domain/Authentication/Model/LocalProvider.php:129)"}

[07-Apr-2022 14:30:26 Europe/Paris] WARNING: Warning: Trying to access array offset on value of type null {"exception":"[object] (ErrorException(code: 0): Warning: Trying to access array offset on value of type null at /usr/share/centreon/src/Security/Domain/Authentication/Model/LocalProvider.php:130)"}

[07-Apr-2022 14:30:26 Europe/Paris] WARNING: Warning: Trying to access array offset on value of type null {"exception":"[object] (ErrorException(code: 0): Warning: Trying to access array offset on value of type null at /usr/share/centreon/src/Security/Domain/Authentication/Model/LocalProvider.php:131)"}

[08-Apr-2022 16:40:39 Europe/Paris] PHP Warning: Undefined array key 0 in /usr/share/centreon/www/include/configuration/configObject/host/DB-Func.php on line 115
[08-Apr-2022 16:57:05 Europe/Paris] PHP Warning: Trying to access array offset on value of type bool in /usr/share/centreon/www/include/configuration/configNagios/DB-Func.php on line 87
[08-Apr-2022 16:58:17 Europe/Paris] PHP Warning: Trying to access array offset on value of type bool in /usr/share/centreon/www/include/configuration/configNagios/DB-Func.php on line 87

centreon-engine logs (if needed)

**centreon gorgone logs for Centreon

2022-04-14 11:05:00 - INFO - [cron] Launching job 'broker_stats'
2022-04-14 11:05:00 - INFO - [cron] Launching job 'engine_stats'
2022-04-14 11:05:00 - INFO - [statistics] Collecting Engine statistics from target '1'
2022-04-14 11:05:36 - ERROR - [autodiscovery] -class- host discovery - cannot get platform versions - Login error [code: '401'] [message: 'Unauthorized']
2022-04-14 11:06:37 - ERROR - [autodiscovery] -class- host discovery - cannot get platform versions - Login error [code: '401'] [message: 'Unauthorized']
2022-04-14 11:06:59 - INFO - [core] Setcoreid changed 1

Thanks to anyone who can help.

Resolved:

Problem was in the parameter of proxy even if not used : go to parameter --> centreon UI --> proxy --> delete NULL everywhere and password too and save.

Source : https://thewatch.centreon.com/platform-7/no-plugin-pack-found-appears-after-7-days-problems-504