OCSInventory-Docker-Image
OCSInventory-Docker-Image copied to clipboard
PHP Fatal error: require(): Failed opening required 'install.php'
General information
Host's operating system : Debian GNU/Linux 11 (bullseye) Kernel Version: 5.10.0-11-amd64 OCSInventory Version: ovcsinventory/ocsinventory-docker-image:2.8 Mysql Server version : mariadb:10.7.3
Kubernetes information
Containerd version : containerd://1.5.9-k3s1 Kubelet Version: v1.22.6+k3s1
Problem's description
Trying to run OCSInventory with Kubernetes. Visiting the /ocsreports page gives me a 500 error. The following fatal error is in Apache2 logs.
PHP Fatal error: require(): Failed opening required 'install.php' (include_path='.:/opt/remi/php73/root/usr/share/pear:/opt/remi/php73/root/usr/share/php:/usr/share/pear:/usr/share/php') in /usr/share/ocsinventory-reports/ocsreports/require/header.php on line 169
Apache error logs with warnings:
[Thu Mar 24 15:51:32.438970 2022] [php7:warn] [pid 42] [client 172.20.3.5:40686] PHP Warning: mysqli_fetch_object() expects parameter 1 to be mysqli_result, bool given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 38
[Thu Mar 24 15:51:32.439143 2022] [php7:warn] [pid 42] [client 172.20.3.5:40686] PHP Warning: mysqli_fetch_object() expects parameter 1 to be mysqli_result, bool given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 38
[Thu Mar 24 15:51:32.439213 2022] [php7:warn] [pid 42] [client 172.20.3.5:40686] PHP Warning: require(install.php): failed to open stream: No such file or directory in /usr/share/ocsinventory-reports/ocsreports/require/header.php on line 169
[Thu Mar 24 15:51:32.439223 2022] [php7:error] [pid 42] [client 172.20.3.5:40686] PHP Fatal error: require(): Failed opening required 'install.php' (include_path='.:/opt/remi/php73/root/usr/share/pear:/opt/remi/php73/root/usr/share/php:/usr/share/pear:/usr/share/php') in /usr/share/ocsinventory-reports/ocsreports/require/header.php on line 169
+1 .