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.

W10 1809 - COM Server Failed to send HTTP Get [closed]

Hello,

i have OCS Server 2.5 (and 2.6 for testing) with the latest Agent 2.4.0.0 in a small Windows Domain working.

My updated Windows 1809 is working fine, a new Installation will not install Software, the inventory works. The file is complete in the download location

ocsinventory.log

AGENT => Inventory successfully sent
 INVENTORY => Writing new inventory state
AGENT =>  Communication Server asked for Package Download
 DOWNLOAD => Package history file successfully cleaned for duplicate IDs
 DOWNLOAD => Metadata file <info> for package <1549636537> is located at <https://ocs.xxx.de/download/1549636537/info>
 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 <cacert.pem>
 COM SERVER => Sending fileGet request to URL <https://ocs.xxx.de/download/1549636537/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 1549636537)
DOWNLOAD => Package <1549636537> 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:50.

Download.log

Starting OCS Inventory NG Package Download and Setup Tool on Tuesday, February 12, 2019 16:07:25.
DOWNLOAD => Running OCS Inventory NG Download Version 2.4.0.0
DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.4.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.4.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\1549636537>
DOWNLOAD => Package <1549636537> verified and added to process queue
 DOWNLOAD => Processing packages for cycle 1 on Tuesday, February 12, 2019 16:07:25
...
 DOWNLOAD => Pausing for cycle latency (60 seconds)
 DOWNLOAD => Processing packages for cycle 5 on Tuesday, February 12, 2019 16:11:25
DOWNLOAD => Downloading package fragment <1549636537-1>
 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 <cacert.pem>
 COM SERVER => Sending fileGet request to URL <HTTP://ocs.xxx.de/download/1549636537/1549636537-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 <1549636537-1> (Failure when receiving data from the peer). Retrying

My test to find out - no error in Apache error.log

Reset Windows 10:test without Domain; save url to trusted sites; clean install Client; ComHTTP in Version 2.3.1.1; OCS Server 2.5 and 2.6; IP no name (dns ist working); stop the firewall 

in CMD

curl -v http://ocs.xxx.de/download/1549636537/1549636537-1

*   Trying 192.168.2.222...
* TCP_NODELAY set
* Connected to ocs.xxx.de (192.168.2.222) port 80 (#0)
> GET /download/1549636537/1549636537-1 HTTP/1.1
> Host: ocs.xxx.de
> User-Agent: curl/7.55.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Tue, 12 Feb 2019 12:03:24 GMT
< Server: Apache/2.4.29 (Ubuntu)

 

i have no idea where to find the Problem - it's Windows 1809

greetings form Germany thanks for the great work

closed with the note: default fragment download works with https
in OCS Inventory NG agent for Windows by (360 points)
closed by

5 Answers

0 votes
Hallo,

starting the OCS Inventory Service with a local Admin Account and existing profile on the W10 machine Fails with the same failure.

No ideas?
by (360 points)
0 votes
Hallo Community,

i think it isn't Windows. Hardware? TPM?
I have a HP EliteDesk 800 G3 - Up to Date with all Drivers and Firmware

Has anyone Problems with Special Hardware.Tipps how i can find the Problem?
by (360 points)
0 votes

Hello,

i'm on the right way. The Problem ist the SonicWall between 2 VPN Locations.Murphys Law is the Problem - Firmware oder ContentFilter, AntiVirus makes the Problem and not the Setup of a new Client.
Other Clients on this Location have the same Problem since a few weeks.

Download from the webinterface is ok - https
Download form the /download Folder with https ist ok - with http the file is corrupt or won't download

How can i switch to https download wenn deploying a packet?

I try to configure the SonicWall

by (360 points)
0 votes
Good morning,

a Workaround for me, Change in the INFO file HTTP to HTTPS. i have no future Problems with my Firewall.

to the developers: where can i Change in the build pakage the protocol to https.
Thanks
by (360 points)
0 votes

Hello,

i finishd my workaround. - Servus from Bavaria

/usr/share/ocsinventory-reports/ocsreports/plugins/main_sections/ms_teledeploy/

sudo nano ms_tele_package_new.php

$info_details = array(
                    'PRI' => $form_data['PRIORITY'],
                    'ACT' => $form_data['ACTION'],
                    'DIGEST' => 'TODO', //$form_data['digest'],
                    'PROTO' => 'HTTPS', //$protectedPost['PROTOCOLE'],
                    'DIGEST_ALGO' => 'MD5', //["digest_algo"],
                    'DIGEST_ENCODE' => 'HEXA', //$protectedPost["digest_encod"],
                    'PATH' => $form_data['ACTION_INPUT'],
....

sudo nano ms_tele_package.php

$default_value = array(
    'OS' => 'WINDOWS',
    'PROTOCOLE' => 'HTTPS',
    'PRIORITY' => '5',
    'ACTION' => 'EXECUTE',
    'REDISTRIB_PRIORITY' => '5'

und

$list_proto = [
    "HTTPS" => "HTTPS"
];

by (360 points)
 
Powered by Question2Answer
...