Csync update failed (client 1.1.4 server 4.5.4)
I can't get the sync working. I keep getting this Csync error on the client.
Client: 1.1.4 on Windows 7 (tested from 2 pc's)
Server: Windows 2003 - IIS 7 - OC 4.5.4
I know the client is OK, because it works with the OC demo. I know the website, file-rights and user are ok, because via the browser i can access, download and upload files.
I tried the usual: reinstall, different version, restart iis, different folders, other user, ... I tried installing the WebDav on IIS but this didn't resolve the issue.
When I start the client with the --logwindow option:
12-19 18:58:39:110 "################## ownCloud nl_NL 1.1.4 " 12-19 18:58:39:413 Trying to read config ini file at "C:/Program Files (x86)/ownCloud/custom.ini" 12-19 18:58:39:413 Trying to read config ini file at "C:/Program Files (x86)/ownCloud/custom.ini" 12-19 18:58:39:414 Trying to read config ini file at "C:/Program Files (x86)/ownCloud/custom.ini" 12-19 18:58:39:414 Trying to read config ini file at "C:/Program Files (x86)/ownCloud/custom.ini" 12-19 18:58:39:416 Trying to read config ini file at "C:/Program Files (x86)/ownCloud/custom.ini" 12-19 18:58:39:417 * Network is offline 12-19 18:58:39:432 Network Location: "" 12-19 18:58:39:432 Get Request to "status.php" 12-19 18:58:39:432 Returning configured owncloud url: "http://owncloud.edesk.be/" 12-19 18:58:39:432 Returning configured owncloud url: "http://owncloud.edesk.be/" 12-19 18:58:39:432 Setting up host header: "owncloud.edesk.be" 12-19 18:58:39:517 status.php returns: "{"installed":"true","version":"4.90.5","versionstring":"4.5.4","edition":""}" 0 Reply: QNetworkReplyImpl(0x45c4898) 12-19 18:58:39:517 Unknown info from ownCloud status.php: "installed" = "true" 12-19 18:58:39:517 ** Application: ownCloud found: "http://owncloud.edesk.be" with version "4.5.4" ( "4.90.5" ) 12-19 18:58:39:517 ** Setting ownCloud Server version to "4.90.5" 12-19 18:58:39:520 Credentials successfully fetched: true 12-19 18:58:39:520 # checking for authentication settings. 12-19 18:58:39:520 Get Request to "/" 12-19 18:58:39:520 Returning configured owncloud url: "http://owncloud.edesk.be/remote.php/webdav/" 12-19 18:58:39:521 Returning configured owncloud url: "http://owncloud.edesk.be/" 12-19 18:58:39:521 Setting up host header: "owncloud.edesk.be" 12-19 18:58:39:636 ######## Credentials are ok! 12-19 18:58:39:636 * Setup folders from "C:\Users\Gebruiker\AppData\Local\ownCloud/folders" 12-19 18:58:39:637 ` -> setting up: "ownCloud" 12-19 18:58:39:637 -> file path: "C:/Users/Gebruiker/AppData/Local/ownCloud/folders/ownCloud" 12-19 18:58:39:637 Returning configured owncloud url: "http://owncloud.edesk.be/remote.php/webdav/" 12-19 18:58:39:638 setting remote poll timer interval to 28259 msec for folder "ownCloud" 12-19 18:58:39:638 Checked local path ok 12-19 18:58:39:639 ****** ownCloud folder using local poll ******* 12-19 18:58:39:639 Adding folder to Folder Map Mirall::ownCloudFolder(0x45d6088) 12-19 18:58:39:639 Folder in overallStatus Message: Mirall::ownCloudFolder(0x45d6088) with name "ownCloud" 12-19 18:58:39:640 Sync state changed for folder "ownCloud" : "Not yet Started" 12-19 18:58:39:650 Folder: Mirall::ownCloudFolder(0x45d6088) 12-19 18:58:39:651 ==> load folder icon "owncloud-framed" 12-19 18:58:39:651 Returning configured owncloud url: "http://owncloud.edesk.be/remote.php/webdav/" 12-19 18:58:39:652 Folder in overallStatus Message: Mirall::ownCloudFolder(0x45d6088) with name "ownCloud" 12-19 18:58:42:432 00 client update check to "https://download.owncloud.com/clientupdater.php" 12-19 18:58:43:149 Client is on latest version! 12-19 18:58:44:014 #============# Status dialog starting #=============# 12-19 18:58:44:014 Folder: Mirall::ownCloudFolder(0x45d6088) 12-19 18:58:44:014 ==> load folder icon "owncloud-framed" 12-19 18:58:44:015 Returning configured owncloud url: "http://owncloud.edesk.be/remote.php/webdav/" 12-19 18:58:44:033 Check status.php from statusdialog. 12-19 18:58:44:033 Get Request to "status.php" 12-19 18:58:44:033 Returning configured owncloud url: "http://owncloud.edesk.be/" 12-19 18:58:44:034 Returning configured owncloud url: "http://owncloud.edesk.be/" 12-19 18:58:44:034 Setting up host header: "owncloud.edesk.be" 12-19 18:58:44:036 Check status.php from statusdialog. 12-19 18:58:44:036 Get Request to "status.php" 12-19 18:58:44:036 Returning configured owncloud url: "http://owncloud.edesk.be/" 12-19 18:58:44:036 Returning configured owncloud url: "http://owncloud.edesk.be/" 12-19 18:58:44:036 Setting up host header: "owncloud.edesk.be" 12-19 18:58:44:067 status.php returns: "{"installed":"true","version":"4.90.5","versionstring":"4.5.4","edition":""}" 0 Reply: QNetworkReplyImpl(0x46eef40) 12-19 18:58:44:067 Unknown info from ownCloud status.php: "installed" = "true" 12-19 18:58:44:067 #-------# oC found on "http://owncloud.edesk.be" 12-19 18:58:44:089 status.php returns: "{"installed":"true","version":"4.90.5","versionstring":"4.5.4","edition":""}" 0 Reply: QNetworkReplyImpl(0x473ee78) 12-19 18:58:44:089 Unknown info from ownCloud status.php: "installed" = "true" 12-19 18:58:49:653 * Polling "ownCloud" for changes. Ignoring all pending events until now 12-19 18:58:49:653 * "ownCloud" Poll timer disabled 12-19 18:58:49:653 Schedule folder "ownCloud" to sync! 12-19 18:58:49:653 XX slotScheduleFolderSync: folderQueue size: 1 12-19 18:58:49:653 Folder in overallStatus Message: Mirall::ownCloudFolder(0x45d6088) with name "ownCloud" 12-19 18:58:49:653 Sync state changed for folder "ownCloud" : "Sync Running" 12-19 18:58:49:653 *** Start syncing url to ownCloud: "owncloud://owncloud.edesk.be/remote.php/webdav/clientsync" , with localOnly: true 12-19 18:58:49:653 Returning configured owncloud url: "http://owncloud.edesk.be/" 12-19 18:58:49:655 **** Poll Timer for Folder "ownCloud" increase: 10 12-19 18:58:49:656 starting to sync QThread(0x36a70) QThread(0x473ed88) 12-19 18:58:49:657 ## CSync Thread local only: true 12-19 18:58:49:657 ==> returning exclude file path: "C:/Program Files (x86)/ownCloud/sync-exclude.lst" 12-19 18:58:49:657 ==== added CSync exclude List: "C:/Program Files (x86)/ownCloud/sync-exclude.lst" 12-19 18:58:49:657 csync.exclude - Adding entry: .filepart 12-19 18:58:49:658 csync.exclude - Adding entry: ~ 12-19 18:58:49:658 csync.exclude - Adding entry: *.bak 12-19 18:58:49:658 csync.exclude - Adding entry: *.part 12-19 18:58:49:658 csync.exclude - Adding entry: *.unison 12-19 18:58:49:658 csync.exclude - Adding entry: csync_timedif.ctmp 12-19 18:58:49:658 csync.exclude - Adding entry: ..sw? 12-19 18:58:49:658 csync.exclude - Adding entry: ._._sw? 12-19 18:58:49:658 csync.exclude - Adding entry: .DS_Store 12-19 18:58:49:658 csync.exclude - Adding entry: .ds_store 12-19 18:58:49:658 csync.exclude - Adding entry: desktop.ini 12-19 18:58:49:658 csync.exclude - Adding entry: Thumbs.db 12-19 18:58:49:658 csync.exclude - Adding entry: .kate-swp 12-19 18:58:49:658 csync.exclude - Adding entry: .aux 12-19 18:58:49:658 csync.exclude - Adding entry: *.nav 12-19 18:58:49:658 csync.exclude - Adding entry: *.out 12-19 18:58:49:658 csync.exclude - Adding entry: *.toc 12-19 18:58:49:658 csync.exclude - Adding entry: *conflict- 12-19 18:58:49:658 csync.exclude - Adding entry: .Temporary Items 12-19 18:58:49:658 csync.exclude - Adding entry: .Trashes 12-19 18:58:49:658 csync.exclude - Adding entry: .Document Revisions-V100 12-19 18:58:49:658 csync.exclude - Adding entry: .fseventd 12-19 18:58:49:658 csync.exclude - Adding entry: .apdisk 12-19 18:58:49:658 csync.exclude - Adding entry: .htaccess 12-19 18:58:49:659 csync.config - Config: max_depth = 50 12-19 18:58:49:659 csync.config - Config: max_time_difference = 10 12-19 18:58:49:659 csync.config - Config: sync_symbolic_links = 0 12-19 18:58:49:659 csync.api - Could not load C:\Users\Gebruiker\AppData\Local\ownCloud//ocsync_exclude.conf - Bad file descriptor 12-19 18:58:49:659 csync.api - Journal: C:/Users/Gebruiker\ownCloud/.csync_journal.db 12-19 18:58:49:659 csync.statedb - sqlite version mismatch 12-19 18:58:49:659 * csync thread started 12-19 18:58:49:659 >===================================== sync started for "ownCloud" 12-19 18:58:49:662 csync.statedb - sqlite3_compile error: no such table: metadata - on query SELECT COUNT(phash) FROM metadata LIMIT 1 OFFSET 0; 12-19 18:58:49:662 csync.statedb - statedb doesn't exist 12-19 18:58:49:662 #### Update start #################################################### >> 12-19 18:58:49:662 csync.updater - Incoming read_from_db-Flag for C:/Users/Gebruiker\ownCloud: 0 12-19 18:58:49:662 csync.updater - .csync_journal.db excluded 12-19 18:58:49:662 csync.updater - .csync_journal.db.ctmp excluded 12-19 18:58:49:662 root - Local File MTime: 1355938691 12-19 18:58:49:662 csync.vio.main - Win32: STAT-inode for C:/Users/Gebruiker\ownCloud/test.txt: 139504 12-19 18:58:49:663 csync.statedb - sqlite3_compile error: no such table: metadata - on query SELECT md5 FROM metadata WHERE phash='-5278391590095026299' AND modtime=1355938691 12-19 18:58:49:663 csync.updater - Uniq ID read from Database: test.txt -> 12-19 18:58:49:663 csync.updater - walk: C:/Users/Gebruiker\ownCloud/test.txt 12-19 18:58:49:663 csync.updater - file: C:/Users/Gebruiker\ownCloud/test.txt 12-19 18:58:49:663 csync.updater - file: test.txt - hash 13168352483614525317, mtime: 1355938691 12-19 18:58:49:663 csync.updater - file: test.txt, instruction: INSTRUCTION_NEW 12-19 18:58:49:663 csync.updater - Closing walk for C:/Users/Gebruiker\ownCloud with read_from_db 0 12-19 18:58:49:663 csync.api - Update detection for local replica took 0.00 seconds walking 1 files. 12-19 18:58:49:663 <<#### Update end ########################################################### 12-19 18:58:49:663 ..... Local only walk finished: 0 12-19 18:58:49:663 CSync run took 5 Milliseconds 12-19 18:58:49:680 Seen files: 1 12-19 18:58:49:680 New files: 1 12-19 18:58:49:680 Updated files: 0 12-19 18:58:49:680 Walked files: 1 12-19 18:58:49:680 Eval files: 0 12-19 18:58:49:680 Removed files: 0 12-19 18:58:49:680 Renamed files: 0 12-19 18:58:49:680 ** Local changes, lets do a full sync! 12-19 18:58:49:681 -> CSync Finished slot with error false 12-19 18:58:49:681 OO folder slotSyncFinished: result: 3 local: true 12-19 18:58:49:681 Folder in overallStatus Message: Mirall::ownCloudFolder(0x45d6088) with name "ownCloud" 12-19 18:58:49:681 Sync state changed for folder "ownCloud" : "Success" 12-19 18:58:49:681 * "ownCloud" Poll timer enabled with 10009 milliseconds 12-19 18:58:49:681 <===================================== sync finished for "ownCloud" 12-19 18:58:49:873 XX slotScheduleFolderSync: folderQueue size: 0 12-19 18:58:59:683 * Polling "ownCloud" for changes. Ignoring all pending events until now 12-19 18:58:59:683 * "ownCloud" Poll timer disabled 12-19 18:58:59:683 Schedule folder "ownCloud" to sync! 12-19 18:58:59:683 XX slotScheduleFolderSync: folderQueue size: 1 12-19 18:58:59:683 ==> load folder icon "owncloud-framed" 12-19 18:58:59:683 Returning configured owncloud url: "http://owncloud.edesk.be/remote.php/webdav/" 12-19 18:58:59:684 Folder in overallStatus Message: Mirall::ownCloudFolder(0x45d6088) with name "ownCloud" 12-19 18:58:59:685 Sync state changed for folder "ownCloud" : "Sync Running" 12-19 18:58:59:685 *** Start syncing url to ownCloud: "owncloud://owncloud.edesk.be/remote.php/webdav/clientsync" , with localOnly: false 12-19 18:58:59:686 Returning configured owncloud url: "http://owncloud.edesk.be/" 12-19 18:58:59:688 **** Poll Timer for Folder "ownCloud" increase: 1 12-19 18:58:59:689 starting to sync QThread(0x36a70) QThread(0x46c6f30) 12-19 18:58:59:689 ## CSync Thread local only: false 12-19 18:58:59:689 ==> returning exclude file path: "C:/Program Files (x86)/ownCloud/sync-exclude.lst" 12-19 18:58:59:689 ==== added CSync exclude List: "C:/Program Files (x86)/ownCloud/sync-exclude.lst" 12-19 18:58:59:690 csync.exclude - Adding entry: .filepart 12-19 18:58:59:690 csync.exclude - Adding entry: ~ 12-19 18:58:59:690 csync.exclude - Adding entry: *.bak 12-19 18:58:59:690 csync.exclude - Adding entry: *.part 12-19 18:58:59:690 csync.exclude - Adding entry: *.unison 12-19 18:58:59:690 csync.exclude - Adding entry: csync_timedif.ctmp 12-19 18:58:59:690 csync.exclude - Adding entry: ..sw? 12-19 18:58:59:690 csync.exclude - Adding entry: .._sw? 12-19 18:58:59:690 csync.exclude - Adding entry: .DS_Store 12-19 18:58:59:690 csync.exclude - Adding entry: .ds_store 12-19 18:58:59:690 csync.exclude - Adding entry: desktop.ini 12-19 18:58:59:690 csync.exclude - Adding entry: Thumbs.db 12-19 18:58:59:690 csync.exclude - Adding entry: .kate-swp 12-19 18:58:59:690 csync.exclude - Adding entry: _.aux 12-19 18:58:59:690 csync.exclude - Adding entry: *.nav 12-19 18:58:59:690 csync.exclude - Adding entry: *.out 12-19 18:58:59:690 csync.exclude - Adding entry: *.toc 12-19 18:58:59:690 csync.exclude - Adding entry: *conflict- 12-19 18:58:59:690 csync.exclude - Adding entry: .Temporary Items 12-19 18:58:59:690 csync.exclude - Adding entry: .Trashes 12-19 18:58:59:690 csync.exclude - Adding entry: .Document Revisions-V100 12-19 18:58:59:690 csync.exclude - Adding entry: .fseventd 12-19 18:58:59:690 csync.exclude - Adding entry: .apdisk 12-19 18:58:59:690 csync.exclude - Adding entry: .htaccess 12-19 18:58:59:691 csync.config - Config: max_depth = 50 12-19 18:58:59:691 csync.config - Config: max_time_difference = 10 12-19 18:58:59:691 csync.config - Config: sync_symbolic_links = 0 12-19 18:58:59:691 csync.api - Could not load C:\Users\Gebruiker\AppData\Local\ownCloud//ocsync_exclude.conf - Bad file descriptor 12-19 18:58:59:691 csync.api - Journal: C:/Users/Gebruiker\ownCloud/.csync_journal.db 12-19 18:58:59:691 csync.statedb - sqlite version mismatch 12-19 18:58:59:692 * csync thread started 12-19 18:58:59:692 >===================================== sync started for "ownCloud" 12-19 18:58:59:693 csync.statedb - sqlite3_compile error: no such table: metadata - on query SELECT COUNT(phash) FROM metadata LIMIT 1 OFFSET 0; 12-19 18:58:59:693 csync.statedb - statedb doesn't exist 12-19 18:58:59:694 csync.vio.main - Win32: changing current working dir to C:\Program Files (x86)\ownCloud 12-19 18:58:59:698 csync.vio.main - capabilities: atomar copy support: yes 12-19 18:58:59:698 csync.vio.main - capabilities: post copy stat: no 12-19 18:58:59:698 csync.vio.main - capabilities: time sync required: no 12-19 18:58:59:698 csync.vio.main - capabilities: unix extensions: 0 12-19 18:58:59:698 csync.api - Module does not need time synchronization. 12-19 18:58:59:698 #### Update start #################################################### >> 12-19 18:58:59:698 csync.updater - Incoming read_from_db-Flag for C:/Users/Gebruiker\ownCloud: 0 12-19 18:58:59:699 csync.updater - .csync_journal.db excluded 12-19 18:58:59:699 csync.updater - .csync_journal.db.ctmp excluded 12-19 18:58:59:699 root - Local File MTime: 1355938691 12-19 18:58:59:699 csync.vio.main - Win32: STAT-inode for C:/Users/Gebruiker\ownCloud/test.txt: 139504 12-19 18:58:59:699 csync.statedb - sqlite3_compile error: no such table: metadata - on query SELECT md5 FROM metadata WHERE phash='-5278391590095026299' AND modtime=1355938691 12-19 18:58:59:699 csync.updater - Uniq ID read from Database: test.txt -> 12-19 18:58:59:699 csync.updater - walk: C:/Users/Gebruiker\ownCloud/test.txt 12-19 18:58:59:699 csync.updater - file: C:/Users/Gebruiker\ownCloud/test.txt 12-19 18:58:59:699 csync.updater - file: test.txt - hash 13168352483614525317, mtime: 1355938691 12-19 18:58:59:699 csync.updater - file: test.txt, instruction: INSTRUCTION_NEW 12-19 18:58:59:699 csync.updater - Closing walk for C:/Users/Gebruiker\ownCloud with read_from_db 0 12-19 18:58:59:699 csync.api - Update detection for local replica took 0.00 seconds walking 1 files. 12-19 18:58:59:700 csync.updater - Incoming read_from_db-Flag for owncloud://owncloud.edesk.be/remote.php/webdav/clientsync: 0 12-19 18:58:59:700 csync.updater - Checking for read from db for owncloud://owncloud.edesk.be/remote.php/webdav/clientsync: 0 12-19 18:58:59:772 csync.updater - opendir failed for owncloud://owncloud.edesk.be/remote.php/webdav/clientsync - File exists (errno 17) 12-19 18:58:59:773 csync.api - Update detection for remote replica took 0.07 seconds walking 0 files. 12-19 18:58:59:773 CSync run took 82 Milliseconds 12-19 18:58:59:776 -> CSync Finished slot with error true 12-19 18:58:59:776 * error Strings: ("CSync Update failed.") 12-19 18:58:59:776 * owncloud csync thread finished with error 12-19 18:58:59:776 OO folder slotSyncFinished: result: 4 local: false 12-19 18:58:59:776 ==> load folder icon "owncloud-framed" 12-19 18:58:59:776 Returning configured owncloud url: "http://owncloud.edesk.be/remote.php/webdav/" 12-19 18:58:59:777 Folder in overallStatus Message: Mirall::ownCloudFolder(0x45d6088) with name "ownCloud" 12-19 18:58:59:778 Sync state changed for folder "ownCloud" : "Error" 12-19 18:58:59:778 * "ownCloud" Poll timer enabled with 10009 milliseconds 12-19 18:58:59:778 <===================================== sync finished for "ownCloud" 12-19 18:58:59:990 XX slotScheduleFolderSync: folderQueue size: 0 12-19 18:59:04:774 Toggle enabled/disabled Folder alias "ownCloud" - current state: true 12-19 18:59:04:774 Application: enable folder with alias "ownCloud" 12-19 18:59:04:774 setSyncEnabled - ############################ false 12-19 18:59:04:774 ==> load folder icon "owncloud-framed" 12-19 18:59:04:775 Returning configured owncloud url: "http://owncloud.edesk.be/remote.php/webdav/" 12-19 18:59:04:775 folder is sync enabled: false 12-19 18:59:09:792 * Polling "ownCloud" for changes. Ignoring all pending events until now 12-19 18:59:09:792 * "ownCloud" sync skipped, disabled! 12-19 18:59:09:792 **** Poll Timer for Folder "ownCloud" increase: 2
Help?
I have already tried the patch proposed in http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-148 but this didn't resolve the issue.
I think I got the same issue. I did a backup of the folders (under Windows 7/8: Sync folder -> "C:\Users\your_user\owncloud" and Config folder -> "C:\Users\your_user\AppData\Local\ownCloud") and deleted the client and these folders after that.
I reinstalled the client (1.1.4) and it syncs succesful. Maybe that will help you.
No, this didn't help me.
I think it has to do with the cofniguration of the server. Because I have it with 2 different computers (fresh installations) to the same server. And these 2 clients can connect to the demo server from owncloud without issue.
bump
This is the key log line:
12-19 18:58:59:772 csync.updater - opendir failed for owncloud://owncloud.edesk.be/remote.php/webdav/clientsync - File exists (errno 17)
Note to self: Windows IIS 7
Thanks for pushing me onto this! Indeed the errno 17 is plain wrong. Your server returns a HTTP status code 405 which means Method Not Allowed as reply on a PROPFIND request from the ownCloud client. It seems that your IIS installation is somehow not correctly configured for ownCloud here.
Can you check that?
I would love to. I also believe it is a config issue on the IIS. But I don't know which config. I followed the online manual for IIS installation.
Can you tell me which configuration option i need to check on IIS?
No, sorry, I can't help with IIS. I would rather ask you to open a bug report about that in ownClouds server core section, which is here: https://github.com/owncloud/core/issues/new
Thanks, closing this for now.
I originally logged this in core and there I was asked to create a ticket in the mirall section instead. So I'm a bit surprised that I'm now being refered again to core.
Sorry, but thats often the first reaction if the client is in game. Now we came to the conclusion that it's probably a server problem. But, you're right, its annoying. Actually it's a shortcoming of the github bugtracker imo.