-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate Software Versions #17319
Comments
I did an inventory run on two machines which show up as different versions. This is the output of the example software above: Agent 1:
Agent 2:
As far as I can see, the only difference is the install date. |
Maybe related: |
Could this #16598 be the cause? Maybe, another "version" (in terms of glpi) gets added, if installation dates differ? (no developer here, so just a guess...) |
CSV export of the glpi_softwareversions table (filtered according to the example above): |
#16598 targets next major version, it's not included in 10.x series. We need inventory file(s) in order to reproduce from a fresh install. |
Do you mean the complete xml produced on clients after installation of software? |
Just upgraded to glpi 10.0.16, and we are still seeing duplicate software versions. |
Hi @troloff After importing (several times) your files, I do not reproduce
When importing XML files, do you see errors in GLPI logs ( One clue could be an inconsistent state in your database data. The presence of several identical versions ( GLPI cannot find a single version and therefore adds it by default (1 +1 +1 +1 ....) You can try to clean up the software with the following SQL queries DELETE FROM glpi_softwares;
DELETE FROM glpi_softwareversion;
DELETE FROM glpi_items_softwareversions; Software information will be updated as and when the inventory is updated. |
Deleted the three tables as suggested. Now, software inventory rebuilds, but we have duplicate versions for every software/version installed on every computer. There are no errors in sql-error.log Only error in php-errors.log (but only <10 times a day) is
We did not see this behaviour before update to GLPI 10.0.15 / GLPI-Agent 1.9 (which we unfortunately did in the same run...). |
Maybe, I can add some debugging output to /src/Inventory/Asset/Software.php (line 410 ff?) to see what is happening, if new software "arrives" from the GLPI agents? |
Just to be sure:
(which reads "database schema is ok") |
Are inventories processed in parallel? If so, might there be a race condition in glpi/src/Inventory/Asset/Software.php Line 247 in d721c1f
Like:
|
Same problem with two different installations. |
Operating System is part of the dedup key; as it already was in the plugin. As already said, we need a way to reproduce on a fresh GLPI instance, so please provide related inventories files and detailed steps to do so. |
Same problem here. Any ideas? |
Not reproducible on our side. Feel free to reopen with a reproducble use case on a fresh GLPI latest stable release installation. |
Code of Conduct
Is there an existing issue for this?
Version
10.0.15 / GLPI Agent 1.9
Bug description
After update to 10.0.15, we are seeing multiple (duplicate) entries of the same software version. Example screenshot:
Relevant log output
No response
Page URL
No response
Steps To reproduce
Your GLPI setup information
Informationen über das System, die Installation und die Konfiguration
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?
No response
The text was updated successfully, but these errors were encountered: