You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bad synchronisation (multiple conflicts + files lost) #49
The files are rather big (200 Mb each), so far it seems ok with files < 10 Mb....
The following occurs,
some files are lost. I mean, they vanished from the original sync folder !
some other files are marked as "conflicts", sometimes 4 times with a same file. Of course the files didn't changed (and the computer times are ok, also).
I think it coud have crasy consequences and I'm surprised that I'm the first who mention this bug (insert crasy smiley here)
I could publish the log files if someone tell me how to get them. They are quite empty on the server (Ubuntu 12.04 LTS), and inexistent on the client (Windows Seven)
As far as I am concerned, conflict files may only occur if there really is a different file content. That's, as far as I have seen, how other sync applications like dropbox handle it; at the moment, that unfortunately doesn't seem to be the case for owncloud in many situations, as can be seen in the multitude of reported conflict file issues (this one, 53, 56, 59, 73).
It needs to be considered that syncing files needs to compare file (contents!!!) for differences. Only if there are REAL differences should a conflict occur. Therefore, in my opinion, relying on a value which has nothing to do with the actual file content (actually anything other than something depending solely on the file content), produces a brittle sync at best, and will never result in consistently working results without false conflict files.
Edit: The exactly same applies for new versions: A new version should only be created if the file actually has different file contents! I'm currently seeing files_versions getting filled up with the same file 3 or 4 times...
My definite advice would be to use checksums. The load on clients and servers needs to be only the second consideration for that (the first thing to consider being correctness) - if it can't provide proper sync, a file cloud is worth nothing. And there must be a reason why well-established syncing solutions (e.g. unison) use checksums... Unison is actually a quite good example I believe: It has some local performance optimization already: It only recalculates the checksums if the local modified time has changed (which would mitigate client&server load quite a bit already - the load under normal use wouldn't be much more than it is now, only at the beginning there would be a bit more. But the initial scan takes hours for a large file base now already anyway... It might even be a good idea to follow sucsynct's example and to use unison for the underlying synchronisation (why reinvent the wheel?)
For ideas on how to reduce client load, see also e.g. this other issue: #29
Activity
BlackSmileFR commentedon Nov 4, 2012
Seems related to my bug too #53. To me it is related to special characters (it seems). is it the same for you or it as nothing to do?
philippefx commentedon Nov 4, 2012
Nope. It depends, if dash and dot are special characters, yes :)
But neither the directory structure nor the files have special chars (only 0-9, a-z, -, .).
Just note this file are more than 200 Mb big. Some are 620 Mb big and synchronised well.
danimo commentedon Nov 5, 2012
Please attach the output of
--logwindowas described at https://github.com/owncloud/mirall/blob/master/doc/troubleshooting.rst. The server log and the hosting environment (Server OS, Web Server, PHP version) would also be interesting.RandolfCarter commentedon Nov 13, 2012
One fundamental question regarding the sync client: Is it actually checking the file contents somehow? Or how is it determining that two files are "different"? In the forum it was reported ( http://forum.owncloud.org/viewtopic.php?f=4&t=5053&p=12065#p12034 ) that when copying the same file to the server "behind owncloud's back" (because the client can be much slower than is possible, but that's another issue I guess), the client afterwards created a conflict file for each of these manually copied files, even though they were exactly the same! That leads me to believe that the "file difference" algorithm of the client is somehow broken.
As far as I am concerned, conflict files may only occur if there really is a different file content. That's, as far as I have seen, how other sync applications like dropbox handle it; at the moment, that unfortunately doesn't seem to be the case for owncloud in many situations, as can be seen in the multitude of reported conflict file issues (this one, 53, 56, 59, 73).
When reading the article on the new sync algorithm introduced with client 1.1.0 (http://dragotin.wordpress.com/2012/10/11/csync-for-owncloud-client-1-1-0-a-new-sync-engine/), I was wondering already about this "unique id" mentioned there. Unfortunately I haven't found any information there on how this unique ID is created, and my question went unanswered (edit: just noticed the sentence "The Ids are just random tags for a file version" - so that means they are not related to the actual file content at all, right?) ...
It needs to be considered that syncing files needs to compare file (contents!!!) for differences. Only if there are REAL differences should a conflict occur. Therefore, in my opinion, relying on a value which has nothing to do with the actual file content (actually anything other than something depending solely on the file content), produces a brittle sync at best, and will never result in consistently working results without false conflict files.
Edit: The exactly same applies for new versions: A new version should only be created if the file actually has different file contents! I'm currently seeing files_versions getting filled up with the same file 3 or 4 times...
My definite advice would be to use checksums. The load on clients and servers needs to be only the second consideration for that (the first thing to consider being correctness) - if it can't provide proper sync, a file cloud is worth nothing. And there must be a reason why well-established syncing solutions (e.g. unison) use checksums... Unison is actually a quite good example I believe: It has some local performance optimization already: It only recalculates the checksums if the local modified time has changed (which would mitigate client&server load quite a bit already - the load under normal use wouldn't be much more than it is now, only at the beginning there would be a bit more. But the initial scan takes hours for a large file base now already anyway... It might even be a good idea to follow sucsynct's example and to use unison for the underlying synchronisation (why reinvent the wheel?)
For ideas on how to reduce client load, see also e.g. this other issue: #29
dragotin commentedon Jan 14, 2013
These severe problems should be fixed now with subsequent versions of the client.