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.12.3 available

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

Pas de remontée machine dans OCS sur serveur distant [closed]

Bonjour,

J'ai installé sur un serveur distant OCS serveur, afin de pouvoir faire l'inventaire des parc informatique de mes clients.

J'installe don mon serveur, crée mon package d'installation client avec l'ip publique du serveur, et veut donc commencer le déploiement.

Après plusieurs tentatives, sur le poste client, toujours 2 messages d'erreurs :

"Service encounter error <Failed to load/parse last inventory state>"

Service encounter error <OCS Inventory NG Agent encounter an error (exit code is 4 => Failed to talk with Communication Server)>.

J'ai désactivé le pare-feu sur le serveur afin de savoir si ça ne venait pas de la. Toujours le même problème.

Si vous pouvez m'apporter une aide ce serait vraiment top car je suis à court d'idée.

Cordialement
closed with the note: Problème résolu par l'utilisateur
in OCS Inventory NG server for Windows by (420 points)
closed by

8 Answers

0 votes
Peux tu nous donner le log complet de ton agent en debug=2 ?
by (22k points)
0 votes
Bonjour et merci de votre réponse,

Voici le log de l'agent du ocsinventory.ini :

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=0
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://51.254.115.173/ocsinventory
SSL=1
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=17760
INVENTORY_ON_STARTUP=0

et ocsinventory.log :

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 12, 2017 17:55:28.
AGENT => Running OCS Inventory NG Agent Version 2.1.0.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.0.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.0.3>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:21.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 12, 2017 17:56:27.
AGENT => Running OCS Inventory NG Agent Version 2.1.0.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.0.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.0.3>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:21.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 12, 2017 17:57:24.
AGENT => Running OCS Inventory NG Agent Version 2.1.0.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.0.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.0.3>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:22.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 12, 2017 18:02:44.
AGENT => Running OCS Inventory NG Agent Version 2.1.0.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.0.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.0.3>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:21.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 12, 2017 18:07:28.
AGENT => Running OCS Inventory NG Agent Version 2.1.0.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.0.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.0.3>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:21.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 12, 2017 18:27:28.
AGENT => Running OCS Inventory NG Agent Version 2.1.0.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.0.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.0.3>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:21.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 12, 2017 18:55:13.
AGENT => Running OCS Inventory NG Agent Version 2.1.0.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.0.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.0.3>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:22.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, October 12, 2017 21:00:04.
AGENT => Running OCS Inventory NG Agent Version 2.1.0.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.0.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.0.3>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:21.

==============================================================================
Starting OCS Inventory NG Agent on Friday, October 13, 2017 00:54:04.
AGENT => Running OCS Inventory NG Agent Version 2.1.0.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.0.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.0.3>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:22.

==============================================================================
Starting OCS Inventory NG Agent on Friday, October 13, 2017 04:50:24.
AGENT => Running OCS Inventory NG Agent Version 2.1.0.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.0.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.0.3>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:21.

Merci par avance
by (420 points)
0 votes
Bonjour,
Dans le .ini, si l'URL est en http, je mettrais SSL=0

Sinon, je vérifierai depuis un navigateur que j'obtiens bien une erreur 400 en naviguant sur l'URL de remontée d'inventaire.

Cordialement,
Bexounet
by (3.7k points)
0 votes
Manipulation effectuée, toujours pareil, par contre pas d'erreur 404 sur differents navigateurs
by (420 points)
0 votes
Bonjour,

Mettre debug=2 dans le fichier ocsinventory.ini. Lorsque tu accèdes à l'url http://ip_server_ocs/ocsinventory via un navigateur quelle erreur as-tu?

Cordialement

Frank
by (90.2k points)
0 votes

Bonjour ,

Apres avoir mis debug 2 sur l'agent client voici le message d'erreur.

Ce site est inaccessible

51.254.115.173 a mis trop de temps à répondre.

ERR_CONNECTION_TIMED_OUT

by (420 points)
0 votes

Petite avancée, mais nouveau message d'erreur, en désactivant totalement les parefeu des 2 cotés.

Erreur du serveur!

Le serveur a été victime d'une erreur interne et n'a pas été capable de faire aboutir votre requête.

Message d'erreur: 
Can't call method "do" on an undefined value at C:/xampp/perl/site/lib/Apache/Ocsinventory/Server/System.pm line 177.

Si vous pensez qu'il s'agit d'une erreur du serveur, veuillez contacter le webmestre.

Error 500

51.254.115.173
10/16/17 11:53:25
Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1

by (420 points)
0 votes
Bon après plusieurs jours de recherche,

Tout est ok, la remontée sur le serveur OCS s'effectue correctement.

Merci pour votre aide
by (420 points)
 
Powered by Question2Answer
...