client icon indicating copy to clipboard operation
client copied to clipboard

Wrong modification time

Open homann opened this issue 13 years ago • 5 comments

While trying to debug intermittent conflicts, I found that files with special characters does not get uploaded with the correct modification date. To reproduce:

Create two files called 'dummy.txt' and 'voilá.txt' in a new directory. Wait a few minutes. Create a new sync directory from the sync client. Wait for sync, and watch the web interface. Notice that dummy.txt retains the original modification date in the web interface, but voilá.txt does not.

Does not look seriosu, but I think this is the background for me having a lot of conflicts on my files with special characters in them. But that's another issue.

Edit: It appears to not be related top the characters... Including log:

server 5.0.0., client 1.2.1-1, ubuntu amd64

03-25 16:14:26:179 Logging into logfile:  "/persistent/slask/owncloud.log"  with flush  false 
03-25 16:14:26:179 "################## ownCloud sv_SE (sv) 1.2.1" 
03-25 16:14:26:343 "sni-qt/27452" WARN  16:14:26.343 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE 
03-25 16:14:26:348 * Setup folders from  "/home/homann/.local/share/data//ownCloud/folders" 
03-25 16:14:26:348   ` -> setting up: "Debug" 
03-25 16:14:26:349     -> file path:  "/home/homann/.local/share/data/ownCloud/folders/Debug" 
03-25 16:14:26:349 Returning configured owncloud url:  "http://localhost/owncloud/remote.php/webdav/" 
03-25 16:14:26:349 setting remote poll timer interval to 29675 msec for folder  "Debug" 
03-25 16:14:26:349 (+) Watcher: "/home/homann/OwncloudDebug" 
03-25 16:14:26:349 * Pending events for "/home/homann/OwncloudDebug" will be processed after events stop for 1000 milliseconds ( "16:31:06" ). 0 events until now ) 
03-25 16:14:26:349   ==> returning exclude file path:  "/etc/ownCloud/sync-exclude.lst" 
03-25 16:14:26:349 Checked local path ok 
03-25 16:14:26:349 ****** ownCloud folder using watcher ******* 
03-25 16:14:26:349 Adding folder to Folder Map  Mirall::ownCloudFolder(0x1be2960) 
03-25 16:14:26:349 Check status.php from statusdialog. 
03-25 16:14:26:349 Get Request to  "status.php" 
03-25 16:14:26:349 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:26:350 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:26:350 Setting up host header:  "localhost" 
03-25 16:14:26:350 Folder in overallStatus Message:  Mirall::ownCloudFolder(0x1be2960)  with name  "Debug" 
03-25 16:14:26:350 Sync state changed for folder  "Debug" :  "Not yet Started" 
03-25 16:14:26:350 Folder:  Mirall::ownCloudFolder(0x1be2960) 
03-25 16:14:26:350 ==> load folder icon  "owncloud-framed" 
03-25 16:14:26:363 Returning configured owncloud url:  "http://localhost/owncloud/remote.php/webdav/" 
03-25 16:14:26:366 Check status.php from statusdialog. 
03-25 16:14:26:366 Get Request to  "status.php" 
03-25 16:14:26:366 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:26:366 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:26:366 Setting up host header:  "localhost" 
03-25 16:14:26:394 Network Location:  "" 
03-25 16:14:26:397 Get Request to  "status.php" 
03-25 16:14:26:397 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:26:397 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:26:397 Setting up host header:  "localhost" 
03-25 16:14:26:402 status.php returns:  "{"installed":"true","version":"5.0.0","versionstring":"5.0","edition":""}"   0  Reply:  QNetworkReplyImpl(0x1be8fa0) 
03-25 16:14:26:402 Unknown info from ownCloud status.php:  "installed" = "true" 
03-25 16:14:26:402 #-------# oC found on  "http://localhost/owncloud" 
03-25 16:14:26:403 ** Application: ownCloud found:  "http://localhost/owncloud"  with version  "5.0" ( "5.0.0" ) 
03-25 16:14:26:403 ** Setting ownCloud Server version to  "5.0.0" 
03-25 16:14:26:405 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:26:416 status.php returns:  "{"installed":"true","version":"5.0.0","versionstring":"5.0","edition":""}"   0  Reply:  QNetworkReplyImpl(0x1bd9c60) 
03-25 16:14:26:416 Unknown info from ownCloud status.php:  "installed" = "true" 
03-25 16:14:26:417 No Storage Backend, falling back to Settings mode. 
03-25 16:14:26:417 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:26:417 Credentials successfully fetched:  true 
03-25 16:14:26:417 # checking for authentication settings. 
03-25 16:14:26:417 Get Request to  "/" 
03-25 16:14:26:417 Returning configured owncloud url:  "http://localhost/owncloud/remote.php/webdav/" 
03-25 16:14:26:417 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:26:417 Setting up host header:  "localhost" 
03-25 16:14:26:433 status.php returns:  "{"installed":"true","version":"5.0.0","versionstring":"5.0","edition":""}"   0  Reply:  QNetworkReplyImpl(0x19ce940) 
03-25 16:14:26:433 Unknown info from ownCloud status.php:  "installed" = "true" 
03-25 16:14:26:516 ######## Credentials are ok! 
03-25 16:14:26:516 XX slotScheduleFolderSync: folderQueue size:  0 
03-25 16:14:26:536 Schedule folder  "Debug"  to sync! 
03-25 16:14:26:536 XX slotScheduleFolderSync: folderQueue size:  1 
03-25 16:14:26:536 ==> load folder icon  "owncloud-framed" 
03-25 16:14:26:537 Returning configured owncloud url:  "http://localhost/owncloud/remote.php/webdav/" 
03-25 16:14:26:542 Check status.php from statusdialog. 
03-25 16:14:26:542 Get Request to  "status.php" 
03-25 16:14:26:542 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:26:542 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:26:542 Setting up host header:  "localhost" 
03-25 16:14:26:542 Folder in overallStatus Message:  Mirall::ownCloudFolder(0x1be2960)  with name  "Debug" 
03-25 16:14:26:542 Sync state changed for folder  "Debug" :  "SyncPrepare" 
03-25 16:14:26:542 *** Start syncing url to ownCloud:  "owncloud://localhost/owncloud/remote.php/webdav/Debug" 
03-25 16:14:26:542 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:26:542     * event notification  disabled 
03-25 16:14:26:542 >===================================== sync started for  "Debug" 
03-25 16:14:26:542 Folder in overallStatus Message:  Mirall::ownCloudFolder(0x1be2960)  with name  "Debug" 
03-25 16:14:26:559 starting to sync  QThread(0x17914d0) QThread(0x1bae920) 
03-25 16:14:26:559   ==> returning exclude file path:  "/etc/ownCloud/sync-exclude.lst" 
03-25 16:14:26:559 ==== added CSync exclude List:  "/etc/ownCloud/sync-exclude.lst" 
03-25 16:14:26:567 status.php returns:  "{"installed":"true","version":"5.0.0","versionstring":"5.0","edition":""}"   0  Reply:  QNetworkReplyImpl(0x1bda170) 
03-25 16:14:26:567 Unknown info from ownCloud status.php:  "installed" = "true" 
03-25 16:14:26:567 #-------# oC found on  "http://localhost/owncloud" 
03-25 16:14:26:610 #### Update start #################################################### >> 
03-25 16:14:26:610 csync_memstat_check: Memory: 1176176K total size, 35228K resident, 25468K shared
03-25 16:14:26:610 csync_ftw: Incoming read_from_db-Flag for /home/homann/OwncloudDebug: 0
03-25 16:14:26:611 csync_ftw: .csync_journal.db.ctmp excluded
03-25 16:14:26:611 csync_ftw: .csync_journal.db excluded
03-25 16:14:26:611 csync_ftw: Uniq ID read from Database: voilá.txt -> <NULL>
03-25 16:14:26:611 csync_ftw: walk: /home/homann/OwncloudDebug/voilá.txt
03-25 16:14:26:611 csync_walker: file: /home/homann/OwncloudDebug/voilá.txt
03-25 16:14:26:611 _csync_detect_update: file: voilá.txt - hash 2880511897100411704, mtime: 1364224307
03-25 16:14:26:611 csync_statedb_get_stat_by_hash: No result record found for phash = 2880511897100411704
03-25 16:14:26:611 _csync_detect_update: file: voilá.txt, instruction: INSTRUCTION_NEW
03-25 16:14:26:612 csync_ftw: Uniq ID read from Database: dummy.txt -> <NULL>
03-25 16:14:26:612 csync_ftw: walk: /home/homann/OwncloudDebug/dummy.txt
03-25 16:14:26:612 csync_walker: file: /home/homann/OwncloudDebug/dummy.txt
03-25 16:14:26:612 _csync_detect_update: file: dummy.txt - hash 10419687758462341820, mtime: 1364224311
03-25 16:14:26:612 csync_statedb_get_stat_by_hash: No result record found for phash = 10419687758462341820
03-25 16:14:26:612 _csync_detect_update: file: dummy.txt, instruction: INSTRUCTION_NEW
03-25 16:14:26:612 csync_ftw: Closing walk for /home/homann/OwncloudDebug with read_from_db 0
03-25 16:14:26:612 csync_update: Update detection for local replica took 0,00 seconds walking 2 files.
03-25 16:14:26:612 csync_memstat_check: Memory: 1176176K total size, 35252K resident, 25484K shared
03-25 16:14:26:612 csync_ftw: Incoming read_from_db-Flag for owncloud://localhost/owncloud/remote.php/webdav/Debug: 0
03-25 16:14:26:612 csync_ftw: Checking for read from db for owncloud://localhost/owncloud/remote.php/webdav/Debug: 0
03-25 16:14:26:612 oc_module: opendir method called on owncloud://localhost/owncloud/remote.php/webdav/Debug
03-25 16:14:26:612 oc_module: * scheme owncloud
03-25 16:14:26:612 oc_module: * host localhost
03-25 16:14:26:613 oc_module: * port 0
03-25 16:14:26:613 oc_module: * path /owncloud/remote.php/webdav/Debug
03-25 16:14:26:613 oc_module: * user 
03-25 16:14:26:616 oc_module: ne_sock_init: 0
03-25 16:14:26:616 oc_module: No proxy configured.
03-25 16:14:26:663 oc_module:  Set-Cookie found: 50772d27be454=319qkmleph2h3oieoajba2vg74; path=/; HttpOnly
03-25 16:14:26:663 oc_module: ----> Session-key: 50772d27be454=319qkmleph2h3oieoajba2vg74
03-25 16:14:26:663 oc_module: Authentication required 
03-25 16:14:26:663 oc_module: Call the csync callback for ownCloud
03-25 16:14:26:747 oc_module: Simple propfind result code 207.
03-25 16:14:26:747 oc_module: Server Date from HTTP header value: Mon, 25 Mar 2013 15:14:26 GMT
03-25 16:14:26:747 oc_module: The first time_delta is 0
03-25 16:14:26:747 oc_module: opendir returning handle 0x7ff930029bf0
03-25 16:14:26:747 oc_module: Skipping target resource.
03-25 16:14:26:747 oc_module: closedir method called 0x7ff930029bf0!
03-25 16:14:26:747 csync_ftw: Closing walk for owncloud://localhost/owncloud/remote.php/webdav/Debug with read_from_db 0
03-25 16:14:26:747 csync_update: Update detection for remote replica took 0,13 seconds walking 0 files.
03-25 16:14:26:747 csync_memstat_check: Memory: 1178308K total size, 35776K resident, 25888K shared
03-25 16:14:26:747 <<#### Update end ########################################################### 
03-25 16:14:26:747 _csync_merge_algorithm_visitor: INSTRUCTION_NEW      file: voilá.txt
03-25 16:14:26:747 _csync_merge_algorithm_visitor: INSTRUCTION_NEW      file: dummy.txt
03-25 16:14:26:747 csync_reconcile: Reconciliation for local replica took 0,00 seconds visiting 2 files.
03-25 16:14:26:747 csync_reconcile: Reconciliation for remote replica took 0,00 seconds visiting 0 files.
03-25 16:14:26:747 _csync_push_file: Remote repository atomar push enabled for owncloud://localhost/owncloud/remote.php/webdav/Debug/voilá.txt (0).
03-25 16:14:26:747 oc_module: => open called for owncloud://localhost/owncloud/remote.php/webdav/Debug/voilá.txt
03-25 16:14:26:747 oc_module: Stating directory owncloud://localhost/owncloud/remote.php/webdav/Debug
03-25 16:14:26:747 oc_module: owncloud_stat owncloud://localhost/owncloud/remote.php/webdav/Debug called
03-25 16:14:26:747 oc_module: => Errno after fetch resource list for owncloud://localhost/owncloud/remote.php/webdav/Debug: 0
03-25 16:14:26:747 oc_module: Working on file Debug
03-25 16:14:26:747 oc_module:   :> Subtracting 0 from modtime 1364224386
03-25 16:14:26:747 oc_module: STAT result from propfind: Debug, mtime: 1364224386
03-25 16:14:26:747 oc_module: Directory of file to open exists.
03-25 16:14:26:747 oc_module: PUT request on /owncloud/remote.php/webdav/Debug/voil%c3%a1.txt!
03-25 16:14:26:747 oc_module: Sendfile handling request type PUT.
03-25 16:14:26:747 oc_module: Put file size: 4, variable sizeof: 8
03-25 16:14:26:748     * csync thread started 
03-25 16:14:26:748 ==> load folder icon  "owncloud-framed" 
03-25 16:14:26:748 Returning configured owncloud url:  "http://localhost/owncloud/remote.php/webdav/" 
03-25 16:14:26:753 Check status.php from statusdialog. 
03-25 16:14:26:753 Get Request to  "status.php" 
03-25 16:14:26:753 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:26:753 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:26:753 Setting up host header:  "localhost" 
03-25 16:14:26:753 Folder in overallStatus Message:  Mirall::ownCloudFolder(0x1be2960)  with name  "Debug" 
03-25 16:14:26:753 Sync state changed for folder  "Debug" :  "Sync Running" 
03-25 16:14:26:794 status.php returns:  "{"installed":"true","version":"5.0.0","versionstring":"5.0","edition":""}"   0  Reply:  QNetworkReplyImpl(0x1cf74b0) 
03-25 16:14:26:795 Unknown info from ownCloud status.php:  "installed" = "true" 
03-25 16:14:26:795 #-------# oC found on  "http://localhost/owncloud" 
03-25 16:14:29:152 oc_module: http request all cool, result code 201
03-25 16:14:29:152 oc_module: Add a time delta to modtime 1364224307: 0
03-25 16:14:29:152 oc_module: Setting LastModified of /owncloud/remote.php/webdav/Debug/voil%c3%a1.txt to 1364224307
03-25 16:14:29:375 00 client update check to  "https://download.owncloud.com/clientupdater.php" 
03-25 16:14:29:647 Sys Info size:  88 
03-25 16:14:29:810 oc_module: owncloud_stat owncloud://localhost/owncloud/remote.php/webdav/Debug/voilá.txt called
03-25 16:14:29:900 oc_module: Simple propfind result code 207.
03-25 16:14:29:900 oc_module: Server Date from HTTP header value: Mon, 25 Mar 2013 15:14:29 GMT
03-25 16:14:29:900 oc_module: Ok: Time delta remained (almost) the same: 0.
03-25 16:14:29:900 oc_module: => Errno after fetch resource list for owncloud://localhost/owncloud/remote.php/webdav/Debug/voilá.txt: 0
03-25 16:14:29:900 oc_module: Working on file voilá.txt
03-25 16:14:29:900 oc_module:   :> Subtracting 0 from modtime 1364224466
03-25 16:14:29:900 oc_module: STAT result from propfind: voilá.txt, mtime: 1364224466
03-25 16:14:29:900 oc_module: Get file ID for owncloud://localhost/owncloud/remote.php/webdav/Debug/voilá.txt: 515069d48db70
03-25 16:14:29:900 _get_md5: MD5 for owncloud://localhost/owncloud/remote.php/webdav/Debug/voilá.txt: 515069d48db70
03-25 16:14:29:900 _csync_push_file: FINAL MD5: 515069d48db70
03-25 16:14:29:900 _csync_push_file: PUSHED  file: owncloud://localhost/owncloud/remote.php/webdav/Debug/voilá.txt
03-25 16:14:29:900 _store_id_update: SYNCED remember  dir: voilá.txt
03-25 16:14:29:900 _csync_push_file: Remote repository atomar push enabled for owncloud://localhost/owncloud/remote.php/webdav/Debug/dummy.txt (0).
03-25 16:14:29:900 oc_module: => open called for owncloud://localhost/owncloud/remote.php/webdav/Debug/dummy.txt
03-25 16:14:29:900 oc_module: Stating directory owncloud://localhost/owncloud/remote.php/webdav/Debug
03-25 16:14:29:900 oc_module: Dir owncloud://localhost/owncloud/remote.php/webdav/Debug is there, we know it already.
03-25 16:14:29:900 oc_module: PUT request on /owncloud/remote.php/webdav/Debug/dummy.txt!
03-25 16:14:29:900 oc_module: Sendfile handling request type PUT.
03-25 16:14:29:900 oc_module: Put file size: 4, variable sizeof: 8
03-25 16:14:30:351 Client is on latest version! 
03-25 16:14:32:165 oc_module: http request all cool, result code 201
03-25 16:14:32:166 oc_module: Add a time delta to modtime 1364224311: 0
03-25 16:14:32:166 oc_module: Setting LastModified of /owncloud/remote.php/webdav/Debug/dummy.txt to 1364224311
03-25 16:14:32:809 oc_module: owncloud_stat owncloud://localhost/owncloud/remote.php/webdav/Debug/dummy.txt called
03-25 16:14:32:893 oc_module: Simple propfind result code 207.
03-25 16:14:32:893 oc_module: Server Date from HTTP header value: Mon, 25 Mar 2013 15:14:32 GMT
03-25 16:14:32:893 oc_module: Ok: Time delta remained (almost) the same: 0.
03-25 16:14:32:893 oc_module: => Errno after fetch resource list for owncloud://localhost/owncloud/remote.php/webdav/Debug/dummy.txt: 0
03-25 16:14:32:893 oc_module: Working on file dummy.txt
03-25 16:14:32:893 oc_module:   :> Subtracting 0 from modtime 1364224469
03-25 16:14:32:893 oc_module: STAT result from propfind: dummy.txt, mtime: 1364224469
03-25 16:14:32:893 oc_module: Get file ID for owncloud://localhost/owncloud/remote.php/webdav/Debug/dummy.txt: 515069d79ba35
03-25 16:14:32:893 _get_md5: MD5 for owncloud://localhost/owncloud/remote.php/webdav/Debug/dummy.txt: 515069d79ba35
03-25 16:14:32:893 _csync_push_file: FINAL MD5: 515069d79ba35
03-25 16:14:32:893 _csync_push_file: PUSHED  file: owncloud://localhost/owncloud/remote.php/webdav/Debug/dummy.txt
03-25 16:14:32:893 _store_id_update: SYNCED remember  dir: dummy.txt
03-25 16:14:32:893 csync_propagate: Propagation for local replica took 6,15 seconds visiting 2 files.
03-25 16:14:32:893 csync_propagate: Propagation for remote replica took 0,00 seconds visiting 0 files.
03-25 16:14:32:893 csync_correct_id: correct ID on dir: .
03-25 16:14:32:893 csync_correct_id: correct ID on dir: .
03-25 16:14:32:893 csync_propagate: Correct Id took. 0,00 seconds 
03-25 16:14:33:612 _insert_metadata_visitor: SQL statement: INSERT INTO metadata_temp 
            (phash, pathlen, path, inode, uid, gid, mode, modtime, type, md5) VALUES 
            (2880511897100411704, 10, voilá.txt, 14429983, 1000, 1000, 33188, 1364224307, 0, 515069d48db70);
03-25 16:14:33:613 _insert_metadata_visitor: SQL statement: INSERT INTO metadata_temp 
            (phash, pathlen, path, inode, uid, gid, mode, modtime, type, md5) VALUES 
            (-8027056315247209796, 9, dummy.txt, 14429893, 1000, 1000, 33204, 1364224311, 0, 515069d79ba35);
03-25 16:14:33:704 csync_destroy: Writing the statedb of 2 files to disk took 0,81 seconds
03-25 16:14:33:730 csync_lock_remove: Removing lock file: /home/homann/.local/share/data//ownCloud//lock
03-25 16:14:33:730 CSync run took  7170  Milliseconds 
03-25 16:14:33:730 -> CSync Finished slot with error  false 
03-25 16:14:33:730 Starting Event logging again in  2000  milliseconds 
03-25 16:14:33:730 OO folder slotSyncFinished: result:  4  local:  false 
03-25 16:14:33:731 ==> load folder icon  "owncloud-framed" 
03-25 16:14:33:731 Returning configured owncloud url:  "http://localhost/owncloud/remote.php/webdav/" 
03-25 16:14:33:731 Check status.php from statusdialog. 
03-25 16:14:33:731 Get Request to  "status.php" 
03-25 16:14:33:731 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:33:731 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:33:732 Setting up host header:  "localhost" 
03-25 16:14:33:732 Folder in overallStatus Message:  Mirall::ownCloudFolder(0x1be2960)  with name  "Debug" 
03-25 16:14:33:732 Sync state changed for folder  "Debug" :  "Success" 
03-25 16:14:33:732 *  "Debug" Poll timer enabled with  29675 milliseconds 
03-25 16:14:33:732 <===================================== sync finished for  "Debug" 
03-25 16:14:33:751 status.php returns:  "{"installed":"true","version":"5.0.0","versionstring":"5.0","edition":""}"   0  Reply:  QNetworkReplyImpl(0x1cf3c90) 
03-25 16:14:33:751 Unknown info from ownCloud status.php:  "installed" = "true" 
03-25 16:14:33:751 #-------# oC found on  "http://localhost/owncloud" 
03-25 16:14:33:932 XX slotScheduleFolderSync: folderQueue size:  0 
03-25 16:14:35:641 #============# Status dialog starting #=============# 
03-25 16:14:35:641 Folder:  Mirall::ownCloudFolder(0x1be2960) 
03-25 16:14:35:641 ==> load folder icon  "owncloud-framed" 
03-25 16:14:35:641 Returning configured owncloud url:  "http://localhost/owncloud/remote.php/webdav/" 
03-25 16:14:35:642 Check status.php from statusdialog. 
03-25 16:14:35:642 Get Request to  "status.php" 
03-25 16:14:35:642 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:35:642 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:35:642 Setting up host header:  "localhost" 
03-25 16:14:35:659 Check status.php from statusdialog. 
03-25 16:14:35:659 Get Request to  "status.php" 
03-25 16:14:35:659 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:35:659 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:14:35:659 Setting up host header:  "localhost" 
03-25 16:14:35:886 status.php returns:  "{"installed":"true","version":"5.0.0","versionstring":"5.0","edition":""}"   0  Reply:  QNetworkReplyImpl(0x1c47080) 
03-25 16:14:35:886 Unknown info from ownCloud status.php:  "installed" = "true" 
03-25 16:14:35:886 #-------# oC found on  "http://localhost/owncloud" 
03-25 16:14:35:887 status.php returns:  "{"installed":"true","version":"5.0.0","versionstring":"5.0","edition":""}"   0  Reply:  QNetworkReplyImpl(0x1cf6f80) 
03-25 16:14:35:887 Unknown info from ownCloud status.php:  "installed" = "true" 
03-25 16:14:35:902     * event notification  enabled 
03-25 16:14:37:280 Info Folder alias  "Debug" 
03-25 16:14:37:280 details of folder with alias  "Debug" 
03-25 16:15:03:407 * Polling "Debug" for changes. Ignoring all pending events until now 
03-25 16:15:03:407 *  "Debug" Poll timer disabled 
03-25 16:15:03:407 Schedule folder  "Debug"  to sync! 
03-25 16:15:03:407 XX slotScheduleFolderSync: folderQueue size:  1 
03-25 16:15:03:407 ==> load folder icon  "owncloud-framed" 
03-25 16:15:03:408 Returning configured owncloud url:  "http://localhost/owncloud/remote.php/webdav/" 
03-25 16:15:03:408 Check status.php from statusdialog. 
03-25 16:15:03:408 Get Request to  "status.php" 
03-25 16:15:03:408 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:15:03:408 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:15:03:408 Setting up host header:  "localhost" 
03-25 16:15:03:408 Folder in overallStatus Message:  Mirall::ownCloudFolder(0x1be2960)  with name  "Debug" 
03-25 16:15:03:408 Sync state changed for folder  "Debug" :  "SyncPrepare" 
03-25 16:15:03:409 *** Start syncing url to ownCloud:  "owncloud://localhost/owncloud/remote.php/webdav/Debug" 
03-25 16:15:03:409 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:15:03:409     * event notification  disabled 
03-25 16:15:03:409 >===================================== sync started for  "Debug" 
03-25 16:15:03:409 starting to sync  QThread(0x17914d0) QThread(0x1e29e20) 
03-25 16:15:03:409   ==> returning exclude file path:  "/etc/ownCloud/sync-exclude.lst" 
03-25 16:15:03:409 ==== added CSync exclude List:  "/etc/ownCloud/sync-exclude.lst" 
03-25 16:15:03:436 status.php returns:  "{"installed":"true","version":"5.0.0","versionstring":"5.0","edition":""}"   0  Reply:  QNetworkReplyImpl(0x1cea470) 
03-25 16:15:03:436 Unknown info from ownCloud status.php:  "installed" = "true" 
03-25 16:15:03:436 #-------# oC found on  "http://localhost/owncloud" 
03-25 16:15:03:450 #### Update start #################################################### >> 
03-25 16:15:03:450 csync_memstat_check: Memory: 1258636K total size, 42040K resident, 29456K shared
03-25 16:15:03:450 csync_ftw: Incoming read_from_db-Flag for /home/homann/OwncloudDebug: 0
03-25 16:15:03:451 csync_ftw: .csync_journal.db.ctmp excluded
03-25 16:15:03:451 csync_ftw: .csync_journal.db excluded
03-25 16:15:03:451 csync_ftw: Uniq ID read from Database: voilá.txt -> 515069d48db70
03-25 16:15:03:451 csync_ftw: walk: /home/homann/OwncloudDebug/voilá.txt
03-25 16:15:03:451 csync_walker: file: /home/homann/OwncloudDebug/voilá.txt
03-25 16:15:03:451 _csync_detect_update: file: voilá.txt - hash 2880511897100411704, mtime: 1364224307
03-25 16:15:03:451 _csync_detect_update: time compare: 1364224307 <-> 1364224307, md5: 515069d48db70 <-> 515069d48db70
03-25 16:15:03:451 _csync_detect_update: file: voilá.txt, instruction: INSTRUCTION_NONE
03-25 16:15:03:452 csync_ftw: Uniq ID read from Database: dummy.txt -> 515069d79ba35
03-25 16:15:03:452 csync_ftw: walk: /home/homann/OwncloudDebug/dummy.txt
03-25 16:15:03:452 csync_walker: file: /home/homann/OwncloudDebug/dummy.txt
03-25 16:15:03:452 _csync_detect_update: file: dummy.txt - hash 10419687758462341820, mtime: 1364224311
03-25 16:15:03:452 _csync_detect_update: time compare: 1364224311 <-> 1364224311, md5: 515069d79ba35 <-> 515069d79ba35
03-25 16:15:03:452 _csync_detect_update: file: dummy.txt, instruction: INSTRUCTION_NONE
03-25 16:15:03:452 csync_ftw: Closing walk for /home/homann/OwncloudDebug with read_from_db 0
03-25 16:15:03:452 csync_update: Update detection for local replica took 0,00 seconds walking 2 files.
03-25 16:15:03:452 csync_memstat_check: Memory: 1258636K total size, 42052K resident, 29464K shared
03-25 16:15:03:452 csync_ftw: Incoming read_from_db-Flag for owncloud://localhost/owncloud/remote.php/webdav/Debug: 0
03-25 16:15:03:452 csync_ftw: Checking for read from db for owncloud://localhost/owncloud/remote.php/webdav/Debug: 0
03-25 16:15:03:452 oc_module: opendir method called on owncloud://localhost/owncloud/remote.php/webdav/Debug
03-25 16:15:03:452 oc_module: * scheme owncloud
03-25 16:15:03:452 oc_module: * host localhost
03-25 16:15:03:452 oc_module: * port 0
03-25 16:15:03:452 oc_module: * path /owncloud/remote.php/webdav/Debug
03-25 16:15:03:452 oc_module: * user 
03-25 16:15:03:455 oc_module: ne_sock_init: 0
03-25 16:15:03:455 oc_module: No proxy configured.
03-25 16:15:03:495 oc_module:  Set-Cookie found: 50772d27be454=js94iufcuc9isra3okh2al1su0; path=/; HttpOnly
03-25 16:15:03:495 oc_module: ----> Session-key: 50772d27be454=js94iufcuc9isra3okh2al1su0
03-25 16:15:03:495 oc_module: Authentication required 
03-25 16:15:03:495 oc_module: Call the csync callback for ownCloud
03-25 16:15:03:576 oc_module: Simple propfind result code 207.
03-25 16:15:03:576 oc_module: Server Date from HTTP header value: Mon, 25 Mar 2013 15:15:03 GMT
03-25 16:15:03:576 oc_module: The first time_delta is 0
03-25 16:15:03:576 oc_module: opendir returning handle 0x7ff934036e30
03-25 16:15:03:577 oc_module:   :> Subtracting 0 from modtime 1364224307
03-25 16:15:03:577 oc_module: owncloud_stat owncloud://localhost/owncloud/remote.php/webdav/Debug/voilá.txt called
03-25 16:15:03:577 csync_ftw: walk: owncloud://localhost/owncloud/remote.php/webdav/Debug/voilá.txt
03-25 16:15:03:577 csync_walker: file: owncloud://localhost/owncloud/remote.php/webdav/Debug/voilá.txt
03-25 16:15:03:577 _csync_detect_update: file: voilá.txt - hash 2880511897100411704, mtime: 1364224307
03-25 16:15:03:577 _csync_detect_update: time compare: 1364224307 <-> 1364224307, md5: 515069d8595cf <-> 515069d48db70
03-25 16:15:03:577 _csync_detect_update: file: voilá.txt, instruction: INSTRUCTION_EVAL
03-25 16:15:03:577 oc_module:   :> Subtracting 0 from modtime 1364224469
03-25 16:15:03:577 oc_module: owncloud_stat owncloud://localhost/owncloud/remote.php/webdav/Debug/dummy.txt called
03-25 16:15:03:577 csync_ftw: walk: owncloud://localhost/owncloud/remote.php/webdav/Debug/dummy.txt
03-25 16:15:03:577 csync_walker: file: owncloud://localhost/owncloud/remote.php/webdav/Debug/dummy.txt
03-25 16:15:03:577 _csync_detect_update: file: dummy.txt - hash 10419687758462341820, mtime: 1364224469
03-25 16:15:03:578 _csync_detect_update: time compare: 1364224469 <-> 1364224311, md5: 515069d79ba35 <-> 515069d79ba35
03-25 16:15:03:578 _csync_detect_update: file: dummy.txt, instruction: INSTRUCTION_NONE
03-25 16:15:03:578 oc_module: Skipping target resource.
03-25 16:15:03:578 oc_module: closedir method called 0x7ff934036e30!
03-25 16:15:03:578 csync_ftw: Closing walk for owncloud://localhost/owncloud/remote.php/webdav/Debug with read_from_db 0
03-25 16:15:03:578 csync_update: Update detection for remote replica took 0,13 seconds walking 2 files.
03-25 16:15:03:578 csync_memstat_check: Memory: 1260764K total size, 42300K resident, 29596K shared
03-25 16:15:03:578 <<#### Update end ########################################################### 
03-25 16:15:03:578 _csync_merge_algorithm_visitor: INSTRUCTION_NONE     file: voilá.txt
03-25 16:15:03:578 _csync_merge_algorithm_visitor: INSTRUCTION_NONE     file: dummy.txt
03-25 16:15:03:578 csync_reconcile: Reconciliation for local replica took 0,00 seconds visiting 2 files.
03-25 16:15:03:578 _csync_merge_algorithm_visitor: INSTRUCTION_SYNC     file: voilá.txt
03-25 16:15:03:578 _csync_merge_algorithm_visitor: INSTRUCTION_NONE     file: dummy.txt
03-25 16:15:03:578 csync_reconcile: Reconciliation for remote replica took 0,00 seconds visiting 2 files.
03-25 16:15:03:578 csync_propagate: Propagation for local replica took 0,00 seconds visiting 2 files.
03-25 16:15:03:578 oc_module: => open called for owncloud://localhost/owncloud/remote.php/webdav/Debug/voilá.txt
03-25 16:15:03:578     * csync thread started 
03-25 16:15:03:578 oc_module: GET request on /owncloud/remote.php/webdav/Debug/voil%c3%a1.txt
03-25 16:15:03:578 ==> load folder icon  "owncloud-framed" 
03-25 16:15:03:579 oc_module: Sendfile handling request type GET.
03-25 16:15:03:579 oc_module:   -- GET on owncloud://localhost/owncloud/remote.php/webdav/Debug/voilá.txt
03-25 16:15:03:579 Returning configured owncloud url:  "http://localhost/owncloud/remote.php/webdav/" 
03-25 16:15:03:579 Check status.php from statusdialog. 
03-25 16:15:03:579 Get Request to  "status.php" 
03-25 16:15:03:579 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:15:03:579 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:15:03:580 Setting up host header:  "localhost" 
03-25 16:15:03:580 Folder in overallStatus Message:  Mirall::ownCloudFolder(0x1be2960)  with name  "Debug" 
03-25 16:15:03:581 Sync state changed for folder  "Debug" :  "Sync Running" 
03-25 16:15:03:607 status.php returns:  "{"installed":"true","version":"5.0.0","versionstring":"5.0","edition":""}"   0  Reply:  QNetworkReplyImpl(0x1e05030) 
03-25 16:15:03:607 Unknown info from ownCloud status.php:  "installed" = "true" 
03-25 16:15:03:607 #-------# oC found on  "http://localhost/owncloud" 
03-25 16:15:03:661 oc_module: Content encoding ist <gzip> with status 200
03-25 16:15:03:661 oc_module: GET http result 200 (OK)
03-25 16:15:03:661 oc_module: http request all cool, result code 200
03-25 16:15:03:661 oc_module: Get file ID for owncloud://localhost/owncloud/remote.php/webdav/Debug/voilá.txt: 515069d8595cf
03-25 16:15:03:661 _get_md5: MD5 for owncloud://localhost/owncloud/remote.php/webdav/Debug/voilá.txt: 515069d8595cf
03-25 16:15:03:661 _csync_push_file: FINAL MD5: 515069d8595cf
03-25 16:15:03:661 _csync_push_file: PUSHED  file: /home/homann/OwncloudDebug/voilá.txt
03-25 16:15:03:661 csync_propagate: Propagation for remote replica took 0,08 seconds visiting 2 files.
03-25 16:15:03:661 csync_propagate: Correct Id took. 0,00 seconds 
03-25 16:15:03:662 _merge_file_trees_visitor: PRE UPDATED voilá.txt: 515069d8595cf
03-25 16:15:03:662 _merge_file_trees_visitor: file: /home/homann/OwncloudDebug/voilá.txt, instruction: UPDATED (515069d8595cf)
03-25 16:15:04:723 _insert_metadata_visitor: SQL statement: INSERT INTO metadata_temp 
            (phash, pathlen, path, inode, uid, gid, mode, modtime, type, md5) VALUES 
            (2880511897100411704, 10, voilá.txt, 14429979, 1000, 1000, 33188, 1364224307, 0, 515069d8595cf);
03-25 16:15:04:723 _insert_metadata_visitor: SQL statement: INSERT INTO metadata_temp 
            (phash, pathlen, path, inode, uid, gid, mode, modtime, type, md5) VALUES 
            (-8027056315247209796, 9, dummy.txt, 14429893, 1000, 1000, 33204, 1364224311, 0, 515069d79ba35);
03-25 16:15:04:822 csync_destroy: Writing the statedb of 2 files to disk took 1,16 seconds
03-25 16:15:04:839 csync_lock_remove: Removing lock file: /home/homann/.local/share/data//ownCloud//lock
03-25 16:15:04:840 CSync run took  1431  Milliseconds 
03-25 16:15:04:840 -> CSync Finished slot with error  false 
03-25 16:15:04:840 Starting Event logging again in  2000  milliseconds 
03-25 16:15:04:840 OO folder slotSyncFinished: result:  4  local:  false 
03-25 16:15:04:840 ==> load folder icon  "owncloud-framed" 
03-25 16:15:04:840 Returning configured owncloud url:  "http://localhost/owncloud/remote.php/webdav/" 
03-25 16:15:04:841 Check status.php from statusdialog. 
03-25 16:15:04:841 Get Request to  "status.php" 
03-25 16:15:04:841 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:15:04:841 Returning configured owncloud url:  "http://localhost/owncloud/" 
03-25 16:15:04:841 Setting up host header:  "localhost" 
03-25 16:15:04:842 Folder in overallStatus Message:  Mirall::ownCloudFolder(0x1be2960)  with name  "Debug" 
03-25 16:15:04:842 Sync state changed for folder  "Debug" :  "Success" 
03-25 16:15:04:842 *  "Debug" Poll timer enabled with  29675 milliseconds 
03-25 16:15:04:842 <===================================== sync finished for  "Debug" 
03-25 16:15:04:867 status.php returns:  "{"installed":"true","version":"5.0.0","versionstring":"5.0","edition":""}"   0  Reply:  QNetworkReplyImpl(0x1fc0690) 
03-25 16:15:04:867 Unknown info from ownCloud status.php:  "installed" = "true" 
03-25 16:15:04:867 #-------# oC found on  "http://localhost/owncloud" 
03-25 16:15:05:042 XX slotScheduleFolderSync: folderQueue size:  0 
03-25 16:15:06:841     * event notification  enabled 

homann avatar Mar 25 '13 15:03 homann

Do you think this could be the same problem as this: https://github.com/owncloud/core/issues/2542 ?

dragotin avatar Mar 25 '13 16:03 dragotin

It might. I have spent a couple of hour or so testing, and can conclude that the "last file" synched to the server does not get its mtime set correctly.

Example: $ mkdir Propset $ cp /path/to/old.file Propset

This will set mtime to 'now' on the server, which will be propagated to other sync clients on other machines, Now:

$ cp /path/to/another.old.file Propset

Now, this file will be synched to server, with 'now' as mtime. At the same time the correct mtime for old.file will be updated to the server! This correct old.file mtime will be propagated to the sync clients!

And finally:

$ touch Propset/dummy.txt

will set the correct mtime for the another.old.file on the server and all clients.

I think - but do not know - this is related to conflicts popping up after a while...

homann avatar Mar 25 '13 18:03 homann

Also file system creation filestamp is affected (so there is not even a log necessary to see this weird behaviour):

Sync a folder (Propset) between two clients (A and B). A: cp file1 Propset B: file1 appears with current time of system B -> dir Propset A: cp file2 Propset B: file2 appears with current time of system B. At the same time: Date stamp of file1 is corrected -> dir Propset

ghost avatar Mar 25 '13 20:03 ghost

I just spent several hours copying from _conflict files with the correct timestamp to the original file name (after first removing the original file and then let that change propagate through to the clients). It seems very consistent with the above descriptions of the problem.

For me, the timestamp conveys information, and I don't want to lose it.

homann avatar Mar 25 '13 21:03 homann

This problem is caused by owncloud/core#2542 which is fixed and will be released with 5.0.1 soon. I just verified that the testcase described here is not longer reproducable. Thanks for your report!

dragotin avatar Mar 28 '13 10:03 dragotin