flask-session full

I would be pleased to have an advice on a problem occuring on my local installation of indico.

We cannot log anymore on the system and we get the following error in the indico.log file
“No space left on device: /opt/indico/cache/generic_cache/flask-session/8df1/8df13798”

We see that indico has created thousands of files in this flask-session folder and that the file system has no more inode available.

Our immediate solution is to remove these thousands of files.
How can we manage the tuning and the cleanup of the sessions cache in the system?

Thank you for your help

I would strongly recommend you to use redis for the cache. This is actually the default used in our setup guide.

However, if celery is running then there should be a task that automatically deletes old files from the tmp and cache folders.