Storage full but files from over a year ago

Hi,I just posted a message about deleted files but just loged in and its worse than I thought. Thought it better to post this seperatly, hope that is OK.

I am getting ‘PS just logged in and got ‘Your storage is full, files can not be updated or synced anymore!’ but when I look at deleted files’
But when I look in my user I see deleted files olver than a year.

Any idea what is going on and how I can fix this?

In a worst case you can use occ trashbin:cleanup username to completely empty the trashbin, otherwise occ trashbin:expire username should suffice since the default lifespan is 30 days. I don’t know why it doesn’t work for you automatically, usually it should clean up the trashbin every time a file gets moved into the trash

1 Like

First I should say the serer is 10.8.0 and there is no `trashbin_retention_obligation set (see config.php below). I have been asked to upgrade the server but the data disk is full so firast I want to sort this out. what should trashbin_retention_obligation be set to. Looked at user manual and cant work it out.

Anyway it does not seem to be working

ben@sun:/var/www/owncloud/config$ sudo -u  www-data  /var/www/owncloud/occ  trashbin:expire master
Auto expiration is configured - expiration will be handled automatically.

but there are a lot of old files in /data/owncloud/data/master/files_trashbin/files, here are just a few.

-rw-r--r--  1 www-data www-data   16034234 Jan 20  2017 'WORKSHOP FLYER.psd.d1630587054'
-rw-r--r--  1 www-data www-data    1186040 Jan 29  2018  workshop_flyers.jpg.d1604924565
drwxr-xr-x  2 www-data www-data       4096 Nov 26  2018  Workshops.d1543230153
drwxr-xr-x  2 www-data www-data       4096 Nov 26  2018  Workshops.d1543236381
drwxr-xr-x  2 www-data www-data       4096 Apr  6  2019  Workshops.d1604924551
drwxr-xr-x  2 www-data www-data       4096 Jun 13  2018  Workshops.d1604925280
drwxr-xr-x  2 www-data www-data       4096 Apr  4  2022  Workshops.d1649086410
-rw-r--r--  1 www-data www-data    4394110 Aug 12  2020  Worries.jpg.d1610632150
-rw-r--r--  1 www-data www-data    1102518 Mar  5  2020  wotton-under-edge-text-final.jpg.d1678753213
-rw-r--r--  1 www-data www-data     561541 Mar  5  2020  wotton-under-edge-text.jpg.d1678753219
drwxr-xr-x  2 www-data www-data       4096 Apr  3 15:29  wrap_wave_graff#6.d1680532181
-rw-r--r--  1 www-data www-data     137521 Sep  2  2020 'xr_clifton suspension bridge.htm.d1602682668'
-rw-r--r--  1 www-data www-data     569418 Jun  1  2020  xr_guide_impossible.pdf.d1591090114
-rw-r--r--  1 www-data www-data     591343 Mar 16  2022  XR-rebellion-approaches.jpg.d1647448916
-rw-r--r--  1 www-data www-data      13824 Sep  5  2019  xr_regen_cafe_oct20_oct24.doc.d1618399129
-rw-r--r--  1 www-data www-data     690133 Jul 31  2019  yard_arts_aug31.pdf.d1580315445
-rw-r--r--  1 www-data www-data   19220070 Jun 22  2017  yard_wal_advertsl.psd.d1680533464
drwxr-xr-x  2 www-data www-data       4096 Apr  3 15:29 'yard wall.d1680532189'
-rw-r--r--  1 www-data www-data     626722 Aug  2  2022  yardy_party_scruffedit.jpg.d1659445865
drwxr-xr-x  2 www-data www-data       4096 Mar 14 00:26 'Yas Queen.d1678753574'
-rw-r--r--  1 www-data www-data     313116 Jun 14  2021 'YC OC Flyer.jpg.d1623857986'
-rw-r--r--  1 www-data www-data     615002 Jun 22  2017 'yellow fish.jpg.d1680537546'
-rw-r--r--  1 www-data www-data     615002 Sep 18  2016 'yellow fish.jpg.d1682955861'
-rw-r--r--  1 www-data www-data    5822728 Oct 14  2020  yellow_leaves_in_night.jpg.d1602682489
-rw-r--r--  1 www-data www-data    5189665 Jun 14  2021 'Young Creatives Open Call - The 3am Project.pdf.d1623857986'
-rw-r--r--  1 www-data www-data    4636600 Jan 21  2018 'Young Foundation CLT Review.pdf.d1540921604'
-rw-r--r--  1 www-data www-data   10809643 Dec  9  2011 'Young MC - Bust A Move (Stickybuds Remix).mp3.d1638367665'
-rw-r--r--  1 www-data www-data    3232112 Oct 19  2020 'zamzam_GAIAS_VIRUSPHERE [smaller].jpg.d1605555243'
-rw-r--r--  1 www-data www-data      61184 Oct 29  2019  ZOOM0001.WAV.d1573667654
-rw-r--r--  1 www-data www-data   60007016 Oct 29  2019  ZOOM0002.WAV.d1573667987
-rw-r--r--  1 www-data www-data   41944576 Oct  1  2019  ZOOM0008.WAV.d1571927415
-rw-r--r--  1 www-data www-data   65062912 Oct  1  2019  ZOOM0009.WAV.d1571927415
-rw-r--r--  1 www-data www-data   97166848 Oct 12  2019  ZOOM0010.WAV.d1571927583
-rw-r--r--  1 www-data www-data   34829568 Oct 12  2019  ZOOM0011.WAV.d1571927583
-rw-r--r--  1 www-data www-data   50681088 Oct 12  2019  ZOOM0012.WAV.d1571927583
-rw-r--r--  1 www-data www-data   18979840 Oct 12  2019  ZOOM0013.WAV.d1571927583
-rw-r--r--  1 www-data www-data   81928192 Oct 12  2019  ZOOM0014.WAV.d1571927587
-rw-r--r--  1 www-data www-data   74873088 Oct 14  2019  ZOOM0015.WAV.d1571927587
-rw-r--r--  1 www-data www-data   33183744 Oct 14  2019  ZOOM0016.WAV.d1571927587
-rw-r--r--  1 www-data www-data    4421120 Oct 14  2019  ZOOM0017.WAV.d1571927588
-rw-r--r--  1 www-data www-data  344295424 Oct 15  2019  ZOOM0018.WAV.d1571927591
-rw-r--r--  1 www-data www-data       1965 Jun  4  2021 'zoom recordings - Shortcut (2).lnk.d1622829189'
-rw-r--r--  1 www-data www-data       1965 Jun  4  2021 'zoom recordings - Shortcut.lnk.d1622829194'
-rw-r--r--  1 www-data www-data     208573 Sep  2  2020  zylzab.jpg.d1656074156

over 300GB in total amd the disk is full.

config.php has the following but no trashbin_retention_obligation

<?php
$CONFIG = array (
  'updatechecker' => false,
  'instanceid' => 'ocyxjlsnx5tm',
  'passwordsalt' => 'W3/SCKifYFtk/xPPlmX6wtDLbMeLoD',
  'secret' => '+XN6tkZZYE7h4VxyC6jLlH4oyrTU40ROVytt0Z8ZFAlHo5vJ',
  'trusted_domains' =>
  array (
    0 => 'cloud.prsc.org.uk',
    1 => '192.168.1.50',
    2 => 'prsc-cloud.org',
  ),
  'datadirectory' => '/data/owncloud/data',
  'overwrite.cli.url' => 'https://prsc-cloud.org/owncloud',
  'dbtype' => 'mysql',
  'version' => '10.8.0.4',
  'dbname' => 'owncloudmv',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'owncloudmv',
  'dbpassword' => '**************',
  'logtimezone' => 'UTC',
  'installed' => true,
  'log_type' => 'owncloud',
  'logfile' => '/var/log/owncloud/owncloud.log',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 0,
    'dbindex' => 0,
  ),
  'mail_from_address' => 'it',
  'mail_smtpmode' => 'php',
  'mail_domain' => 'prsc.org.uk',
  'maintenance' => false,
  'singleuser' => false,
  'theme' => '',
  'loglevel' => 2,
);

trashbin_retention_obligation isn’t in the config by default, but it is set to 'auto' if no value is given. if you set 'trashbin_retention_obligation' => '30,30', the command occ trashbin:expire should work for you, in this case the first number is minimal days trash is kept, and the second number is maximum number of days the files are kept. So you can set your second number to the amount of days you want to keep, and run occ trashbin:expire to clean up your trash

Regards,
Valentin

1 Like

Thansk, that seems to be working. So the first number is the number of days to always and the second is the number of days if the disk is not geting full? (sorry, had to edit this, made lots of typos).

OK, did a sudo -u www-data ./occ trashbin:expire and it got rid of most of the old deleted file but not all. left some verry old ones. I used 60,90. Ime wondering if maybe as the disk was not full when i did the final expire (I did a single user first that got me back a lot of space) if maybe it does not nesseserily delete oldest files first, just ones that are not protested by the first number?

Sorry for the late response, the first number is the amount of days a file is always kept, and the second number is the amount of days after which it will be deleted. So in your case with 60,90, every deleted file will be expired after 90 days. the first number is probably only useful/needed if you put the second value to auto, then it would store every deleted file for at least 60 days and delete older files if space is needed.
Here is the documentation if you want to read up on it:

2 Likes

Did it leave any files older than 90 days?

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.