android icon indicating copy to clipboard operation
android copied to clipboard

[BUG] - Owncloud is using HUGE disk space on my phone

Open Lord-Y opened this issue 2 years ago • 14 comments

Actual behaviour

I'm using owncloud 3.0.4. I was having many picture and videos to upload to my own server. I have less than 100 to upload but the disk space on my phone is full. Owncloud is using 64Go of storage. When I'm checking the storage settings of the app, all those 64Go is use on the "data" side not the cache.

Expected behaviour

Owncloud should find a way to reduce this disk space on the phone

What shoud I do to clear the disk space? Uninstalling the app? Not sure what other information I should provide so feel free to ping me.

Environment data

Android version: 13

Device model: Samsung Galaxy S22

Stock or customized system:

ownCloud app version: 3.0.4

ownCloud server version: 10.3.1

Lord-Y avatar Apr 03 '23 21:04 Lord-Y

Just try to remove the account from the app and add it again. It should remove leftovers in temporal folders.

About this, we need some extra workers to clean up periodically? @JuancaG05 @abelgardep

jesmrec avatar Apr 04 '23 11:04 jesmrec

Settings similar to the iOS implementation would be nice

1F040DF9-81DA-42E5-9B3F-0E5E3090B214 CADE3B7F-B88B-4153-B9AF-55D1AAFF2A3C
One-time-action per account Global setting / policy for all accounts

michaelstingl avatar Apr 04 '23 11:04 michaelstingl

@jesmrec If I do that, will the remaining file uploaded after?

Lord-Y avatar Apr 06 '23 23:04 Lord-Y

@jesmrec If I do that, will the remaining file uploaded after?

if you remove an account, all the stuff related to such account will be removed. So, uploads are lost as well and have to be re-done after attaching the account.

jesmrec avatar Apr 10 '23 06:04 jesmrec

@jesmrec any plan to support soon the cleaning feature on android just like mentioned by @michaelstingl on iOS?

Lord-Y avatar Aug 05 '23 23:08 Lord-Y

not yet, needs prioritization

jesmrec avatar Aug 07 '23 06:08 jesmrec

Clean up (proposal):

  • Downloaded files that are not av. offline, not used longer than a specific time (iOS style). Check howto.
  • Immediate removal of downloaded files, manually (in Manage accounts??)
  • Clean up of tmp folder after a given time (open to discussion)
  • Clean up of failed uploads in uploads' view after a given time (open to discussion)

any other ideas?

jesmrec avatar Sep 25 '23 11:09 jesmrec

We'll face this in 3 different steps:

  1. Add a new field associated to every file (not folder) in DB: last usage date. It will help to check how long was the file not used/opened. https://github.com/owncloud/android/issues/4173
  2. Manual process: will include a new option (in manage accounts' view) for every account in which user will remove all downloaded (not av. offline) and temporal files, and the failed uploads. Related: https://github.com/owncloud/android/issues/4148. https://github.com/owncloud/android/issues/4174
  3. Automatic process: new option to let users decide frequency of automatic removal of files https://github.com/owncloud/android/issues/4175

jesmrec avatar Oct 02 '23 11:10 jesmrec