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

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

No download of deployed package

Hello,

I have used OCS Inventory NG a time befor only for inventory. Now I want to deploy software too. I have created a package and did as described in the documentation.

I disabled SSL in ocsinventory.ini and configured my server like this:

HTTP => port 1080
HTTPS => port 10443

Everything is working and reachable.

But in my Download.log i get the following:

==============================================================================
Starting OCS Inventory NG Package Download and Setup Tool on Saturday, July 08, 2017 09:44:03.
DOWNLOAD => Running OCS Inventory NG Download Version 2.3.0.0
DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.3.0.0
DOWNLOAD => Using network connection with Communication Server
COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
DOWNLOAD => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.3.0.0>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Flushing package queue
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => Verifying package <C:\ProgramData\OCS Inventory NG\Agent\download\1499463596>
DOWNLOAD => Package <1499463596> verified and added to process queue
DOWNLOAD => Processing packages for cycle 1 on Saturday, July 08, 2017 09:44:03
DOWNLOAD => Pausing for cycle latency (60 seconds)
DOWNLOAD => Processing packages for cycle 2 on Saturday, July 08, 2017 09:45:03
DOWNLOAD => Downloading package fragment <1499463596-1>
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://MY_OCS_SERVER_IP:1080/download/1499463596/1499463596-1>
WARNING *** COM SERVER => Failed to send HTTP Get request <Failure when receiving data from the peer>
COM SERVER => Cleaning cURL library
WARNING *** DOWNLOAD => Failed to download package fragment <1499463596-1> (Failure when receiving data from the peer). Retrying
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://MY_OCS_SERVER_IP:1080/download/1499463596/1499463596-1>
WARNING *** COM SERVER => Failed to send HTTP Get request <Failure when receiving data from the peer>
COM SERVER => Cleaning cURL library
WARNING *** DOWNLOAD => Failed to download package fragment <1499463596-1> (Failure when receiving data from the peer). Retrying
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://MY_OCS_SERVER_IP:1080/download/1499463596/1499463596-1>
WARNING *** COM SERVER => Failed to send HTTP Get request <Failure when receiving data from the peer>
COM SERVER => Cleaning cURL library
WARNING *** DOWNLOAD => Failed to download package fragment <1499463596-1> (Failure when receiving data from the peer). Retrying
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://MY_OCS_SERVER_IP:1080/download/1499463596/1499463596-1>
WARNING *** COM SERVER => Failed to send HTTP Get request <Failure when receiving data from the peer>
COM SERVER => Cleaning cURL library
WARNING *** DOWNLOAD => Failed to download package fragment <1499463596-1> (Failure when receiving data from the peer). Retrying
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://MY_OCS_SERVER_IP:1080/download/1499463596/1499463596-1>
WARNING *** COM SERVER => Failed to send HTTP Get request <Failure when receiving data from the peer>
COM SERVER => Cleaning cURL library
WARNING *** DOWNLOAD => Failed to download package fragment <1499463596-1> (Failure when receiving data from the peer). Retrying
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://MY_OCS_SERVER_IP:1080/download/1499463596/1499463596-1>
WARNING *** COM SERVER => Failed to send HTTP Get request <Failure when receiving data from the peer>
COM SERVER => Cleaning cURL library
WARNING *** DOWNLOAD =>  Max error count (5) reached while downloading package fragment <1499463596-1> (Failure when receiving data from the peer)

In my OCSInventory.log I get the following:

AGENT => Inventory successfully sent
INVENTORY => Writing new inventory state
AGENT =>  Communication Server ask for Package Download
DOWNLOAD => Package history file successfully cleaned for duplicate IDs
DOWNLOAD => Metadata file <info> for package <1499463596> is located at <https://MY_OCS_SERVER_IP:10443/download/1499463596/info>
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 <https://MY_OCS_SERVER_IP:10443/download/1499463596/info>
COM SERVER => fileGet response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
DOWNLOAD => Unloading communication provider
DOWNLOAD => Retrieve info file...OK (pack 1499463596)
DOWNLOAD => Package <1499463596> added to download queue
DOWNLOAD => Download and setup tool successfully started
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:09.

What's wrong with my configuration?

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

1 Answer

0 votes

If I'm connecting through browser to http://MY_OCS_SERVER_IP:1080/download/1499463596/info I recieve follwing:

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<DOWNLOAD ID="1499463596" PRI="2" ACT="STORE" DIGEST="ff9910985ce51bb22217e81a7a6d3139" PROTO="HTTP" FRAGS="1" DIGEST_ALGO="MD5" DIGEST_ENCODE="Hexa" PATH="C:\temp" NOTIFY_USER="0" NOTIFY_TEXT="" NOTIFY_COUNTDOWN=""NOTIFY_CAN_ABORT="0" NOTIFY_CAN_DELAY="0" NEED_DONE_ACTION="1" NEED_DONE_ACTION_TEXT="ZIP File" GARDEFOU="rien"/>

If this is shown then my deployment should work...

by (520 points)
 
Powered by Question2Answer
...