<!--
Thanks for reporting issues back to Nextcloud!
Note: This is the **issu…e tracker of Nextcloud**, please do NOT use this to get answers to your questions or get help for fixing your installation. This is a place to report bugs to developers, after your server has been debugged. You can find help debugging your system on our home user forums: https://help.nextcloud.com or, if you use Nextcloud in a large organization, ask our engineers on https://portal.nextcloud.com. See also https://nextcloud.com/support for support options.
Nextcloud is an open source project backed by Nextcloud GmbH. Most of our volunteers are home users and thus primarily care about issues that affect home users. Our paid engineers prioritize issues of our customers. If you are neither a home user nor a customer, consider paying somebody to fix your issue, do it yourself or become a customer.
Guidelines for submitting issues:
* Please search the existing issues first, it's likely that your issue was already reported or even fixed.
- Go to https://github.com/nextcloud and type any word in the top search/command bar. You probably see something like "We couldn’t find any repositories matching ..." then click "Issues" in the left navigation.
- You can also filter by appending e. g. "state:open" to the search string.
- More info on search syntax within github: https://help.github.com/articles/searching-issues
* This repository https://github.com/nextcloud/server/issues is *only* for issues within the Nextcloud Server code. This also includes the apps: files, encryption, external storage, sharing, deleted files, versions, LDAP, and WebDAV Auth
* SECURITY: Report any potential security bug to us via our HackerOne page (https://hackerone.com/nextcloud) following our security policy (https://nextcloud.com/security/) instead of filing an issue in our bug tracker.
* The issues in other components should be reported in their respective repositories: You will find them in our GitHub Organization (https://github.com/nextcloud/)
* You can also use the Issue Template app to prefill most of the required information: https://apps.nextcloud.com/apps/issuetemplate
-->
### Steps to reproduce
1. Nextcloud server without user quota configured
2. Configuration parameter `trashbin_retention_obligation` set to upper limit `auto`
3. Hard disk space reasonably filled up with files (> 50%)
4. Delete some files
### Expected behaviour
After the minimum retention time has expired, oldest files in the trashbin should be permanently, because "space is needed".
See description of the parameter `trashbin_retention_obligation` at https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/config_sample_php_parameters.html#deleted-items-trash-bin.
### Actual behaviour
No files are deleted from the trashbin.
The upper limit `auto` (which is hard coded and means 50%) has no effect if no user quota is configured.
The decision whether "space is needed" doesn't take the available hard disk space into account, but only the user quota.
In effect, the harddisk gets filled up with trash files!
see also this discussion: https://help.nextcloud.com/t/trashbin-without-user-quota/118726
### Server configuration
**Operating system:** Ubuntu
**Web server:** Apache
**Database:** MariaDB
**PHP version:** latest Ubuntu
**Nextcloud version:** 21.0.2
**Updated from an older Nextcloud/ownCloud or fresh install:** updated
**Where did you install Nextcloud from:** terminal
**Signing status:** self-signed certificate
<details>
<summary>Signing status</summary>
```
Login as admin user into your Nextcloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
No errors have been found.
```
</details>
**List of activated apps:**
<details>
<summary>App list</summary>
```
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
Enabled:
- accessibility: 1.7.0
- activity: 2.14.3
- admin_audit: 1.11.0
- apporder: 0.12.0
- audioplayer: 3.1.0
- audioplayer_editor: 0.3.0
- audioplayer_sonos: 1.2.0
- bookmarks: 4.2.2
- bruteforcesettings: 2.2.0
- calendar: 2.2.2
- camerarawpreviews: 0.7.11
- checksum: 1.1.2
- cloud_federation_api: 1.4.0
- comments: 1.11.0
- contacts: 3.5.1
- contactsinteraction: 1.2.0
- dashboard: 7.1.0
- dav: 1.17.1
- deck: 1.4.2
- duplicatefinder: 0.0.8
- epubreader: 1.4.6
- event_update_notification: 1.2.0
- external: 3.8.2
- extract: 1.3.1
- facerecognition: 0.8.2
- federatedfilesharing: 1.11.0
- federation: 1.11.0
- files: 1.16.0
- files_antivirus: 3.2.1
- files_downloadactivity: 1.10.0
- files_external: 1.12.0
- files_fulltextsearch: 21.0.2
- files_mindmap: 0.0.24
- files_pdfviewer: 2.1.0
- files_rightclick: 1.0.0
- files_sharing: 1.13.1
- files_trashbin: 1.11.0
- files_versions: 1.14.0
- files_videoplayer: 1.10.0
- firstrunwizard: 2.10.0
- fulltextsearch: 21.0.1
- fulltextsearch_elasticsearch: 21.0.1
- gpxmotion: 0.1.0
- gpxpod: 4.2.8
- groupfolders: 9.0.2
- logreader: 2.6.0
- lookup_server_connector: 1.9.0
- mail: 1.9.5
- maps: 0.1.8
- metadata: 0.13.0
- music: 1.2.0
- news: 15.4.5
- nextcloud_announcements: 1.10.0
- notes: 4.0.4
- notifications: 2.9.0
- oauth2: 1.9.0
- password_policy: 1.11.0
- passwords: 2021.6.20
- photos: 1.3.0
- previewgenerator: 3.1.1
- privacy: 1.5.0
- provisioning_api: 1.11.0
- quickaccesssorting: 1.1.2
- recommendations: 1.0.0
- richdocuments: 4.1.2
- serverinfo: 1.11.0
- settings: 1.3.0
- sharebymail: 1.11.0
- side_menu: 1.23.1
- spreed: 11.2.2
- support: 1.4.0
- survey_client: 1.9.0
- systemtags: 1.11.0
- tasks: 0.13.6
- text: 3.2.0
- theming: 1.12.0
- twofactor_backupcodes: 1.10.0
- updatenotification: 1.11.0
- user_status: 1.1.1
- video_converter: 1.0.1
- viewer: 1.5.0
- weather_status: 1.1.0
- workflowengine: 2.3.0
Disabled:
- encryption
- files_fulltextsearch_tesseract
- ocr
- user_ldap
```
</details>
**Nextcloud configuration:**
<details>
<summary>Config report</summary>
```
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"***",
"***"
],
"overwrite.cli.url": "https:\/\/***\/nextcloud",
"htaccess.RewriteBase": "\/nextcloud",
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "21.0.2.1",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"memcache.local": "\\OC\\Memcache\\Redis",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"filelocking.enabled": true,
"mail_smtpmode": "smtp",
"mail_smtpsecure": "tls",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "587",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"maintenance": false,
"loglevel": 0,
"app_install_overwrite": [
"bookmarks_fulltextsearch",
"quickaccesssorting",
"ocr",
"files_downloadactivity",
"checksum"
],
"loglevel:9": "",
"preview_max_x": "2048",
"preview_max_y": "2048",
"jpeg_quality": "60",
"theme": "",
"ldapIgnoreNamingRules": false,
"ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
"default_phone_region": "DE",
"trashbin_retention_obligation": "90, auto"
}
}
```
</details>
**Are you using external storage, if yes which one:** none
**Are you using encryption:** no
**Are you using an external user-backend, if yes which one:** no
### Client configuration
**Browser:** Firefox
**Operating system:** MS Win 10