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.

Error http 400 486

Hi,

I have a problem with ocs inventory agent windows and server debian.

The conf computer isn't send at the server and I have in log of agent error 400.

And in access.log of apache2 http 400 486.

access.log apache :

192.168.1.41 - - [28/Feb/2017:12:00:36 +0100] "GET /ocsinventory/deploy/label HTTP/1.1" 400 486 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
192.168.1.41 - - [28/Feb/2017:12:00:36 +0100] "POST /ocsinventory HTTP/1.1" 400 486 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"

error.log is "clear"

OCSInventory.log agent :

==============================================================================
Starting OCS Inventory NG Agent on Tuesday, February 28, 2017 11:35:53.
AGENT => Running OCS Inventory NG Agent Version 2.3.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.3.0.0
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) successfully 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.3.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 <C:\ProgramData\OCS Inventory NG\Agent\C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending fileGet request to URL <http://192.168.1.38:80/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 <FUJI-HV-2016-06-24-11-13-22> and MACs <5C:AC:4C:A5:13:FE1E:AC:4C:A5:13:FE8C:73:6E:A3:3D:35> 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 <C:\ProgramData\OCS Inventory NG\Agent\C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <http://192.168.1.38:80/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #400>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #400>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00

in OCS Inventory NG server for Unix by (760 points)
reopened by

14 Answers

0 votes
Hello,

I have reinstall ocs and the errors is solved but i have this error.

And when I go in ocsreports folder I haven't "/deploy/label", I have try to create this folders but It has not changed anything.

==============================================================================
Starting OCS Inventory NG Agent on Friday, March 03, 2017 14:30:34.
AGENT => Running OCS Inventory NG Agent Version 2.3.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.3.0.0
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) successfully 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.3.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 => Disabling cURL SSL server validation support
    COM SERVER => Sending fileGet request to URL <http://192.168.1.18/ocsreports/deploy/label>
    COM SERVER => fileGet response received <HTTP Status Code #404>
    COM SERVER => Cleaning cURL library
    AGENT => Failed to retrieve Label <HTTP Status Code #404>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <FUJI-HV-2016-06-24-11-13-22> and MACs <5C:AC:4C:A5:13:FE8C:73:6E:A3:3D:351E:AC:4C:A5:13:FE> 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.18/ocsreports>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
    AGENT => Prolog Frequency set to 10 hour(s)
    AGENT => Inventory on startup option set to  
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.
by (760 points)
0 votes
I have a new information, the agent installed on the server OCS is detected on the server, but for the agent windows installed on my pc, and server cluster in the even lan have the error above.
by (760 points)
0 votes
I am just wondering if this issue was resolved already. I am also having the same problem. My OCS NG server is a Windows Server 2012 R2 version 2.1.. And Windows Agent is 2.3.1.1. I have seen some posts where its said Agent version is higher than server version and thus the error.

So Can I use an older version of Agent (version 2.1.2), and will that work with Windows 7/10 and Server 2008 R2/2012 R2? If yes, where can I down it from?

Or is there any workaround to make it work with current versions I have?
by (160 points)
0 votes
Hi,

Agent version 2.1.1.3 which can run with 2.1.1 server version is available here => https://github.com/OCSInventory-NG/WindowsAgent/releases/download/2.1.1.3/OCSNG-Windows-Agent-2.1.1.3.zip
All can be used on Windows 7/10 and 2008 Server.

Regards

Frank
by (88.5k points)
 
Powered by Question2Answer
...