Repository navigation
Description
It looks like the owncloud 1.7.0 never rests.
It's consuming 25% CPU, even when finished all syncing.
once finished - it keeps syncing again and again (discovering stage) - owncloud never rests.
after every "round" I get notification in the tray that 87 files were not sync and it goes over again....
my server is 7.0.2 on CentOS 7.
my os is windows 8.1
The client logs each sync in the log dir:
Here is the last lines from log.1 and then the first lines from log.2 - notice they are immediate - 6 ticks away and folder change detected and we go over again.....
-- first file:
10-03 13:42:39:348 networkjobs.cpp:201 !!! Mirall::CheckQuotaJob created for QUrl( "https://myserver.com/mycloud" ) querying "/"
10-03 13:42:48:005 folder.cpp:257 * Polling "Docs" for changes. (time since last sync: 299 s)
10-03 13:42:48:006 folder.cpp:275 ** Force Sync now, state is "Success, some files were ignored."
10-03 13:42:48:006 folderman.cpp:445 Schedule folder "Docs" to sync!
10-03 13:42:48:006 folderman.cpp:462 II> Sync for folder "Docs" already scheduled, do not enqueue!
10-03 13:42:49:350 networkjobs.cpp:206 Mirall::CheckQuotaJob(0xb5f7a78) Timeout
10-03 13:42:49:350 networkjobs.cpp:146 void Mirall::AbstractNetworkJob::slotFinished() 5 "Operation canceled"
10-03 13:42:49:355 folder.cpp:506 folder "Work" Terminating!
10-03 13:42:50:008 folderman.cpp:497 FolderMan: Syncing is disabled, no scheduling.
10-03 13:43:09:151 oc_module: Simple propfind result code 207.
10-03 13:43:09:151 oc_module: opendir returning handle 0c2b4178 (count=2)
10-03 13:43:09:151 csync_walker: Aborted!
10-03 13:43:09:152 syncengine.cpp:500 #### ERROR during csync_update : "Aborted by the user"
10-03 13:43:09:152 syncengine.cpp:503 Update phase was aborted by user!
10-03 13:43:09:281 syncengine.cpp:789 CSync run took 320825
10-03 13:43:09:281 folder.cpp:692 -> CSync Finished slot with error false warn count 0
10-03 13:43:09:284 folder.cpp:392 Processing result list and logging took 0 Milliseconds.
10-03 13:43:09:284 folder.cpp:412 OO folder slotSyncFinished: result: 4
10-03 13:43:09:295 owncloudgui.cpp:177 Sync state changed for folder "Work" : "Success"
----- new file:
10-03 13:43:09:301 folderwatcher.cpp:153 detected changes in folders: QSet("Y:\Work/")
10-03 13:43:09:301 folderman.cpp:445 Schedule folder "Work" to sync!
10-03 13:43:09:302 folderman.cpp:462 II> Sync for folder "Work" already scheduled, do not enqueue!
10-03 13:43:09:497 folderman.cpp:538 <===================================== sync finished for ""
10-03 13:43:09:697 folderman.cpp:497 FolderMan: Syncing is disabled, no scheduling.
10-03 13:43:11:300 folderman.cpp:497 FolderMan: Syncing is disabled, no scheduling.
10-03 13:43:18:004 folder.cpp:257 * Polling "Docs" for changes. (time since last sync: 329 s)
10-03 13:43:18:004 folder.cpp:268 Not syncing. : false 0
10-03 13:43:21:348 networkjobs.cpp:201 !!! Mirall::CheckServerJob created for QUrl( "https://myserver.com/mycloud" ) querying "status.php"
10-03 13:43:31:354 networkjobs.cpp:377 TIMEOUT virtual void Mirall::CheckServerJob::slotTimeout()
10-03 13:43:31:355 application.cpp:290 Connection Validator Result: "Status not found"
10-03 13:43:39:288 folder.cpp:257 * Polling "Work" for changes. (time since last sync: 29 s)
10-03 13:43:39:288 folder.cpp:268 Not syncing. : false 0
10-03 13:43:48:004 folder.cpp:257 * Polling "Docs" for changes. (time since last sync: 359 s)
10-03 13:43:48:004 folder.cpp:268 Not syncing. : false 0
Activity
[-]1.7.0 (3920) owncloud client never "rests"[/-][+]1.7.0 beta (3920) owncloud client never "rests"[/+]ckamm commentedon Oct 8, 2014
@kaplandani I've merged a fix to the 1.7 branch that prevents regular 'force'-syncing from happening. Could you test it?
kaplandani commentedon Oct 8, 2014
If its in the nightly build I will test it today. Otherwise where can I get the binaries ?
guruz commentedon Oct 8, 2014
http://download.owncloud.com/desktop/daily/ownCloud-1.7.0.3950-nightly20141008-setup.exe
enoch85 commentedon Oct 8, 2014
@guruz Still the same issue with build 3950.
ckamm commentedon Oct 8, 2014
@kaplandani Since that doesn't seem to solve the issue completely yet, could I ask you for another log? If it's too big, show me only the lines with folder.cpp/folderman.cpp/syncengine.cpp/owncloudgui.cpp, that should be enough to figure out what is triggering these sync runs.
kaplandani commentedon Oct 8, 2014
Just got home, downloading, installing, and generating logs. give me 60 min.
On Wed, Oct 8, 2014 at 3:39 PM, ckamm [email protected] wrote:
21 remaining items
MU7L3Y commentedon Oct 9, 2014
I've also just installed 1.7.0 beta 3 yesterday and find that it constantly is in discovery mode and just says "Preparing to Sync." It's constantly using 13% CPU as well but sometimes jumping. No files are being downloaded or uploaded. If there's anything I can do to help I will try. Let me know.
OC server is 7.0.2. Sync folder is about 2.3GB. I have 2 clients running with the same account. One client is on Win7 x64, the other Win Server 2003. The Server 2003 client seems to sync it's folders as they are all set up as separate folders to sync, whereas the Win7 PC is just syncing the whole ownCloud folder.
ckamm commentedon Oct 10, 2014
@kaplandani @MU7L3Y Could I ask you to test again with the latest nightly, i.e. http://download.owncloud.com/desktop/daily/ownCloud-1.7.0.3963-nightly20141010-setup.exe ? We think the issue was related to file change notifications during the sync triggering a new sync.
MU7L3Y commentedon Oct 10, 2014
@ckamm I have installed that version and now it completes and says "Sync Success". CPU usage also drops to 0 at that time which is good. Seems much better, thanks.
enoch85 commentedon Oct 10, 2014
@ckamm Confirmed. Now it works as close to expected as possible. Only thing is high CPU load when discovering, or right before a sync starts. And by "high CPU load" I mean high like in "not responding" anymore. That should really be addressed properly. CPU is down to between 0-5% between syncjobs.
It also have high CPU load when browsing the files in Windows, but that´s another issue. :)
Otherwise OK. 👍 The constant loop is gone
ckamm commentedon Oct 10, 2014
Thanks for testing!
kaplandani commentedon Oct 10, 2014
3963 does look better, discovering occurred 3 times (strange) but then stopped.. :-) will monitor it for a while.
kaplandani commentedon Oct 10, 2014
@ckamm Should the client go into full discovery every few minutes ?
3963 does that. it's much better than before as the client "rests" between them, but still, a full 1 min discovery happens every few minutes.
ckamm commentedon Oct 10, 2014
@kaplandani Yes, unfortunately there are a couple of corner cases (related to the file watcher as far as I know) that can make the client not know that there are files that need to be synced. I agree that in an ideal world we'd only need one full discovery run.
moscicki commentedon Oct 10, 2014
Hi,
How frequent these corner cases are and under which conditions they appear for the file watcher?
AFAIK the inotify may miss some events if it's buffer gets full due to high spikes of events at high rates. But that's rather rare and that possibly could be detected by the client (if you see too many events in a unit of time you may suspect that some have been lost and trigger a full scan). Can something like that be done for the cases with file watcher missing events?
I think a plausible option in the interim is to have a lower scan rate and possibly make the "Retry sync" button to be available to the user all the time. Like that if something is missed a user may trigger the sync.
kuba
On Oct 10, 2014, at 10:28 AM, ckamm [email protected] wrote:
ckamm commentedon Oct 10, 2014
I agree that it would be excellent to improve on this. The case that @dragotin mentioned was related to file change notifications we get during a sync:
We're performing write operations on sync folders during the sync phase. That triggers file watcher notifications. But we want to ignore these because they don't mean another sync is needed. Right now, we ignore all file watcher notifications for a folder while it is synced. That can make us miss files that were added while the sync was running until the next full discovery phase comes up.
This particular case can maybe be solved by looking at the file change notifications we get in detail and ignoring the ones we know we caused ourselves. I'm not sure whether there are other reasons to run the discovery phase this often. @guruz @ogoffart ?
dragotin commentedon Oct 10, 2014
The problem with the filewatcher is that we can not distinguish between changes that the client did because of sync activity (we don't wanna react on) and events that were triggered due to external events, which would be important. That is because cross platform the file system notifications are very different, and in this case, linux is the worst... Yes, that is a technical debt, and we will revisit that.
moscicki commentedon Oct 10, 2014
Another idea (which may have some other implications, though):
What about keeping temporary download files in a separate folder (one level down from the sync journal?). It is then confided to a single tree and notifications may be easier to filter out.
A bonus of this approach is that a user would never see this partial download crap in their directories. Of course you'd need to uniquify the tmp download file names but you can do whatever you want since you keep the download state in the sync journal…
One would have to see what to do in case of directory move or rename - your partially downloaded files would not correspond to the original directory anymore. But if you can detect this then you may simply trigger a full redownload. These are rare corner cases (interrupted download, directory manipulation, resumed download)….
kuba
On Oct 10, 2014, at 12:04 PM, Klaas Freitag [email protected] wrote:
enoch85 commentedon Oct 10, 2014
How does other cloud-services solve the problem?
ckamm commentedon Oct 10, 2014
I suggest we move the discussion to the enhancement ticket #2297.