[QGIS-Developer] [QGIS-server] Messages: QNetworkDiskCache::prepare() unable to open temporary file
Giovanni Manghi
giovanni.manghi at naturalgis.pt
Tue Apr 9 15:30:41 PDT 2024
Hi Richard,
the only way I found to have that log message go away is to add manually
[cache]
directory=/path/to/qgis_cache_folder
inside QGIS3.ini wherever your QGIS server installation has created it.
>From the QGIS Server docs it seems to me that setting
"QGIS_SERVER_CACHE_DIRECTORY" in the virtual host should be enough, but it
never worked for me. Maybe I'm not understanding the docs the right way.
Maybe a QGIS Server dev can shed some light here.
This question has been raised few times and really never got a clear
answer, see for example
https://click.pstmrk.it/3ts/www.mail-archive.com%2Fqgis-developer%40lists.osgeo.org%2Fmsg52927.html/InJh/J420AQ/AQ/e672aec2-69f8-43ce-9048-38e907e1991b/1/jSBp6hhw_L
https://click.pstmrk.it/3ts/www.mail-archive.com%2Fqgis-user%40lists.osgeo.org%2Fmsg48102.html/InJh/J420AQ/AQ/e672aec2-69f8-43ce-9048-38e907e1991b/2/o3sFEoAawm
cheers
-- G --
Hi,
>
> I'm testing a QGISserver setup in which the project is cascading a WMTS
> (MapProxy).
>
> Performance is not so good... so I fiddled with
>
> QGIS_SERVER_CACHE_DIRECTORY=/cache
> and even with ??
> QGIS_OPTIONS_PATH=/cache
>
> where /cache is a mounted internal cache dir
>
> Is see QGISserver write all the stuff in /cache which I know from QGIS
> (profile dir) itself:
>
> # from within the container:
> # ls /cache
> bookmarks.xml data8 fonts gdal_pam oauth2-cache palettes prepared
> qgis-auth.db qgis.db symbology-style.db
>
> But I keep seeing a lot of messages in the logs:
> QNetworkDiskCache::prepare() unable to open temporary file
> QNetworkDiskCache::prepare() unable to open temporary file
> ...
>
> So my question is, WHERE does Qt try to create the network cache...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20240409/7aca6105/attachment.htm>
More information about the QGIS-Developer
mailing list