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.

/download/ forbidden access

Hi,

I have some questions and a problem please:

1) What is the ocs stable version? I puts 2.6 in ocs website but there is until 2.9 docker images (I'm using docker image for installing ocs server)

2) I'm using 2.9 docker image and all is working well except plugins download. I have the next in the agent log:

Starting OCS Inventory Agent on Monday, October 25, 2021 07:50:37.

AGENT => Running OCS Inventory Agent Version 2.9.0.0

AGENT => Using OCS Inventory FrameWork Version 2.9.0.0

AGENT => Loading plug-in(s)

AGENT => Using network connection with Communication Server

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

AGENT => Sending Prolog

AGENT => Prolog successfully sent

AGENT => Inventory required

AGENT => Launching hardware and software checks

ERROR *** EXECUTABLE PLUGIN => Executable plugin <C:\Program Files (x86)\OCS Inventory Agent\plugins\Saas.ps1> output is not a valid XML document

AGENT => Sending Inventory

INVENTORY => Inventory changed since last run

ADMIN INFO => Couple ( TAG <=> XXX ) added to configuration file

AGENT => Inventory successfully sent

AGENT =>  Communication Server asked for Package Download

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

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

If I test domain/download url, it shows a forbidden access message. I have the next in ocsinventory-reports.conf file:

<Directory /var/lib/ocsinventory-reports/download>

   <IfModule mod_authz_core.c>

     # Apache 2.4

     Require all granted

   </IfModule>

   <IfModule !mod_authz_core.c>

     Order deny,allow

     Allow from all

   </IfModule>

</Directory>

Alias /download /var/lib/ocsinventory-reports/download

It seems ok. Not sure about official documentation. One part is saying of using ocspackager and another parts saying that not, that you have to use setup.exe for an agent upgrade and using web console config for plugins deployment.

Thanks beforehand.
in OCS Inventory NG server for Unix by (270 points)

2 Answers

0 votes

I have the same problem.

I can add that inside the ocsinventory-server container I can acces download contents

Example

wget http://localhost/download/xxxxx

/where xxxx is for some content in /var/lib/ocsinventory-reports/download)

It seems that the problem is in the nginx side But I cannot find where

by (330 points)
0 votes
Perhaps I have found the problem:

in file

OCSInventory-Docker-Image/2.9.2/nginx/conf/ocsinventory.conf.template

location /download does have not the proxy_pass directive

I have added this line:

proxy_pass http://ocsapplication/download;

at the end of /download location

and restarted docker-compose
by (330 points)
 
Powered by Question2Answer
...