Allow the use of PostgreSQL for Owncloud client database
This is a feature request rather than a bug report. I am currently using Owncloud with a lot of files (350,000 - my entire work directory) and while the system works well, my client is constantly in a state of directory walk (it gets to the end, then has to start again). When I switched from SQLite to PostgreSQL on the server the performances increases were ridiculous (I estimate 10-fold) so I thought the same would be true of the client. I'm using an i5 Haswell with 16gb of RAM and an SSD so resources available are definitely not the issue.
does constantly mean really constantly, or are there breaks of 5 minutes between?
Anyway, your deductions are incorrect. As you said, the problems are the local treewalks, and we need to find out why they are so havy for you. The DB does not play a role here, and even if it did, we'd need to optimize that. You can't expect client users to install a full-blown DB client-side.
@dragotin Yes I believe you are correct, there is a five minute gap occasionally.
@danimo I'd say "expect" is a bit of a jump from what I was describing - having the extra option wouldn't force people to change anything if they didn't want to. I have PostgreSQL installed already for web development, so it would be a trivial change. Once the initial walk is complete and the icon has gone green, the owncloud logwindow repeatedly prints csync_detect_update messages as it appears to re-walk through the system. There are timestamp comparisons listed so I concluded checking each file included a database query, which I thought could be the bottleneck. Is this not correct?
@ItsNotWorking could you provide us with a kind of meassuring, ie. how long the detection run takes in comparison of the 5 minutes gap.
Btw, you can adjust a config value called remotePollInterval in your client config file (refer to http://doc.owncloud.org/desktop/1.5/advancedusage.html#config-file ) The time between two local checks is 10 times the remotePollInterval value. Default is 30 Seconds, which makes the 5 minutes break, put it on 1 minute for example gives you 10 Minutes break.
Yep sure, I've restarted the client with a logfile specified and will compare timestamps once the walks are complete.
Interim report:
- Owncloud client 1.5.0, built from Git revision 58035a on Jan 20th 2014, 09:52:51 using OCsync 0.91.4 and Qt 4.8.4 running on Ubuntu 13.10 x64
- Client has gone from the initial opening phase to the green tick
- It is using 100% of one core of the CPU
- The log looks like this, repeated for every file as it walks the root:
01-21 13:05:17:714 csync_ftw: Uniq ID from Database: FolderName/FileName.png -> 52ab2773f0ee1 01-21 13:05:17:714 csync_walker: file: FolderName/FileName.png 01-21 13:05:17:714 _csync_detect_update: ==> file: FolderName/FileName.png - hash 9662683393617421886, mtime: 1383590520, fileId: 01-21 13:05:17:714 _csync_detect_update: Database entry found, compare: 1383590520 <-> 1383590520, etag: 52ab2773f0ee1 <-> 52ab2773f0ee1, inode: 3953794 <-> 3953794 01-21 13:05:17:714 _csync_detect_update: file: FolderName/FileName.png, instruction: INSTRUCTION_NONE <<=
- With the addition of this each time a new folder is traversed:
01-21 13:25:09:223 csync_vio_opendir: Reading directory ownclouds://server/remote.php/webdav/FolderName from database 01-21 13:25:09:223 csync_statedb_get_below_path: SQL: SELECT phash, path, inode, uid, gid, mode, modtime, type, md5, fileid FROM metadata WHERE path LIKE('FolderName/%') ... 01-21 13:25:09:338 csync_ftw: <= Closing walk for ownclouds://server/remote.php/webdav/Folder with read_from_db 1
As soon as I get the first "break" I will report back with a full time analysis.
@dragotin Please find my log below. I've cut out everything you don't need and hopefully the timestamps will give a good idea of what I'm experiencing. To summarise:
- 19:32:25:961: Owncloud starts
- 19:35:50:429: Update detection for local replica took 196.83 seconds walking 308320 files.
- 20:45:09:213: Update detection for remote replica took 4158.78 seconds walking 308279 files.
- 20:45:22:125: CSync run took 4371673 Milliseconds. Icon is now green.
- 20:45:52:215: Schedule folder "ownCloud" to sync! (No 5 minute gap between initial sync and first re-walk)
- 20:47:53:403: Update detection for local replica took 119.48 seconds walking 308320 files.
- 21:57:22:364: Update detection for remote replica took 4168.96 seconds walking 308279 files.
- 21:57:32:200: Reconciliation for remote replica took 4.90 seconds visiting 308279 files.
- 21:57:35:329: CSync run took 4302969 Milliseconds
- 22:03:05:339: Polling "ownCloud" for changes. (time since last sync: 330 s)
- 22:03:05:339: Schedule folder "ownCloud" to sync!
Full log:
01-21 19:32:25:961 "################## ownCloud en_GB () 1.5.0"
01-21 19:32:25:962 void Mirall::Application::setupTranslations() Using "en_GB" translation
01-21 19:32:25:964 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 19:32:25:964 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 19:32:25:976 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 19:32:25:984 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 19:32:25:985 * Setup folders from "/home/user/.local/share/data//ownCloud/folders"
01-21 19:32:25:985 ` -> setting up: "ownCloud"
01-21 19:32:25:985 -> file path: "/home/user/.local/share/data/ownCloud/folders/ownCloud"
01-21 19:32:25:985 (+) Watcher: "/home/user/Work"
01-21 19:32:29:767 `-> and 18710 subdirectories
01-21 19:32:29:768 * Pending events for "/home/user/Work" will be processed after events stop for 1000 milliseconds ( "19:49:09" ). 0 events until now )
01-21 19:32:29:768 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 19:32:29:768 ==> returning exclude file path: "/etc/ownCloud/sync-exclude.lst"
01-21 19:32:29:768 ==> returning exclude file path: "/home/user/.local/share/data/ownCloud/sync-exclude.lst"
01-21 19:32:29:768 Checked local path ok
01-21 19:32:29:769 setting remote poll timer interval to 30000 msec
01-21 19:32:29:769 Adding folder to Folder Map Mirall::Folder(0x16f1140)
01-21 19:32:29:769 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 19:32:29:769 Schedule folder "ownCloud" to sync!
01-21 19:32:29:769 FolderMan: Syncing is disabled, no scheduling.
01-21 19:32:29:786 SocketApi: ctor: "/home/user/.local/share/data/ownCloud/socket"
01-21 19:32:29:786 SocketApi: server started
01-21 19:32:29:823 !!! Mirall::CheckServerJob created for QUrl( "https://servername/" ) querying "status.php"
01-21 19:32:29:842 SSL-Warnings happened for url "https://servername/status.php"
01-21 19:32:29:857 Certs are already known and trusted, Warnings are not valid.
01-21 19:32:29:945 status.php returns: QMap(("edition", QVariant(QString, "") ) ( "installed" , QVariant(QString, "true") ) ( "version" , QVariant(QString, "6.0.0.14") ) ( "versionstring" , QVariant(QString, "6.0.0a") ) ) 0 Reply: QNetworkReplyImpl(0x1895720)
01-21 19:32:29:945 ** Application: ownCloud found: QUrl( "https://servername/status.php" ) with version "6.0.0a" ( "6.0.0.14" )
01-21 19:32:29:945 !!! Mirall::PropfindJob created for QUrl( "https://servername/" ) querying "/"
01-21 19:32:29:945 # checking for authentication settings.
01-21 19:32:30:376 Connection Validator Result: "Connected"
01-21 19:32:30:376 ######## Connection and Credentials are ok!
01-21 19:32:30:377 Schedule folder "ownCloud" to sync!
01-21 19:32:30:377 II> Sync for folder "ownCloud" already scheduled, do not enqueue!
01-21 19:32:30:377 XX slotScheduleFolderSync: folderQueue size: 1
01-21 19:32:30:377 QUrl( "https://servername/remote.php/webdav/" )
01-21 19:32:30:377 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 19:32:30:377 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 19:32:30:377 ==> returning exclude file path: "/etc/ownCloud/sync-exclude.lst"
01-21 19:32:30:377 ==== added system ignore list to csync: "/etc/ownCloud/sync-exclude.lst"
01-21 19:32:30:378 csync_exclude_load: Adding entry: *.filepart
01-21 19:32:30:378 csync_exclude_load: Adding entry: *~
01-21 19:32:30:378 csync_exclude_load: Adding entry: *.part
01-21 19:32:30:378 csync_exclude_load: Adding entry: *.crdownload
01-21 19:32:30:378 csync_exclude_load: Adding entry: *.unison*
01-21 19:32:30:378 csync_exclude_load: Adding entry: *csync_timedif.ctmp*
01-21 19:32:30:378 csync_exclude_load: Adding entry: csync_journal.db
01-21 19:32:30:378 csync_exclude_load: Adding entry: csync_journal.db.ctmp
01-21 19:32:30:378 csync_exclude_load: Adding entry: .*.sw?
01-21 19:32:30:378 csync_exclude_load: Adding entry: .*.*sw?
01-21 19:32:30:378 csync_exclude_load: Adding entry: ].csync-progressdatabase
01-21 19:32:30:378 csync_exclude_load: Adding entry: ].DS_Store
01-21 19:32:30:378 csync_exclude_load: Adding entry: ].ds_store
01-21 19:32:30:379 csync_exclude_load: Adding entry: ]Thumbs.db
01-21 19:32:30:379 csync_exclude_load: Adding entry: desktop.ini
01-21 19:32:30:379 csync_exclude_load: Adding entry: *.kate-swp
01-21 19:32:30:379 csync_exclude_load: Adding entry: *_conflict-*
01-21 19:32:30:379 csync_exclude_load: Adding entry: ]*.~*
01-21 19:32:30:379 csync_exclude_load: Adding entry: ].TemporaryItems
01-21 19:32:30:379 csync_exclude_load: Adding entry: ].Trashes
01-21 19:32:30:379 csync_exclude_load: Adding entry: ].DocumentRevisions-V100
01-21 19:32:30:379 csync_exclude_load: Adding entry: .fseventd
01-21 19:32:30:379 csync_exclude_load: Adding entry: .apdisk
01-21 19:32:30:379 csync_exclude_load: Adding entry: .htaccess
01-21 19:32:30:379 csync_exclude_load: Adding entry: ]Icon\r*
01-21 19:32:30:379 csync_exclude_load: Adding entry: ~$*
01-21 19:32:30:379 csync_exclude_load: Adding entry: .~lock.*
01-21 19:32:30:379 csync_exclude_load: Adding entry: ~*.tmp
01-21 19:32:30:380 ==> returning exclude file path: "/home/user/.local/share/data/ownCloud/sync-exclude.lst"
01-21 19:32:30:380 ==== added user defined ignore list to csync: "/home/user/.local/share/data/ownCloud/sync-exclude.lst"
01-21 19:32:30:380 csync_exclude_load: Adding entry: ]*.v1_indexcache
01-21 19:32:30:380 csync_config_parse_file: config file /home/user/.local/share/data//ownCloud//ocsync.conf not found, checking /home/user/.ocsync/ocsync.conf
01-21 19:32:30:380 _csync_config_copy_default: Copy /etc/config/ocsync.conf to /home/user/.local/share/data//ownCloud//ocsync.conf
01-21 19:32:30:380 csync_init: Could not load config file /home/user/.local/share/data//ownCloud//ocsync.conf, using defaults.
01-21 19:32:30:381 csync_init: Could not load /etc/ocsync/ocsync_exclude.conf -
01-21 19:32:30:381 csync_init: Could not load /home/user/.local/share/data//ownCloud//ocsync_exclude.conf -
01-21 19:32:30:381 csync_vio_init: capabilities: atomar copy support: yes
01-21 19:32:30:381 csync_vio_init: capabilities: post copy stat: no
01-21 19:32:30:381 csync_vio_init: capabilities: time sync required: no
01-21 19:32:30:381 csync_vio_init: capabilities: unix extensions: 0
01-21 19:32:30:381 csync_vio_init: capabilities: use send_file: yes
01-21 19:32:30:381 csync_vio_init: capabilities: get support: no
01-21 19:32:30:381 csync_vio_init: capabilities: put support: no
01-21 19:32:30:381 csync_init: Module does not need time synchronization.
01-21 19:32:30:381 Passing NO proxy to csync for QUrl( "https://servername/" )
01-21 19:32:30:382 Folder in overallStatus Message: Mirall::Folder(0x16f1140) with name "ownCloud"
01-21 19:32:30:391 Sync state changed for folder "ownCloud" : "SyncPrepare"
01-21 19:32:30:391 SocketApi: Sync state changed
01-21 19:32:30:391 SocketApi: Broadcasting to 0 listeners: "UPDATE_VIEW"
01-21 19:32:30:391 *** Start syncing
01-21 19:32:30:391 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 19:32:30:391 ==> returning exclude file path: "/etc/ownCloud/sync-exclude.lst"
01-21 19:32:30:391 ==== added system ignore list to csync: "/etc/ownCloud/sync-exclude.lst"
...
< Excludes >
...
01-21 19:32:30:392 ==> returning exclude file path: "/home/user/.local/share/data/ownCloud/sync-exclude.lst"
01-21 19:32:30:392 ==== added user defined ignore list to csync: "/home/user/.local/share/data/ownCloud/sync-exclude.lst"
01-21 19:32:30:392 csync_exclude_load: Adding entry: ]*.v1_indexcache
01-21 19:32:30:392 QUrl( "https://servername/remote.php/webdav/" )
01-21 19:32:30:392 * event notification disabled
01-21 19:32:30:392 >===================================== sync started for "ownCloud"
01-21 19:32:30:392 ######## connected to ownCloud Server!
01-21 19:32:30:392 void Mirall::CSyncThread::startSync() Sync started
01-21 19:32:30:392 starting to sync QThread(0x149f220) QThread(0x18ca600)
01-21 19:32:30:392 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 19:32:30:396 Transaction Start "checkConnect"
01-21 19:32:30:397 Columns in the current journal: ("phash", "pathlen", "path", "inode", "uid", "gid", "mode", "modtime", "type", "md5", "fileid")
01-21 19:32:30:452 =====sync with existing DB
01-21 19:32:30:452 #### Update start #################################################### >>
01-21 19:32:30:453 csync_update: Journal: /home/user/Work/.csync_journal.db
01-21 19:32:30:577 Currently folder "ownCloud" is running, wait for finish!
01-21 19:32:30:778 !!! Mirall::CheckQuotaJob created for QUrl( "https://servername/" ) querying "/"
01-21 19:32:32:786 00 client update check to "https://updates.owncloud.com/client/"
01-21 19:32:33:602 csync_memstat_check: Memory: 938740K total size, 64428K resident, 36544K shared
...
01-21 19:32:33:602 csync_ftw: Uniq ID from Database: FolderName -> 52de45361d876
01-21 19:32:33:602 csync_walker: directory: /home/user/Work/FolderName
01-21 19:32:33:602 _csync_detect_update: ==> file: FolderName - hash 1284342631083509729, mtime: 1390255272, fileId: 00020545oce8ccffd393
01-21 19:32:33:602 _csync_detect_update: Database entry found, compare: 1390255272 <-> 1390298421, etag: 52de45361d876 <-> 52de45361d876, inode: 3825868 <-> 3825868
01-21 19:32:33:602 _csync_detect_update: file: FolderName, instruction: INSTRUCTION_EVAL <<=
...
01-21 19:35:50:429 csync_ftw: <= Closing walk for /home/user/Work with read_from_db 0
...
01-21 19:35:50:429 csync_update: Update detection for local replica took 196.83 seconds walking 308320 files.
01-21 19:35:50:429 csync_memstat_check: Memory: 1078872K total size, 171844K resident, 36828K shared
01-21 19:35:50:429 oc_module: opendir method called on ownclouds://servername/remote.php/webdav
01-21 19:35:50:429 oc_module: * scheme ownclouds
01-21 19:35:50:429 oc_module: * host vortex
01-21 19:35:50:429 oc_module: * port 696
01-21 19:35:50:429 oc_module: * path /remote.php/webdav
01-21 19:35:50:429 oc_module: * user
01-21 19:35:50:473 oc_module: No proxy configured.
01-21 19:35:50:540 oc_module: Call the csync callback for SSL problems
01-21 19:35:50:541 SSL Fingerprint from neon: "bb:20:14:55:6a:41:79:d2:53:67:82:f2:fa:b8:b6:81:5e:a4:b5:3f" compared to verified: "bb:20:14:55:6a:41:79:d2:53:67:82:f2:fa:b8:b6:81:5e:a4:b5:3f"
01-21 19:35:50:541 oc_module: ## VERIFY_SSL CERT: 0
...
01-21 19:35:50:965 oc_module: owncloud_stat ownclouds://servername/remote.php/webdav/FolderName called
01-21 19:35:50:965 csync_walker: directory: ownclouds://servername/remote.php/webdav/FolderName
01-21 19:35:50:965 _csync_detect_update: ==> file: FolderName - hash 15574199908801669110, mtime: 1383590008, fileId: 00020577oce8ccffd393
01-21 19:35:50:965 _csync_detect_update: Database entry found, compare: 1383590008 <-> 1383590008, etag: 52ab2168e56a9 <-> 52ab2168e56a9, inode: 0 <-> 3908521
01-21 19:35:50:965 _csync_detect_update: file: FolderName, instruction: INSTRUCTION_NONE <<=
01-21 19:35:50:965 oc_module: opendir method called on ownclouds://servername/remote.php/webdav/FolderName
01-21 19:35:51:042 oc_module: Simple propfind result code 207.
01-21 19:35:51:042 oc_module: opendir returning handle 0x7fb9baa458d0 (count=6)
01-21 19:35:51:043 oc_module: owncloud_stat ownclouds://servername/remote.php/webdav/FolderName/FileName called
01-21 19:35:51:043 csync_walker: file: ownclouds://servername/remote.php/webdav/FolderName/FileName
01-21 19:35:51:043 _csync_detect_update: ==> file: FolderName/FileName - hash 1304264310923730473, mtime: 1383590008, fileId: 00020580oce8ccffd393
01-21 19:35:51:043 _csync_detect_update: Database entry found, compare: 1383590008 <-> 1383590008, etag: 52ab21be31c82 <-> 52ab21be31c82, inode: 0 <-> 3903499
01-21 19:35:51:043 _csync_detect_update: file: FolderName/FileName, instruction: INSTRUCTION_NONE <<=
...
01-21 19:35:51:043 oc_module: closedir method called 0x7fb9baa458d0!
01-21 19:35:51:043 csync_ftw: <= Closing walk for ownclouds://servername/remote.php/webdav/FolderName with read_from_db 0
...
01-21 19:36:01:317 !!! Mirall::CheckQuotaJob created for QUrl( "https://servername/" ) querying "/"
...
01-21 20:45:09:213 csync_ftw: <= Closing walk for ownclouds://servername/remote.php/webdav with read_from_db 0
01-21 20:45:09:213 csync_update: Update detection for remote replica took 4158.78 seconds walking 308279 files.
01-21 20:45:09:213 csync_memstat_check: Memory: 1211196K total size, 272448K resident, 37456K shared
01-21 20:45:09:213 <<#### Update end #################################################### 4358761
01-21 20:45:09:213 _csync_merge_algorithm_visitor: INSTRUCTION_NONE file: Clientela/clientela/.git/objects/3e/7e7e6310751e801fe710cdd0a3dea81fa3278f
01-21 20:45:09:213 _csync_merge_algorithm_visitor: INSTRUCTION_NONE dir: Android/Titanium_Studio/plugins/com.appcelerator.titanium.core_3.1.2.1377092512/com/appcelerator/titanium/core/tiapp/validator
...
01-21 20:45:18:956 csync_reconcile: Reconciliation for remote replica took 4.87 seconds visiting 308279 files.
01-21 20:45:18:973 Transaction Start "checkConnect"
01-21 20:45:18:974 Columns in the current journal: ("phash", "pathlen", "path", "inode", "uid", "gid", "mode", "modtime", "type", "md5", "fileid")
01-21 20:45:19:001 "Carrington Group/carringtongroup/.htaccess" one ETag is empty, no blacklisting
...
01-21 20:45:19:067 [31mQVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const[0m: Condition failed: action
...
01-21 20:45:20:032 * csync thread started
01-21 20:45:20:032 Folder in overallStatus Message: Mirall::Folder(0x16f1140) with name "ownCloud"
01-21 20:45:20:039 Sync state changed for folder "ownCloud" : "Sync Running"
01-21 20:45:20:040 SocketApi: Sync state changed
01-21 20:45:20:040 SocketApi: Broadcasting to 0 listeners: "UPDATE_VIEW"
01-21 20:45:20:192 void Mirall::CSyncThread::transferCompleted(const Mirall::SyncFileItem&) "Bristol Creative Festival/.htaccess" 6 ""
...
01-21 20:45:21:580 Transaction Start "All Finished."
01-21 20:45:22:125 CSync run took 4371673 Milliseconds
01-21 20:45:22:131 [PROGRESS] progressed 0 bytes in 0 files in msec 3175
01-21 20:45:22:131 -> CSync Finished slot with error false warn count 44
01-21 20:45:22:131 Starting Event logging again in 2000 milliseconds
01-21 20:45:22:131 OO folder slotSyncFinished: result: 3
01-21 20:45:22:131 Folder in overallStatus Message: Mirall::Folder(0x16f1140) with name "ownCloud"
01-21 20:45:22:132 Sync state changed for folder "ownCloud" : "Success, some files were ignored."
01-21 20:45:22:132 SocketApi: Sync state changed
01-21 20:45:22:132 SocketApi: Broadcasting to 0 listeners: "UPDATE_VIEW"
01-21 20:45:22:132 <===================================== sync finished for "ownCloud"
01-21 20:45:22:332 XX slotScheduleFolderSync: folderQueue size: 0
01-21 20:45:24:132 * event notification enabled
01-21 20:45:44:033 !!! Mirall::CheckQuotaJob created for QUrl( "https://servername/" ) querying "/"
01-21 20:45:44:051 SSL-Warnings happened for url "https://servername/remote.php/webdav/"
01-21 20:45:44:052 Certs are already known and trusted, Warnings are not valid.
01-21 20:45:52:132 * Polling "ownCloud" for changes. (time since last sync: 30 s)
01-21 20:45:52:132 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 20:45:52:133 !!! Mirall::RequestEtagJob created for QUrl( "https://servername/" ) querying ""
01-21 20:45:52:142 SSL-Warnings happened for url "https://servername/remote.php/webdav/"
01-21 20:45:52:143 Certs are already known and trusted, Warnings are not valid.
01-21 20:45:52:214 * Compare etag with previous etag: true
01-21 20:45:52:215 Schedule folder "ownCloud" to sync!
01-21 20:45:52:215 XX slotScheduleFolderSync: folderQueue size: 1
01-21 20:45:52:352 Folder in overallStatus Message: Mirall::Folder(0x16f1140) with name "ownCloud"
01-21 20:45:52:352 Sync state changed for folder "ownCloud" : "SyncPrepare"
01-21 20:45:52:352 SocketApi: Sync state changed
01-21 20:45:52:352 SocketApi: Broadcasting to 0 listeners: "UPDATE_VIEW"
01-21 20:45:52:352 *** Start syncing
01-21 20:45:52:352 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 20:45:52:352 ==> returning exclude file path: "/etc/ownCloud/sync-exclude.lst"
01-21 20:45:52:352 ==== added system ignore list to csync: "/etc/ownCloud/sync-exclude.lst"
...
< Excludes >
...
01-21 20:45:52:353 ==> returning exclude file path: "/home/user/.local/share/data/ownCloud/sync-exclude.lst"
01-21 20:45:52:353 ==== added user defined ignore list to csync: "/home/user/.local/share/data/ownCloud/sync-exclude.lst"
01-21 20:45:52:353 csync_exclude_load: Adding entry: ]*.v1_indexcache
01-21 20:45:52:353 QUrl( "https://servername/remote.php/webdav/" )
01-21 20:45:52:353 * event notification disabled
01-21 20:45:52:353 >===================================== sync started for "ownCloud"
01-21 20:45:52:353 void Mirall::CSyncThread::startSync() Sync started
01-21 20:45:52:353 starting to sync QThread(0x149f220) QThread(0x1c5a9d0)
01-21 20:45:52:353 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 20:45:52:359 No database Transaction to commit
01-21 20:45:52:360 =====sync with existing DB
01-21 20:45:52:360 #### Update start #################################################### >>
01-21 20:45:52:360 csync_update: Journal: /home/user/Work/.csync_journal.db
01-21 20:45:53:926 csync_memstat_check: Memory: 1343740K total size, 407464K resident, 37588K shared
01-21 20:45:53:926 csync_ftw: Uniq ID from Database: FolderName -> 52de45361d876
01-21 20:45:53:926 csync_walker: directory: /home/user/Work/FolderName
01-21 20:45:53:926 _csync_detect_update: ==> file: FolderName - hash 1284342631083509729, mtime: 1390255272, fileId: 00020545oce8ccffd393
01-21 20:45:53:926 _csync_detect_update: Database entry found, compare: 1390255272 <-> 1390298421, etag: 52de45361d876 <-> 52de45361d876, inode: 3825868 <-> 3825868
01-21 20:45:53:926 _csync_detect_update: file: FolderName, instruction: INSTRUCTION_EVAL <<=
01-21 20:45:53:926 csync_ftw: Uniq ID from Database: FolderName/FileName -> 52ab401981789
01-21 20:45:53:926 csync_walker: file: /home/user/Work/FolderName/FileName
01-21 20:45:53:927 _csync_detect_update: ==> file: FolderName/FileName - hash 10953554743351674159, mtime: 1383589935, fileId:
01-21 20:45:53:927 _csync_detect_update: Database entry found, compare: 1383589935 <-> 1383589935, etag: 52ab401981789 <-> 52ab401981789, inode: 3813608 <-> 3813608
01-21 20:45:53:927 _csync_detect_update: file: FolderName/FileName, instruction: INSTRUCTION_NONE <<=
...
01-21 20:45:53:988 csync_ftw: <= Closing walk for /home/user/Work/FolderName with read_from_db 0
...
01-21 20:46:14:127 !!! Mirall::CheckQuotaJob created for QUrl( "https://servername/" ) querying "/"
...
01-21 20:47:53:403 csync_ftw: <= Closing walk for /home/user/Work with read_from_db 0
01-21 20:47:53:403 csync_update: Update detection for local replica took 119.48 seconds walking 308320 files.
01-21 20:47:53:403 csync_memstat_check: Memory: 1410108K total size, 514344K resident, 37588K shared
01-21 20:47:53:404 oc_module: opendir method called on ownclouds://servername/remote.php/webdav
01-21 20:47:53:404 oc_module: * scheme ownclouds
01-21 20:47:53:404 oc_module: * host vortex
01-21 20:47:53:404 oc_module: * port 696
01-21 20:47:53:404 oc_module: * path /remote.php/webdav
01-21 20:47:53:404 oc_module: * user
01-21 20:47:53:445 oc_module: No proxy configured.
01-21 20:47:53:510 oc_module: Call the csync callback for SSL problems
01-21 20:47:53:510 SSL Fingerprint from neon: "bb:20:14:55:6a:41:79:d2:53:67:82:f2:fa:b8:b6:81:5e:a4:b5:3f" compared to verified: "bb:20:14:55:6a:41:79:d2:53:67:82:f2:fa:b8:b6:81:5e:a4:b5:3f"
01-21 20:47:53:510 oc_module: ## VERIFY_SSL CERT: 0
01-21 20:47:53:587 oc_module: Simple propfind result code 207.
01-21 20:47:53:587 oc_module: opendir returning handle 0x7fb99acbd6d0 (count=79)
...
01-21 20:47:53:695 oc_module: owncloud_stat ownclouds://servername/remote.php/webdav/FolderName called
01-21 20:47:53:695 csync_walker: directory: ownclouds://servername/remote.php/webdav/FolderName
01-21 20:47:53:695 _csync_detect_update: ==> file: FolderName - hash 15574199908801669110, mtime: 1383590008, fileId: 00020577oce8ccffd393
01-21 20:47:53:695 _csync_detect_update: Database entry found, compare: 1383590008 <-> 1383590008, etag: 52ab2168e56a9 <-> 52ab2168e56a9, inode: 0 <-> 3908521
01-21 20:47:53:695 _csync_detect_update: file: FolderName, instruction: INSTRUCTION_NONE <<=
01-21 20:47:53:695 oc_module: opendir method called on ownclouds://servername/remote.php/webdav/FolderName
01-21 20:47:53:749 oc_module: Simple propfind result code 207.
01-21 20:47:53:749 oc_module: opendir returning handle 0x7fb99aa55210 (count=6)
01-21 20:47:53:749 oc_module: owncloud_stat ownclouds://servername/remote.php/webdav/FolderName/FileName called
01-21 20:47:53:750 csync_walker: file: ownclouds://servername/remote.php/webdav/FolderName/FileName
01-21 20:47:53:750 _csync_detect_update: ==> file: FolderName/FileName - hash 1304264310923730473, mtime: 1383590008, fileId: 00020580oce8ccffd393
01-21 20:47:53:750 _csync_detect_update: Database entry found, compare: 1383590008 <-> 1383590008, etag: 52ab21be31c82 <-> 52ab21be31c82, inode: 0 <-> 3903499
01-21 20:47:53:750 _csync_detect_update: file: FolderName/FileName, instruction: INSTRUCTION_NONE <<=
...
01-21 20:47:53:750 oc_module: closedir method called 0x7fb99aa55210!
01-21 20:47:53:750 csync_ftw: <= Closing walk for ownclouds://servername/remote.php/webdav/FolderName with read_from_db 0
...
01-21 20:48:14:444 !!! Mirall::CheckQuotaJob created for QUrl( "https://servername/" ) querying "/"
...
01-21 21:57:22:364 csync_ftw: <= Closing walk for ownclouds://servername/remote.php/webdav with read_from_db 0
01-21 21:57:22:364 csync_update: Update detection for remote replica took 4168.96 seconds walking 308279 files.
01-21 21:57:22:364 csync_memstat_check: Memory: 1542108K total size, 613664K resident, 37596K shared
01-21 21:57:22:365 <<#### Update end #################################################### 4290004
01-21 21:57:22:365 _csync_merge_algorithm_visitor: INSTRUCTION_NONE file: FolderName/FileName
01-21 21:57:22:365 _csync_merge_algorithm_visitor: INSTRUCTION_NONE dir: FolderName
...
01-21 21:57:32:200 csync_reconcile: Reconciliation for remote replica took 4.90 seconds visiting 308279 files.
01-21 21:57:32:218 Transaction Start "checkConnect"
01-21 21:57:32:218 Columns in the current journal: ("phash", "pathlen", "path", "inode", "uid", "gid", "mode", "modtime", "type", "md5", "fileid")
01-21 21:57:32:246 "FolderName/.htaccess" one ETag is empty, no blacklisting
...
01-21 21:57:32:306 [31mQVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const[0m: Condition failed: action
...
01-21 21:57:33:316 * csync thread started
01-21 21:57:33:316 Folder in overallStatus Message: Mirall::Folder(0x16f1140) with name "ownCloud"
01-21 21:57:33:317 Sync state changed for folder "ownCloud" : "Sync Running"
01-21 21:57:33:317 SocketApi: Sync state changed
01-21 21:57:33:317 SocketApi: Broadcasting to 0 listeners: "UPDATE_VIEW"
01-21 21:57:33:472 void Mirall::CSyncThread::transferCompleted(const Mirall::SyncFileItem&) "Bristol Creative Festival/.htaccess" 6 ""
...
01-21 21:57:34:833 Transaction Start "All Finished."
01-21 21:57:35:329 CSync run took 4302969 Milliseconds
01-21 21:57:35:335 [PROGRESS] progressed 0 bytes in 0 files in msec 3134
01-21 21:57:35:335 -> CSync Finished slot with error false warn count 44
01-21 21:57:35:335 Starting Event logging again in 2000 milliseconds
01-21 21:57:35:336 OO folder slotSyncFinished: result: 3
01-21 21:57:35:336 Folder in overallStatus Message: Mirall::Folder(0x16f1140) with name "ownCloud"
01-21 21:57:35:336 Sync state changed for folder "ownCloud" : "Success, some files were ignored."
01-21 21:57:35:336 SocketApi: Sync state changed
01-21 21:57:35:336 SocketApi: Broadcasting to 0 listeners: "UPDATE_VIEW"
01-21 21:57:35:336 <===================================== sync finished for "ownCloud"
01-21 21:57:35:537 XX slotScheduleFolderSync: folderQueue size: 0
01-21 21:57:37:336 * event notification enabled
01-21 21:57:40:827 folder is sync enabled: true
01-21 21:57:40:835 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 21:57:40:836 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 21:57:40:836 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 21:57:40:837 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 21:57:40:837 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 21:57:44:419 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 21:57:44:422 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 21:57:48:677 folder is sync enabled: true
01-21 21:57:48:684 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 21:57:48:685 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 21:57:48:686 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 21:57:48:686 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 21:57:48:687 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 21:57:55:413 !!! Mirall::CheckQuotaJob created for QUrl( "https://servername/" ) querying "/"
01-21 21:57:55:441 SSL-Warnings happened for url "https://servername/remote.php/webdav/"
01-21 21:57:55:442 Certs are already known and trusted, Warnings are not valid.
01-21 21:57:57:094 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 21:57:57:096 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 21:58:05:336 * Polling "ownCloud" for changes. (time since last sync: 30 s)
01-21 21:58:05:336 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 21:58:05:336 !!! Mirall::RequestEtagJob created for QUrl( "https://servername/" ) querying ""
01-21 21:58:05:343 SSL-Warnings happened for url "https://servername/remote.php/webdav/"
01-21 21:58:05:343 Certs are already known and trusted, Warnings are not valid.
01-21 21:58:05:414 * Compare etag with previous etag: false
01-21 21:58:25:502 !!! Mirall::CheckQuotaJob created for QUrl( "https://servername/" ) querying "/"
01-21 21:58:25:512 SSL-Warnings happened for url "https://servername/remote.php/webdav/"
01-21 21:58:25:513 Certs are already known and trusted, Warnings are not valid.
01-21 21:58:35:338 * Polling "ownCloud" for changes. (time since last sync: 60 s)
01-21 21:58:35:338 Loading config: "/home/user/.local/share/data//ownCloud/owncloud.cfg" (URL is "https://servername/" )
01-21 21:58:35:339 !!! Mirall::RequestEtagJob created for QUrl( "https://servername/" ) querying ""
01-21 21:58:35:348 SSL-Warnings happened for url "https://servername/remote.php/webdav/"
01-21 21:58:35:349 Certs are already known and trusted, Warnings are not valid.
...
01-21 22:03:05:339 * Polling "ownCloud" for changes. (time since last sync: 330 s)
...
01-21 22:03:05:339 Schedule folder "ownCloud" to sync!
< Walk restarts >
@dragotin Has this been any use? Any insight into why the remote walk takes so long?
@ItsNotWorking I know that @dragotin optimized the local DB handling a lot for 1.6 / master branch. If you're brave have a look there.
Thanks, trying to but currently stuck on this issue https://github.com/owncloud/mirall/issues/1531 Any thoughts on getting round it? Do I just need to manually install all the packages in the /devel/ repo with the exception of the client itself?
Got it working, see #1531 for a fix if anyone else is having the same problem.
Wow the speed difference is insane!
03-05 13:55:50:164 csync_update: Update detection for remote replica took 143.59 seconds walking 151753 files.
(I've cut my files down a lot) Only now I get a seg fault after a couple of mins.
how long was it before? I will backport the patch to the 1.5 branch I think.
My log above originally shows 4168.96 seconds to walk the remote replica (308k files) compared to 143.59 seconds now (150k files).
Quite happy to test the backport if you wish.
Switching to another DB is out of scope with the latest performance improvements. If it still crashes or is slow with sqlite3, we have to see how to improve this.
No worries, 1.6 has fixed the performance issues anyway