Skip to content

Garbage collect chunk files through cron #14646

Closed

Description

@danimo

Current behavior

Currenly, stray chunk files are only collected during login in the web interface. Someone who uses owncloud almost exclusively through the client might pile up a lot of stray chunks.

Expected behavior

The cron process takes care of GC.

Activity

  1. changed the title [-]Garbage Collect chunk files through Cron[/-] [+]Garbage Collect chunk files through cron[/+] on Mar 2, 2015
  2. changed the title [-]Garbage Collect chunk files through cron[/-] [+]Garbage collect chunk files through cron[/+] on Mar 2, 2015
  3. added this to the milestone on Mar 2, 2015
  4. DeepDiver1975 commented on Mar 2, 2015

    @DeepDiver1975
    Contributor

    @icewind1991 chunk gc to be implemented as command for the command bus? THX

  5. dipohl commented on Mar 2, 2015

    @dipohl

    A user in our owncloud had more than 700MB of files in his cache directory. I asked him to login via webbrowser what he did today. But unfortunately the files didn't vanish then. I deleted them manually now and saw, that all were older than our upgrade from owncloud v.6 to v.7 a few weeks ago. Will the garbage collect of version 7 not treat files, that were stored under version 6?
    fyi, Gabriele

  6. icewind1991 commented on Mar 3, 2015

    @icewind1991
    Contributor

    The problem with having this in the background is that we will either need to iterate over all users in a background job to clean the cache of each user.
    Or we need to push a command on the bus for webdav request being made

  7. DeepDiver1975 commented on Mar 3, 2015

    @DeepDiver1975
    Contributor

    Or we need to push a command on the bus for webdav request being made

    this seems to be the more reasonable approach

  8. icewind1991 commented on Mar 3, 2015

    @icewind1991
    Contributor

    That means if 100 files are uploaded over the sync client we push 100 identical jobs onto the queue which will all be be run in one go (assuming uploading goes fast enough)

  9. DeepDiver1975 commented on Mar 3, 2015

    @DeepDiver1975
    Contributor

    100 files as in 100 transferids?

    I'd push on job for each transfer id with an execution delay of one day.
    So the next day all chunks will be cleared - in case they still exist

  10. DeepDiver1975 commented on Mar 27, 2015

    @DeepDiver1975
    Contributor

    @icewind1991 just a quick reminder on this 😉

  11. DeepDiver1975 commented on Mar 27, 2015

    @DeepDiver1975
    Contributor

    or we go with a repairstep?

  12. DeepDiver1975 commented on Mar 27, 2015

    @DeepDiver1975
    Contributor

    @PVince81 objections

  13. PVince81 commented on Mar 27, 2015

    @PVince81
    Contributor

    Cron / background job

    I thought this was already done ? @icewind1991

  14. added this to the milestone on May 4, 2015
  15. 45 remaining items

  16. PVince81 commented on Feb 23, 2017

    @PVince81
    Contributor

    @guruz sounds like a plan. This should be done in cron or in any other scalable way.

  17. modified the milestones: 9.1.6, 9.1.5 on Apr 13, 2017
  18. modified the milestones: triage, 9.1.6 on May 29, 2017
  19. ownclouders commented on Jan 13, 2018

    @ownclouders
    Contributor

    Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

    (This is an automated comment from GitMate.io.)

  20. PVince81 commented on Jan 15, 2018

    @PVince81
    Contributor

    Already possible now with occ dav:cleanup-chunks

  21. guruz commented on Feb 13, 2018

    @guruz
    Contributor

    @PVince81 but . is this scheduled by default?

  22. PVince81 commented on Feb 13, 2018

    @PVince81
    Contributor

    No, it's part of the many commands an admin needs to run from system cron.

    It's not an OC background job because it could potentially take several hours depending on the number of users you have on the system.

    See: https://doc.owncloud.org/server/10.0/admin_manual/configuration/server/background_jobs_configuration.html?highlight=cron#available-background-jobs

    any now I see that the doc needs adjusting as there is no bkg job: owncloud-archive/documentation#3793

  23. removed this from the triage milestone on Apr 10, 2018
  24. lock commented on Jul 30, 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.

  25. locked as resolved and limited conversation to collaborators on Jul 30, 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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions