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:
move it aside
call php install command
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
Container is running as root.
Even stopping PHP before doing the mv didn't change anything.
Also no impact if the installation is moved in the front of the script before Apache/PHP is started.
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 thephp /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:
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
mv
didn't change anything.