Docker - Lizmap Web Client: Persistent volume mounting permissions error

Hello,

I am encountering a persistent issue with the lizmap_web_client container. All containers show as “running” in Portainer, but the Lizmap service is not accessible via the web port and its logs show repeated permission errors.

The main error I’m seeing is:
cp: can’t create ‘lizmap/var/config/localconfig.ini.php.dist’: No such file or directory
cp: can’t create ‘lizmap/var/config/profiles.ini.php.dist’: No such file or directory
cp: can’t create ‘lizmap/var/config/lizmapConfig.ini.php.dist’: No such file or directory
cp: can’t create ‘lizmap/var/config/lizmapLogConfig.ini.php’: No such file or directory
cp: can’t create ‘lizmap/var/config/localconfig.ini.php.dist’: No such file or directory
cp: can’t create ‘lizmap/var/config/profiles.ini.php.dist’: No such file or directory
cp: can’t create ‘lizmap/var/config/lizmapConfig.ini.php.dist’: No such file or directory
cp: can’t create ‘lizmap/var/config/lizmapLogConfig.ini.php’: No such file or directory
cp: can’t create ‘lizmap/var/config/localconfig.ini.php.dist’: No such file or directory
cp: can’t create ‘lizmap/var/config/profiles.ini.php.dist’: No such file or directory
cp: can’t create ‘lizmap/var/config/lizmapConfig.ini.php.dist’: No such file or directory
cp: can’t create ‘lizmap/var/config/lizmapLogConfig.ini.php’: No such file or directory
cp: can’t create ‘lizmap/var/config/localconfig.ini.php.dist’: No such file or directory
cp: can’t create ‘lizmap/var/config/profiles.ini.php.dist’: No such file or directory
cp: can’t create ‘lizmap/var/config/lizmapConfig.ini.php.dist’: No such file or directory
cp: can’t create ‘lizmap/var/config/lizmapLogConfig.ini.php’: No such file or directory
cp: can’t create ‘lizmap/var/config/localconfig.ini.php.dist’: No such file or directory
cp: can’t create ‘lizmap/var/config/profiles.ini.php.dist’: No such file or directory
cp: can’t create ‘lizmap/var/config/lizmapConfig.ini.php.dist’: No such file or directory
cp: can’t create ‘lizmap/var/config/lizmapLogConfig.ini.php’: No such file or directory
cp: can’t create ‘lizmap/var/config/localconfig.ini.php.dist’: No such file or directory
cp: can’t create ‘lizmap/var/config/profiles.ini.php.dist’: No such file or directory
ecc…

Here is my current docker-compose.yml file:
version: ‘3.8’

services:

PostgreSQL

postgres:
image: postgres:14
container_name: lizmap_postgres
restart: always
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: qgis_db
volumes:

  • postgres-data:/var/lib/postgresql/data
    networks:
  • lizmap-net

QGIS

qgis-server:
image: 3liz/qgis-map-server:3.34
container_name: lizmap_qgis_server
restart: always
volumes:

  • ./qgis-projects:/projects
    environment:
    QGIS_SERVER_LOG_LEVEL: 0
    QGIS_SERVER_API_RESOURCES_DIRECTORY: /usr/share/qgis/resources/server/api
    QGIS_PLUGINPATH: /usr/lib/qgis/plugins:/io/plugins
    networks:
  • lizmap-net
    ports:
  • “8084:8080”

Redis

redis:
image: redis:6-alpine
container_name: lizmap_redis
restart: always
networks:

  • lizmap-net

Web Client

lizmap:
image: 3liz/lizmap-web-client:3.9
container_name: lizmap_web_client
restart: always
depends_on:

  • postgres
  • qgis-server
  • redis
    volumes:
  • ./lizmap-projects:/var/www/lizmap/var
    user: “root”
    environment:
    LIZMAP_QGIS_SERVER_URL: http://qgis-server:8080
    LIZMAP_DATABASE_HOST: postgres
    LIZMAP_DATABASE_USER: user
    LIZMAP_DATABASE_PASSWORD: password
    LIZMAP_DATABASE_NAME: qgis_db
    REDIS_SERVER_HOSTNAME: redis
    networks:
  • lizmap-net
    ports:
  • “8089:80”

volumes:
postgres-data:

networks:
lizmap-net:
driver: bridge

I have already tried the following troubleshooting steps:

  1. I ensured the local ‘lizmap-projects’ folder is empty and has full permissions (777).
  2. I added ‘user: “root”’ to the lizmap service to align user IDs.
  3. I tried removing and recreating the local volume directory.

I am running this on Ubuntu 24.04 LTS.

Could you please provide some insight into what might be causing this issue and how to resolve it? Any help would be greatly appreciated.

Hi,

The error you encountered is from entrypoint here:

and the workdir here:

There is a kind of “protection” to have proper configuration and avoiding replacing 3liz logo ^^ in footer or loading animation for example.

So it means in your case you don’t have lizmap folder, you have modified the docker-compose.yml from repository. Try to follow the Readme line by line with git clone, configure & docker compose commands. So at this stage you can reset the conf =>