[Lizmap] Can't open a map with WMS in it.
René-Luc Dhont
rldhont at gmail.com
Wed Oct 30 02:06:09 PDT 2019
Hi Antoine,
QGIS Server needs a profile directory in which it can create cache
directories and read the QGIS3.ini file.
To do so you have to add a environment variable : HOME or
QGIS_CUSTOM_CONFIG_PATH
If you add the HOME variable, QGIS Server will create the default
profile path in it: .local/share/QGIS/QGIS3/profiles/default/
In this profile path, it will create all needed files and directory
In this profile path it will search the file QGIS3.ini in the QGIS
directory.
For exemple, if you set HOME=/srv/qgis
QGIS server will create /srv/qgis/.local/share/QGIS/QGIS3/profiles/default/
In this directory, it will create all needed files and directory
If you need to define some config, you have to create
/srv/qgis/.local/share/QGIS/QGIS3/profiles/default/QGIS directory and
/srv/qgis/.local/share/QGIS/QGIS3/profiles/default/QGIS/QGIS3.ini file
If you add the QGIS_CUSTOM_CONFIG_PATH variable, QGIS Server does not
create the default profile path and use the directory as the profile path.
For exemple, if you set QGIS_CUSTOM_CONFIG_PATH=/srv/qgis/profile
If you need to define some config, you have to create
/srv/qgis/profile/QGIS directory and /srv/qgis/profile/QGIS/QGIS3.ini file
You can define the both like that:
* HOME=/srv/qgis
* QGIS_CUSTOM_CONFIG_PATH=/srv/qgis/profile
If you have a proxy, you have to define the QGIS3.ini
Regards,
René-Luc
Le 29/10/2019 à 17:35, DAUCE Antoine a écrit :
> Hi,
> I'm new on a lizmap server administration.
> The one I have to maintain is on the folowing configuration :
> - Linux
> - QGIS-SERVER : 3.4.12
> - LIZMAP-WEB-CLIENT : 3.4pre.190808
>
> Since QGIS-SERVER and LIZMAP-WEB-CLIENT have been updated, it's not
> possible to open a map with a WMS layer in it anymore.
> Every time we try to open such map it's loading continuously.
>
> Here is below what I found in the different logs files :
>
> # Logs from lizmap client administration
>
> 2019-10-28 16:41:54 194.250.123.209 warning 2019-10-28
> 16:41:54 [2]
> file_get_contents(http://127.0.0.1:8200?service=WMS&request=GetCapabilitiesAtlas&map=mymap%2Eqgs):
> failed to open stream: HTTP request failed! HTTP/1.1 504 Gateway Time-out
> /srv/lizmap-web-client/lizmap/modules/lizmap/classes/lizmapProxy.class.php
> 236
>
> # Logs NGINX "error.log"
>
> 2019/10/28 16:41:54 [error] 1675#1675: *7760 upstream timed out (110:
> Connection timed out) while reading response header from upstream,
> client: 10.128.153.9, server: myserver, request: "GET
> /index.php/lizmap/service/getProjectConfig?repository=1&project=myproject
> HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock",
> host: "myserver", referrer:
> "https://myserver/index.php/view/map/?repository=1&project=myproject"
>
> # Logs NGINX "qgis.access"
>
> 127.0.0.1 - - [28/Oct/2019:16:41:54 +0100] "GET
> /?service=WMS&request=GetCapabilitiesAtlas&map=mymap%2Eqgs HTTP/1.1"
> 504 192 "-" "Lizmap"
>
> # Logs NGINX "qgis.error"
>
> 2019/10/28 16:41:54 [error] 1675#1675: *7769 upstream timed out (110:
> Connection timed out) while reading response header from upstream,
> client: 127.0.0.1, server: qgis, request: "GET
> /?service=WMS&request=GetCapabilitiesAtlas&map=mymap%2Eqgs HTTP/1.1",
> upstream: "fastcgi://127.0.0.1:7200", host: "127.0.0.1:8200"
>
> # Logs QGIS "qgis-server.log"
>
> 16:41:54 WARNING WMS[1837]: Download of capabilities failed: Operation
> canceled
> 16:41:54 WARNING Network[1837]: Network request
> https://tile.geobretagne.fr/gwc02/service/wms?tiled=true&SERVICE=WMS&REQUEST=GetCapabilities
> timed out
>
> I tried several WMS server and it's always the same behavior.
>
> So my server is unable to access WMS url and I don't know how to fix
> it. If anyone could help me.
>
> Antoine (Lorient, France)
>
>
>
>
> _______________________________________________
> Lizmap mailing list
> Lizmap at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/lizmap
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20191030/0d65beaa/attachment.html>
More information about the Lizmap
mailing list