Coder Social home page Coder Social logo

[Bug]: A cron job is generating previews of every file causing previews folder to flood and filecache table to grow too large about server HOT 3 OPEN

muchachagrande avatar muchachagrande commented on July 24, 2024 2
[Bug]: A cron job is generating previews of every file causing previews folder to flood and filecache table to grow too large

from server.

Comments (3)

kesselb avatar kesselb commented on July 24, 2024

Sounds similiar to #45654

from server.

muchachagrande avatar muchachagrande commented on July 24, 2024

Yes, as I searched for cron job and filecache I didn't find it.

Additional info:
When rebooted the server to stop the running tasks to apply the workaround I observed the following error in the NC log:

Error while running background job OCA\Files\BackgroundJob\ScanFiles

So that's the job that runs for so long... my guess is that the first run after the upgrade generated all the previews and the following runs after that are very slow because of the huge amount of files it generated before.

from server.

didim99 avatar didim99 commented on July 24, 2024

Have a same issue, after upgrading from NC27 to 29.0.2.
Some additional info (relevant for my installation):

  • Related cron job starts only during maintenance window (at 01:00 for me).
  • My primary storage contains ~500k files (total size is ~1.4TB, including versions and trashbin), and external storage (local folder) contains ~1.2M files (total size is ~1.6TB).
  • My oc_filecache table contains ~2.1M rows.

After upgrading to NC29 and waiting few days my oc_filecache table grown over 8M rows (and over 6GB) and slow down entire MySQL server. I stop the NC server, kill background task process, deleted all content of preview folder and all rows from oc_filecache related to them (it takes over 10 hours!) and started server again. An next day I see that the preview folder grows again. I disabled background job at all to determine source of issue and wait one week, nothing happened. Then I disabled preview generation for external storage (via admin settings UI) and enabled cron job, and today preview folder grows again (seems to scanning external storage files because I have some errors in log related to external storage files). At this moment my preview folder has only 3k files and over 580k of empty directories! It seems a serious problem for large installations.

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.