3liz / lizmap-docker-compose

Run Lizmap stack with docker-compose
30 stars 42 forks source link

Installation Ended. This username Already exists #51

Closed vincentBenet closed 11 months ago

vincentBenet commented 1 year ago

I am on windows, using WSL Ubuntu trying to make this repo working. Here is the error i have:

=== Configuring lizmap in /root/lizmap-docker-compose/lizmap
Creating env file
Copying files
Creating directories
Creating pg_service.conf
Creating lizmap profiles
Installing lizmap plugin
QGIS_PLUGINPATH set to /lizmap/plugins
QGIS version : 3.22.15
Init https://plugins.qgis.org
/lizmap/plugins/sources.list has been written.
QGIS_PLUGINPATH set to /lizmap/plugins
Downloading https://plugins.qgis.org/plugins/plugins.xml?qgis=3.22...
        Ok
QGIS_PLUGINPATH set to /lizmap/plugins
QGIS version : 3.22.15
Installation Lizmap server latest
        Ok lizmap_server.2.7.1.zip
Installed with user 'root'
Please check file permissions and owner according to the user running QGIS Server.
Tip : Do not forget to restart QGIS Server to reload plugins 😎
QGIS_PLUGINPATH set to /lizmap/plugins
QGIS version : 3.22.15
Installation atlasprint latest
        Ok atlasprint.3.3.2.zip
Installed with user 'root'
Please check file permissions and owner according to the user running QGIS Server.
Tip : Do not forget to restart QGIS Server to reload plugins 😎
QGIS_PLUGINPATH set to /lizmap/plugins
QGIS version : 3.22.15
Installation wfsOutputExtension latest
        Ok wfsOutputExtension.1.7.1.zip
Installed with user 'root'
Please check file permissions and owner according to the user running QGIS Server.
Tip : Do not forget to restart QGIS Server to reload plugins 😎
root@DESKTOP-UN96RI5:~/lizmap-docker-compose# docker compose up
[+] Running 5/0
 ✔ Container lizmap-docker-compose-postgis-1  Created                         0.0s
 ✔ Container lizmap-docker-compose-redis-1    Created                         0.0s
 ✔ Container lizmap-docker-compose-lizmap-1   Created                         0.0s
 ✔ Container lizmap-docker-compose-map-1      Created                         0.0s
 ✔ Container lizmap-docker-compose-web-1      Created                         0.0s
Attaching to lizmap-docker-compose-lizmap-1, lizmap-docker-compose-map-1, lizmap-docker-compose-postgis-1, lizmap-docker-compose-redis-1, lizmap-docker-compose-web-1
lizmap-docker-compose-map-1      | QGSRV_USER must no be root !
lizmap-docker-compose-redis-1    | 1:C 07 May 2023 21:34:01.942 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
lizmap-docker-compose-redis-1    | 1:C 07 May 2023 21:34:01.944 # Redis version=5.0.14, bits=64, commit=00000000, modified=0, pid=1, just started
lizmap-docker-compose-redis-1    | 1:C 07 May 2023 21:34:01.944 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
lizmap-docker-compose-redis-1    | 1:M 07 May 2023 21:34:01.948 * Running mode=standalone, port=6379.
lizmap-docker-compose-redis-1    | 1:M 07 May 2023 21:34:01.948 # Server initialized
lizmap-docker-compose-redis-1    | 1:M 07 May 2023 21:34:01.949 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
lizmap-docker-compose-redis-1    | 1:M 07 May 2023 21:34:01.949 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
lizmap-docker-compose-redis-1    | 1:M 07 May 2023 21:34:01.950 * DB loaded from disk: 0.001 seconds
lizmap-docker-compose-redis-1    | 1:M 07 May 2023 21:34:01.950 * Ready to accept connections
lizmap-docker-compose-postgis-1  |
lizmap-docker-compose-postgis-1  | PostgreSQL Database directory appears to contain a database; Skipping initialization
lizmap-docker-compose-postgis-1  |
lizmap-docker-compose-postgis-1  | 2023-05-07 21:34:03.107 UTC [1] LOG:  starting PostgreSQL 13.10 (Debian 13.10-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
lizmap-docker-compose-postgis-1  | 2023-05-07 21:34:03.108 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
lizmap-docker-compose-postgis-1  | 2023-05-07 21:34:03.109 UTC [1] LOG:  listening on IPv6 address "::", port 5432
lizmap-docker-compose-postgis-1  | 2023-05-07 21:34:03.131 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
lizmap-docker-compose-postgis-1  | 2023-05-07 21:34:03.169 UTC [32] LOG:  database system was interrupted; last known up at 2023-05-07 20:41:40 UTC
lizmap-docker-compose-map-1 exited with code 0
lizmap-docker-compose-postgis-1  | 2023-05-07 21:34:05.052 UTC [32] LOG:  database system was not properly shut down; automatic recovery in progress
lizmap-docker-compose-postgis-1  | 2023-05-07 21:34:05.069 UTC [32] LOG:  redo starts at 0/218B350
lizmap-docker-compose-postgis-1  | 2023-05-07 21:34:05.070 UTC [32] LOG:  invalid record length at 0/218B388: wanted 24, got 0
lizmap-docker-compose-postgis-1  | 2023-05-07 21:34:05.070 UTC [32] LOG:  redo done at 0/218B350
lizmap-docker-compose-postgis-1  | 2023-05-07 21:34:05.175 UTC [1] LOG:  database system is ready to accept connections
lizmap-docker-compose-map-1 exited with code 0
lizmap-docker-compose-map-1 exited with code 1
lizmap-docker-compose-map-1 exited with code 1
lizmap-docker-compose-map-1 exited with code 1
lizmap-docker-compose-map-1 exited with code 1
lizmap-docker-compose-web-1      | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
lizmap-docker-compose-web-1      | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
lizmap-docker-compose-web-1      | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
lizmap-docker-compose-web-1      | 10-listen-on-ipv6-by-default.sh: info: IPv6 listen already enabled
lizmap-docker-compose-web-1      | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
lizmap-docker-compose-web-1      | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
lizmap-docker-compose-web-1      | /docker-entrypoint.sh: Configuration complete; ready for start up
lizmap-docker-compose-lizmap-1   | Updating configuration
lizmap-docker-compose-lizmap-1   | Checking for lizmap configuration files in /srv/etc/lizmapconfig.d
lizmap-docker-compose-lizmap-1   | * Loading lizmap configuration: /srv/etc/lizmapconfig.d/lizmap-url.ini.php
lizmap-docker-compose-lizmap-1   | Checking for lizmap configuration files in /srv/etc/localconfig.d
lizmap-docker-compose-lizmap-1   | * Loading lizmap configuration: /srv/etc/localconfig.d/test.ini.php
lizmap-docker-compose-lizmap-1   | Checking for lizmap configuration files in /srv/etc/profiles.d
lizmap-docker-compose-lizmap-1   | * Loading lizmap configuration: /srv/etc/profiles.d/lizmap_local.ini.php
lizmap-docker-compose-lizmap-1   | * Loading lizmap configuration: /srv/etc/profiles.d/test.ini.php
lizmap-docker-compose-lizmap-1   | trying to connect to the Postgresql database lizmap at db.lizmap with the profile default...
lizmap-docker-compose-lizmap-1   |   Ok, Postgresql is alive.
lizmap-docker-compose-lizmap-1   | Installation start..
lizmap-docker-compose-lizmap-1   | [notice] Installation starts for the entry point index
lizmap-docker-compose-lizmap-1   | All modules dependencies are ok
lizmap-docker-compose-lizmap-1   | Module jelix installed
lizmap-docker-compose-lizmap-1   | Module jauthdb_admin installed
lizmap-docker-compose-lizmap-1   | Module master_admin installed
lizmap-docker-compose-lizmap-1   | Module jacl2 installed
lizmap-docker-compose-lizmap-1   | Module jacl2db installed
lizmap-docker-compose-lizmap-1   | Module jacl2db_admin installed
lizmap-docker-compose-lizmap-1   | Module admin installed
lizmap-docker-compose-lizmap-1   | Module proj4php installed
lizmap-docker-compose-lizmap-1   | Module jcommunity installed
lizmap-docker-compose-lizmap-1   | Module lizmap installed
lizmap-docker-compose-lizmap-1   | Module dynamicLayers installed
lizmap-docker-compose-lizmap-1   | Module view installed
lizmap-docker-compose-lizmap-1   | Module filter installed
lizmap-docker-compose-lizmap-1   | Module action installed
lizmap-docker-compose-lizmap-1   | Module dataviz installed
lizmap-docker-compose-lizmap-1   | All modules are installed or upgraded for the entry point index
lizmap-docker-compose-lizmap-1   | [notice] Installation starts for the entry point admin
lizmap-docker-compose-lizmap-1   | All modules dependencies are ok
lizmap-docker-compose-lizmap-1   | Module jelix installed
lizmap-docker-compose-lizmap-1   | Module jauthdb_admin installed
lizmap-docker-compose-lizmap-1   | Module master_admin installed
lizmap-docker-compose-lizmap-1   | Module jacl2 installed
lizmap-docker-compose-lizmap-1   | Module jacl2db installed
lizmap-docker-compose-lizmap-1   | Module jacl2db_admin installed
lizmap-docker-compose-lizmap-1   | Module admin installed
lizmap-docker-compose-lizmap-1   | Module proj4php installed
lizmap-docker-compose-lizmap-1   | Module jcommunity installed
lizmap-docker-compose-lizmap-1   | Module lizmap installed
lizmap-docker-compose-lizmap-1   | Module dynamicLayers installed
lizmap-docker-compose-lizmap-1   | Module view installed
lizmap-docker-compose-lizmap-1   | Module filter installed
lizmap-docker-compose-lizmap-1   | Module action installed
lizmap-docker-compose-lizmap-1   | Module dataviz installed
lizmap-docker-compose-lizmap-1   | All modules are installed or upgraded for the entry point admin
lizmap-docker-compose-lizmap-1   | [notice] Installation starts for the entry point script
lizmap-docker-compose-lizmap-1   | All modules dependencies are ok
lizmap-docker-compose-lizmap-1   | Module jelix installed
lizmap-docker-compose-lizmap-1   | Module jauthdb_admin installed
lizmap-docker-compose-lizmap-1   | Module master_admin installed
lizmap-docker-compose-lizmap-1   | Module jacl2 installed
lizmap-docker-compose-lizmap-1   | Module jacl2db installed
lizmap-docker-compose-lizmap-1   | Module jacl2db_admin installed
lizmap-docker-compose-lizmap-1   | Module admin installed
lizmap-docker-compose-lizmap-1   | Module proj4php installed
lizmap-docker-compose-lizmap-1   | Module jcommunity installed
lizmap-docker-compose-lizmap-1   | Module lizmap installed
lizmap-docker-compose-lizmap-1   | Module dynamicLayers installed
lizmap-docker-compose-lizmap-1   | Module view installed
lizmap-docker-compose-lizmap-1   | Module filter installed
lizmap-docker-compose-lizmap-1   | Module action installed
lizmap-docker-compose-lizmap-1   | Module dataviz installed
lizmap-docker-compose-lizmap-1   | All modules are installed or upgraded for the entry point script
lizmap-docker-compose-lizmap-1   | Installation ended.
lizmap-docker-compose-lizmap-1   | This username already exists
lizmap-docker-compose-lizmap-1   | [07-May-2023 21:34:16] ERROR: [pool www] please specify user and group other than root
lizmap-docker-compose-lizmap-1   | [07-May-2023 21:34:16] ERROR: FPM initialization failed
lizmap-docker-compose-lizmap-1 exited with code 0
lizmap-docker-compose-map-1 exited with code 1
lizmap-docker-compose-lizmap-1   | Updating configuration
lizmap-docker-compose-lizmap-1   | Checking for lizmap configuration files in /srv/etc/lizmapconfig.d
lizmap-docker-compose-lizmap-1   | * Loading lizmap configuration: /srv/etc/lizmapconfig.d/lizmap-url.ini.php
lizmap-docker-compose-lizmap-1   | Checking for lizmap configuration files in /srv/etc/localconfig.d
lizmap-docker-compose-lizmap-1   | * Loading lizmap configuration: /srv/etc/localconfig.d/test.ini.php
lizmap-docker-compose-lizmap-1   | Checking for lizmap configuration files in /srv/etc/profiles.d
lizmap-docker-compose-lizmap-1   | * Loading lizmap configuration: /srv/etc/profiles.d/lizmap_local.ini.php
lizmap-docker-compose-lizmap-1   | * Loading lizmap configuration: /srv/etc/profiles.d/test.ini.php
lizmap-docker-compose-lizmap-1   | trying to connect to the Postgresql database lizmap at db.lizmap with the profile default...
lizmap-docker-compose-lizmap-1   |   Ok, Postgresql is alive.
lizmap-docker-compose-lizmap-1   | Installation start..
lizmap-docker-compose-lizmap-1   | [notice] Installation starts for the entry point index
lizmap-docker-compose-lizmap-1   | All modules dependencies are ok
lizmap-docker-compose-lizmap-1   | All modules are installed or upgraded for the entry point index
lizmap-docker-compose-lizmap-1   | [notice] Installation starts for the entry point admin
lizmap-docker-compose-lizmap-1   | All modules dependencies are ok
lizmap-docker-compose-lizmap-1   | All modules are installed or upgraded for the entry point admin
lizmap-docker-compose-lizmap-1   | [notice] Installation starts for the entry point script
lizmap-docker-compose-lizmap-1   | All modules dependencies are ok
lizmap-docker-compose-lizmap-1   | All modules are installed or upgraded for the entry point script
lizmap-docker-compose-lizmap-1   | Installation ended.
lizmap-docker-compose-lizmap-1   | This username already exists
lizmap-docker-compose-lizmap-1   | [07-May-2023 21:34:18] ERROR: [pool www] please specify user and group other than root
lizmap-docker-compose-lizmap-1   | [07-May-2023 21:34:18] ERROR: FPM initialization failed
lizmap-docker-compose-lizmap-1 exited with code 0
lizmap-docker-compose-lizmap-1   | Updating configuration
lizmap-docker-compose-lizmap-1   | Checking for lizmap configuration files in /srv/etc/lizmapconfig.d
lizmap-docker-compose-lizmap-1   | * Loading lizmap configuration: /srv/etc/lizmapconfig.d/lizmap-url.ini.php
lizmap-docker-compose-lizmap-1   | Checking for lizmap configuration files in /srv/etc/localconfig.d
lizmap-docker-compose-lizmap-1   | * Loading lizmap configuration: /srv/etc/localconfig.d/test.ini.php
lizmap-docker-compose-lizmap-1   | Checking for lizmap configuration files in /srv/etc/profiles.d
lizmap-docker-compose-lizmap-1   | * Loading lizmap configuration: /srv/etc/profiles.d/lizmap_local.ini.php
lizmap-docker-compose-lizmap-1   | * Loading lizmap configuration: /srv/etc/profiles.d/test.ini.php
lizmap-docker-compose-lizmap-1   | trying to connect to the Postgresql database lizmap at db.lizmap with the profile default...
lizmap-docker-compose-lizmap-1   |   Ok, Postgresql is alive.
lizmap-docker-compose-lizmap-1   | Installation start..
lizmap-docker-compose-lizmap-1   | [notice] Installation starts for the entry point index
lizmap-docker-compose-lizmap-1   | All modules dependencies are ok
lizmap-docker-compose-lizmap-1   | All modules are installed or upgraded for the entry point index
lizmap-docker-compose-lizmap-1   | [notice] Installation starts for the entry point admin
lizmap-docker-compose-lizmap-1   | All modules dependencies are ok
lizmap-docker-compose-lizmap-1   | All modules are installed or upgraded for the entry point admin
lizmap-docker-compose-lizmap-1   | [notice] Installation starts for the entry point script
lizmap-docker-compose-lizmap-1   | All modules dependencies are ok
lizmap-docker-compose-lizmap-1   | All modules are installed or upgraded for the entry point script
lizmap-docker-compose-lizmap-1   | Installation ended.
lizmap-docker-compose-lizmap-1   | This username already exists
lizmap-docker-compose-lizmap-1   | [07-May-2023 21:34:21] ERROR: [pool www] please specify user and group other than root
lizmap-docker-compose-lizmap-1   | [07-May-2023 21:34:21] ERROR: FPM initialization failed

Do you know how to solve this ? How to specify other user and group than root ?

If i run it with another user, it said I don t have right. If i run it using sudo it said don t be root ...

dmarteau commented 1 year ago

If i run it with another user, it said I don t have right.

Add user in docker group for running docker command without beeing root - Running as root will give you errors with mounted volumes.