<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Antoine,<br>
<br>
QGIS Server needs a profile directory in which it can create cache
directories and read the QGIS3.ini file.<br>
<br>
To do so you have to add a environment variable : HOME or
QGIS_CUSTOM_CONFIG_PATH<br>
<br>
If you add the HOME variable, QGIS Server will create the default
profile path in it: .local/share/QGIS/QGIS3/profiles/default/<br>
In this profile path, it will create all needed files and directory<br>
In this profile path it will search the file QGIS3.ini in the QGIS
directory.<br>
<br>
For exemple, if you set HOME=/srv/qgis<br>
QGIS server will create
/srv/qgis/.local/share/QGIS/QGIS3/profiles/default/<br>
In this directory, it will create all needed files and directory<br>
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<br>
<br>
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.<br>
<br>
For exemple, if you set QGIS_CUSTOM_CONFIG_PATH=/srv/qgis/profile<br>
If you need to define some config, you have to create
/srv/qgis/profile/QGIS directory and
/srv/qgis/profile/QGIS/QGIS3.ini file<br>
<br>
You can define the both like that:<br>
* HOME=/srv/qgis<br>
* QGIS_CUSTOM_CONFIG_PATH=/srv/qgis/profile<br>
<br>
If you have a proxy, you have to define the QGIS3.ini<br>
<br>
Regards,<br>
René-Luc<br>
<br>
<div class="moz-cite-prefix">Le 29/10/2019 à 17:35, DAUCE Antoine a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:EED1A99F1EA16E40A06CA868100DC9EB02B973DC@Ex111.rcval.fr">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" id="owaParaStyle"></style>
<div style="direction: ltr;font-family: Tahoma;color:
#000000;font-size: 10pt;">Hi,<br>
I'm new on a lizmap server administration.<br>
The one I have to maintain is on the folowing configuration :<br>
- Linux<br>
- QGIS-SERVER : 3.4.12<br>
- LIZMAP-WEB-CLIENT : 3.4pre.190808<br>
<br>
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.<br>
Every time we try to open such map it's loading continuously.<br>
<br>
Here is below what I found in the different logs files :<br>
<br>
# Logs from lizmap client administration<br>
<br>
2019-10-28 16:41:54 194.250.123.209 warning 2019-10-28
16:41:54 [2]
file_get_contents(<a class="moz-txt-link-freetext" href="http://127.0.0.1:8200?service=WMS&request=GetCapabilitiesAtlas&map=mymap%2Eqgs">http://127.0.0.1:8200?service=WMS&request=GetCapabilitiesAtlas&map=mymap%2Eqgs</a>):
failed to open stream: HTTP request failed! HTTP/1.1 504 Gateway
Time-out<br>
/srv/lizmap-web-client/lizmap/modules/lizmap/classes/lizmapProxy.class.php
236<br>
<br>
# Logs NGINX "error.log"<br>
<br>
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:
<a class="moz-txt-link-rfc2396E" href="https://myserver/index.php/view/map/?repository=1&project=myproject">"https://myserver/index.php/view/map/?repository=1&project=myproject"</a><br>
<br>
# Logs NGINX "qgis.access"<br>
<br>
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"<br>
<br>
# Logs NGINX "qgis.error"<br>
<br>
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"<br>
<br>
# Logs QGIS "qgis-server.log"<br>
<br>
16:41:54 WARNING WMS[1837]: Download of capabilities failed:
Operation canceled<br>
16:41:54 WARNING Network[1837]: Network request
<a class="moz-txt-link-freetext" href="https://tile.geobretagne.fr/gwc02/service/wms?tiled=true&SERVICE=WMS&REQUEST=GetCapabilities">https://tile.geobretagne.fr/gwc02/service/wms?tiled=true&SERVICE=WMS&REQUEST=GetCapabilities</a>
timed out<br>
<br>
I tried several WMS server and it's always the same behavior.<br>
<br>
So my server is unable to access WMS url and I don't know how to
fix it. If anyone could help me.<br>
<br>
Antoine (Lorient, France)<br>
<div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<table cellpadding="0" border="0">
<tbody>
<tr style="height:89.7pt" height="149">
<td style="height:89.7pt; padding:7.5pt 7.5pt 0 0"
valign="top"><br>
</td>
<td style="height:89.7pt; padding:0.75pt 7.5pt
0.75pt 0.75pt" valign="top"><br>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Lizmap mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lizmap@lists.osgeo.org">Lizmap@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/lizmap">https://lists.osgeo.org/mailman/listinfo/lizmap</a>
</pre>
</blockquote>
<br>
</body>
</html>