jancelin / docker-lizmap

docker lizmap
GNU Affero General Public License v3.0
27 stars 22 forks source link

Debug php installation #72

Closed vvmruder closed 3 years ago

vvmruder commented 3 years ago

I tracked down https://github.com/opengisch/sob_infra_visu/issues/60 to the fact, that the file /var/www/lizmap/var/config/localconfig.ini.php in lizmap container seems to block the php /var/www/lizmap/install/installer.php. This command is working while Docker image build time. But not any more when the file is there. It is mounted.

So my guess was to:

  1. move it aside
  2. call php install command
  3. move it back in place

in entrypoint script.

But this is not possible due to a mv: cannot remove '/var/www/lizmap/var/config/localconfig.ini.php': Device or resource busy error.

Idea came from my try and error of https://github.com/opengisch/sob_infra_visu/pull/61 and the investigation on the original error which points to /var/www/lib/vendor-modules/ldapdao/install/install_1_6.php(26): jAuth::loadConfig(false) which I think means the config file could not be loaded.

In some way the files are blocked. But I have no idea why

  1. Container is running as root.
  2. Even stopping PHP before doing the mv didn't change anything.
  3. Also no impact if the installation is moved in the front of the script before Apache/PHP is started.