Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running configure.bat mounting issues in lizmap-docker-compose project #79

Open
heliomoscatelli opened this issue Feb 17, 2025 · 11 comments

Comments

@heliomoscatelli
Copy link

heliomoscatelli commented Feb 17, 2025

Hi everyone, my name is Hélio and I'm trying to run this solution on my PC with Windows 11. But I can't...

Below is a print of the complete screen since installation.

What am I doing wrong?

C:\>git clone https://github.com/3liz/lizmap-docker-compose.git
Cloning into 'lizmap-docker-compose'...
remote: Enumerating objects: 466, done.
remote: Counting objects: 100% (138/138), done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 466 (delta 110), reused 93 (delta 90), pack-reused 328 (from 1)
Receiving objects: 100% (466/466), 302.51 KiB | 2.80 MiB/s, done.
Resolving deltas: 100% (228/228), done.

C:\>cd lizmap-docker-compose

C:\lizmap-docker-compose>dir
 O volume na unidade C não tem nome.
 O Número de Série do Volume é 226A-30B0

 Pasta de C:\lizmap-docker-compose

17/02/2025  18:56    <DIR>          .
17/02/2025  18:56                99 .dockerignore
17/02/2025  18:56               385 .env.windows
17/02/2025  18:56                56 .gitignore
17/02/2025  18:56               753 configure.bat
17/02/2025  18:56             4,949 configure.sh
17/02/2025  18:56             3,971 docker-compose.yml
17/02/2025  18:56               694 env.default
17/02/2025  18:56               291 install-lizmap-plugin.sh
17/02/2025  18:56    <DIR>          lizmap.dir
17/02/2025  18:56             2,946 README.md
               9 arquivo(s)         14,144 bytes
               2 pasta(s)   34,103,005,184 bytes disponíveis

C:\lizmap-docker-compose>configure.bat
docker: error during connect: Head "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/_ping": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.
See 'docker run --help'.
setup finished, you can run 'docker-compose --env-file=.env.windows up'
C:\lizmap-docker-compose>configure.bat
Unable to find image '3liz/qgis-map-server:ltr-rc' locally
ltr-rc: Pulling from 3liz/qgis-map-server
7cfc90fb34bb: Download complete
058410dd298d: Download complete
4f4fb700ef54: Download complete
684c0bfbb971: Download complete
107a4fb0af38: Download complete
a5b7f319a946: Download complete
2280ca95e2fd: Download complete
fa458a069a8c: Download complete
dbfb76a606c6: Download complete
904e00a29906: Download complete
23edced4343e: Download complete
c738c47e1556: Download complete
6a131c970ed8: Download complete
Digest: sha256:14c408fb78c0493de1934c0b57d222fd3b23baf62e54af09d4c516e19aa87d3b
Status: Downloaded newer image for 3liz/qgis-map-server:ltr-rc
exec /src/configure.sh: no such file or directory
setup finished, you can run 'docker-compose --env-file=.env.windows up'
C:\lizmap-docker-compose>docker-compose --env-file=.env.windows up
[+] Running 37/37
 ✔ lizmap Pulled                                                                                                                                                  27.2s
   ✔ 2d26baa3fed4 Download complete                                                                                                                               13.7s
   ✔ fbcfea79c1c4 Download complete                                                                                                                                2.2s
   ✔ 3f8e6947ca5a Download complete                                                                                                                                0.5s
   ✔ 7776ea4be41b Download complete                                                                                                                                0.8s
   ✔ e1d9814a4552 Download complete                                                                                                                               21.5s
   ✔ 613557eca78f Download complete                                                                                                                                1.0s
   ✔ 99d42f663b46 Download complete                                                                                                                                1.0s
   ✔ 4f4fb700ef54 Already exists                                                                                                                                   0.1s
   ✔ b0ea4194df30 Download complete                                                                                                                                3.9s
   ✔ 1e106e26dc59 Download complete                                                                                                                                1.1s
   ✔ 0bf466b0f71a Download complete                                                                                                                                1.1s
 ✔ redis Pulled                                                                                                                                                    9.8s
   ✔ 18a7dec11639 Download complete                                                                                                                                1.5s
   ✔ 731cc432e6da Download complete                                                                                                                                1.2s
   ✔ ca7dd9ec2225 Download complete                                                                                                                                3.6s
   ✔ 83276aa4de36 Download complete                                                                                                                                2.0s
   ✔ f67999d49aa9 Download complete                                                                                                                                6.7s
   ✔ bdf1ab41b170 Download complete                                                                                                                                1.8s
 ✔ web Pulled                                                                                                                                                     16.0s
   ✔ ccc35e35d420 Download complete                                                                                                                                1.4s
   ✔ f18232174bc9 Download complete                                                                                                                                1.5s
   ✔ ab3286a73463 Download complete                                                                                                                                1.2s
   ✔ 8d27c072a58f Download complete                                                                                                                                1.0s
   ✔ 0c7e4c092ab7 Download complete                                                                                                                               13.1s
   ✔ 43f2ec460bdf Download complete                                                                                                                                0.9s
   ✔ 984583bcf083 Download complete                                                                                                                                0.7s
   ✔ 6d79cc6084d4 Download complete                                                                                                                                0.9s
 ✔ postgis Pulled                                                                                                                                                 44.5s
   ✔ 6cf9c408f478 Download complete                                                                                                                               15.6s
   ✔ 71cfe1ff287d Download complete                                                                                                                                6.0s
   ✔ 95006d9ad7ee Download complete                                                                                                                                1.1s
   ✔ e9ca9442ce27 Download complete                                                                                                                                1.5s
   ✔ db7468a78caf Download complete                                                                                                                                1.5s
   ✔ eee288e6c7c4 Download complete                                                                                                                               29.2s
   ✔ 6882d4e9d7df Download complete                                                                                                                                1.5s
   ✔ 029882d20204 Download complete                                                                                                                                1.6s
[+] Running 8/8
 ✔ Network lizmap-docker-compose_default        Created                                                                                                            0.2s
 ✔ Volume "lizmap-docker-compose_redis_data"    Created                                                                                                            0.0s
 ✔ Volume "lizmap-docker-compose_postgis_data"  Created                                                                                                            0.0s
 ✔ Container lizmap-docker-compose-map-1        Created                                                                                                           11.3s
 ✔ Container lizmap-docker-compose-postgis-1    Created                                                                                                           11.3s
 ✔ Container lizmap-docker-compose-redis-1      Created                                                                                                           11.3s
 ✔ Container lizmap-docker-compose-lizmap-1     Created                                                                                                            0.1s
 ✔ Container lizmap-docker-compose-web-1        Created                                                                                                            0.2s
Attaching to lizmap-1, map-1, postgis-1, redis-1, web-1
redis-1    | 1:C 17 Feb 2025 22:05:47.828 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis-1    | 1:C 17 Feb 2025 22:05:47.828 # Redis version=5.0.14, bits=64, commit=00000000, modified=0, pid=1, just started
redis-1    | 1:C 17 Feb 2025 22:05:47.828 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis-1    | 1:M 17 Feb 2025 22:05:47.829 * Running mode=standalone, port=6379.
redis-1    | 1:M 17 Feb 2025 22:05:47.829 # Server initialized
redis-1    | 1:M 17 Feb 2025 22:05:47.829 # 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.
redis-1    | 1:M 17 Feb 2025 22:05:47.831 * Ready to accept connections
map-1      | Running as 1000:1000
map-1      | Running Xvfb
map-1      | Copying Qgis configuration: /srv/etc/qgis
map-1      | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
postgis-1  | The files belonging to this database system will be owned by user "postgres".
postgis-1  | This user must also own the server process.
postgis-1  |
postgis-1  | The database cluster will be initialized with locale "en_US.utf8".
postgis-1  | The default database encoding has accordingly been set to "UTF8".
postgis-1  | The default text search configuration will be set to "english".
postgis-1  |
postgis-1  | Data page checksums are disabled.
postgis-1  |
postgis-1  | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgis-1  | creating subdirectories ... ok
postgis-1  | selecting dynamic shared memory implementation ... posix
postgis-1  | selecting default max_connections ... 100
postgis-1  | selecting default shared_buffers ... 128MB
postgis-1  | selecting default time zone ... Etc/UTC
postgis-1  | creating configuration files ... ok
postgis-1  | running bootstrap script ... ok
postgis-1  | performing post-bootstrap initialization ... ok
map-1 exited with code 0
postgis-1  | initdb: warning: enabling "trust" authentication for local connections
postgis-1  | initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
postgis-1  | syncing data to disk ... ok
postgis-1  |
postgis-1  |
postgis-1  | Success. You can now start the database server using:
postgis-1  |
postgis-1  |     pg_ctl -D /var/lib/postgresql/data -l logfile start
postgis-1  |
postgis-1  | waiting for server to start....2025-02-17 22:05:49.817 UTC [50] LOG:  starting PostgreSQL 15.10 (Debian 15.10-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
postgis-1  | 2025-02-17 22:05:49.821 UTC [50] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgis-1  | 2025-02-17 22:05:49.831 UTC [53] LOG:  database system was shut down at 2025-02-17 22:05:48 UTC
postgis-1  | 2025-02-17 22:05:49.837 UTC [50] LOG:  database system is ready to accept connections
postgis-1  |  done
postgis-1  | server started
postgis-1  | ls: cannot access '/docker-entrypoint-initdb.d/*': No such file or directory
postgis-1  |
postgis-1  | waiting for server to shut down...2025-02-17 22:05:49.900 UTC [50] LOG:  received fast shutdown request
postgis-1  | .2025-02-17 22:05:49.903 UTC [50] LOG:  aborting any active transactions
postgis-1  | 2025-02-17 22:05:49.905 UTC [50] LOG:  background worker "logical replication launcher" (PID 56) exited with exit code 1
postgis-1  | 2025-02-17 22:05:49.905 UTC [51] LOG:  shutting down
postgis-1  | 2025-02-17 22:05:49.924 UTC [51] LOG:  checkpoint starting: shutdown immediate
postgis-1  | 2025-02-17 22:05:49.951 UTC [51] LOG:  checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.007 s, sync=0.003 s, total=0.047 s; sync files=2, longest=0.002 s, average=0.002 s; distance=0 kB, estimate=0 kB
postgis-1  | 2025-02-17 22:05:49.954 UTC [50] LOG:  database system is shut down
postgis-1  |  done
postgis-1  | server stopped
postgis-1  |
postgis-1  | PostgreSQL init process complete; ready for start up.
postgis-1  |
postgis-1  | 2025-02-17 22:05:50.038 UTC [1] LOG:  starting PostgreSQL 15.10 (Debian 15.10-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
postgis-1  | 2025-02-17 22:05:50.038 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgis-1  | 2025-02-17 22:05:50.038 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgis-1  | 2025-02-17 22:05:50.045 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgis-1  | 2025-02-17 22:05:50.053 UTC [61] LOG:  database system was shut down at 2025-02-17 22:05:49 UTC
postgis-1  | 2025-02-17 22:05:50.059 UTC [1] LOG:  database system is ready to accept connections
map-1      | Running as 1000:1000
map-1      | Running Xvfb
map-1 exited with code 0
map-1      | Copying Qgis configuration: /srv/etc/qgis
map-1      | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
map-1      | Running as 1000:1000
map-1      | Running Xvfb
map-1 exited with code 1
map-1      | Copying Qgis configuration: /srv/etc/qgis
map-1      | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
map-1      | Running as 1000:1000
map-1      | Running Xvfb
map-1      | Running as 1000:1000
map-1      | Copying Qgis configuration: /srv/etc/qgis
map-1 exited with code 1
map-1      | Running Xvfb
map-1      | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
map-1      | Copying Qgis configuration: /srv/etc/qgis
map-1      | Running as 1000:1000
map-1      | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
map-1      | Running Xvfb
map-1      | Running as 1000:1000
map-1      | Copying Qgis configuration: /srv/etc/qgis
map-1      | Running Xvfb
map-1      | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
map-1      | Copying Qgis configuration: /srv/etc/qgis
map-1      | Running as 1000:1000
map-1      | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
map-1      | Running Xvfb
map-1      | Running as 1000:1000
map-1      | Copying Qgis configuration: /srv/etc/qgis
map-1      | Running Xvfb
map-1      | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
map-1      | Copying Qgis configuration: /srv/etc/qgis
map-1      | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
map-1      | Running as 1000:1000
map-1      | Running Xvfb
map-1      | Copying Qgis configuration: /srv/etc/qgis
map-1      | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
map-1      | Running as 1000:1000
map-1      | Running Xvfb
map-1 exited with code 1
map-1      | Copying Qgis configuration: /srv/etc/qgis
map-1      | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
map-1      | Running as 1000:1000
map-1      | Running Xvfb
map-1      | Copying Qgis configuration: /srv/etc/qgis
map-1      | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
map-1      | Running as 1000:1000
map-1      | Running Xvfb
map-1      | Copying Qgis configuration: /srv/etc/qgis
map-1      | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
map-1      | Running as 1000:1000
map-1      | Running Xvfb
map-1      | Copying Qgis configuration: /srv/etc/qgis
map-1      | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
map-1      | Running as 1000:1000
map-1      | Running Xvfb
map-1      | Copying Qgis configuration: /srv/etc/qgis
map-1      | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
postgis-1  | 2025-02-17 22:05:53.330 UTC [72] FATAL:  database "lizmap" does not exist
Gracefully stopping... (press Ctrl+C again to force)
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/run/desktop/mnt/host/c/lizmap-docker-compose/lizmap/etc/nginx.conf" to rootfs at "/etc/nginx/nginx.conf": mount /run/desktop/mnt/host/c/lizmap-docker-compose/lizmap/etc/nginx.conf:/etc/nginx/nginx.conf (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
@heliomoscatelli heliomoscatelli changed the title Error running configure.bates mounting issues in lizmap-docker-compose project Error running configure.bat mounting issues in lizmap-docker-compose project Feb 17, 2025
@nworr
Copy link
Contributor

nworr commented Feb 18, 2025

It seems there's issue in the initialisation process, and the docker stack is in a unrecoverable state
map-1 | cp: cannot stat '/srv/etc/qgis/': No such file or directory for exemple

Can you try to delete your containers and volumes :
docker rm lizmap-docker-compose-postgis-1 lizmap-docker-compose-map-1 lizmap-docker-compose-redis-1 lizmap-docker-compose-web-1 lizmap-docker-compose-lizmap-1
docker volume rm lizmap-docker-compose_postgis_data lizmap-docker-compose_redis_data

and relaunch steps (configure.bat, docker-compose --env-file=.env.windows up ` ?

@heliomoscatelli
Copy link
Author

I've tried everything, including what you say there. I'm thinking about trying https://hub.docker.com/r/opengisch/lizmap

I just want to test with my private maps, would this be the best way?

I apologize in advance for my bad English, I'm from Brazil.

@nworr
Copy link
Contributor

nworr commented Feb 18, 2025

Can you try in a personnal folder C:\Users\<Your profile>, not in the root of C: , it may be a rights issue

@Gustry
Copy link
Member

Gustry commented Feb 18, 2025

I'm thinking about trying https://hub.docker.com/r/opengisch/lizmap

I would not really recommend as tags looks a little bit old today : https://hub.docker.com/r/opengisch/lizmap/tags

  • No 3.8.X tag
  • Nearly one year old for 3.7 tag
  • All other tags are way too old

@heliomoscatelli
Copy link
Author

Forgive me, but I don't understand, perhaps due to a translation into Portuguese.

Refer to the attached image.

1 - Should I leave this folder with a dot there? Or rename?
2 - Do I need to configure the paths for this folder?
3 - When should I run configure.bat?
4 - Do I need to configure something here too?

Image

@nworr
Copy link
Contributor

nworr commented Feb 18, 2025

When you download the files using git clone there's no need to modify it

1 - No need to change the lizmap.dir folder
2 - env.windows define various environnement variable, is fine with its default value
3 - configure.bat should be run once, for the first initialisation (then use docker compose --env-file .env.windows up) to launch lizmap and go to http://localhost:8090/admin.php/admin/maps/
4 - by default nothing to configure.

My previous comment was a suggestion to not use C: to store the lizmap-docker-composer folder but in a subfolder of your personnal folder located in Users

cd Users
cd <Your personnal folder> (Helio I guess) 
;maybe create a subfolder?
git clone https://github.com/3liz/lizmap-docker-compose.git
cd lizmap-docker-compose
configure.bat
docker compose --env-file .env.windows up

@heliomoscatelli
Copy link
Author

Observe this image.

1 - I don't need to put the path there??? C:\Users\Helio\lizmap-docker-compose\lizmap ????

2 - I don't need to put the path there??? C:\Users\Helio\lizmap-docker-compose\lizmap\instance ????

3 - Don't I need to remove " " from this password?

Image

@heliomoscatelli
Copy link
Author

heliomoscatelli commented Feb 18, 2025

Image

When you download the files using git clone there's no need to modify it

1 - No need to change the lizmap.dir folder 2 - env.windows define various environnement variable, is fine with its default value 3 - configure.bat should be run once, for the first initialisation (then use docker compose --env-file .env.windows up) to launch lizmap and go to http://localhost:8090/admin.php/admin/maps/ 4 - by default nothing to configure.

My previous comment was a suggestion to not use C: to store the lizmap-docker-composer folder but in a subfolder of your personnal folder located in Users

cd Users
cd <Your personnal folder> (Helio I guess) 
;maybe create a subfolder?
git clone https://github.com/3liz/lizmap-docker-compose.git
cd lizmap-docker-compose
configure.bat
docker compose --env-file .env.windows up

without configuring anything as you explained....

C:\Users\Helio>git clone https://github.com/3liz/lizmap-docker-compose.git
Cloning into 'lizmap-docker-compose'...
remote: Enumerating objects: 466, done.
remote: Counting objects: 100% (140/140), done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 466 (delta 112), reused 94 (delta 91), pack-reused 326 (from 1)
Receiving objects: 100% (466/466), 302.41 KiB | 108.00 KiB/s, done.
Resolving deltas: 100% (228/228), done.

C:\Users\Helio>dir
O volume na unidade C não tem nome.
O Número de Série do Volume é 226A-30B0

Pasta de C:\Users\Helio

18/02/2025 14:09

.
28/02/2023 18:07 ..
11/02/2025 23:52 4,320 .bash_history
30/01/2025 20:35 .cache
13/11/2024 20:32 .conda
10/02/2025 19:56 .dbus-keyrings
18/02/2025 11:14 .docker
10/10/2024 23:07 .idlerc
21/08/2022 23:07 .ipython
23/04/2024 20:19 .irpf
13/01/2025 09:37 .keras
02/10/2022 22:54 .kivy
04/09/2024 22:12 .matplotlib
16/01/2023 20:55 35,458 .pdfbox.cache
13/01/2025 23:29 .pixi
18/10/2022 23:07 .pytest_cache
14/01/2025 00:11 73 .python_history
28/04/2024 11:15 .receitanet
16/05/2023 22:01 .rfb
01/10/2022 22:55 .VirtualBox
01/10/2022 22:55 .vscode
19/06/2022 18:01 3D Objects
10/10/2024 21:59 0 cd
28/02/2023 18:12 Contacts
18/02/2025 11:58 Desktop
11/02/2025 17:04 0 docker
19/12/2024 20:29 Documents
18/02/2025 09:15 Downloads
13/02/2025 22:34 dwhelper
28/02/2023 18:12 Favorites
03/01/2025 20:07 181,683 java_error_in_pycharm_3776.log
28/02/2023 18:12 Links
18/02/2025 14:09 lizmap-docker-compose
13/11/2024 21:24 miniconda3
11/05/2024 22:05 Music
18/02/2025 10:42 OneDrive
28/02/2023 18:12 Pictures
21/01/2025 15:53 PycharmProjects
12/12/2024 13:02 60,881 saga_gui.cfg
12/12/2024 13:02 8,441 saga_gui.ini
28/02/2023 18:12 Saved Games
28/02/2023 18:12 Searches
22/12/2024 22:33 Videos
21/08/2024 21:16 VirtualBox VMs
10/10/2024 21:52 0 virtualenv
9 arquivo(s) 290,856 bytes
36 pasta(s) 27,026,714,624 bytes disponíveis

C:\Users\Helio>cd lizmap-docker-compose

C:\Users\Helio\lizmap-docker-compose>dir
O volume na unidade C não tem nome.
O Número de Série do Volume é 226A-30B0

Pasta de C:\Users\Helio\lizmap-docker-compose

18/02/2025 14:09

.
18/02/2025 14:09 ..
18/02/2025 14:09 99 .dockerignore
18/02/2025 14:09 385 .env.windows
18/02/2025 14:09 56 .gitignore
18/02/2025 14:09 753 configure.bat
18/02/2025 14:09 4,949 configure.sh
18/02/2025 14:09 3,971 docker-compose.yml
18/02/2025 14:09 694 env.default
18/02/2025 14:09 291 install-lizmap-plugin.sh
18/02/2025 14:09 lizmap.dir
18/02/2025 14:09 2,946 README.md
9 arquivo(s) 14,144 bytes
3 pasta(s) 27,026,714,624 bytes disponíveis

C:\Users\Helio\lizmap-docker-compose>configure
Unable to find image '3liz/qgis-map-server:ltr-rc' locally
ltr-rc: Pulling from 3liz/qgis-map-server
4f4fb700ef54: Download complete
2280ca95e2fd: Download complete
107a4fb0af38: Download complete
684c0bfbb971: Download complete
a5b7f319a946: Download complete
23edced4343e: Download complete
dbfb76a606c6: Download complete
7cfc90fb34bb: Download complete
6a131c970ed8: Download complete
058410dd298d: Download complete
fa458a069a8c: Download complete
904e00a29906: Download complete
c738c47e1556: Download complete
Digest: sha256:14c408fb78c0493de1934c0b57d222fd3b23baf62e54af09d4c516e19aa87d3b
Status: Downloaded newer image for 3liz/qgis-map-server:ltr-rc
exec /src/configure.sh: no such file or directory
setup finished, you can run 'docker-compose --env-file=.env.windows up'
C:\Users\Helio\lizmap-docker-compose>docker-compose --env-file=.env.windows up
[+] Running 37/37
✔ redis Pulled 8.7s
✔ web Pulled 12.3s
✔ lizmap Pulled 19.8s
✔ postgis Pulled 38.2s

[+] Running 8/8
✔ Network lizmap-docker-compose_default Created 0.2s
✔ Volume "lizmap-docker-compose_redis_data" Created 0.0s
✔ Volume "lizmap-docker-compose_postgis_data" Created 0.0s
✔ Container lizmap-docker-compose-postgis-1 Created 9.5s
✔ Container lizmap-docker-compose-redis-1 Created 9.5s
✔ Container lizmap-docker-compose-map-1 Created 9.5s
✔ Container lizmap-docker-compose-lizmap-1 Created 0.1s
✔ Container lizmap-docker-compose-web-1 Created 0.2s
Attaching to lizmap-1, map-1, postgis-1, redis-1, web-1
redis-1 | 1:C 18 Feb 2025 17:28:32.339 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis-1 | 1:C 18 Feb 2025 17:28:32.339 # Redis version=5.0.14, bits=64, commit=00000000, modified=0, pid=1, just started
redis-1 | 1:C 18 Feb 2025 17:28:32.339 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis-1 | 1:M 18 Feb 2025 17:28:32.340 * Running mode=standalone, port=6379.
redis-1 | 1:M 18 Feb 2025 17:28:32.340 # Server initialized
redis-1 | 1:M 18 Feb 2025 17:28:32.340 # 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.
redis-1 | 1:M 18 Feb 2025 17:28:32.340 * Ready to accept connections
map-1 | Running as 1000:1000
map-1 | Running Xvfb
map-1 | Copying Qgis configuration: /srv/etc/qgis
map-1 | cp: cannot stat '/srv/etc/qgis/': No such file or directory
postgis-1 | The files belonging to this database system will be owned by user "postgres".
postgis-1 | This user must also own the server process.
postgis-1 |
postgis-1 | The database cluster will be initialized with locale "en_US.utf8".
postgis-1 | The default database encoding has accordingly been set to "UTF8".
postgis-1 | The default text search configuration will be set to "english".
postgis-1 |
postgis-1 | Data page checksums are disabled.
postgis-1 |
postgis-1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgis-1 | creating subdirectories ... ok
postgis-1 | selecting dynamic shared memory implementation ... posix
postgis-1 | selecting default max_connections ... 100
postgis-1 | selecting default shared_buffers ... 128MB
postgis-1 | selecting default time zone ... Etc/UTC
postgis-1 | creating configuration files ... ok
postgis-1 | running bootstrap script ... ok
postgis-1 | performing post-bootstrap initialization ... ok
map-1 exited with code 0
postgis-1 | syncing data to disk ... ok
postgis-1 |
postgis-1 |
postgis-1 | Success. You can now start the database server using:
postgis-1 |
postgis-1 | pg_ctl -D /var/lib/postgresql/data -l logfile start
postgis-1 |
postgis-1 | initdb: warning: enabling "trust" authentication for local connections
postgis-1 | initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
postgis-1 | waiting for server to start....2025-02-18 17:28:34.627 UTC [50] LOG: starting PostgreSQL 15.11 (Debian 15.11-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
postgis-1 | 2025-02-18 17:28:34.634 UTC [50] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgis-1 | 2025-02-18 17:28:34.645 UTC [53] LOG: database system was shut down at 2025-02-18 17:28:33 UTC
postgis-1 | 2025-02-18 17:28:34.655 UTC [50] LOG: database system is ready to accept connections
postgis-1 | done
postgis-1 | server started
postgis-1 | ls: cannot access '/docker-entrypoint-initdb.d/
': No such file or directory
postgis-1 |
postgis-1 | waiting for server to shut down...2025-02-18 17:28:34.712 UTC [50] LOG: received fast shutdown request
postgis-1 | .2025-02-18 17:28:34.715 UTC [50] LOG: aborting any active transactions
postgis-1 | 2025-02-18 17:28:34.718 UTC [50] LOG: background worker "logical replication launcher" (PID 56) exited with exit code 1
postgis-1 | 2025-02-18 17:28:34.718 UTC [51] LOG: shutting down
postgis-1 | 2025-02-18 17:28:34.721 UTC [51] LOG: checkpoint starting: shutdown immediate
postgis-1 | 2025-02-18 17:28:34.744 UTC [51] LOG: checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.008 s, sync=0.003 s, total=0.027 s; sync files=2, longest=0.002 s, average=0.002 s; distance=0 kB, estimate=0 kB
postgis-1 | 2025-02-18 17:28:34.749 UTC [50] LOG: database system is shut down
postgis-1 | done
postgis-1 | server stopped
postgis-1 |
map-1 exited with code 0
postgis-1 | PostgreSQL init process complete; ready for start up.
postgis-1 |
postgis-1 | 2025-02-18 17:28:34.843 UTC [1] LOG: starting PostgreSQL 15.11 (Debian 15.11-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
postgis-1 | 2025-02-18 17:28:34.844 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgis-1 | 2025-02-18 17:28:34.844 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgis-1 | 2025-02-18 17:28:34.851 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgis-1 | 2025-02-18 17:28:34.877 UTC [61] LOG: database system was shut down at 2025-02-18 17:28:34 UTC
postgis-1 | 2025-02-18 17:28:34.884 UTC [1] LOG: database system is ready to accept connections
map-1 exited with code 1
map-1 | Running as 1000:1000
map-1 | Running Xvfb
map-1 exited with code 1
map-1 | Copying Qgis configuration: /srv/etc/qgis
map-1 | cp: cannot stat '/srv/etc/qgis/': No such file or directory
map-1 | Running as 1000:1000
map-1 | Running Xvfb
map-1 | Copying Qgis configuration: /srv/etc/qgis
map-1 | cp: cannot stat '/srv/etc/qgis/
': No such file or directory
map-1 | Running as 1000:1000
map-1 | Running Xvfb
map-1 | Copying Qgis configuration: /srv/etc/qgis
map-1 | cp: cannot stat '/srv/etc/qgis/': No such file or directory
map-1 | Running as 1000:1000
map-1 | Running Xvfb
map-1 | Copying Qgis configuration: /srv/etc/qgis
map-1 | cp: cannot stat '/srv/etc/qgis/
': No such file or directory
map-1 | Running as 1000:1000
map-1 | Running Xvfb
map-1 exited with code 1
map-1 | Copying Qgis configuration: /srv/etc/qgis
map-1 | cp: cannot stat '/srv/etc/qgis/': No such file or directory
map-1 | Running as 1000:1000
map-1 | Running Xvfb
map-1 | Copying Qgis configuration: /srv/etc/qgis
map-1 | cp: cannot stat '/srv/etc/qgis/
': No such file or directory
map-1 | Running as 1000:1000
map-1 | Running Xvfb
map-1 | Copying Qgis configuration: /srv/etc/qgis
map-1 | cp: cannot stat '/srv/etc/qgis/': No such file or directory
map-1 | Running as 1000:1000
map-1 | Running Xvfb
postgis-1 | 2025-02-18 17:28:37.616 UTC [72] FATAL: database "lizmap" does not exist
map-1 | Copying Qgis configuration: /srv/etc/qgis
map-1 | cp: cannot stat '/srv/etc/qgis/
': No such file or directory
map-1 | Running as 1000:1000
map-1 | Running Xvfb
map-1 | Copying Qgis configuration: /srv/etc/qgis
map-1 | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
Gracefully stopping... (press Ctrl+C again to force)
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/run/desktop/mnt/host/c/Users/Helio/lizmap-docker-compose/lizmap/etc/nginx.conf" to rootfs at "/etc/nginx/nginx.conf": mount /run/desktop/mnt/host/c/Users/Helio/lizmap-docker-compose/lizmap/etc/nginx.conf:/etc/nginx/nginx.conf (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

C:\Users\Helio\lizmap-docker-compose>

@heliomoscatelli
Copy link
Author

It seems that nginx does not start because instead of a file, the automatic configuration created an nginx.conf folder and not an nginx.conf file

Image

@heliomoscatelli
Copy link
Author

heliomoscatelli commented Feb 18, 2025

I deleted the automatically created nginx.conf folder and manually placed the nginx.conf file which I copied from git and pasted inside.

Image

Now I can access localhost, but there is a service that still has problems:

Image
Image

Apparently things are not automatic as reported, or there is a bug in configure.bat

I also changed all "Docker" commands to "sudo Docker" in the configure.sh file, to see if that fixed anything, but nothing worked. I had to manually copy Nginx the same way, and the lizmap-docker-compose-map-1 service still doesn't start...

@nworr
Copy link
Contributor

nworr commented Feb 19, 2025

Somehow the configure.bat is not doing the job ...

Normally the output is :

C:\Users\XXXXX\tests\lizmap-docker-compose>configure.bat
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.34.15
/lizmap/plugins/sources.list is already existing. Quit
QGIS_PLUGINPATH set to /lizmap/plugins
Downloading https://plugins.qgis.org/plugins/plugins.xml?qgis=3.34…
        Ok
QGIS_PLUGINPATH set to /lizmap/plugins
QGIS version : 3.34.15
        Same version detected on the remote, skipping Lizmap server
QGIS_PLUGINPATH set to /lizmap/plugins
QGIS version : 3.34.15
        Same version detected on the remote, skipping atlasprint
QGIS_PLUGINPATH set to /lizmap/plugins
QGIS version : 3.34.15
        Same version detected on the remote, skipping wfsOutputExtension
setup finished, you can run 'docker-compose --env-file=.env.windows up'
C:\Users\XXXX\tests\lizmap-docker-compose>

But on your side it's failing because of exec /src/configure.sh: no such file or directory

Configure.bat is only a docker run command with some variables defined for the current directory

docker run -it -u 1000:1000 --rm -e INSTALL_SOURCE=/install -e INSTALL_DEST=/lizmap -e "LIZMAP_DIR=%INSTALL_DEST%" -e QGSRV_SERVER_PLUGINPATH=/lizmap/plugins -v "%INSTALL_SOURCE%:/install" -v "%INSTALL_DEST%:/lizmap" -v "%INSTALL_SOURCE%:/src" --entrypoint /src/configure.sh 3liz/qgis-map-server:%QGIS_VERSION_TAG% _configure

You can try it directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants