fusioninventory-for-glpi icon indicating copy to clipboard operation
fusioninventory-for-glpi copied to clipboard

Inventory error : GLPi 10.0.5 et FusionInventory 2.5.2

Open BoyerBrice opened this issue 2 years ago • 20 comments

Hello,

I have an issue on some computer. The Fusion agent send information to FusionInventory plugin, but does not link to any computer and no additional information ...

I am in GLPI 10.0.5, FusionInventory 10.0.3 and Agent Fusion 2.6 (All on a Windows Server 2019).

Here are the logs I get during an inventory from a W10 workstation :

[Tue Jan 31 13:34:52 2023][info] sending prolog request to server0 [Tue Jan 31 13:34:52 2023][info] running task Collect [Tue Jan 31 13:34:52 2023][info] No Collect job enabled or Collect support disabled server side. [Tue Jan 31 13:34:55 2023][info] running task Inventory [Tue Jan 31 13:34:55 2023][info] New inventory from XXXX.domain.local-2023-01-31-13-32-45 for server0 [Tue Jan 31 13:35:12 2023][error] [http client] unexpected content, starting with !DOCTYPE html [Tue Jan 31 13:35:19 2023][info] FusionInventory Agent memory usage: WSS=3358720 PFU=115367936 [Tue Jan 31 13:35:25 2023][info] FusionInventory Agent memory usage: WSS=3153920 PFU=115404800

Did you have any idea how to solve this issue ?

BoyerBrice avatar Jan 31 '23 12:01 BoyerBrice

Hi,

a problem with your GLPI installation (GLPI or plugin, or webserver configuration)

ddurieux avatar Jan 31 '23 12:01 ddurieux

Hello,

I have the same problem. Can you help me? Do you have more details on where the problem comes from?

Cordially,

eanaro avatar Jan 31 '23 12:01 eanaro

Thanks ! But i don't know where to look at :/ I don't understand why it works for some computers only.

BoyerBrice avatar Jan 31 '23 12:01 BoyerBrice

You can run in debug = 1 or 2 in the agent to have more information

ddurieux avatar Jan 31 '23 13:01 ddurieux

I've run it with debug level 2 :

I got this error message :

[Tue Jan 31 14:41:11 2023][debug] unexpected error in FusionInventory::Agent::Task::Inventory::Win32::License: Can't use string ("0x00000001") as a HASH ref while "strict refs" in use at C:\Program Files\FusionInventory-Agent/perl/agent/FusionInventory/Agent/Task/Inventory/Win32/License.pm line 139.

and i've serach with the keywork "Doctype" :

[Tue Jan 31 14:40:10 2023][debug2] format: Plaintext [Tue Jan 31 14:40:10 2023][debug2] [http client] receiving message:

FusionInventory - GLPI

Maybe meta charset settings ?

BoyerBrice avatar Jan 31 '23 13:01 BoyerBrice

@BoyerBrice This looks like the same bug I fixed for GLPI-Agent last week: glpi-agent #323 You can fix it by cleaning the related registry as a value key was set where none was expected.

g-bougard avatar Jan 31 '23 13:01 g-bougard

it not display the URL used before [debug2] [http client] ?

ddurieux avatar Jan 31 '23 14:01 ddurieux

it not display the URL used before [debug2] [http client] ?

Nope, it's the full error ligne

BoyerBrice avatar Jan 31 '23 14:01 BoyerBrice

By the way, i've install GLPi Agent 1.5 too, and with debug level 2 i got those issue :

!DOCTYPE html html lang="fr" head

Authentification - GLPI ... [Tue Jan 31 15:11:01 2023][info] Deploy task not supported by server0 [Tue Jan 31 15:11:02 2023][debug] new thread 5 to handle task Collect [Tue Jan 31 15:11:02 2023][info] running task Collect

And the registery key : HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office

I only have an empty key that i can not delete, (by default)

BoyerBrice avatar Jan 31 '23 14:01 BoyerBrice

Humm, perhaps the url in entities menu, root entity and have FusionInventory tab. What url you have in this form?

ddurieux avatar Jan 31 '23 14:01 ddurieux

Humm, perhaps the url in entities menu, root entity and have FusionInventory tab. What url you have in this form?

Thanks, in there i have http://X.X.X.X/glpi X.X.X.X is my GLPI Server

BoyerBrice avatar Feb 02 '23 10:02 BoyerBrice

is the URL correct to connect (with web browser) to your GLPI server ?

ddurieux avatar Feb 02 '23 10:02 ddurieux

is the URL correct to connect (with web browser) to your GLPI server ? Nope, it's https://Glpi.domain.local or https://X.X.X.X

I've tried to put that into Entity Menu and same result.

BoyerBrice avatar Feb 02 '23 10:02 BoyerBrice

On agent side, what server URL you have defined?

ddurieux avatar Feb 02 '23 11:02 ddurieux

in registery key for Fusion Inventory agent, i have : https://glpi.domain.local/plugins/fusioninventory/ and i think i have tried all combination, same result.

BoyerBrice avatar Feb 02 '23 12:02 BoyerBrice

try with full url: https://glpi.domain.local/plugins/fusioninventory/front/communication.php

ddurieux avatar Feb 02 '23 12:02 ddurieux

You must restart the service if you run with 127.0.0.1:62354 after modification of the registry

ddurieux avatar Feb 02 '23 12:02 ddurieux

Thanks, i've tried and i got this now into Fusioninventory Agent log on client : [error] [http client] unknown content format

BoyerBrice avatar Feb 02 '23 13:02 BoyerBrice

And something really strange :

  • in entities menu, root entity and have FusionInventory tab , i've put http://X.X.X.X.domain.local/
  • On my Agent configuration i've put the same URL

And now, in client agent log, i got : [error] [http client] communication error: 404 Not Found [error] No answer from server at https://X.X.X.X/ocsinventory

I don't use ocsinventory, where this come from ?

BoyerBrice avatar Feb 02 '23 13:02 BoyerBrice

Good question ;(

ddurieux avatar Feb 02 '23 13:02 ddurieux