3liz / docker-qgis-server

Build docker qgis tornado server image
6 stars 1 forks source link

Error loading a qgis project #10

Open nwrox opened 4 years ago

nwrox commented 4 years ago

I've pulled the image (3.6) and successfully run with:

docker run -d -p 8380:8080 \
-v $PWD/projects:/projects \
-e QGSRV_SERVER_WORKERS=2 \
-e QGSRV_LOGGING_LEVEL=DEBUG \
-e QGSRV_CACHE_ROOTDIR=/projects \
-e QGSRV_CACHE_SIZE=10 \
3liz/qgis-map-server:3.4

My qgis project load the layers from a postgres/postgis 8.4 and i get the error bellow when i query:

http://<server>:8380/ows/?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetCapabilities&MAP=project.qgs

erro_3liz_docker

And i see this in the container log:

...
2019-12-04 22:45:57,079 WARNING [29]    Qgis: PostGIS: Connection to database failed
local user with ID 9001 does not exist
2019-12-04 22:45:57,162 WARNING [29]    Qgis: : 54 bad layers dismissed:
...

P.S. This project is used internally in my organization and we provide a password (to connect to the pg/postgis) to use it in qgis desktop, that works fine.

How can i solve this? thanks.