Skip to content

Quota not updated after moving files to shared folder in webinterface. #21236

Closed

Description

@Bubu

Owncloud: 8.2.1 (stable)
System: Debian 7.9
php: 5.4.45-0+deb7u2
php5-redis: 2.2.5-1~bpo70+1
redis-server: 2:2.4.14-1
apache: 2.2.22-13+deb7u6
mysql: 5.5.46-0+deb7u1

Config excerpt:

  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0,
  ),
  'theme' => '',
  'maintenance' => true,
  'asset-pipeline.enabled' => true,
  'log_rotate_size' => 104857600,

What I did:
A user had no space left on his account, so he moved a bigger file (1GB) to a folder shared by another user though the web interface.

Expected behaviour:
Now the file should not count against that user's quota anyumore and he should be able to upload new files.

Actual behaviour:
The 1 GB still counted against the users quota and he was not able to upload new files.

Workaround:
Manually triggering a rescan through the occ console command fixed the wrong space usage calculation. The user can now upload new files.

Activity

  1. MorrisJobke commented on Dec 16, 2015

    @MorrisJobke
    Contributor
  2. added this to the milestone on Dec 17, 2015
  3. PVince81 commented on Dec 17, 2015

    @PVince81
    Contributor

    @Bubu we need your ownCloud version

    @icewind1991 size propagation issue maybe ?

  4. Bubu commented on Dec 17, 2015

    @Bubu
    Author

    Sorry, the OC Version must have been lost to copy&paste. updated the post: v8.2.1 (stable)

  5. Bubu commented on Dec 17, 2015

    @Bubu
    Author

    I did a few more tests. Suppose we have the following Structure of files:

    OCRoot
    --Shared_Folder
    --File1
    --File2
    

    File1 gets moved to Shared_Folder.

    • If I delete File1 afterwards (from the client in this case) the quota still gets not updated.
    • If I remove File2 the free space gets recalculated correctly, including the change for File1
    • The same problem also happens when moving the file in the client, not through the web interface
  6. ghost added this to the milestone on Feb 22, 2016
  7. ghost removed this from the milestone on Feb 22, 2016
  8. PVince81 commented on Jun 14, 2016

    @PVince81
    Contributor

    Still happening on v8.2.5.

    It looks like cross-storage move isn't triggering a size update in the database.
    @icewind1991 potential regression.

    This works properly in 9.0.2, possibly because etag + size propagation has been rewritten in a different way.

  9. modified the milestones: , on Jun 14, 2016
  10. PVince81 commented on Jun 14, 2016

    @PVince81
    Contributor

    Also broken in 8.0.8 v8.1.8

  11. PVince81 commented on Jun 14, 2016

    @PVince81
    Contributor

    Works fine in v8.0.13.

    Initiating bisect sequence

  12. PVince81 commented on Jun 14, 2016

    @PVince81
    Contributor

    So, I did a bisect and only observed the Webdav property "quota-available-bytes".
    Before this commit d7b3a1a, moving a file into a received share would properly update the "quota-available-bytes" value. After this commit, the value stays unchanged.

    However I also observed that the other property "quota-used-bytes" was not always updated, so this will need another bisect...

  13. PVince81 commented on Jun 14, 2016

    @PVince81
    Contributor

    Okay, regarding "quota-used-bytes" it's another topic. It might be a valid value and includes the size of files used in received shared folders. So it might be correct.

    I'll check the oc_filecache entries instead.

  14. PVince81 commented on Jun 14, 2016

    @PVince81
    Contributor

    Bisect result: after the same commit d7b3a1a doesn't properly update the size of the "files" entry in the database after doing a cross-storage move.

  15. PVince81 commented on Jun 14, 2016

    @PVince81
    Contributor

    @felixboehm FYI
    For OC < 9.0 any unexplained insufficient space issue could be related to this one.

  16. icewind1991 commented on Jun 14, 2016

    @icewind1991
    Contributor

    Fix is here #25101

  17. lock commented on Aug 4, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  18. locked as resolved and limited conversation to collaborators on Aug 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions