Repository navigation
Closed
Description
This happened when attempting to sync a set of large files to a local 7.0.2 oC instance with the latest 1.7 branch.
It seems the file 20131129-Kueben.mp4 is attempted to be uploaded, there's a (transient) 500 error from the server, it then gets marked as CONFLICT and downloaded. There are no conflict files in the sync folder afterwards.
10-23 12:39:18:888 0x1f7cd08 _csync_detect_update: file: bilder-move/20120429-Elier1.avi, instruction: INSTRUCTION_NEW <<=
10-23 12:39:18:888 0x1f7cd08 sqlite_profile: _SQL_ SELECT * FROM metadata WHERE phash=?1: 0
10-23 12:39:18:888 0x1f7cd08 csync_walker: file: /home/kamm/ownCloud/bilder-move/20131129-Kueben.mp4 [inode=23465905 size=42794946]
10-23 12:39:18:888 0x1f7cd08 sqlite_profile: _SQL_ SELECT * FROM metadata WHERE phash=?1: 0
10-23 12:39:18:888 0x1f7cd08 _csync_detect_update: Checking for rename based on inode # 23465905
10-23 12:39:18:888 0x1f7cd08 sqlite_profile: _SQL_ SELECT * FROM metadata WHERE inode=?1: 0
10-23 12:39:18:888 0x1f7cd08 _csync_detect_update: file: bilder-move/20131129-Kueben.mp4, instruction: INSTRUCTION_NEW <<=
10-23 12:39:18:888 0x1f7cd08 sqlite_profile: _SQL_ SELECT * FROM metadata WHERE phash=?1: 0
10-23 12:39:18:888 0x1f7cd08 csync_walker: file: /home/kamm/ownCloud/bilder-move/20120725-Eliund.avi [inode=23465906 size=43864712]
--
10-23 12:39:19:474 0x1a40dc0 _csync_merge_algorithm_visitor: INSTRUCTION_NONE file: bilder-move/20111111-Elihts.mpg
10-23 12:39:19:474 0x1a40dc0 _csync_merge_algorithm_visitor: INSTRUCTION_NONE file: bilder-move/Fotos/HelGeburtstag/DSC01189.JPG
10-23 12:39:19:474 0x1a40dc0 _csync_merge_algorithm_visitor: INSTRUCTION_NEW file: bilder-move/20131129-Kueben.mp4
10-23 12:39:19:474 0x1a40dc0 _csync_merge_algorithm_visitor: INSTRUCTION_NONE file: bilder-move/Fotos/HochzeitsFotos/DSC09971.jpg
10-23 12:39:19:474 0x1a40dc0 _csync_merge_algorithm_visitor: INSTRUCTION_NONE file: bilder-move/20120713-Eliet1.avi
--
10-23 12:39:24:628 0x1a40dc0 syncengine.cpp:754 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "bilder-move/20120918-Eliwig.avi" 4 ""
10-23 12:39:24:628 0x1a40dc0 networkjobs.cpp:82 void Mirall::AbstractNetworkJob::setTimeout(qint64) 300000
10-23 12:39:24:628 0x1a40dc0 networkjobs.cpp:208 !!! Mirall::PUTFileJob created for QUrl( "http://localhost" ) querying "/bilder-move/20131129-Kueben.mp4-chunking-2935536672-3-0"
10-23 12:39:24:667 0x1a40dc0 propagator_qnam.cpp:285 void Mirall::PropagateUploadFileQNAM::slotPutFinished() QUrl( "http://localhost/remote.php/webdav/bilder-move/20130209-Schble.mp4-chunking-289349236-2-0" ) FINISHED WITH STATUS 0 "" QVariant(int, 201) QVariant(QString, "Created")
10-23 12:39:24:667 0x1a40dc0 syncjournaldb.cpp:856 "INSERT OR REPLACE INTO uploadinfo (path, chunk, transferid, errorcount, size, modtime) VALUES ( ?1 , ?2, ?3 , ?4 , ?5, ?6 )" "bilder-move/20130209-Schble.mp4" 1 276766324 0
--
10-23 12:39:24:667 0x1a40dc0 networkjobs.cpp:82 void Mirall::AbstractNetworkJob::setTimeout(qint64) 300000
10-23 12:39:24:667 0x1a40dc0 networkjobs.cpp:208 !!! Mirall::PUTFileJob created for QUrl( "http://localhost" ) querying "/bilder-move/20130209-Schble.mp4-chunking-289349236-2-1"
10-23 12:39:24:769 0x1a40dc0 propagator_qnam.cpp:285 void Mirall::PropagateUploadFileQNAM::slotPutFinished() QUrl( "http://localhost/remote.php/webdav/bilder-move/20131129-Kueben.mp4-chunking-2935536672-3-0" ) FINISHED WITH STATUS 0 "" QVariant(int, 201) QVariant(QString, "Created")
10-23 12:39:24:769 0x1a40dc0 syncjournaldb.cpp:856 "INSERT OR REPLACE INTO uploadinfo (path, chunk, transferid, errorcount, size, modtime) VALUES ( ?1 , ?2, ?3 , ?4 , ?5, ?6 )" "bilder-move/20131129-Kueben.mp4" 1 -1346847712 0
10-23 12:39:24:769 0x1a40dc0 syncjournaldb.cpp:1130 void Mirall::SyncJournalDb::commitInternal(const QString&, bool) Transaction commit "Upload info" and starting new transaction
10-23 12:39:24:769 0x1a40dc0 networkjobs.cpp:82 void Mirall::AbstractNetworkJob::setTimeout(qint64) 300000
10-23 12:39:24:770 0x1a40dc0 networkjobs.cpp:208 !!! Mirall::PUTFileJob created for QUrl( "http://localhost" ) querying "/bilder-move/20131129-Kueben.mp4-chunking-2935536672-3-1"
10-23 12:39:25:289 0x1a40dc0 propagator_qnam.cpp:285 void Mirall::PropagateUploadFileQNAM::slotPutFinished() QUrl( "http://localhost/remote.php/webdav/bilder-move/20130209-Schble.mp4-chunking-289349236-2-1" ) FINISHED WITH STATUS 0 "" QVariant(int, 201) QVariant(QString, "Created")
10-23 12:39:25:289 0x1a40dc0 syncjournalfilerecord.cpp:80 Mirall::SyncJournalFileRecord::SyncJournalFileRecord(const Mirall::SyncFileItem&, const QString&) "/home/kamm/ownCloud/bilder-move/20130209-Schble.mp4" Retrieved inode 23465893 (previous item inode: 23465893 )
--
10-23 12:39:25:652 0x1a40dc0 networkjobs.cpp:82 void Mirall::AbstractNetworkJob::setTimeout(qint64) 300000
10-23 12:39:25:652 0x1a40dc0 networkjobs.cpp:208 !!! Mirall::PUTFileJob created for QUrl( "http://localhost" ) querying "/bilder-move/20140726-Chrgle.mp4"
10-23 12:39:25:694 0x1a40dc0 propagator_qnam.cpp:285 void Mirall::PropagateUploadFileQNAM::slotPutFinished() QUrl( "http://localhost/remote.php/webdav/bilder-move/20131129-Kueben.mp4-chunking-2935536672-3-1" ) FINISHED WITH STATUS 0 "" QVariant(int, 201) QVariant(QString, "Created")
10-23 12:39:25:694 0x1a40dc0 syncjournaldb.cpp:856 "INSERT OR REPLACE INTO uploadinfo (path, chunk, transferid, errorcount, size, modtime) VALUES ( ?1 , ?2, ?3 , ?4 , ?5, ?6 )" "bilder-move/20131129-Kueben.mp4" 2 -1346847712 0
10-23 12:39:25:694 0x1a40dc0 syncjournaldb.cpp:1130 void Mirall::SyncJournalDb::commitInternal(const QString&, bool) Transaction commit "Upload info" and starting new transaction
10-23 12:39:25:694 0x1a40dc0 networkjobs.cpp:82 void Mirall::AbstractNetworkJob::setTimeout(qint64) 300000
10-23 12:39:25:694 0x1a40dc0 networkjobs.cpp:208 !!! Mirall::PUTFileJob created for QUrl( "http://localhost" ) querying "/bilder-move/20131129-Kueben.mp4-chunking-2935536672-3-2"
10-23 12:39:25:735 0x1a40dc0 propagator_qnam.cpp:285 void Mirall::PropagateUploadFileQNAM::slotPutFinished() QUrl( "http://localhost/remote.php/webdav/bilder-move/20140426-Wastag.mpg-chunking-2709522755-3-0" ) FINISHED WITH STATUS 0 "" QVariant(int, 201) QVariant(QString, "Created")
10-23 12:39:25:735 0x1a40dc0 syncjournaldb.cpp:856 "INSERT OR REPLACE INTO uploadinfo (path, chunk, transferid, errorcount, size, modtime) VALUES ( ?1 , ?2, ?3 , ?4 , ?5, ?6 )" "bilder-move/20140426-Wastag.mpg" 1 -1598027453 0
--
10-23 12:39:26:264 0x1a40dc0 networkjobs.cpp:82 void Mirall::AbstractNetworkJob::setTimeout(qint64) 300000
10-23 12:39:26:264 0x1a40dc0 networkjobs.cpp:208 !!! Mirall::PUTFileJob created for QUrl( "http://localhost" ) querying "/bilder-move/20140426-Wastag.mpg-chunking-2709522755-3-2"
10-23 12:39:26:394 0x1a40dc0 networkjobs.cpp:153 void Mirall::AbstractNetworkJob::slotFinished() 299 "Error downloading http://localhost/remote.php/webdav/bilder-move/20131129-Kueben.mp4-chunking-2935536672-3-2 - server replied: Internal Server Error"
10-23 12:39:26:394 0x1a40dc0 propagator_qnam.cpp:285 void Mirall::PropagateUploadFileQNAM::slotPutFinished() QUrl( "http://localhost/remote.php/webdav/bilder-move/20131129-Kueben.mp4-chunking-2935536672-3-2 - server replied: Internal Server Error" QVariant(int, 500) QVariant(QString, "Internal Server Error")
10-23 12:39:26:394 0x1a40dc0 propagator_qnam.cpp:303 ""
10-23 12:39:26:394 0x1a40dc0 syncengine.cpp:754 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "bilder-move/20131129-Kueben.mp4-chunking-2935536672-3-2 - server replied: Internal Server Error"
10-23 12:39:26:395 0x1a40dc0 networkjobs.cpp:82 void Mirall::AbstractNetworkJob::setTimeout(qint64) 300000
10-23 12:39:26:395 0x1a40dc0 networkjobs.cpp:208 !!! Mirall::PUTFileJob created for QUrl( "http://localhost" ) querying "/bilder-move/IMG_0022.JPG"
--
10-23 12:39:35:647 0x1a40dc0 folder.cpp:408 Processing result list and logging took 0 Milliseconds.
10-23 12:39:35:647 0x1a40dc0 folder.cpp:428 OO folder slotSyncFinished: result: 3
10-23 12:39:35:647 0x1a40dc0 folder.cpp:820 ** error Strings: ("bilder-move/20131129-Kueben.mp4-chunking-2935536672-3-2 - server replied: Internal Server Error")
10-23 12:39:35:647 0x1a40dc0 folder.cpp:822 * owncloud csync thread finished with error
10-23 12:39:35:648 0x1a40dc0 owncloudgui.cpp:263 Folder in overallStatus Message: Mirall::Folder(0x1b48ab0) with name "ownCloud"
--
10-23 12:40:07:877 0x1d5c1c8 _csync_detect_update: file: bilder-move/20120429-Elier1.avi, instruction: INSTRUCTION_NONE <<=
10-23 12:40:07:877 0x1d5c1c8 sqlite_profile: _SQL_ SELECT * FROM metadata WHERE phash=?1: 0
10-23 12:40:07:877 0x1d5c1c8 csync_walker: file: /home/kamm/ownCloud/bilder-move/20131129-Kueben.mp4 [inode=23465905 size=42794946]
10-23 12:40:07:877 0x1d5c1c8 sqlite_profile: _SQL_ SELECT * FROM metadata WHERE phash=?1: 0
10-23 12:40:07:877 0x1d5c1c8 _csync_detect_update: Checking for rename based on inode # 23465905
10-23 12:40:07:877 0x1d5c1c8 sqlite_profile: _SQL_ SELECT * FROM metadata WHERE inode=?1: 0
10-23 12:40:07:877 0x1d5c1c8 _csync_detect_update: file: bilder-move/20131129-Kueben.mp4, instruction: INSTRUCTION_NEW <<=
10-23 12:40:07:877 0x1d5c1c8 csync_ftw: Uniq ID from Database: bilder-move/20120725-Eliund.avi -> 5448dadba6850
10-23 12:40:07:877 0x1d5c1c8 csync_walker: file: /home/kamm/ownCloud/bilder-move/20120725-Eliund.avi [inode=23465906 size=43864712]
--
10-23 12:40:08:193 0x1d5c1c8 _csync_detect_update: Database entry found, compare: 1398510773 <-> 1398510773, etag: 5448da52f154e <-> 5448da52f154e, inode: 0 <-> 23464958, size: 11128022 <-> 0, perms: RDNVW <-> RDNVW
10-23 12:40:08:193 0x1d5c1c8 _csync_detect_update: file: bilder-move/20140121-Winlaf.mpg, instruction: INSTRUCTION_NONE <<=
10-23 12:40:08:193 0x1d5c1c8 csync_walker: file: owncloud://localhost/remote.php/webdav/bilder-move/20131129-Kueben.mp4 [file_id=00000573ocd3e62172da size=42794946]
10-23 12:40:08:193 0x1d5c1c8 sqlite_profile: _SQL_ SELECT * FROM metadata WHERE phash=?1: 0
10-23 12:40:08:193 0x1d5c1c8 sqlite_profile: _SQL_ SELECT * FROM metadata WHERE fileid=?1: 0
10-23 12:40:08:193 0x1d5c1c8 _csync_detect_update: file: bilder-move/20131129-Kueben.mp4, instruction: INSTRUCTION_NEW <<=
10-23 12:40:08:193 0x1d5c1c8 csync_walker: file: owncloud://localhost/remote.php/webdav/bilder-move/20131129-Kueble.mpg [file_id=00000317ocd3e62172da size=28360704]
10-23 12:40:08:193 0x1d5c1c8 _csync_detect_update: Database entry found, compare: 1386406551 <-> 1386406551, etag: 5448da52aec4e <-> 5448da52aec4e, inode: 0 <-> 23465865, size: 28360704 <-> 0, perms: RDNVW <-> RDNVW
--
10-23 12:40:08:201 0x1a40dc0 _csync_merge_algorithm_visitor: INSTRUCTION_NONE file: bilder-move/20111111-Elihts.mpg
10-23 12:40:08:201 0x1a40dc0 _csync_merge_algorithm_visitor: INSTRUCTION_NONE file: bilder-move/Fotos/HelGeburtstag/DSC01189.JPG
10-23 12:40:08:201 0x1a40dc0 _csync_merge_algorithm_visitor: INSTRUCTION_NONE file: bilder-move/20131129-Kueben.mp4
10-23 12:40:08:201 0x1a40dc0 _csync_merge_algorithm_visitor: INSTRUCTION_NONE file: bilder-move/Fotos/HochzeitsFotos/DSC09971.jpg
10-23 12:40:08:201 0x1a40dc0 _csync_merge_algorithm_visitor: INSTRUCTION_NONE file: bilder-move/20120713-Eliet1.avi
--
10-23 12:40:08:204 0x1a40dc0 _csync_merge_algorithm_visitor: INSTRUCTION_NONE file: bilder-move/20111111-Elihts.mpg
10-23 12:40:08:204 0x1a40dc0 _csync_merge_algorithm_visitor: INSTRUCTION_NONE file: bilder-move/Fotos/HelGeburtstag/DSC01189.JPG
10-23 12:40:08:204 0x1a40dc0 _csync_merge_algorithm_visitor: INSTRUCTION_CONFLICT file: bilder-move/20131129-Kueben.mp4
10-23 12:40:08:204 0x1a40dc0 _csync_merge_algorithm_visitor: INSTRUCTION_NONE file: bilder-move/Fotos/HochzeitsFotos/DSC09971.jpg
10-23 12:40:08:204 0x1a40dc0 _csync_merge_algorithm_visitor: INSTRUCTION_NONE file: bilder-move/20120713-Eliet1.avi
--
10-23 12:40:08:207 0x1a40dc0 syncjournaldb.cpp:515 "INSERT OR REPLACE INTO metadata (phash, pathlen, path, inode, uid, gid, mode, modtime, type, md5, fileid, remotePerm) VALUES (?1 , ?2, ?3 , ?4 , ?5 , ?6 , ?7, ?8 , ?9 , ?10, ?11, ?12);" -2200405590840143652 24 "bilder-move/MVI_6211.avi" 23465907 0 "1313911210" "0" "5448dae1eb6a4" "00000583ocd3e62172da" "RDNVW"
10-23 12:40:08:208 0x1a40dc0 syncjournaldb.cpp:1130 void Mirall::SyncJournalDb::commitInternal(const QString&, bool) Transaction commit "post treewalk" and starting new transaction
10-23 12:40:08:208 0x1a40dc0 syncjournaldb.cpp:691 Removing stale uploadinfo entries: "bilder-move/20131129-Kueben.mp4"
10-23 12:40:08:208 0x1a40dc0 syncjournaldb.cpp:1130 void Mirall::SyncJournalDb::commitInternal(const QString&, bool) Transaction commit "post stale entry removal" and starting new transaction
10-23 12:40:08:208 0x1a40dc0 owncloudpropagator.cpp:305 Using QNAM/HTTP parallel code path
--
10-23 12:40:08:208 0x1a40dc0 owncloudgui.cpp:263 Folder in overallStatus Message: Mirall::Folder(0x1b48ab0) with name "ownCloud"
10-23 12:40:08:208 0x1a40dc0 owncloudgui.cpp:180 Sync state changed for folder "ownCloud" : "Sync Running"
10-23 12:40:08:210 0x1a40dc0 propagator_qnam.cpp:589 virtual void Mirall::PropagateDownloadFileQNAM::start() "bilder-move/20131129-Kueben.mp4" 0
10-23 12:40:08:211 0x1a40dc0 syncjournaldb.cpp:752 "INSERT OR REPLACE INTO downloadinfo (path, tmpfile, etag, errorcount) VALUES ( ?1 , ?2, ?3, ?4 )" "bilder-move/20131129-Kuemp4.~7fe93605" "5448dade5985f" 0
10-23 12:40:08:211 0x1a40dc0 syncjournaldb.cpp:1130 void Mirall::SyncJournalDb::commitInternal(const QString&, bool) Transaction commit "download file start" and starting new transaction
10-23 12:40:08:211 0x1a40dc0 networkjobs.cpp:82 void Mirall::AbstractNetworkJob::setTimeout(qint64) 300000
10-23 12:40:08:211 0x1a40dc0 networkjobs.cpp:208 !!! Mirall::GETFileJob created for QUrl( "http://localhost" ) querying "/bilder-move/20131129-Kueben.mp4"
10-23 12:40:08:214 0x1a40dc0 folderwatcher.cpp:153 detected changes in folders: QSet("/home/kamm/ownCloud/bilder-move")
10-23 12:40:08:214 0x1a40dc0 folderman.cpp:455 folder "ownCloud" is currently syncing. NOT scheduling.
Activity
ckamm commentedon Oct 23, 2014
It turns out that this is correct behavior for the client: it thinks the upload failed but the server actually successfully received the file. So when it reconciles the local tree and the server it is surprised by the file on the server and thinks it might be different. It then needs to download it to compare and resolve the conflict.
Server access.log:
There's no error.log.
owncloud.log:
moscicki commentedon Oct 23, 2014
An alternative (maybe) would be to fallback on the same process as when you don't have the journal file at all: compare size and mtime (provided that it is stored with sufficient resolution on the server, I don't know). In some future maybe the checksum!
As long as we don't lose the files and 500 does not happen too often -- I'd say it is not too bad....
PVince81 commentedon Oct 23, 2014
Database locked issue in core: owncloud/core#11391
But the client should probably somehow be able to recover from that.
PVince81 commentedon Oct 23, 2014
Yes, like @ckamm said.
On insert or update, the file's data is already there with a mtime/size. If the cache could not be updated, the next pass of the file scanner will find the discrepancy (real file mtime !== cached mtime) and think that the file changed, so it will update the cache to reflect that, and at the same time update the etag. This will cause the file to be re-downloaded.
Maybe the cache update should happen BEFORE the part file is renamed to the final file.
This way if there is an error, the part file can be deleted and the previous file can still be there.
@icewind1991 what do you think ?
PVince81 commentedon Oct 23, 2014
Raised owncloud/core#11734 for making the cache update happen before renaming the part file.
guruz commentedon Oct 23, 2014
@cdamken You reported a similar thing, did you see similar error messages in the server log?
dragotin commentedon Oct 23, 2014
I think this is no client issue, and it is tracked in http://github.com/owncloud/core/issues/11391
cdamken commentedon Oct 24, 2014
@guruz yes, that is the same behavior but with mySQL and not SQLlite like owncloud/core#11391