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.

OCS Server has no machines in database

Hi,

Im currently Running an OCS server 2.3 on Debian 8 Jessy ,

I have to make it communicate with an agent (also 2.3) running on win 7 pro.

The server is properly set-up and I can acces it from an external pc on the same network but when I lunch the agent on windows , I get nothing on the server : (0 machines in Database)

I really deseperate and can't get it to work even by following every troubleshooting steps on internet .

I'd really apreciate some help ,

thanks.
in OCS Inventory NG server for Unix by (280 points)

8 Answers

0 votes
Hello,

Can you give me the agent logs please ? (at C:/programdata/OCS..../Agent.../ocsinventory.log)

My first idea : your agent is pointing at an http server while it is an https server that you have
by (4.9k points)
0 votes
(ok I dont know if this is how i have to respond sorry )

Ok here are the logs of the agent :

==============================================================================
Starting OCS Inventory NG Agent on Friday, February 03, 2017 08:42:57.
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)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.3.0.0>
AGENT => Sending Prolog
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

and the config.ini file :

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

Thanks for your answer
by (280 points)
0 votes

In your *.ini file, change 

Server=http://172.18.4.5/ocsreports
SSL=1

to

Server=https://172.18.4.5/ocsreports
SSL=0

Since 2.2, OCS server are in https by default, it should work now laugh

by (4.9k points)
0 votes
Thanks but it still doesn't work Even with SSL=0
by (280 points)
0 votes
I have the same .. Tried on ubuntu and debian. I tried several versions of the agents too. Impossible to get a PC in the DB. 1 month fighting with problems. 1 year ago I installed an OCS on ubuntu and it worked fine, but now, impossible. I think Microsoft turn on something bad for OCS.
by (260 points)
0 votes

UPDATE :

 after using "http://172.18.4.5/ocsinventory" as url for the agent on the windows pc , even if i get an error #404 in the agent logs i get this in /var/log/apache2/access.log :

172.18.4.57 - - [03/Feb/2017:16:05:00 +0100] "GET /ocsinventory/deploy/label HTTP/1.1" 404 460 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
172.18.4.57 - - [03/Feb/2017:16:05:01 +0100] "POST /ocsinventory HTTP/1.1" 404 447 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
172.18.4.57 - - [03/Feb/2017:16:05:11 +0100] "GET /ocsinventory/deploy/label HTTP/1.1" 404 460 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
172.18.4.57 - - [03/Feb/2017:16:05:11 +0100] "POST /ocsinventory HTTP/1.1" 404 447 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"

So the agent successfuly communicates with apache and the server pc but i still get nothing on OCS

by (280 points)
0 votes
Hi,

Is the module mod_perl installed on your server? Is it activated? Post apache error.log file content.

Regards

Frank
by (90.4k points)
0 votes

I have the same issue.

Debian 8 Jessie, ocs server 2.3 on Debian, and ocs agent 2.3 on windows 10.

I have installed this: libapache2-mod-perl2 and libapache2-mod-php5

and it's not work...

"

[Wed Feb 08 16:06:36.449556 2017] [mpm_prefork:notice] [pid 10829] AH00163: Apache/2.4.10 (Debian) mod_perl/2.0.9dev Perl/v5.20.2 configured -- resuming normal operations

"

My 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

[...]

SUCCESS: OCS Inventory NG Agent 2.3.0.0 successfully installed

"

by (1.1k points)
edited by
 
Powered by Question2Answer
...