glpi-project / glpi-agent

GLPI Agent
GNU General Public License v2.0
240 stars 60 forks source link

Glpi Agent does not update Inventory #587

Closed waaalex closed 8 months ago

waaalex commented 8 months ago

Bug reporting acknowledgment

Yes, I read it

Professional support

None

Describe the bug

Hello, For some computers, glpi agent does not update inventory.

Here is error in agent log

[Mon Jan 22 12:31:44 2024][info] New inventory from PT-329-2024-01-22-11-16-17 for server0
[Mon Jan 22 12:32:09 2024][error] [http client] communication error: 500 Internal Server Error, Column 'items_id' cannot be null
[Mon Jan 22 12:32:09 2024][error] [http client] server error: Column 'items_id' cannot be null
[Mon Jan 22 12:32:11 2024][info] target server0: next run: Tue Jan 23 12:30:24 2024 - https://glpi/plugins/glpiinventory/
[Mon Jan 22 12:32:11 2024][info] GLPI Agent memory usage: WSS=3469312 PFU=171839488

When i do an inventory, agent in glpiinventory is updated but not the computer. There is an items_id but it is in found as péripheral. When i search in péripheral for this computer, i do not find it. It seems like there is a mess in database but there was nothing changed. I do not know how many computers ar impacted.

To reproduce

Do an inventory.

Expected behavior

Computer updated with inventory

Operating system

Linux

GLPI Agent version

1.7, 1.6.1

GLPI version

10.0.11

GLPIInventory plugin or FusionInventory for GLPI plugin version

GLPI Inventory v1.3.4

Additional context

No response