Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unreleased space after deleting files #44

Open
Niarolf opened this issue Apr 5, 2022 · 1 comment
Open

Unreleased space after deleting files #44

Niarolf opened this issue Apr 5, 2022 · 1 comment
Labels

Comments

@Niarolf
Copy link

Niarolf commented Apr 5, 2022

Description

This issue follow the #37
When we have not enought space in the apache temp filesystem, the temporary files are now deleted in the 1.7.0 version but some space are unrealesed by the qgis_maps process.

Context

Qgis server is using with apache2 and fcgi.
When we call the plugin for a large file, send with a SHP outputFormat for example, the plugin create a gml file, then he converts this one in shp and finally in a zip file.
All theses files are deleted when no error and the final file is send, and when an error is occuring, the plugin stop, send a corrupt file and delete the temporary files but the space is not integrally unrealesed, qgis_maps process keep some space with the deleted files.
We must restart apache to unrealsed the space.

An extract of the lsof command :

COMMAND PID TID TASKCMD USER FD TYPE DEVICE SIZE/OFF NODE NAME
qgis_maps 61436 www-data 20r REG 254,7 681464714 29 /tmp/QGIS_WfsOutputExtension/gml_features_1649074437.4294026.gml (deleted)
qgis_maps 61436 61440 qgis_maps www-data 20r REG 254,7 681464714 29 /tmp/QGIS_WfsOutputExtension/gml_features_1649074437.4294026.gml (deleted)
qgis_maps 61436 61441 QXcbEvent www-data 20r REG 254,7 681464714 29 /tmp/QGIS_WfsOutputExtension/gml_features_1649074437.4294026.gml (deleted)
qgis_maps 61436 61442 Qt\x20bea www-data 20r REG 254,7 681464714 29 /tmp/QGIS_WfsOutputExtension/gml_features_1649074437.4294026.gml (deleted)
qgis_maps 61436 61443 QDBusConn www-data 20r REG 254,7 681464714 29 /tmp/QGIS_WfsOutputExtension/gml_features_1649074437.4294026.gml (deleted)
qgis_maps 61436 61444 QCA::KeyS www-data 20r REG 254,7 681464714 29 /tmp/QGIS_WfsOutputExtension/gml_features_1649074437.4294026.gml (deleted)
qgis_maps 61468 www-data 20r REG 254,7 681464714 37 /tmp/QGIS_WfsOutputExtension/gml_features_1649074453.1260824.gml (deleted)
qgis_maps 61468 61472 qgis_maps www-data 20r REG 254,7 681464714 37 /tmp/QGIS_WfsOutputExtension/gml_features_1649074453.1260824.gml (deleted)
qgis_maps 61468 61473 QXcbEvent www-data 20r REG 254,7 681464714 37 /tmp/QGIS_WfsOutputExtension/gml_features_1649074453.1260824.gml (deleted)
qgis_maps 61468 61474 Qt\x20bea www-data 20r REG 254,7 681464714 37 /tmp/QGIS_WfsOutputExtension/gml_features_1649074453.1260824.gml (deleted)
qgis_maps 61468 61475 QDBusConn www-data 20r REG 254,7 681464714 37 /tmp/QGIS_WfsOutputExtension/gml_features_1649074453.1260824.gml (deleted)
qgis_maps 61468 61476 QCA::KeyS www-data 20r REG 254,7 681464714 37 /tmp/QGIS_WfsOutputExtension/gml_features_1649074453.1260824.gml (deleted)
  • QGIS Server FULL version (with 3 numbers) :
    Qgis Server 3.16.15

  • OS on the server :
    Debian 10.8

@Niarolf Niarolf added the bug label Apr 5, 2022
@Gustry
Copy link
Member

Gustry commented Oct 5, 2022

We are aware but a lot of limitations of this plugin (first getting GML, writing to disk, transforming again the GML etc). We are thinking about a better process with WPS for later.

For your files, we don't have any issue so far for us. Not sure if it's related to Apache, we don't use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants