Trash bin does not delete files - disk full

Hi,

We are running a Owncloud Server 9.1.3 with external Storage. The storage is a windows server we connect over SMB/CIFS to 4 shared folders with special permissions.

We noticed that owncloud server stores the deleted files on the local drive and after a while we ran out of disk space because of that. I am speaking about following trash bin folder path (Its the SID from the user over ldap):

root@MRH-OWNCLOUD:/var/www/owncloud/data/0BF22EC2-5A60-48B4-BF2F-74C93F3375B3# du -shx ./* | sort -h
4.0K ./files
40K ./cache
1.4M ./thumbnails
9.6G ./files_versions
14G ./files_trashbin

We tried different settings in config.php for 'trashbin_retention_obligation' but it doesn't delete any data in the trashbin folder. Now we have following settings:

'trashbin_retention_obligation' => auto,1

So it should actually delete the files in the trash bin that are older than 1 day automatically.

Can somebody help me to get this fixed?

Regards
Raphael

Steps to reproduce

1.
2.
3.

Expected behaviour

It should delete the the trash bin after 1 day

Actual behaviour

Does not delete any trash bin or file history folder

Server configuration

Ubuntu 16.10

Web server:
apache2
Database:
mysql 9.1.3.1
PHP version:

ownCloud version: (see ownCloud admin page)

Updated from an older ownCloud or fresh install:

Where did you install ownCloud from:

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

The content of config/config.php:
'trashbin_retention_obligation' => auto,1

Hello? Looks for me nobody knows an answer?

There are some steps to check first, like what the cron jobs look like, etc. seems like that one is not running: https://github.com/owncloud/core/issues/22537
For your users: Honestly you will need some more space here, 1 day trashbin is not sufficient! Versioning does also store the files in primary storage.

That link doesn't work for me. I guess my CronJob is running normaly and the entry for the job i also have in the database:

+---------------------------------------------------+-------------+------------+------------+
| class | num_entries | oldest | newest |
+---------------------------------------------------+-------------+------------+------------+
| OCA\Activity\BackgroundJob\EmailNotification | 1 | 1506330826 | 1506330826 |
| OCA\Activity\BackgroundJob\ExpireActivities | 1 | 1506256201 | 1506256201 |
| OCA\DAV\CardDAV\SyncJob | 1 | 1506256204 | 1506256204 |
| OCA\Federation\SyncJob | 1 | 1506258001 | 1506258001 |
| OCA\Files\BackgroundJob\CleanupFileLocks | 1 | 1506331517 | 1506331517 |
| OCA\Files\BackgroundJob\DeleteOrphanedItems | 1 | 1506329102 | 1506329102 |
| OCA\Files\BackgroundJob\ScanFiles | 1 | 1506331516 | 1506331516 |
| OCA\Files_Sharing\DeleteOrphanedSharesJob | 1 | 1506331516 | 1506331516 |
| OCA\Files_Sharing\ExpireSharesJob | 1 | 1506256205 | 1506256205 |
| OCA\Files_Trashbin\BackgroundJob\ExpireTrash | 1 | 1506330003 | 1506330003 |
| OCA\Files_Versions\BackgroundJob\ExpireVersions | 1 | 1506330003 | 1506330003 |
| OCA\UpdateNotification\Notification\BackgroundJob | 1 | 1506256201 | 1506256201 |
| OCA\User_LDAP\Jobs\CleanUp | 1 | 1506330003 | 1506330003 |
| OCA\User_LDAP\Jobs\UpdateGroups | 1 | 1506331517 | 1506331517 |
| \OC\Authentication\Token\DefaultTokenCleanupJob | 1 | 1506331517 | 1506331517 |
+---------------------------------------------------+-------------+------------+------------+

I can run sudo -u www-data php cron.php

But also the Trashbin will not deleted.

Any idea how to fix this problems before the server rans full again?

Thanks

Debug cron Finished OCA\User_LDAP\Jobs\CleanUp job with ID 15 2017-09-25T09:30:45+00:00