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.

ERROR *** AGENT => Failed to send Prolog <URL using bad/illegal format or missing URL>

I'm a newbie on OCS Inventory and have been helped by a friend to set up OCS Inventory on a LAMPP stack. Now that I'm installing the first Windows client I'm already getting in trouble with the communication of client and server.

Here some technical details:

SERVER system

  • OS Name : Linux x86_64
  • Version : 4.8.0-1-amd64
  • RAM installed : 492 Mo
  • Free RAM : 144 Mo
  • CPU : Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz
  • Distribution : Debian GNU/Linux 9 (stretch)
  • PHP Version : 5.6.20-1 (apache2handler)
  • Web Server : Apache/2.4.25 (Debian)
  • Database Server : (Debian) version 5.6.30-1
  • Version OCSReports: 2.3

Client System

  • OS: Windows 7 Enterprise 64-bit SP1
  • OCS Version: 2.3.0.0

OCSINVENTORY.INI

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

The client is installed as service with Local System account and started. The systray app is running and I'm able to start the "OCS Inventory agent now" and also let me "Show inventory information".

A read a lot of FAQ, Q&A, WIKI, DOCS and forum but my problem seems to be a bit unique, because when I call "ocsinventory.exe /server:myserver /debug=2" I'm  missing 'http://myserver:80/ocsinventory" in the line
"COM SERVER => Sending HTTP Post request to URL <>", see full debug log below.

==============================================================================
Starting OCS Inventory NG Agent on Wednesday, February 08, 2017 08:52:29.
AGENT => Running OCS Inventory NG Agent Version 2.3.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.3.0.0
AGENT => Loading plug-in(s)
 DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\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 (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.3.0.0>
AGENT => Sending Prolog
 DID_CHECK => Read DeviceID <EAC0395529-2017-02-07-11-40-23> and MACs <98:90:96:B1:34:5F> in file <ocsinventory.dat>
 COM SERVER => Initializing cURL library for sendRequest
 COM SERVER => Using cURL without server authentication
 COM SERVER => Disabling cURL proxy support
 COM SERVER => Disabling cURL SSL server validation support
 COM SERVER => Sending HTTP Post request to URL <>
 WARNING *** COM SERVER => Failed to send HTTP Post request <URL using bad/illegal format or missing URL>
 COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <URL using bad/illegal format or missing URL>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

Does any of you have a small hint to help me.

Thanks a lot in advance

Heinz

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

4 Answers

0 votes

Hi

ocsinventory.exe /server:myserver /debug=2 is not the correct command to use by hand.

You must use ocsinventory.exe /server=http://myserver/ocsinventory /debug=2

Regards

Frank

by (90.4k points)
0 votes
Dear Frank,

many thanks for your help. Now the prolog is sent successfully but I get another error message (see partial log):

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

================= TRACE STOP ===============
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
ERROR *** AGENT => Failed to write Prolog Frequency <Error code 32 = The process cannot access the file because it is being used by another process.  >
ERROR *** AGENT => Failed to write inventory on startup value <Error code 32 = The process cannot access the file because it is being used by another process.  >

What means: "No support detected, Registration key: N/A"

In ocsreports web page the machine doesn't show up.

Thanks again

Heinz
by (200 points)
0 votes
Hi,

What means: "No support detected, Registration key: N/A" => older message which has not been removed

Error code 32 means that there is an ocsinventory.exe process always running. Stop or kill this process in task manager and re run an inventory.

Regards

Frank
by (90.4k points)
0 votes
Hi Frank,

I guess the 'old message, not been removed' is meant to be a message which has no sense anymore since it wasn't removed from the code.

The running process running might be the service which has these files 'open'. But I guess this should be the normal case.

btw. my test-PC does still not show up in the OCEreports database. Any idea?

Kind regards

Heinz
by (200 points)
 
Powered by Question2Answer
...