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.

Unable to install the agent on Windows

Hello everyone

I have a problem. When I install the agent on a windows machine it does not register with OCS Server. I do not know what I'm doing wrong. This is the txt summary of the installation:

********************************************************

Starting OCS Inventory NG Agent 2.8.0.0 setup on 07/12/2020 at 9:35:46

Checking if setup not already running...OK.

Checking Operating System...OK, Windows 2000 or higher.

Command line is: "C:\Users\jporras\Downloads\OCS-Windows-Agent-2.8.0.0_x64\OCS-Windows-Agent-Setup-x64.exe"
Parsing command line arguments...OK.

Checking for silent mode...Disabled.

Checking for splash screen...Enabled.

Checking if logged in user has Administrator privileges...OK.

Creating directory <C:\ProgramData\OCS Inventory NG\Agent>...

SetACL allowing Users / Power users read/write permissions on <C:\ProgramData\OCS Inventory NG\Agent>...Result: error

SetACL propagating inherited permissions on <C:\ProgramData\OCS Inventory NG\Agent\Download>...Result: error

Trying to determine if service was previously installed...No.

Trying to stop service and kill processes...

Trying to find process OcsSystray.exe...Result: No

Trying to kill process OcsSystray.exe...Result: No

Trying to kill process OcsService.exe...Result: 603

Trying to kill process OCSInventory.exe...Result: 603

Trying to kill process download.exe...Result: 603

Trying to kill process inst32.exe...Result: 603

Waiting 10 seconds for processes to terminate...

Copying new files to directory <C:\Program Files\OCS Inventory Agent>...

Windows XP or higher detected, installing default cURL library and MS CRT/MFC 9.0...

Copying new files status is ;-)

Writing TAG <test> into <C:\ProgramData\OCS Inventory NG\Agent\admininfo.conf> file...

Writing agent configuration file by launching ocsinventory.exe /SAVE_CONF...Result: 0

Windows Advanced Firewall is not available (Vista or higher). Skip adding custom rules.

[/NOW] used, so launching "C:\Program Files\OCS Inventory Agent\ocsinventory.exe"...Result: 4

Creating startup menu shortCut <C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\OCS Inventory NG Systray.lnk> to start Systray applet...

Checking if service OCS Inventory Service is registered into Windows Service Manager...No

No service installed, so no need to unregister OCS Inventory Service from Windows Service Manager.

Registering OCS Inventory Service into Windows Service Manager...Result: 0.

Starting OCS Inventory Service...Ok.

SUCCESS: OCS Inventory NG Agent 2.8.0.0 successfully installed on 07/12/2020 at 9:37:11

;-)

Thanks for the help
in OCS Inventory NG agent for Windows by (710 points)

24 Answers

0 votes
HI,

What errors have you in ocsinventory-agent.log file ?

Regards

Frank
by (90.2k points)
0 votes
Hi
This is my log file

********************************************************

Starting OCS Inventory NG Agent 2.8.0.0 setup on 07/12/2020 at 9:53:38

Checking if setup not already running...OK.

Checking Operating System...OK, Windows 2000 or higher.

Command line is: "C:\Users\jporras\Downloads\OCS-Windows-Agent-2.8.0.0_x64\OCS-Windows-Agent-Setup-x64.exe"
Parsing command line arguments...OK.

Checking for silent mode...Disabled.

Checking for splash screen...Enabled.

Checking if logged in user has Administrator privileges...OK.

Creating directory <C:\ProgramData\OCS Inventory NG\Agent>...

SetACL allowing Users / Power users read/write permissions on <C:\ProgramData\OCS Inventory NG\Agent>...Result: error

SetACL propagating inherited permissions on <C:\ProgramData\OCS Inventory NG\Agent\Download>...Result: error

Trying to determine if service was previously installed...Yes.

Trying to stop service and kill processes...

Is Service <OCS Inventory Service> running...Yes.

Trying to stop Service <OCS Inventory Service>...Ok

Is Service <OCS Inventory Service> running...No - Waiting 1 second(s) for Service to stop...

Trying to find process OcsSystray.exe...Result: Yes

Trying to kill process OcsSystray.exe...Result: Yes

Trying to kill process OcsService.exe...Result: 603

Trying to kill process OCSInventory.exe...Result: 603

Trying to kill process download.exe...Result: 603

Trying to kill process inst32.exe...Result: 603

Waiting 10 seconds for processes to terminate...

Copying new files to directory <C:\Program Files\OCS Inventory Agent>...

Windows XP or higher detected, installing default cURL library and MS CRT/MFC 9.0...

Copying new files status is ;-)

Writing TAG <test> into <C:\ProgramData\OCS Inventory NG\Agent\admininfo.conf> file...

Writing agent configuration file by launching ocsinventory.exe /SAVE_CONF...Result: 0

Windows Advanced Firewall is not available (Vista or higher). Skip adding custom rules.

Creating startup menu shortCut <C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\OCS Inventory NG Systray.lnk> to start Systray applet...

Checking if service OCS Inventory Service is registered into Windows Service Manager...Yes

Service is installed, so unregistering OCS Inventory Service from Windows Service Manager...Result: 0.

Registering OCS Inventory Service into Windows Service Manager...Result: 0.

Starting OCS Inventory Service...Ok.

SUCCESS: OCS Inventory NG Agent 2.8.0.0 successfully installed on 07/12/2020 at 9:54:36

;-)
by (710 points)
0 votes
This is not the log agent. You can find it in c:\programdata\ocs inventory ng\agent\
by (90.2k points)
0 votes
Hi
Thanks, this was the only .txt in the folder. "OCSInventory"

"==============================================================================

Starting OCS Inventory Agent on Thursday, December 10, 2020 09:15:04.

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 <RAMBOGING03-2020-12-07-08-32-13> and MACs <58:FB:84:A1:21:CD54:AB:3A:ED:80:E2> in file <ocsinventory.dat>

COM SERVER => Initializing cURL library for sendRequest

COM SERVER => Using cURL with server authentication

COM SERVER => Disabling cURL proxy support

COM SERVER => Disabling cURL SSL server validation support

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

WARNING *** COM SERVER => Failed to send HTTP Post request <Couldn't connect to server>

COM SERVER => Cleaning cURL library

ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 00:00:02.

==============================================================================

Starting OCS Inventory Agent on Thursday, December 10, 2020 09:15:31.

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 <RAMBOGING03-2020-12-07-08-32-13> and MACs <58:FB:84:A1:21:CD54:AB:3A:ED:80:E2> in file <ocsinventory.dat>

COM SERVER => Initializing cURL library for sendRequest

COM SERVER => Using cURL with server authentication

COM SERVER => Disabling cURL proxy support

COM SERVER => Disabling cURL SSL server validation support

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

WARNING *** COM SERVER => Failed to send HTTP Post request <Couldn't connect to server>

COM SERVER => Cleaning cURL library

ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 00:00:02.

==============================================================================

Starting OCS Inventory Agent on Thursday, December 10, 2020 09:19:23.

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 <RAMBOGING03-2020-12-07-08-32-13> and MACs <58:FB:84:A1:21:CD54:AB:3A:ED:80:E2> in file <ocsinventory.dat>

COM SERVER => Initializing cURL library for sendRequest

COM SERVER => Using cURL with server authentication

COM SERVER => Disabling cURL proxy support

COM SERVER => Disabling cURL SSL server validation support

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

WARNING *** COM SERVER => Failed to send HTTP Post request <Couldn't connect to server>

COM SERVER => Cleaning cURL library

ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 00:00:02.

==============================================================================

Starting OCS Inventory Agent on Thursday, December 10, 2020 09:21:00.

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 <RAMBOGING03-2020-12-07-08-32-13> and MACs <58:FB:84:A1:21:CD54:AB:3A:ED:80:E2> in file <ocsinventory.dat>

COM SERVER => Initializing cURL library for sendRequest

COM SERVER => Using cURL with server authentication

COM SERVER => Disabling cURL proxy support

COM SERVER => Disabling cURL SSL server validation support

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

WARNING *** COM SERVER => Failed to send HTTP Post request <Timeout was reached>

COM SERVER => Cleaning cURL library

ERROR *** AGENT => Failed to send Prolog <Timeout was reached>

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 21:19:31."
by (710 points)
0 votes

Hi,

Agent is good installed, but his configuration is bad. In log, we can see :

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

WARNING *** COM SERVER => Failed to send HTTP Post request <Couldn't connect to server>

When you installed agent, you have specified a wrong ip adress for your ocs server.

uninstall agent, delete folders C:\ProgramData\OCS Inventory NG and C:\Program Files (x86)\OCS Inventory Agent

Then retry installing agent with the good IP or name of your ocs server

Best regards

by (5.7k points)
0 votes
Hi,

thanks for your help. I already reinstalled it again. but I still can't connect to the server yet.

Here the .log file

"==============================================================================

Starting OCS Inventory Agent on Friday, December 11, 2020 10:02:18.

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 <RAMBOGING03-2020-12-11-10-01-55> and MACs <58:FB:84:A1:21:CD54:AB:3A:ED:80:E2> in file <ocsinventory.dat>

COM SERVER => Initializing cURL library for sendRequest

COM SERVER => Using cURL with server authentication

COM SERVER => Disabling cURL proxy support

COM SERVER => Disabling cURL SSL server validation support

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

WARNING *** COM SERVER => Failed to send HTTP Post request <Couldn't connect to server>

COM SERVER => Cleaning cURL library

ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 00:00:21."
by (710 points)
0 votes
Is your server started ? From a browser try to access http://10.0.2.15/ocsinventory. If the result is error 404 then your server is not well configured or started.

Regards

Frank
by (90.2k points)
0 votes
Hi Frank

Thanks for your help. Well, I can enter the server from the server pc. I need a domain or something extra to link the agents. or that the server is public ?. if that's how I do it?

Thank you,

best wishes
by (710 points)
0 votes
Version of ocs server ?On which linux distribution ?

Have you enabled the firewall on your ocs server ?

Best wishes
by (90.2k points)
0 votes
Hi Frank

OCS Server 2.8, OS Ubuntu 20.04.1. Yes, the firewall is enabled. Although I did test disabling the firewall. But it didn't work either. I'm missing something?

Thanks,

Best Wishes
by (710 points)
 
Powered by Question2Answer
...