glpi-inventory-plugin icon indicating copy to clipboard operation
glpi-inventory-plugin copied to clipboard

Strange behaviour of inventory and error in Apache2

Open vollkommenIrrelevant opened this issue 1 year ago • 9 comments

Describe the bug

I'm analysing a strange behaviour of glpi inventory. From one day to the next i got a lot errors in the jobs and the task didn't run like it should. Not sure what happened...

In the error-log of apache 2 I found the following errors: [Wed May 15 10:19:36.054120 2024] [php:warn] [pid 31856] [client 10.10.111.3:31550] PHP Warning: Trying to access array offset on value of type null in /var/www/glpi/marketplace/glpiinventory/inc/statediscovery.class.php on line 168, referer: https://glpi.-/marketplace/glpiinventory/front/timeslot.php [Wed May 15 10:19:40.421645 2024] [php:warn] [pid 31856] [client 10.10.111.3:31550] PHP Warning: Trying to access array offset on value of type null in /var/www/glpi/marketplace/glpiinventory/inc/statediscovery.class.php on line 168, referer: https://glpi.-/marketplace/glpiinventory/front/timeslot.php [Wed May 15 10:20:14.247376 2024] [php:warn] [pid 31856] [client 10.10.111.3:31550] PHP Warning: Trying to access array offset on value of type null in /var/www/glpi/marketplace/glpiinventory/inc/statediscovery.class.php on line 168, referer: https://glpi.-/marketplace/glpiinventory/front/stateinventory.php [Wed May 15 10:26:39.970525 2024] [php:warn] [pid 30675] [client 10.10.111.3:31615] PHP Warning: Trying to access array offset on value of type null in /var/www/glpi/marketplace/glpiinventory/inc/statediscovery.class.php on line 168, referer: https://glpi.-/marketplace/glpiinventory/front/statediscovery.php [Wed May 15 10:26:47.634972 2024] [php:warn] [pid 30650] [client 10.10.111.3:31626] PHP Warning: Trying to access array offset on value of type null in /var/www/glpi/marketplace/glpiinventory/inc/statediscovery.class.php on line 168, referer: https://glpi.-/marketplace/glpiinventory/front/statediscovery.php [Wed May 15 10:26:59.876461 2024] [php:warn] [pid 23076] [client 10.10.111.3:31631] PHP Warning: Trying to access array offset on value of type null in /var/www/glpi/marketplace/glpiinventory/inc/statediscovery.class.php on line 168, referer: https://glpi.-/marketplace/glpiinventory/front/statediscovery.php [Wed May 15 10:27:30.916434 2024] [php:warn] [pid 23075] [client 10.10.111.3:31639] PHP Warning: Trying to access array offset on value of type null in /var/www/glpi/marketplace/glpiinventory/inc/statediscovery.class.php on line 168, referer: https://glpi.-/marketplace/glpiinventory/front/statediscovery.php [Wed May 15 10:27:32.768254 2024] [php:warn] [pid 23071] [client 10.10.111.3:31645] PHP Warning: Trying to access array offset on value of type null in /var/www/glpi/marketplace/glpiinventory/inc/statediscovery.class.php on line 168, referer: https://glpi.-/marketplace/glpiinventory/front/timeslot.php

Any Ideas?

To reproduce

Expected behavior

Operating system

Linux

GLPI Agent version

Other (See additional context below)

GLPI version

Other (See additional context below)

GLPIInventory plugin

No response

Additional context

GLPI-Agent: 1.7.3 GLPI: 10.0.14

vollkommenIrrelevant avatar May 15 '24 08:05 vollkommenIrrelevant

Logfile of the agent is showing:

[Tue May 21 17:59:33 2024][debug] #017, full snmp scan of 10.30.120.1 with credentials 1
[Tue May 21 17:59:33 2024][info] [http client] SSL Client warning: Peer certificate not verified
[Tue May 21 17:59:33 2024][info] [http client] SSL Client info: Cert-Issuer: 'NO X509_NAME', Cert-Subject: 'NO X509_NAME', Cipher: '(NONE)'
[Tue May 21 17:59:33 2024][info] [http client] SSL server certificate fingerprint: sha256$-
[Tue May 21 17:59:33 2024][info] [http client] You can set it in conf as 'ssl-fingerprint' and disable 'no-ssl-check' option to trust that server certificate
[Tue May 21 17:59:33 2024][debug] #017, full match for sysobjectID .1.3.6.1.4.1.1347.41 in database
[Tue May 21 17:59:33 2024][debug] #017, sysobjectID match: kyocera mib support enabled
[Tue May 21 17:59:36 2024][info] #017, [http client] SSL Client warning: Peer certificate not verified
[Tue May 21 17:59:36 2024][info] #017, [http client] SSL Client info: Cert-Issuer: '/C=-/ST=-/L=-/O=-/OU=-/CN=-/[email protected]', Cert-Subject: '/C=-/ST=-/L=-/O=-/OU=-/CN=glpi.-.-/[email protected]', Version: 'TLSv1_3', Cipher: 'TLS_AES_256_GCM_SHA384'
[Tue May 21 17:59:36 2024][info] #017, [http client] SSL server certificate fingerprint: sha256$-
[Tue May 21 17:59:36 2024][info] #017, [http client] You can set it in conf as 'ssl-fingerprint' and disable 'no-ssl-check' option to trust that server certificate
[Tue May 21 18:00:39 2024][debug] Logger backend File initialized

grafik

vollkommenIrrelevant avatar May 22 '24 13:05 vollkommenIrrelevant

Somebody having a Idea?

vollkommenIrrelevant avatar May 30 '24 12:05 vollkommenIrrelevant

nobody?

vollkommenIrrelevant avatar Jun 05 '24 07:06 vollkommenIrrelevant

:-(

vollkommenIrrelevant avatar Jun 11 '24 14:06 vollkommenIrrelevant

Hi @vollkommenIrrelevant

can you retry with the latest version of the GLPI inventory agent and GLPI ?

stonebuzz avatar Jun 12 '24 06:06 stonebuzz

Looks better as before, the error messages in Apache changed.... I have to wait until tomorrow to be sure. Unfornately it seems that I have to restart the job for a few hundreds of devices because than it seems running fine. For every Device I need 4 clicks - is there a way to restart all jobs? grafik

vollkommenIrrelevant avatar Jun 12 '24 13:06 vollkommenIrrelevant

After try and error some things I belive that Agent Start-Intervall (in Minuten) in the task configuration is the problem... I can only enter 100 Minutes what^s not enough. I need something like 24h or so.... Can you please check if you can change this?

vollkommenIrrelevant avatar Jul 01 '24 13:07 vollkommenIrrelevant

bump

vollkommenIrrelevant avatar Jul 11 '24 09:07 vollkommenIrrelevant

I think you can use "Force start" on the "Task management" tab to force a task to start. I've also face some issues when tasks fails, I have to manually force them start again, but I believe that enabling "Delete tasks logs after" on Administration > GLPI Inventory > General > General Configuration > General Setup tab may help.

eduardomozart avatar Jan 28 '25 15:01 eduardomozart

This issue has been closed as we only track bugs here.

You can open a topic to discuss with community about this enhancement on suggestion website. You can also contact GLPI editor team directly if you are willing to sponsor this feature.

github-actions[bot] avatar Apr 30 '25 09:04 github-actions[bot]