I’m running Owncloud 10.13.3 on my home Kubernetes cluster where I have a persistent volume mounted into /mnt/data on which all the config, apps, and data are stored. All well and good.
However in the process of setting up automated backups of data
I found the sessions
directory contains about 80,000 files all with a single line of content looking something like:
encrypted_session_data|s:325:"v2|...............";root@
I’ve excluded this from backups for now, but I’m concerned because it looks like the files here are not being cleaned up, and at some point I’m going to run out of inodes on the filesystem and things may grind to a halt.
Does anyone know whether there is a way to keep this directory trimmed?
Currently my hypothesis is that the sessions from this directory are the result of the various background connections from the macos and android apps I have running, but I don’t see any documentation to that effect. What gives?
Expected behaviour
The /mnt/data/sessions directory does not grow endlessly.
Actual behaviour
The /mnt/data/sessions directory is full of 80k files and growing at about 18 every minute.
Server configuration
Operating system: Linux container
Web server: Apache
Database: Mariadb
PHP version: 7.4.3
ownCloud version: 10.13.3
Updated from an older ownCloud or fresh install: Fresh
Where did you install ownCloud from: docker.io/owncloud/server:10.13.3
Signing status (ownCloud 9.0 and above):
No errors have been found.
The content of config/config.php:
Uploaded at gist.github.com/astromechza/49c2981a8816fd3ad8fd04c7dbe54527
Are you using external storage, if yes which one: No
Are you using encryption: No
Are you using an external user-backend, if yes which one: No