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.

Unix Server : Deployment - missing info file

As I try to use the deployment feature from a Unix OCS Server to an Unix agent, the client never receives the package. It seems that OCS fails to create/send the "info file" of the package.

When I try to access to https://<server_hostname>/downloads/<packagetimestamp>, I receive a 403 - Forbidden error.

I use self-signed certificate, the certificate is shared between the server and the client.

Server certificate : /etc/ssl/certs/ocsng.pem

Client certificate : /var/lib/ocsinventory-agent/https:__<server_hostname>:443_ocsinventory/cacert.pem

The CN on the certificate is the hostname of the Machine where the OCS Server is.

The SSL Mode is enabled and set on SSL_MODE_PREFERRED and the key and cert paths are correct.

OCS Inventory NG Unix Server version : 2.7

OCS Inventory Unix Client : 2.6.1

Server's OS : Ubuntu 18.04

Client's OS : Ubuntu 18.04

Logs on client Side :

/var/log/ocsinventory-agent.log :

[Wed May  6 18:29:32 2020][debug] =BEGIN=SERVER RET======
[Wed May  6 18:29:32 2020][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>
<REPLY>
  <RESPONSE>NO_ACCOUNT_UPDATE</RESPONSE>
</REPLY>
';
[debug] Calling handlers : `end_handler'
[debug] [download] Calling download_end_handler
[info] [download] Beginning work. I am 4346.
[debug] [download] No info file found for 1588777867!!
[info] [download] Cleaning 1588777867 package.
[info] [download] No more package to download.
[debug] [download] End of work...


Logs on server side :

/var/log/ocsinventory-server/activity.log :

;2201;2001;client-ocs-2020-05-06-09-50-08;<Client_IP_Adress>;OCS-NG_unified_unix_agent_v2.6.1;download;1588770988(ERR_DOWNLOAD_INFO)

/var/log/apache2/error.log :

[ssl:warn] [pid 4306] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name

Thanks in advance for anyone who can help me.

in OCS Inventory NG server for Unix by (290 points)
edited by

1 Answer

0 votes
I had the same issue. And i fixed it.

Check the Common Name in the SSL Certificate. Is it the servers IP-Adress or its DNS/Hostname.

When applying a package mage sure the URL matches the way you adress your server in the Common Name of the certificate.
by (140 points)
 
Powered by Question2Answer
...