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.

Failed to send Prolog <HTTP Status Code #503>

Hi all, I am a newbie of Linux and OCS inventory. I have installed OCS server in my CentOS 8 and I can login to the admin portal but my PC information cannot send to my CentOS 8 OCS server.

can anyone help me? Thank you very much.
Here is my PC ocsinventory.ini;

[OCS Inventory Agent]

ComProvider=ComHTTP.dll

Debug=1

Local=

NoSoftware=0

HKCU=0

NoTAG=0

IpDisc=

[HTTP]

Server=http://10.106.64.63/ocsreports

SSL=0

CaBundle=cacert.pem

AuthRequired=0

User=

Pwd=

ProxyType=1

Proxy=mycompanyproxyserver

ProxyPort=8080

ProxyAuthRequired=0

ProxyUser=

ProxyPwd=

[OCS Inventory Service]

TTO_WAIT=22860

INVENTORY_ON_STARTUP=0

Here is my PC Agent log;

Starting OCS Inventory Agent on Monday, December 14, 2020 15:04:48.

AGENT => Running OCS Inventory Agent Version 2.8.0.0

AGENT => Using OCS Inventory FrameWork Version 2.8.0.0

AGENT => Loading plug-in(s)

DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\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\OCS Inventory Agent\ComHTTP.dll>

AGENT => Using Communication Provider <OCS Inventory cURL Communication Provider> Version <2.8.0.0>

AGENT => Sending Prolog

DID_CHECK => Read DeviceID <NHK-NB-N3159-05-2020-11-09-10-11-06> and MACs <00:05:9A:3C:7A:0000:50:56:C0:00:0144:85:00:3B:45:B050:7B:9D:CE:2D:1200:50:56:C0:00:08> in file <ocsinventory.dat>

COM SERVER => Initializing cURL library for sendRequest

COM SERVER => Using cURL without server authentication

COM SERVER => Using cURL HTTP type proxy <mycompanyproxyserver:8080>

COM SERVER => Using cURL proxy without authentication

COM SERVER => Disabling cURL SSL server validation support

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

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

COM SERVER => Cleaning cURL library

ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #503>

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 00:01:26.
in OCS Inventory NG agent for Unix by (240 points)

7 Answers

0 votes

HI,

This url "Server=http://10.106.64.63/ocsreports" is not correct. You must have Server=http://10.106.64.63/ocsinventory

Stop ocsservice, make the change, save and restart ocsservice.

Inventory is sent to the server.

Have fun with ocs.

Regards

Frank

by (88.5k points)
0 votes
Kenneth,

Hi Frank, I tried your suggestion, but fail to send the prolog also. Please find more information of my OCS setting.

Current admin portal address is : http://10.106.64.63/ocsreports/

Current ocs folder in CentOS 8 location;

\usr\share\ocsinventory-reports\ocsreports

======= ocsinventory.ini ========

updated to Server=http://10.106.64.63/ocsinventory

======== Agent log file =========

Starting OCS Inventory Agent on Thursday, December 17, 2020 10:22:43.

AGENT => Running OCS Inventory Agent Version 2.8.0.0

AGENT => Using OCS Inventory FrameWork Version 2.8.0.0

AGENT => Loading plug-in(s)

DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\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\OCS Inventory Agent\ComHTTP.dll>

AGENT => Using Communication Provider <OCS Inventory cURL Communication Provider> Version <2.8.0.0>

AGENT => Sending Prolog

DID_CHECK => Read DeviceID <NHK-NB-N3159-05-2020-11-09-10-11-06> and MACs <00:05:9A:3C:7A:0000:50:56:C0:00:0144:85:00:3B:45:B050:7B:9D:CE:2D:1200:50:56:C0:00:08> in file <ocsinventory.dat>

COM SERVER => Initializing cURL library for sendRequest

COM SERVER => Using cURL without server authentication

COM SERVER => Using cURL HTTP type proxy <jp.proxy.nikon.co.jp:8080>

COM SERVER => Using cURL proxy without authentication

COM SERVER => Disabling cURL SSL server validation support

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

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

COM SERVER => Cleaning cURL library

ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #503>

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 00:01:25.
by (240 points)
0 votes
Hi,

Because this is the correct url the inventory is sent to the server.

error 503 is a server error. Look apache error file (/var/log/httpd/error_log) to find he error. If not set, set OCS_DBI_PRINT_ERROR to 1 in /etc/httpd/conf.d/z-ocsinventory-server.conf file. Save. Restart apache. Launch an inventory.
by (88.5k points)
0 votes
Hi Frank,

Due to my CentOS is a VM guest, I don't know how to copy those text to my window PC and post it in here. So, please reference the log via the URL image as below.

http://ask.ocsinventory-ng.org/?qa=blob&qa_blobid=921943569809256152
by (240 points)
0 votes
Have you set a firewall ? If yes, verify that http protocol and port 80 are available.

Regards

Frank
by (88.5k points)
0 votes
Hi Frank, Happy new year.

Please see below. when i type --list-ports, there is no port to show. But the service was already unblocked. Thanks.

[root@localhost ocsreports]# firewall-cmd --list-ports

[root@localhost ocsreports]# firewall-cmd --list-service
cockpit dhcpv6-client http https ssh
by (240 points)
0 votes
Hi Kenneth

Happy new year !

Can you access with your browser to http://10.106.64.63/ocsinventory? The return must be error 400.
by (88.5k points)
 
Powered by Question2Answer
...