DEPOSITORY_DIR
will indefinitely collect files
#6304
Labels
2 - Exporting Data
Issues that are related to exporting data to DwC, GBIF, IPT, Web Portal, etc.
Describe the bug
When exporting a query or building an export for DwCA, Specify deposits this file into the
DEPOSITORY_DIR
configured for the installation, configured in thespecify_settings.py
file.specify7/specifyweb/settings/specify_settings.py
Lines 75 to 78 in eebbae4
If Specify 7 is installed via Docker, you can enter into a container and find this by going to
/volumes/static-files/depository
, for example, on the host system (here's where the dir is created and here's where it is set):$ docker exec -it specifycloud-herb-rbge-1 bash
Inside the container, you can see how much space is being used here:
Just for this instance, 818 MB of space is being used up by query result exports dating back to 2023!
To Reproduce
Steps to reproduce the behavior:
DEPOSITORY_DIR
location on the container/system hosting Specify 7Expected behavior
There should be some way to automatically clear this out regularly, with a default option (7 days) and the possibility to configure this to any limit (30 days, 6 months, 1 year).
Version
This is happening in
v7.9.6.2
andv7.10.0
, but has almost certainly been an issue since the system was introduced.Reported By
Bill Kuntz at Florida Museum of Natural History, University of Florida on the Speciforum
The text was updated successfully, but these errors were encountered: