core icon indicating copy to clipboard operation
core copied to clipboard

Loading File app can take hours

Open RandolfCarter opened this issue 14 years ago • 7 comments

When I updated my installation from 4.5 to 4.5.1, a file rescan seems to have been triggered; when I go to the owncloud page and login with my main user, then after login, the page just keeps on loading but never finishes. Apache subsequently is at 100% CPU usage; t's been running several hours already, whenever I restart the server and retry, it get's to the same state.

I do not see any status update; only the logfile shows a few errors of two types: One regarding "Maximum execution time of 3600 seconds exceeded", and one regarding "Invalid JPEG file structure".

It seems that a file scan (or an image scan) is running somehow in the background.

Tried browsers: Firefox 16.0.1, Chrome 18.0.1025.162 m Server: Apache 2.2.22 on Ubuntu 12.04, php 5.3.10, mysql 5.5.24

I see two problems in that: (1) I have a large, but not huge photo collection (around 60GB). It should not take several hours to scan it. (2) If an operation takes such a long time (in my opinion, already operations longer than a minute would count here), there should be a status output that owncloud is busy at the moment, and what it is doing - something like what is happening when executing "scanFiles" method from a JavaScript console (why not actually trigger that method after loading the page?) / executing the rescan from the Rescan app.

Are such file scans usual? It seems that for me they happen quite often - for example when I change any mount.php, or obviously when updating.

RandolfCarter avatar Oct 25 '12 12:10 RandolfCarter

This problem will be resolved with for 5.0 once the filesystem changes are merged.

icewind1991 avatar Oct 25 '12 16:10 icewind1991

Sounds good! Can't wait to try it...

RandolfCarter avatar Oct 30 '12 10:10 RandolfCarter

@icewind1991 any solution for the stable45 branch available? THX

DeepDiver1975 avatar Nov 19 '12 11:11 DeepDiver1975

It seems that this is not fixable before 5.0 because it requires a big rewrite.

karlitschek avatar Dec 04 '12 12:12 karlitschek

What you're saying is that basically 4.5.x is not very comfortable to use for large file collections: each file scan for a rather large file base (e.g. about 210G in my case) will take many hours; and as each custom mount change seems to trigger a file scan... I'm ok with that for the moment but can't wait to try 5.0... What would be cool is if such a file scan could run in the background somehow, so that other user operations (like accessing the calendar) are not hindered for such a long time. By the way why was this closed if it is not fixed yet? Is there a duplicate issue for this mentioned enhancement which will make it into owncloud 5 already?

RandolfCarter avatar Dec 05 '12 07:12 RandolfCarter

I think it is usable. In fact I know several big installations that use 4.5. The problem that is described here only happens with initial import of a lot of files which takes long to scan. It works if someone is O.K. with that.

Sorry for the limitation. We are working very hard to make it faster which will be released as ownCloud 5.0

karlitschek avatar Dec 05 '12 13:12 karlitschek

The problem that is described here only happens with initial import of a lot of files which takes long to scan.

Just updated to OC4.5.6, and am waiting already 10 minutes for the login to take me somewhere (loading, still showing the loging screen) - so this doesn't seem to be limited to the initial import; I don't know why but it also happens on every update for me... I really hope that this will be fixed with OC5.

When looking at the owncloud log, it seems that a rescan is going on (I see a few warnings about unreadable id3 tags in my mp3 collection). The main thing I don't understand here is why a rescan is even necessary on an update?

RandolfCarter avatar Jan 23 '13 14:01 RandolfCarter