Hi, I set up a CRON to handle cleaning on our local Galaxy 17.05 server.
xxx/galaxy/config/galaxy.ini -d 10 -r -1
xxx/galaxy/config/galaxy.ini -d 10 -r -2
xxx/galaxy/config/galaxy.ini -d 10 -r -3
xxx/galaxy/config/galaxy.ini -d 10 -r -4
xxx/galaxy/config/galaxy.ini -d 10 -r -5
xxx/galaxy/config/galaxy.ini -d 10 -r -6
It looks working as it says for histories for example :
Processing history id 11 (Unnamed history)
Purging history id 11
Processing history id 13 (Unnamed history)
Purging history id 13
Processing history id 15 (Unnamed history)
Purging history id 15
Processing history id 16 (Unnamed history)
Purging history id 16
Processing history id 17 (Unnamed history)
Purging history id 17
Processing history id 18 (Unnamed history)
Purging history id 18
Purged 6 histories.
Elapsed time: 0.288854122162
For dataset I get a message saying : "No such file or folder "
Removing disk, file xxx/galaxy/scripts/my_scripts/database/files/000/dataset_994.dat
Error, dataset file has already been removed: [Errno 2] Aucun fichier ou dossier de ce type: 'xxx/galaxy/scripts/my_scripts/database/files/000/dataset_994.dat'
Purging dataset id 994
Removing disk, file xxx/galaxy/scripts/my_scripts/database/files/000/dataset_991.dat
Error, dataset file has already been removed: [Errno 2] Aucun fichier ou dossier de ce type: 'xxx/galaxy/scripts/my_scripts/database/files/000/dataset_991.dat'
Purging dataset id 991
Purged 116 datasets
Freed disk space: 15757221243
Elapsed time: 5.19438910484
However, if I look at the local server disk space, no space is free. Do I miss something ? I notice that in https://github.com/galaxyproject/galaxy/tree/dev/scripts/cleanup_datasets there are other scripts like admin_cleanup_datasets.py Should I include them at some point?
Thanks,