Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

problème de version d'OS suite à màj Glpi+FI #2376

Closed
cedric677 opened this issue Dec 5, 2017 · 24 comments
Closed

problème de version d'OS suite à màj Glpi+FI #2376

cedric677 opened this issue Dec 5, 2017 · 24 comments

Comments

@cedric677
Copy link

cedric677 commented Dec 5, 2017

bonjour,

suite aux dernières màj Glpi et FusionInventory, j'ai des soucis avec les versions d'OS
certains postes sont doublés à cause d'une 2 version d'OS qui est généré mais je ne sais pas d'où vient l'info qui est erroné :
capture d ecran 2017-12-05 a 14 58 43

avez-vous une idée svp ?

@cedric677 cedric677 changed the title problème de version suite à màj problème de version d'OS suite à màj Glpi+FI Dec 5, 2017
@trasher
Copy link
Contributor

trasher commented Dec 5, 2017

See #2347 maybe

@cedric677
Copy link
Author

I don't find where is the issue in this link
I'm sorry, i'm newbie with Github's forums

@trasher
Copy link
Contributor

trasher commented Dec 5, 2017

This one is a pull request (a fix proposal), not a n issue. Check 'files changed' tab to see the fix.

@cedric677
Copy link
Author

Ok, i did the modifications into the file and uploaded into my FTP
I think i have to wait the next inventory of a computer which is concerned ?
Thanks

@cedric677
Copy link
Author

Anyone ?

@ddurieux
Copy link
Member

You need check the import rules, if you have 2 same computer, it's a problem with import rules

@cedric677
Copy link
Author

Import rules hadn't change since update

@keyser75000
Copy link

keyser75000 commented Dec 20, 2017

It seems exactly the same problem we describe here : http://forum.glpi-project.org/viewtopic.php?id=159402.
Two ways to check it :

  • Entries are duplicated in computers list (but it's the same computer => same id)
  • We see two OS in Operating System Tab.

It happens after fusioninventory plugin migration from 9.1.x to 9.2.

@cedric677
Copy link
Author

yes thanks, but it not indicates a way to solve this problem

@hartois
Copy link

hartois commented Dec 26, 2017

I confirm this problem with Fusioninventory 9.2+1.0 after migration:
scr111

This computer never have AskaLinux or Windows.

@Rico29
Copy link
Contributor

Rico29 commented Jan 8, 2018

I confirm it too
selection_006

@wawax
Copy link

wawax commented Jan 11, 2018

Hello,

this has already been fixed. We're working on a plugin update for the coming days.

Thank you.

@cedric677
Copy link
Author

Very nice, thank you :)

@cedric677
Copy link
Author

Hi, no news about this update please ?

@cedric677
Copy link
Author

Hi,
I found new patch for FusionInv and installed it
But now, some computers appeared 3 times :(

Is there any correction to do in database please ?
Thanks

@wawax
Copy link

wawax commented Jan 31, 2018

Please try version 9.2+.2.0-RC1 that have just been released

@cedric677
Copy link
Author

Yes, i tryed this patch yesterday and i have some computers which appears 3 times now

@cedric677
Copy link
Author

capture d ecran 2018-01-31 a 09 52 23

@trasher
Copy link
Contributor

trasher commented Jan 31, 2018

The fix will prevent extra OS to be created; but this will not clean wrong existing data.

Take a look at glpi_items_operatingsystems and try to drop wrong entries (mostly, ones that does not have any arch, or version).

@trasher
Copy link
Contributor

trasher commented Jan 31, 2018

You should find duplicates using:

SELECT id FROM glpi_items_operatingsystems group by items_id having count(items_id) > 1

And you should be able to clean duplicates using (backup your database before trying that):

DELETE FROM glpi_items_operatingsystems
WHERE items_id IN (SELECT * FROM(SELECT items_id FROM glpi_items_operatingsystems as ios group by items_id having count(items_id) > 1) as ios2)
AND operatingsystemarchitectures_id = 0

@cedric677
Copy link
Author

Thank you for this codes
I tested it and 30 rows have been deleted but the problem persists :/

Can i delete all the rows ?
OS will automatically update with FusionInventory no ?

@cedric677
Copy link
Author

I found 67 computers which have duplicated OS
It's not a big work at all, i will delete rows manually , thank you 👍

@trasher
Copy link
Contributor

trasher commented Jan 31, 2018

Yes, if you delete all rows; they'll be created again on the next inventory; but everyone cannot drop all entries (especially on big databases).

The screenshot you've provided seems to be a search result; and results may be incorrect as well... Just to be sure: for one computer, you had 2 (or more) operating systems listed. When you run the "delete" query, only one should remain. Is that point OK?

@cedric677
Copy link
Author

Some times i have 3 OS listed by computer :
capture d ecran 2018-01-31 a 13 41 32

I tryed to delete the 2 rows which have the bigger id and the right OS seems to be conserved

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants