Quantcast
Channel: Ocsinventory Q&A - Recent questions without answers
Viewing all articles
Browse latest Browse all 4599

"Failed to send inventory" agent 2.3.1 (2.1 works)

$
0
0

Hi everyone,

I've been using ocs 2.1.0 for the last couple of years without any issue, yesterday we installed a new centos 7 server with ocs server 2.3.1 (not 2.4 because there are no rpms available yet).

I migrated db and config to the new server and everything kept working as before, but all PCs still use Windows Agent v. 2.1.1.1.

I upgraded agent v. 2.3.1.1 on a test computer, tried to send inventory but I keep getting the following error:


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 <cacert.pem>

COM SERVER => Sending HTTP Post request to URL <http://ocsinventory/ocsinventory>

COM SERVER => HTTP Post response received <HTTP Status Code #500>

COM SERVER => Cleaning cURL library

================= TRACE START ===============

================= TRACE STOP ===============

ERROR *** AGENT => Failed to send Inventory <HTTP Status Code #500>

AGENT =>  Communication Server ask for Package Download

DOWNLOAD => Package history file successfully cleaned for duplicate IDs

DOWNLOAD => Download and setup tool successfully started

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 00:00:08.


The agent configuration is the following.

It has been always working and it keeps working with 2.1.1.1 agent but not with 2.3.1.1


[OCS Inventory Agent]

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


The prolog request works, code 200, the send inventory instead fails.


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 <cacert.pem>

COM SERVER => Sending HTTP Post request to URL <http://ocsinventory/ocsinventory>

COM SERVER => HTTP Post response received <HTTP Status Code #200>

COM SERVER => Cleaning cURL library

AGENT => Prolog successfully sent

AGENT => Prolog Frequency set to 2 hour(s)

AGENT => Inventory on startup option set to 1 


Any suggestion?

Thanks in advance.


Viewing all articles
Browse latest Browse all 4599

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>