Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Versioning does not respect users quota #11683

Closed
erkannt opened this issue Oct 8, 2018 · 4 comments
Closed

Versioning does not respect users quota #11683

erkannt opened this issue Oct 8, 2018 · 4 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@erkannt
Copy link

erkannt commented Oct 8, 2018

Steps to reproduce

  1. Create new user with e.g. 1GB quota
  2. Set up Nextcloud sync client
  3. Create 100MB file truncate -s 100M testfile
  4. Repeatedly touch testfile and wait for client to complete sync
  5. Wait for cron.php to be executed

Expected behaviour

Old versions should be deleted until user is back under 50% quota. (see docs)

Actual behaviour

Old versions never get deleted and keep accumulating until disk is full.

➜  testuser pwd
/storage/dockervolumes/nextcloud/app/data/testuser
➜  testuser du -sh *
512     cache
101M    files
11M     files_trashbin
1.1G    files_versions
512     uploads

Server configuration

Docker:
Server:
Engine:
Version: 18.06.0-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.3
Git commit: 0ffa825
Built: Wed Jul 18 19:07:38 2018
OS/Arch: linux/amd64
Experimental: false

Nextcloud version: 14.0.1

Updated from an older Nextcloud/ownCloud or fresh install: Updated via docker-compose pull && docker-compose up -d

Where did you install Nextcloud from:

  • official docker image
  • mariadb, redis:alpine
  • second nextcloud container running cron every 15 minutes
    (According to Admin>Settings this seems to be working)

Signing status:

Signing status ``` No errors have been found. ```

List of activated apps:

App list ``` Enabled: - accessibility: 1.0.1 - activity: 2.7.0 - cloud_federation_api: 0.0.1 - comments: 1.4.0 - dav: 1.6.0 - federatedfilesharing: 1.4.0 - federation: 1.4.0 - files: 1.9.0 - files_external: 1.5.0 - files_markdown: 2.0.4 - files_pdfviewer: 1.3.2 - files_sharing: 1.6.2 - files_texteditor: 2.6.0 - files_trashbin: 1.4.1 - files_versions: 1.7.1 - files_videoplayer: 1.3.0 - firstrunwizard: 2.3.0 - flowupload: 0.0.8 - gallery: 18.1.0 - logreader: 2.0.0 - lookup_server_connector: 1.2.0 - nextcloud_announcements: 1.3.0 - notifications: 2.2.1 - oauth2: 1.2.1 - ojsxc: 3.4.2 - password_policy: 1.4.0 - provisioning_api: 1.4.0 - serverinfo: 1.4.0 - sharebymail: 1.4.0 - support: 1.0.0 - survey_client: 1.2.0 - systemtags: 1.4.0 - theming: 1.5.0 - twofactor_backupcodes: 1.3.1 - updatenotification: 1.4.1 - user_ldap: 1.4.0 - workflowengine: 1.4.0 Disabled: - admin_audit - contacts - drop_account - encryption - metadata - onlyoffice - passwords - previewgenerator - richdocuments - user_external ```

Nextcloud configuration:

Config report
{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "REDACTED"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "REDACTED",
        "dbtype": "mysql",
        "version": "14.0.1.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpsecure": "tls",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "loglevel": 2,
        "versions_retention_obligation": "auto"
    },
    "apps": {
        "accessibility": {
            "enabled": "yes",
            "installed_version": "1.0.1",
            "types": ""
        },
        "activity": {
            "enabled": "yes",
            "installed_version": "2.7.0",
            "types": "filesystem"
        },
        "backgroundjob": {
            "lastjob": "4739"
        },
        "cloud_federation_api": {
            "enabled": "yes",
            "installed_version": "0.0.1",
            "types": "filesystem"
        },
        "comments": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": "logging"
        },
        "contacts": {
            "enabled": "no",
            "installed_version": "2.1.3",
            "types": ""
        },
        "core": {
            "backgroundjobs_mode": "cron",
            "installedat": "1519919870.3129",
            "lastcron": "1539008180",
            "lastupdateResult": "[]",
            "lastupdatedat": "1539002377",
            "moveavatarsdone": "yes",
            "oc.integritycheck.checker": "[]",
            "previewsCleanedUp": "1",
            "public_files": "files_sharing\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "scss.variables": "7a173342cb0e112d3b11053e87e64a8e",
            "shareapi_default_expire_date": "yes",
            "umgmt_show_backend": "true",
            "umgmt_show_email": "true",
            "umgmt_show_last_login": "true",
            "umgmt_show_storage_location": "false",
            "updater.secret.created": "1521379798",
            "vendor": "nextcloud"
        },
        "dav": {
            "buildCalendarSearchIndex": "yes",
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": "filesystem"
        },
        "drop_account": {
            "enabled": "no",
            "installed_version": "0.0.11",
            "types": ""
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": ""
        },
        "federation": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": "authentication"
        },
        "files": {
            "cronjob_scan_files": "500",
            "enabled": "yes",
            "installed_version": "1.9.0",
            "types": "filesystem"
        },
        "files_external": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "filesystem"
        },
        "files_markdown": {
            "enabled": "yes",
            "installed_version": "2.0.4",
            "types": ""
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "installed_version": "1.3.2",
            "types": ""
        },
        "files_sharing": {
            "enabled": "yes",
            "installed_version": "1.6.2",
            "outgoing_server2server_share_enabled": "no",
            "types": "filesystem"
        },
        "files_texteditor": {
            "enabled": "yes",
            "installed_version": "2.6.0",
            "types": ""
        },
        "files_trashbin": {
            "enabled": "yes",
            "installed_version": "1.4.1",
            "types": "filesystem,dav"
        },
        "files_versions": {
            "enabled": "yes",
            "installed_version": "1.7.1",
            "types": "filesystem,dav"
        },
        "files_videoplayer": {
            "enabled": "yes",
            "installed_version": "1.3.0",
            "types": ""
        },
        "firstrunwizard": {
            "enabled": "yes",
            "installed_version": "2.3.0",
            "types": "logging"
        },
        "flowupload": {
            "enabled": "yes",
            "installed_version": "0.0.8",
            "types": ""
        },
        "gallery": {
            "enabled": "yes",
            "installed_version": "18.1.0",
            "types": ""
        },
        "logreader": {
            "enabled": "yes",
            "installed_version": "2.0.0",
            "ocsid": "170871",
            "types": ""
        },
        "lookup_server_connector": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": "authentication"
        },
        "metadata": {
            "enabled": "no",
            "installed_version": "0.6.0",
            "types": ""
        },
        "nextcloud_announcements": {
            "enabled": "yes",
            "installed_version": "1.3.0",
            "pub_date": "Sat, 10 Dec 2016 00:00:00 +0100",
            "types": "logging"
        },
        "notifications": {
            "enabled": "yes",
            "installed_version": "2.2.1",
            "types": "logging"
        },
        "oauth2": {
            "enabled": "yes",
            "installed_version": "1.2.1",
            "types": "authentication"
        },
        "ojsxc": {
            "apiSecret": "HpEDlljG1io8S0rp4nQJnDJ",
            "enabled": "yes",
            "installed_version": "3.4.2",
            "types": "prelogin"
        },
        "onlyoffice": {
            "DocumentServerInternalUrl": "",
            "DocumentServerUrl": "REDACTED",
            "StorageUrl": "",
            "defFormats": "{\"docx\":\"false\",\"xlsx\":\"false\",\"pptx\":\"false\",\"ppsx\":\"false\",\"txt\":\"false\",\"csv\":\"false\"}",
            "enabled": "no",
            "installed_version": "1.3.0",
            "jwt_secret": "",
            "sameTab": "false",
            "settings_error": "Bad Request or timeout error",
            "skey": "1526309672325",
            "types": "filesystem"
        },
        "password_policy": {
            "enabled": "yes",
            "enforceHaveIBeenPwned": "1",
            "installed_version": "1.4.0",
            "types": ""
        },
        "passwords": {
            "SSEv1ServerKey": "REDACTED",
            "enabled": "no",
            "installed_version": "2018.4.1",
            "security\/hibp\/api\/request": "1525099262",
            "types": ""
        },
        "previewgenerator": {
            "enabled": "no",
            "installed_version": "1.0.9",
            "types": "filesystem"
        },
        "provisioning_api": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": "prevent_group_restriction"
        },
        "richdocuments": {
            "enabled": "no",
            "installed_version": "2.0.5",
            "types": "prevent_group_restriction",
            "wopi_url": "REDACTED"
        },
        "serverinfo": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": ""
        },
        "sharebymail": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": "filesystem"
        },
        "support": {
            "enabled": "yes",
            "installed_version": "1.0.0",
            "types": ""
        },
        "survey_client": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": ""
        },
        "systemtags": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": "logging"
        },
        "theming": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "logging"
        },
        "twofactor_backupcodes": {
            "enabled": "yes",
            "installed_version": "1.3.1",
            "types": ""
        },
        "updatenotification": {
            "core": "13.0.2.1",
            "enabled": "yes",
            "files_pdfviewer": "1.2.1",
            "installed_version": "1.4.1",
            "types": "",
            "update_check_errors": "0"
        },
        "user_ldap": {
            "_lastChange": "1538988421",
            "cleanUpJobOffset": "0",
            "enabled": "yes",
            "has_memberof_filter_support": "",
            "installed_version": "1.4.0",
            "ldap_agent_password": "***REMOVED SENSITIVE VALUE***",
            "ldap_base": "REDACTED",
            "ldap_base_groups": "REDACTED",
            "ldap_base_users": "REDACTED",
            "ldap_cache_ttl": "500",
            "ldap_configuration_active": "1",
            "ldap_display_name": "cn",
            "ldap_dn": "REDACTED",
            "ldap_email_attr": "mail",
            "ldap_expert_username_attr": "uid",
            "ldap_group_filter": "(&(|(objectclass=posixGroup))(|(cn=employee)(cn=hiwi)(cn=orga)(cn=wheel)))",
            "ldap_group_member_assoc_attribute": "memberUid",
            "ldap_groupfilter_groups": "REDACTED",
            "ldap_groupfilter_objectclass": "posixGroup",
            "ldap_host": "openldap",
            "ldap_login_filter": "(&(|(objectclass=inetOrgPerson))(|(uid=%uid)))",
            "ldap_loginfilter_attributes": "uid",
            "ldap_loginfilter_email": "0",
            "ldap_port": "389",
            "ldap_quota_def": "5GB",
            "ldap_tls": "0",
            "ldap_turn_on_pwd_change": "1",
            "ldap_userfilter_objectclass": "inetOrgPerson",
            "ldap_userlist_filter": "(|(objectclass=inetOrgPerson))",
            "types": "authentication"
        },
        "workflowengine": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": "filesystem"
        }
    }
}

Are you using external storage, if yes which one: local, but not for this data

Are you using encryption: no

Are you using an external user-backend, if yes which one: LDAP, but not for this testuser

Client configuration

Browser: Firefox

Operating system: Windows 10

Logs

Which logs are of relevance here?

@nextcloud-bot

This comment has been minimized.

@erkannt
Copy link
Author

erkannt commented Oct 8, 2018

Thanks nextcloud-bot.

I have studied the possibly related issues. To my understanding they are not pertinent to this issue.

@skjnldsv skjnldsv added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Jun 12, 2019
@eibex
Copy link

eibex commented Mar 20, 2020

This issue also appears if there is no fixed quota set but the available space on the disk is less than the amount already occupied by the user (i.e. the user is effectively occupying more than 50% of their effective quota).

@skjnldsv
Copy link
Member

Yes, same as trashbin, so you need to adjust your quota accordingly then :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

4 participants