3liz / lizmap-docker-compose

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

QGIS server : cp: cannot stat '/srv/etc/qgis/*': No such file or directory #62

Closed jfoucher closed 8 months ago

jfoucher commented 9 months ago

After following the readme to the letter, this repository does not work :

lizmap-docker-compose-map-1      | Running as 1000:1000
lizmap-docker-compose-map-1      | Running Xvfb
lizmap-docker-compose-map-1      | Copying Qgis configuration: /srv/etc/qgis
lizmap-docker-compose-map-1      | cp: cannot stat '/srv/etc/qgis/*': No such file or directory
lizmap-docker-compose-map-1 exited with code 1

Other containers work fine. Anything I can do ?

dmarteau commented 9 months ago

Where does /srv/etc/qgis come from ?

jfoucher commented 9 months ago

https://github.com/3liz/lizmap-docker-compose/blob/5261ae7740a7a158af065a1283c179891e440093/docker-compose.yml#L51

dmarteau commented 9 months ago

The ${LIZMAP_DIR}/etc/qgis directory is missing, create it manually for a quick fix or remove the QGIS_OPTIONS_PATH from the service environment variables.

jfoucher commented 9 months ago

mkdir lizmap/etc/qgis && touch lizmap/qgis/a && docker compose up seems to work.

Do you want me to close this issue now @Gustry ?

Gustry commented 9 months ago

Me ? :) I don't know, it depends where the error comes from. I will let @dmarteau

dmarteau commented 9 months ago

There is a small fix to do before closing the issue.

laurentj commented 8 months ago

I fixed it.