[Lizmap] Lizmap/qgis server : cache management (seeding)
René-Luc Dhont
rldhont at gmail.com
Mon May 22 02:54:57 PDT 2023
Hi Laurent,
Your `wmts:capabilities` command does not have the right parameters.
You have written
```
php lizmap/console.php wmts:capabilities -v dr0 forages_2154
```
But `dr0` is not the repository of the `forages_2154` project. `dr0` is
also a project.
The repository of the `forages_2154` and `dr0` projects is `lizmaptest`.
With the command `php lizmap/console.php project:load`, you got :
* Enter the repository lizmaptest
* Get the project forages_2154
* Get the project dr0
If you want to try the cache capabilities for `forages_2154` project.
The command is
```
php lizmap/console.php wmts:capabilities -v lizmaptest forages_2154
```
Regards,
René-Luc
Le 16/05/2023 à 12:08, celati Laurent a écrit :
> Good morning,
>
> Thanks for your message, i have currently one only Qgis server
> installed/available.
> Sorry but what do you mean by "enhance the number of QGIS Server
> available ?"
>
> Following to my previous message, regarding my initial and main issue,
> For information, when i do :
>
> php lizmap/console.php project:load
> i get :
> //var/www/lizmap/lizmap-web-client-3.6.3# php lizmap/console.php
> project:load Enter the repository lizmaptest Get the project zios 1
> request(s) return success for the project zios Enter the repository
> aero Get the project aero_v2 1 request(s) return success for the
> project aero_v2 Enter the repository dr0 Get the project forages 1
> request(s) return success for the project forages Get the project
> forages_2154 1 request(s) return success for the project forages_2154
> Get the project dr0 1 request(s) return success for the project dr0
> Get the project forages_2154_with_fond 1 request(s) return success for
> the project forages_2154_with_fond/
> //
> /But when i do : /
> /php lizmap/console.php wmts:capabilities -v dr0 forages_2154 No
> layers configured with cache!/
> //
> /Do you know where the problem comes from ?/
> In parrarel, always with the aim of improving performance, i tried to edit my vhost apache in adding :
> FcgidInitialEnv QGIS_SERVER_PARALLEL_RENDERING "1"
> and
> FcgidInitialEnv QGIS_SERVER_CACHE_DIRECTORY "/tmp/"
> (Is it a good idea or i should rather keep the default value ('cache in profile directory') ?
> i setted this path because into my lizmap cache config i noticed : cache root directory : /tmp/)
> Still in parralel, I discovered the existence of these 2 qgis server plugins. Would it be adviced to installing them?
> https://github.com/3liz/qgis-server-wmts-cache-plugin
> https://github.com/3liz/qgis-server-tiles-plugin
>
> Eventually, I'm taking the liberty to paste below an update of my qgis server logs :
> I'm surprised to not read in the environment summary logs, the new enviro variables 'FcgidInitialEnv QGIS_SERVER_PARALLEL_RENDERING'
> and 'FcgidInitialEnv QGIS_SERVER_CACHE_DIRECTORY'
> How to ensure that the cache server is functional and taken into account?
> 11:30:43 INFO Server[919778]: ******************** New request
> *************** 11:30:43 INFO Server[919778]: Request URL:
> http://sig-rec.andra.fr/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json
> 11:30:43 INFO Server[919778]: Environment: 11:30:43 INFO
> Server[919778]: ------------------------------------------------
> 11:30:43 INFO Server[919778]: SERVER_NAME: sig-rec.andra.fr
> <http://sig-rec.andra.fr> 11:30:43 INFO Server[919778]: REQUEST_URI:
> /cgi-bin/qgis_mapserv.fcgi/lizmap/server.json 11:30:43 INFO
> Server[919778]: SCRIPT_NAME: /cgi-bin/qgis_mapserv.fcgi 11:30:43 INFO
> Server[919778]: PATH_INFO: /lizmap/server.json 11:30:43 INFO
> Server[919778]: REMOTE_ADDR: 192.168.4.7 11:30:43 INFO Server[919778]:
> SERVER_PORT: 80 11:30:43 INFO Server[919778]: QUERY_STRING: 11:30:43
> INFO Server[919778]: REQUEST_METHOD: GET 11:30:43 INFO Server[919778]:
> QGIS_PROJECT_FILE: /home/qgis/projects/world.qgs 11:30:43 INFO
> Server[919778]: SERVER_PROTOCOL: HTTP/1.1 11:30:43 INFO
> Server[919778]: Using configuration file path from environment:
> /home/qgis/projects/world.qgs 11:30:43 INFO Lizmap[919778]: Request
> headers provided 11:30:43 INFO Lizmap[919778]: No lizmap user groups
> in request headers 11:30:43 INFO Server[919778]: Using configuration
> file path from environment: /home/qgis/projects/world.qgs 11:30:43
> INFO Server[919778]: Trying URL path:
> '/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json' for '/lizmap' 11:30:43
> INFO Server[919778]: API Lizmap accepts the URL path
> '/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json' 11:30:43 INFO
> Server[919778]: Checking API path /server.json for server.json
> 11:30:43 INFO Server[919778]: API Lizmap: found handler server
> 11:30:43 CRITICAL Server[919778]: Service ATLAS is not registered
> 11:30:43 CRITICAL Server[919778]: Service CADASTRE is not registered
> 11:30:43 INFO Server[919778]: Request finished in 6 ms
>
> Thans a lot again for your usefull help ans support.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20230522/bbb4d3a8/attachment.htm>
More information about the Lizmap
mailing list