[Wapt] TR: Problème inventaire machine

Denis Cardon denis.cardon at tranquil-it-systems.fr
Fri Sep 9 14:23:18 CEST 2016


Bonjour Florian,

> Voici le résultat de la commande suivante :
>
> C:\WINDOWS\system32>wapt-get -l debug --direct register
> Current loglevel : DEBUG
> 2016-09-09 08:10:05,414 DEBUG Default encoding : ascii
> 2016-09-09 08:10:05,414 DEBUG Setting encoding for stdout and stderr to cp850
> 2016-09-09 08:10:05,414 DEBUG Python path ['C:\\wapt', 'C:\\wapt\\lib\\site-packages\\netifaces.egg', 'C:\\wapt\\lib\\site-packages\\pytz.egg', 'C:\\wapt\\lib\\site-packages\\py_bcrypt-0.4-py2.7-win32.egg', 'C:\\wapt\\python27.zip', 'C:\\wapt\\DLLs', 'C:\\wapt\\lib', 'C:\\wapt\\lib\\plat-win', 'C:\\wapt\\lib\\lib-tk', 'C:\\wapt', 'C:\\wapt\\lib\\site-packages', 'C:\\wapt\\lib\\site-packages\\win32', 'C:\\wapt\\lib\\site-packages\\win32\\lib']
> 2016-09-09 08:10:05,430 DEBUG Config file: C:\wapt\wapt-get.ini
> 2016-09-09 08:10:05,430 DEBUG Thread 6580 is connecting to wapt db
> 2016-09-09 08:10:05,430 INFO Unknown UUID or hostname has changed: reading host UUID from wmi informations
> 2016-09-09 08:10:05,446 INFO Run "('echo "" | wmic PATH Win32_ComputerSystemProduct GET UUID,IdentifyingNumber,Name,Vendor /VALUE',)"
> 2016-09-09 08:10:05,571 INFO ('echo "" | wmic PATH Win32_ComputerSystemProduct GET UUID,IdentifyingNumber,Name,Vendor /VALUE',) command returns code 0
> 2016-09-09 08:10:05,571 DEBUG Thread 6580 is connecting to wapt db
> 2016-09-09 08:10:05,571 DEBUG DB Start transaction
> 2016-09-09 08:10:05,571 DEBUG DB commit
> 2016-09-09 08:10:05,585 DEBUG DB Start transaction
> 2016-09-09 08:10:05,585 DEBUG DB commit
> 2016-09-09 08:10:05,585 DEBUG Storing new uuid in DB 0daa1325-346c-40a4-a2aa-de450b38feb3
> 2016-09-09 08:10:05,585 DEBUG DB Start transaction
> 2016-09-09 08:10:05,585 DEBUG DB commit
> 2016-09-09 08:10:05,601 INFO User Groups:[]
> 2016-09-09 08:10:05,601 DEBUG WAPT base directory : C:\wapt
> 2016-09-09 08:10:05,601 DEBUG Package cache dir : C:\wapt\cache
> 2016-09-09 08:10:05,618 DEBUG WAPT DB Structure version;: 20140410
> 2016-09-09 08:10:05,618 DEBUG DB Start transaction
> 2016-09-09 08:10:05,618 DEBUG DB commit
> 2016-09-09 08:10:05,742 INFO Run "('dmidecode -q',)"
> 2016-09-09 08:10:05,773 INFO ('dmidecode -q',) command returns code 0
>         System Power Controls
> FATAL ERROR : TypeError: coercing to Unicode: need string or buffer, int found
> Traceback (most recent call last):
>   File "<string>", line 1062, in <module>
>   File "<string>", line 884, in main
>   File "C:\wapt\common.py", line 4162, in register_computer
>     inv = self.inventory()
>   File "C:\wapt\common.py", line 4339, in inventory
>     inv['softwares'] = setuphelpers.installed_softwares('')
>   File "C:\wapt\setuphelpers.py", line 2129, in installed_softwares
>     result.extend(list_fromkey("Software\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall"))
>   File "C:\wapt\setuphelpers.py", line 2109, in list_fromkey
>     if (uninstallkey is None and display_name and check_words(subkey+' '+display_name+' '+publisher,mykeywords)) or\
> TypeError: coercing to Unicode: need string or buffer, int found
> Exception at 0043E044: EPyTypeError:
> exceptions.TypeError: coercing to Unicode: need string or buffer, int found.
>
> Ca ressemble à une erreur python, je vois pas ce qu'il peut bloquer sur mon poste.

Il semblerai qu'il y a un logiciel qui s'est inscrit bizarrement dans la 
base de registre lors de son installation. Mais bon, ça ne devrait pas 
en soit poser ce problème. Hubert devrait pouvoir trouver un moment pour 
corriger cela dans un proche futur.

Cordialement,

Denis


>
> Dans le fichier de log, j'ai les erreurs suivante :
>
>   File "C:\wapt\lib\site-packages\rocket\main.py", line 143, in start
>     time.sleep(THREAD_STOP_CHECK_INTERVAL)
> IOError: [Errno 4] Interrupted function call
> 2016-09-05 14:07:21,601 CRITICAL TypeError: coercing to Unicode: need string or buffer, int found
> 2016-09-08 14:38:54,204 ERROR Traceback (most recent call last):
>
>
> Florian FAVRE
> Service Exploitation, Systèmes et Réseaux
> Eaux de Vienne
>
>
> -----Message d'origine-----
> De : Denis Cardon [mailto:denis.cardon at tranquil-it-systems.fr]
> Envoyé : jeudi 8 septembre 2016 17:14
> À : Florian FAVRE <f-favre at eauxdevienne.fr>
> Cc : wapt at lists.tranquil.it
> Objet : Re: [Wapt] TR: Problème inventaire machine
>
> Bonjour Florian,
>
>> Merci de votre réponse.
>>
>> Je viens de lancer votre commande et voici le retour :
>>
>> C:\wapt>wapt-get generate-uuid
>> FATAL ERROR : TypeError: coercing to Unicode: need string or buffer,
>> int found
>
> depuis la version 1.3, la plupart des appels en ligne de commande passe par le service plutôt qu'en directe (en raison des problèmes d'élévation de privilèges, d'uac, etc.), il y a donc moins de log en mode debug vu que les appels passe par le waptservice.
>
> Est ce que vous pourriez regarder dans c:\wapt\log\waptservice.log si il y a quelque chose de louche. Est ce que vous pourriez également lancer la commande suivante (le flag --direct dit au service que l'appel doit se faire en direct et non à travers le waptservice). Note: il faut être en admin avec élévation de privilège pour lancer cette commande (attention à l'uac).
>
> wapt-get -l debug --direct register
>
> Cordialement,
>
> Denis Cardon
>
>>
>> Cordialement,
>>
>> Florian FAVRE
>>
>> -----Message d'origine-----
>> De : Denis Cardon [mailto:denis.cardon at tranquil-it-systems.fr]
>> Envoyé : lundi 5 septembre 2016 15:48
>> À : Florian FAVRE <f-favre at eauxdevienne.fr>; wapt at lists.tranquil.it
>> Objet : Re: [Wapt] Problème inventaire machine
>>
>> Bonjour Florian,
>>
>>> J'ai mis en place wapt afin de gérer les mises à jour des
>>> applications sur mon parc.
>>>
>>> J'ai un problème sur un seul poste, après avoir installé l'agent, ce
>>> dernier ne veut pas remonter sur le serveur.
>>>
>>>
>>>
>>> Quand j'essaye de forcer l'inventaire de la machine via la commande «
>>> wapt-get register -l debug » j'ai les retours suivants :
>>>
>>> C:\wapt>wapt-get register -l debug
>>> Current loglevel : DEBUG
>>> About to speak to waptservice...
>>> Connecting to Waptservice event queue...
>>> Connected to Waptservice event queue
>>> Call register URL...
>>> Waptservice User () :administrateur
>>> Password: ************
>>> Task 5 added to queue
>>> Informer le serveur de l'inventaire de cette machine
>>> .......TypeError: coercing to Unicode: need string or buffer, int
>>> found .Leaving Waptservice event queue
>>
>> il est possible que ce soit un problème d'UUID dans le bios. L'UUID du bios est utilisé dans WAPT pour identifier d'une manière unique les postes. Certains bios mal configurés n'ont pas d'UUID.
>>
>> Est ce que vous pourriez essayer de lancer la commande suivante pour générer un UUID (il sera stocké dans le fichier wapt-get.ini) et de voir si ça améliore les choses:
>>
>> wapt-get generate-uuid
>>
>> Cordialement,
>>
>> Denis
>>
>>>
>>>
>>>
>>> Connaissez-vous cette erreur ? Pouvez-vous m'aider ?
>>>
>>>
>>>
>>> Cordialement,
>>>
>>>
>>>
>>> Florian
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> WAPT mailing list
>>> WAPT at lists.tranquil.it
>>> http://lists.tranquil.it/listinfo/wapt
>>>
>>
>> --
>> Denis Cardon
>> Tranquil IT Systems
>> Les Espaces Jules Verne, bâtiment A
>> 12 avenue Jules Verne
>> 44230 Saint Sébastien sur Loire
>> tel : +33 (0) 2.40.97.57.55
>> http://www.tranquil-it-systems.fr
>>
>>
>>
>>
>> _______________________________________________
>> WAPT mailing list
>> WAPT at lists.tranquil.it
>> http://lists.tranquil.it/listinfo/wapt
>>
>
> --
> Denis Cardon
> Tranquil IT Systems
> Les Espaces Jules Verne, bâtiment A
> 12 avenue Jules Verne
> 44230 Saint Sébastien sur Loire
> tel : +33 (0) 2.40.97.57.55
> http://www.tranquil-it-systems.fr
>
>
>
>

-- 
Denis Cardon
Tranquil IT Systems
Les Espaces Jules Verne, bâtiment A
12 avenue Jules Verne
44230 Saint Sébastien sur Loire
tel : +33 (0) 2.40.97.57.55
http://www.tranquil-it-systems.fr



More information about the WAPT mailing list