fametec / glpi

GLPI Docker Container
https://hub.docker.com/r/fametec/glpi
GNU General Public License v3.0
67 stars 63 forks source link

help with Error accessing config table deploying on k8s #21

Closed jacobdotcosta closed 3 years ago

jacobdotcosta commented 3 years ago

Hi.

I'm checking your project in order to deploy glpi on k8s and learn a bit more about the tool but I'm stuck on the installation process. I can deploy a mariadb database and the glpi pod but whenever I open the glpi URL I get the Error accessing config table error.

In the /glpi-entrypoint.sh file I see a call to ConfigDataBase which I'm not sure is being executed because this is the log on tio of my pod.

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.244.0.116. Set the 'ServerName' directive globally to suppress this message
[Thu Feb 11 00:12:05.284992 2021] [suexec:notice] [pid 7] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.244.0.116. Set the 'ServerName' directive globally to suppress this message
[Thu Feb 11 00:12:05.329910 2021] [lbmethod_heartbeat:notice] [pid 7] AH02282: No slotmem from mod_heartmonitor
[Thu Feb 11 00:12:05.400888 2021] [mpm_prefork:notice] [pid 7] AH00163: Apache/2.4.6 (CentOS) PHP/7.3.25 configured -- resuming normal operations
[Thu Feb 11 00:12:05.400977 2021] [core:notice] [pid 7] AH00094: Command line: 'httpd -D FOREGROUND'

I've checked DB connection with a phpmyadmin instance deployed on the same namespace.

The /var/log/httpd/access_log file shows a 200.

GET / HTTP/1.1" 200 28

The /var/www/html/files/_log/php-errors.log file shows this error, that I'm not sure is be related.

[2021-02-11 00:13:38] glpiphplog.WARNING:   *** PHP User Warning (512): Cannot write "/var/www/html/files/_cache/glpi_cache_db_9.5.3.json" cache footprint file. Cache performance can be lowered. in /var/www/html/inc/cache/simplecache.class.php at line 273
  Backtrace :
  inc/cache/simplecache.class.php:273                trigger_error()
  inc/cache/simplecache.class.php:72                 Glpi\Cache\SimpleCache->checkFootprintFileIntegrity()
  inc/config.class.php:3308                          Glpi\Cache\SimpleCache->__construct()
  inc/config.php:56                                  Config::getCache()
  inc/includes.php:48                                include_once()
  index.php:55                                       include()

Could you give me a hand on where to look to solve this problem?

Thanks.

jacobdotcosta commented 3 years ago

Solved. I had some problems with the requirements. Processing the information from the php bin/console glpi:system:check_requirements enabled to execute php bin/console db:install and the installation went through correctly. Thanks!