Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: require(): Failed opening required 'install.php' #81

Open
datallboy opened this issue Mar 24, 2022 · 1 comment
Open

Comments

@datallboy
Copy link

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
@9ov7
Copy link

9ov7 commented May 31, 2022

+1 .

@dorpauli dorpauli mentioned this issue Mar 23, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants