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

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

Comment résoudre l'erreur "Failed to send Prolog <Failure when receiving data from the peer>" ? [closed]

Bonjour,

Je suis en train de configurer mon premier agent Windows OCS. Le serveur tourne sous Debian, l'installation s'est déroulée sans heurt. Par contre, lors des tentatives de connexion de l'agent, j'ai invariablement un problème :

Starting OCS Inventory NG Agent on Monday, June 29, 2015 14:18:49.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.1
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.1
AGENT => Loading plug-in(s)
 DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
 DLL PLUGIN => 0 DLL Plug-in(s) succesfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
 AGENT => Sending getLabel request
 COM SERVER => Initializing cURL library for getFile
 COM SERVER => Using cURL without server authentication
 COM SERVER => Disabling cURL proxy support
 COM SERVER => Disabling cURL SSL server validation support
 COM SERVER => Sending fileGet request to URL <http://192.168.1.122:6389/ocsinventory/deploy/label>
 WARNING *** COM SERVER => Failed to send HTTP Get request <Failure when receiving data from the peer>
 COM SERVER => Cleaning cURL library
 AGENT => Failed to retrieve Label <Failure when receiving data from the peer>
AGENT => Sending Prolog
 DID_CHECK => Read DeviceID <PC-455-2015-06-29-10-13-05> and MACs <38:63:BB:CA:31:CBC4:8E:8F:C3:86:F4C4:8E:8F:C3:86:F3C4:8E:8F:C3:86:F3> in file <ocsinventory.dat>
 COM SERVER => Initializing cURL library for sendRequest
 COM SERVER => Using cURL without server authentication
 COM SERVER => Disabling cURL proxy support
 COM SERVER => Disabling cURL SSL server validation support
 COM SERVER => Sending HTTP Post request to URL <http://192.168.1.122:6389/ocsinventory>
 WARNING *** COM SERVER => Failed to send HTTP Post request <Failure when receiving data from the peer>
 COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
ERROR *** AGENT => Failed to send Prolog <Failure when receiving data from the peer>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.

Le port 6389 est bien évidemment à l'écoute sur le serveur. Si je colle le port 80, j'ai une erreur 404. Ce qui m'intrigue particulièrement, c'est que je n'ai aucune erreur dans le erreur.log d'Apache.

Merci d'avance pour votre aide.

closed with the note: Solved
in OCS Inventory NG agent for Windows by (160 points)
closed by

2 Answers

0 votes
Bonjour,

Merci de poster le contenu du fichier error_log d'apache et le contenu du fichier z-ocsinventory-server.conf.

Cordialement

Frank
by (88.5k points)
0 votes

Après des recherches complémentaires approfondies, j'ai compris ce qui clochait :

Le port 6389 est bien en écoute, mais pas par Apache. Par conséquent, je me suis concentré sur l'erreur 404 que j'obtenais en passant par le port 80. Manifestement, http://192.168.1.122/ocsinventory ne menait nul part dans ma configuration. J'ai cherché à comprendre pourquoi.

J'ai identifié que les fichiers ocsinventory-reports.conf et z-ocsinventory-server.conf n'étaient pas dans le bon dossier d'Apache. Je les avais mis dans /etc/apache2/sites-available alors qu'il fallait les placer dans /etc/apache2/conf-enabled. Il fallait également modifier le z-ocsinventory-server.conf en changeant l'avant dernière ligne "require "SOAP_USER" " par "require user "SOAP_USER" ".

Depuis ces corrections, tout est en ordre :)

Désolé et merci pour votre aide.

by (160 points)
 
Powered by Question2Answer
...