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

Wrong folder size in folder overview #16742

Closed
tflidd opened this issue Jun 4, 2015 · 10 comments
Closed

Wrong folder size in folder overview #16742

tflidd opened this issue Jun 4, 2015 · 10 comments
Labels

Comments

@tflidd
Copy link
Contributor

tflidd commented Jun 4, 2015

Steps to reproduce

  1. Use owncloud, sync larger folder with client on several computers
  2. use it some time

Expected behaviour

OC interface shows correct folder size

Actual behaviour

In the folder view, the folder size is obviously wrong;
bildschirmfoto vom 2015-06-04 11 56 05

But when I'm opening the folder, the size is different:
bildschirmfoto vom 2015-06-04 11 56 15

du in the file system gives a size of 12 GB!
sudo ... occ files:scan username doesn't help.

There is also a recent report on the forum: https://forum.owncloud.org/viewtopic.php?f=31&t=28525&p=88359

Somehow related to #14298 but encryption has been disabled since then (the total storage on the user's personal page is 13.5 GB and in the filesystem it is 14 GB).

Server configuration

Operating system: Ubuntu 14.04

Web server: Apache

Database: MySQL

PHP version:

ownCloud version: 7.0.5

Updated from an older ownCloud or fresh install: updated many times

List of activated apps: - activity

  • bookmarks
  • calendar
  • contacts
  • documents
  • external
  • files
  • files_external
  • files_pdfviewer
  • files_sharing
  • files_texteditor
  • files_trashbin
  • files_versions
  • gallery
  • maps
  • news
  • shorty

Are you using external storage, if yes which one: not this user

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Logfiles: There is nothing specific in the logfiles, I can't say when it exactly appeared. Perhaps some interrupted sync or lost wifi connection??

@karlitschek
Copy link
Contributor

@icewind1991 Can you have a look?

@tflidd
Copy link
Contributor Author

tflidd commented Jun 5, 2015

I tried the fix for shared folders in #14861 but it didn't work (there are no shared folders)

@PVince81
Copy link
Contributor

PVince81 commented Jun 5, 2015

@tflidd can you check the "size" values in oc_filecache of the folders ?

Maybe there were multiple scanners trying to compute the folder sizes at the same time concurrently and gave wrong results.

@tflidd
Copy link
Contributor Author

tflidd commented Jun 5, 2015

The parent folder (shown in images above) has a size of: 12037693124 in the filecache-table. There is still the field with unencrypted size (encryption was turned off some months ago): 449034503 (this seems to be the size shown on the interface).
edit: the "encrypted" field is 0 for all files.

@PVince81
Copy link
Contributor

PVince81 commented Jun 5, 2015

Hmm, if I remember correctly, whenever you disable encryption, it will not automatically recompute the sizes, so you might still have old sizes there.

Did you try running ./occ files:scan --all ?

@tflidd
Copy link
Contributor Author

tflidd commented Jun 5, 2015

I did run the ./occ files:scan several times but it didn't change anything.
In the meantime, I repaired my filecache-table with this sql-command:

UPDATE `oc_filecache` SET `unencrypted_size`=0 WHERE `encrypted`=0

@PVince81
Copy link
Contributor

PVince81 commented Jun 5, 2015

Ah yes, that would work too.

@tflidd
Copy link
Contributor Author

tflidd commented Jun 5, 2015

I leave it open for you, if you want to fix the encryption enabling/disabling-routine. From my point of view, the problem is solved.

@PVince81
Copy link
Contributor

PVince81 commented Jun 5, 2015

Thanks. I think I discussed this with @schiesbn before and decide to leave it.
Also, since 8.1 disabling encryption will be done using a separate mechanism.

@schiesbn your call

@PVince81
Copy link
Contributor

PVince81 commented Oct 9, 2015

Closing as obsolete.

Since encryption 2.0 (OC >= 8.1) the size column will always contain the unencrypted size, so doesn't need to be updated after encrypting/decrypting.

@PVince81 PVince81 closed this as completed Oct 9, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants