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

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

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

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.

asked Jan 19 in OCS Inventory NG agent for Windows by sistinfinonva (220 points)

1 Answer

0 votes
It seems like all client reporting no changes to the inventory can do it without problems.

On the other side all new clients (or clients reporting any update) receive this error.

I erased the database and now all clients are reporting correctly, since there were only 150 clients on my installation I think I will start from scratch and wait for them to populate the database.
This is not the best solution but in my situation it's faster to start from zero than fixing db permissions or whatever it was causing the problem.

Thanks anyway, in case you'll provide any hint I'll be glad to test it, I kept the VMs snapshots for testing purposes.

Have a nice day.
answered Jan 19 by sistinfinonva (220 points)
 
Powered by Question2Answer
...