Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.8 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Mais que signifie l'erreur "Failed to load/parse last inventory state " [closed]

Bonjour,

On a un serveur OCS Windows 2.1.2 et l'agent Windows 2.0.5 sur plusieurs Windows 2008R2. Sur l'une de ces machines l'inventaire n'est jamais remonté et le service OCS renvoie systématiquement l'erreur Service "encounter error "<Failed to load/parse last inventory state >", Nous avons manuellement désinstallé puis réinstallé l'agent mais l'erreur revient toujours. Quels  peuvent-en être l'origine et la signification ?

Merci Beaucoup

Cordialement,

Severus

Log agent :

==============================================================================
Starting OCS Inventory NG Agent on Tuesday, June 07, 2016 14:58:39.
AGENT => Running OCS Inventory NG Agent Version 2.0.5.0
AGENT => Using OCS Inventory NG FrameWork Version 2.0.5.0
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <SSL connect error>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.

==============================================================================
Starting OCS Inventory NG Agent on Tuesday, June 07, 2016 14:58:42.
AGENT => Running OCS Inventory NG Agent Version 2.0.5.0
AGENT => Using OCS Inventory NG FrameWork Version 2.0.5.0
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <SSL connect error>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

==============================================================================
Starting OCS Inventory NG Agent on Tuesday, June 07, 2016 14:59:50.
AGENT => Running OCS Inventory NG Agent Version 2.0.5.0
AGENT => Using OCS Inventory NG FrameWork Version 2.0.5.0
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <SSL connect error>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.

==============================================================================
Starting OCS Inventory NG Agent on Tuesday, June 07, 2016 15:02:27.
AGENT => Running OCS Inventory NG Agent Version 2.0.5.0
AGENT => Using OCS Inventory NG FrameWork Version 2.0.5.0
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <SSL connect error>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.
closed with the note: Problème résolu.
in OCS Inventory NG agent for Windows by (420 points)
closed by

4 Answers

0 votes
Bonjour,

Le problème affiché dans les logs est un problème ssl.

Avez-vous configuré ssl sur vos agents ?

Pouvez-vous envoyer  votre configuration agent ?

Cordialement,

Gilles Dubois.
by (3k points)
0 votes
Bonjour,

Ci-joint la configuration de l'agent OCS :

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=0
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=https://<Nom de mon serveur>/ocsinventory
SSL=1
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=15600

Le certificat cacert.pem est bien dans le répertoire agent.

Cordialement,

Severus
by (420 points)
0 votes
Bonjour,

Comment a-été construit le certificat? Pour que cela fonctionne il faut le même nom de serveur entre le fichier ocsinventory.ini et le CN du certificat.

Cordialement

Frank
by (79.6k points)
0 votes
Bonjour,

Merci pour vos réponses. Le problème venait de l'oubli d'ouverture sur un pare-feu. Depuis l'inventaire de la machine remonte bien au serveur.

Merci.

Cordialement,

Severus
by (420 points)
 
Powered by Question2Answer
...