[Owncloud] Fwd: How I just lost 2/3 of my files to the sync-client

Benjamin Schieder blindcoder at scavenger.homeip.net
Thu Feb 6 09:35:10 UTC 2014


Am 2014-02-06 10:23, schrieb Klaas Freitag:
> On 05.02.2014 15:38, Benjamin Schieder wrote:
>> I'm not sure _why_. I guess that it's because the "Work" directory is
>> pretty big. The line from the access.log is:
>> x.x.x.x - - [31/Jan/2014:11:01:26 +0100] "MOVE
>> /remote.php/webdav/clientsync/Work HTTP/1.1" 500 906 "-" "Mozilla/5.0
>> (Linux) csyncoC/0.91.4 neon/0.30.0"
>> There's nothing in the error.log at the time, but a few entries like
>> this around it:
>> [Fri Jan 31 11:02:06 2014] [warn] [client 91.66.218.142] mod_fcgid: 
>> read
>> data timeout in 40 seconds
>> [Fri Jan 31 11:02:06 2014] [error] [client 91.66.218.142] Premature 
>> end
>> of script headers: remote.php
> hmm, ok, so that looks like the server did not successfully finish the
> MOVE operation but ran in a timeout. The question is now what the
> state of the file system and database was on server side. On the
> client, we handle the 500 error the way that it is assumed that the
> move did not happen.

That makes sense, obviously.
I wonder why there was a timeout in the first place. A filesystem move 
operation takes milliseconds, no matter the size of the directory 
(unless you cross filesystem boundaries, of course).

> At least some kind of explanation. Yet I am not sure how we can handle
> it on the client except not really doing deletes.

Right now I don't have an idea either.
But I just noticed something strange: The sync client keeps syncing 
files that are in sync already. I confirmed this by running unison to 
check for differences and the only diffs are file modes (-rwxrwx--- vs. 
-rw-rw-r--).
I tried looking into the .csync_journal.db but sqlite says:
[10:34:13][blindcoder at flora:~]$ sqlite ownCloud/.csync_journal.db
Unable to open database "ownCloud/.csync_journal.db": file is encrypted 
or is not a database
[10:34:21][ret:1][blindcoder at flora:~]$ file ownCloud/.csync_journal.db
ownCloud/.csync_journal.db: SQLite 3.x database

Can it be that the db file got corrupted?


Kind regards,
Benjamin
-- 
Jabber: blindcoder at jabber.ccc.de
Twitter: blind_coder
Web: http://www.crash-override.net/



More information about the Owncloud mailing list