Owncloud is running full


Hello ownCloud Community,

somehow I can no longer make sense of my fully running cloud. Maybe one of you has a tip for me what I can do. I use the installation with a few people, after a major update from 10.0.8 to 10.9.1 a few days ago I got the warning in the client get little space. None of the others have posted unusually large or many files online.
My first suspicion was the caching and the versions, but I can’t get any further.

First I have from the config.php the entry of

'versions_retention_obligation' => 14, 0 => 30,

changed to the following:

'versions_retention_obligation' => 'auto, 1',

Then I ran these commands.

1. occ trashbin:cleanup
2. occ trashbin:expire
3. occ versions:cleanup
4. occ versions:expire

Expected behaviour

The available hard disk space should increase significantly, from currently 97% used to about 60% used.

Actual behaviour

The executed commands were executed successfully without errors. The available disk space is still at 97%.

Server configuration

rovider : Alfahosting

Operating system : Ubuntu 20.04 LTS, Plesk Obsidian Version 18.0.43

Web server: Apache, Nginx

Database: MySQL

PHP version: 7.4

ownCloud version: 10.9.1

Updated from an older ownCloud or fresh install:
fresh install

Where did you install ownCloud from:
about the Browser with the zip image.

Signing status (ownCloud 9.0 and above):

No errors have been found.
No errors have been found.

The content of config/config.php:

$CONFIG = array(
    'instanceid' => '',
    'passwordsalt' => 'PASSWORD',
    'secret' => '',
    'trusted_domains' =>
            0 => 'subdomain.domain.tld',
    'datadirectory' => '/var/www/vhosts/domain.de\/oc_data',
    'overwrite.cli.url' => 'https://subdomain.domain.de/owncloud',
    'dbtype' => 'mysql',
    'version' => '',
    'dbname' => 'myDatebase',
    'dbhost' => 'localhost:3306',
    'dbtableprefix' => 'oc_',
    'dbuser' => 'myDbUser',
    'dbpassword' => myPassword',
    'logtimezone' => 'UTC',
    'installed' => true,
    'loglevel' => 0,
    "system": {
        "instanceid": "octgld60nt5t",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
        "datadirectory": "\/var\/www\/vhosts\/NAME\/data_oc",
        "overwrite.cli.url": "https:\/\/MEINE-TLD.DE",
        "dbtype": "mysql",
        "version": "",
        "dbname": "MEINE-DB",
        "dbhost": "localhost:3306",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "theme": "",
        "loglevel": 1,
        "maintenance": false,
        "filelocking.enabled": false,
        "default_language": "de",
        "enable_certificate_management": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "php",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "enable_previews": false,
        "mail_smtpport": "993",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "allow_user_to_change_mail_address": "",
        "debug": false,
        "defaultapp": "files",
        "session_lifetime": 28800,
        "remember_login_cookie_lifetime": 28800,
        "trashbin_retention_obligation": 7,
        "trashbin_skip_size_threshold": "500MB",
        "versions_retention_obligation": "auto, 1",
        "integrity.excluded.files": [
        "singleuser": false

List of activated apps:

 - activity:
    - Version: 2.7.0
    - Path: /var/www/vhosts/MEINECLOUD/apps/activity
  - calendar:
    - Version: 1.6.4
    - Path: /var/www/vhosts/MEINECLOUD/apps/calendar
  - comments:
    - Version: 0.3.0
    - Path: /var/www/vhosts/MEINECLOUD/apps/comments
  - configreport:
    - Version: 0.2.0
    - Path: /var/www/vhosts/MEINECLOUD/apps/configreport
  - customgroups:
    - Version: 0.6.2
    - Path: /var/www/vhosts/MEINECLOUD/apps/customgroups
  - dav:
    - Version: 0.7.0
    - Path: /var/www/vhosts/MEINECLOUD/apps/dav
  - diagnostics:
    - Version: 0.1.4
    - Path: /var/www/vhosts/MEINECLOUD/apps/diagnostics
  - encryption:
    - Version: 1.5.1
    - Path: /var/www/vhosts/MEINECLOUD/apps/encryption
  - federatedfilesharing:
    - Version: 0.5.0
    - Path: /var/www/vhosts/MEINECLOUD/apps/federatedfilesharing
  - files:
    - Version: 1.5.2
    - Path: /var/www/vhosts/MEINECLOUD/apps/files
  - files_external:
    - Version: 0.8.0
    - Path: /var/www/vhosts/MEINECLOUD/apps/files_external
  - files_sharing:
    - Version: 0.14.0
    - Path: /var/www/vhosts/MEINECLOUD/apps/files_sharing
  - files_trashbin:
    - Version: 0.9.1
    - Path: /var/www/vhosts/MEINECLOUD/apps/files_trashbin
  - guests:
    - Version: 0.9.3
    - Path: /var/www/vhosts/MEINECLOUD/apps/guests
  - market:
    - Version: 0.6.3
    - Path: /var/www/vhosts/MEINECLOUD/apps/market
  - notifications:
    - Version: 0.5.4
    - Path: /var/www/vhosts/MEINECLOUD/apps/notifications
  - password_policy:
    - Version: 2.1.4
    - Path: /var/www/vhosts/MEINECLOUD/apps/password_policy
  - provisioning_api:
    - Version: 0.5.0
    - Path: /var/www/vhosts/MEINECLOUD/apps/provisioning_api
  - systemtags:
    - Version: 0.3.0
    - Path: /var/www/vhosts/MEINECLOUD/apps/systemtags
  - updatenotification:
    - Version: 0.2.1
    - Path: /var/www/vhosts/MEINECLOUD/apps/updatenotification```

**Are you using external storage, if yes which one:** local/smb/sftp/...
**Are you using encryption:** yes/no
**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...

### Client configuration

**Operating system:**

### Logs

Firefox, Safari, Edge, Chrome

Operating system:
Windows 11, macOS 12.3.1

#### ownCloud log (data/owncloud.log)

there is no information about this process (loglevel 0)

#### Browser log
```there is no information about this process (loglevel 0)

If anyone have an idea, please give me an call.
Thanks, Steffen

IMHO this in not correct. It should be one of:

  • ’auto’ default setting. Keeps files and folders in the deleted files for up to 30 days, automatically deleting them (at any time) if space is needed. Note: files may not be removed if space is not required.

  • ’D, auto’ keeps files and folders in the trash bin for D+ days, delete anytime if space needed (Note: files may not be deleted if space is not needed)

  • ’auto, D’ delete all files in the trash bin that are older than D days automatically, delete other files anytime if space needed

  • ’D1, D2’ keep files and folders in the trash bin for at least D1 days and delete when exceeds D2 days

  • ’disabled’ trash bin auto clean disabled, files and folders will be kept forever

IIRC this might take some time, it will be executed in the background. But I might be wrong, of course.

You might also have a look at the thumbnails.

$ find <data_dir> -type d -name 'thumbnails' -exec du -hs {} \;

Got one more:

I assume you have a reason for logging with debug-level. But beware the size of the log file, and have a suitable log-rotation in effect.

Need proof of this. Maybe you simply have too many files but no versions or nothing in the trashbin. Try to run a du in the ownCloud’s data directory to have an idea of how much data is in each folder.

As alfradb said, thumbnails and logs can also take some space.

Hello Alfred,

thanks for your fast answer. :slight_smile:

"trashbin_retention_obligation": 7,

I correct it, thanks for that tipp.

There a not realy much MB the biggest size at one user is 110mb.

1 Like

The logging was still at loglevel 0 due to ownCloud not being up and running for long. The log file is now 4mb in size.

I changed it to loglevel 3.

Hello jvillafanez,

thanks for your response.

Yesterday i had run, these comands. They had cleared the trash and the versions. But the diskspace

1. occ trashbin:cleanup
2. occ trashbin:expire
3. occ versions:cleanup
4. occ versions:expire

I carried out these orders yesterday. You have emptied the recycle bin and discarded the versions. However, the commands have not had any noticeable effect on the memory space used so far.
What else could it be?

Many thanks for your help and your ideas.

Out of curiosity: Have you set any quota for your users?

I found the error, it’s not the owncloud. :slight_smile: There are n whole parts that are in the Linux backup system. :rofl:

Thanks for your help. :+1:

1 Like