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

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

Failed to send Prolog <HTTP Status Code#400>

Hi there,

I'm trying to make it works, I solved most of the errors but i'm still stuck with :
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #400>

==============================================================================
Starting OCS Inventory NG Agent on Tuesday, April 28, 2020 14:52:17.
AGENT => Running OCS Inventory NG Agent Version 2.6.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.6.0.0
AGENT => Loading plug-in(s)
DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
DLL PLUGIN => 0 DLL Plug-in(s) successfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.6.0.0>
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 => Enabling cURL SSL server validation support using CA Bundle <mycert.cer>
COM SERVER => Sending fileGet request to URL <http://fqdn+port/ocsinventory/deploy/label>
COM SERVER => fileGet response received <HTTP Status Code #400>
COM SERVER => Cleaning cURL library
AGENT => Failed to retrieve Label <HTTP Status Code #400>
AGENT => Sending Prolog
DID_CHECK => Read DeviceID <mycomputer-2020-04-28-14-39-37> and MACs <my mac> 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 => Enabling cURL SSL server validation support using CA Bundle <mycert.cer>
COM SERVER => Sending HTTP Post request to URL <http://myfqdn:port/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #400>
COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #400>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:03.

Just in case, for Franck smiley:

The server is installed on Debian 10, OCS version 2.7

The agent is on Windows 10, OCS version 2.6

I could read that it's related in most case to versions issues but there no because agent is lower than server. z-ocs.....conf says server is on 2.7 so it is confirmed. 

My SSL certificate is signed by our CA server. 

My apache server is running with the certificate installed. 

Here is my ocsinventory.ini

[OCS Inventory Agent]

ComProvider=ComHTTP.dll

Debug=1

Local=

NoSoftware=0

HKCU=0

NoTAG=0

IpDisc=

[HTTP]

Server=http://fqdn+port/ocsinventory

SSL=1

CaBundle=mycert.cer

AuthRequired=0

User=

Pwd=

ProxyType=0

Proxy=

ProxyPort=0

ProxyAuthRequired=0

ProxyUser=

ProxyPwd=

[OCS Inventory Service]

TTO_WAIT=10

INVENTORY_ON_STARTUP=0

I tried different solutions but couldn't find anything.

Thanks in advance for your help. 

in OCS Inventory NG agent for Windows by (200 points)

3 Answers

0 votes
Hi,

The ocs server was updated or it's a fresh install?

Could you verify this file (Ocsinventory.pm) on the server ? The variable version must be set to 2.7.

Regards

Frank
by (79.2k points)
0 votes
Yes it's an install from scratch and yes the file says 2.7 on the variable version.
by (200 points)
0 votes
I'm still stuck. Any idea?

Thanks
by (200 points)
 
Powered by Question2Answer
...