OCSInventory-NG / OCSInventory-ocsreports

Webconsole for OCS Inventory NG
https://www.ocsinventory-ng.org
GNU General Public License v2.0
232 stars 151 forks source link

[BUG] Apache Configuration Error on OCS Inventory Docker Image #1638

Open BernardesPedro opened 2 months ago

BernardesPedro commented 2 months ago

OCS Inventory version Version : 2.12.1 / 2.12.2

General informations

Docker host's operating system : ubuntu 18.04.5 LTS Mysql Server version : 5.7.34

Docker informations

Docker compose version : 1.29.2 Docker version : 20.10.7

Problem's description

When running the OCS Inventory Docker image (ocsinventory/ocsinventory-docker-image:2.12.1 end 2.12.2), the container fails to start due to an Apache configuration error. The log shows the following error:

AH00526: Syntax error on line 77 of /etc/apache2/conf-enabled/z-ocsinventory-server.conf: PerlSetEnv takes two arguments, PerlSetEnv

It appears that the PerlSetEnv directive in the z-ocsinventory-server.conf file is incorrectly configured, missing the required second argument. Since the container stops immediately, it is difficult to edit the file or apply any fixes before the container dies.

Steps to Reproduce: Run the OCS Inventory Docker container using the 2.12.1/ 2.12.2 tag with docker-compose. Observe that the container fails to start due to the Apache configuration error.

image

KAALP974 commented 1 month ago

Hello I have the same problem and need help : https://ask.ocsinventory-ng.org/15172/ocss-docker-http-error-500