Lock on file during sync-upload to server
Owncloud client 1.6.1 for windows seems to lock a file when it's being synced to the server.
When i try to save it during this process, my office installation gives an error, stating that the file is locked by process owncloud.exe When the sync is complete, i can save the file again.
Would it be possible to make a shadow copy of the file before it get's synced to the server so that i would continue to have write access to the original file, and don't get this error when it's uploading ?
Thanks, Frank Uittenbosch
@frankuit I can't reproduce it, can you try to use https://raw.githubusercontent.com/owncloud/mirall/master/issue_template.md to report the bug? Maybe in this way I can reproduce it.
Expected behaviour
when saving a file from office or another program in the owncloud-folder, it should always save, owncloud should not lock the file
Actual behaviour
Owncloud client detects changed file, uploads to server, but connection is slow, owncloud keeps lock on the file to upload. result, i cannot save the file until upload is done.
Steps to reproduce
- connect to a slow network, gprs(isdn speed for example), you can also limit the upload speed in the client to 5 kb/s to test this problem.
- open an office file, about 50 MB in size
- Change something in the file, save it, wait for owncloud to begin sync to server, then click save again.
Server configuration
Operating system:
Debian wheezy 64 bit latest patches, kernel: 3.2.0-4-amd64
Web server:
ii apache2 2.2.22-13+deb7u3 amd64 Apache
Database:
mysql-server-5.5 5.5.38-0+wheezy1 amd64
PHP version:
php5 5.4.4-14+deb7u12 all
ownCloud version:
owncloud 7.0.0 all
Storage backend:
local, zfs
Client configuration
Client version: 1.6.1/mirall windows Operating system: Windows 7 64 OS language: EN Installation path of client: program files\owncloud
Logs
- Output of
owncloud --logwindoworowncloud --logfile log.txt07-28 11:20:48:744 folder.cpp:632 * csync thread started 07-28 11:20:49:666 owncloudgui.cpp:209 Folder in overallStatus Message: Mirall::Folder(0x6ec2648) with name "ownCloud" 07-28 11:20:49:666 owncloudgui.cpp:124 Sync state changed for folder "ownCloud" : "Sync Running" 07-28 11:20:49:666 socketapi.cpp:131 SocketApi: Broadcasting to 0 listeners: "UPDATE_VIEW" 07-28 11:20:49:697 propagator_legacy.cpp:68 ** PUT request to /owncloud/remote.php/webdav/testcrash.docx 07-28 11:20:49:697 propagator_legacy.h:33 hbf_splitlist block_size: 10485760 threshold: 10485760 st_size: 11498305 07-28 11:20:49:697 propagator_legacy.h:33 hbf_splitlist num_blocks: 2 rmainder: 1012545 blk_size: 10485760 07-28 11:20:49:697 propagator_legacy.h:33 hbf_splitlist created block 0 (start: 0 size: 10485760) 07-28 11:20:49:697 propagator_legacy.h:33 hbf_splitlist created block 1 (start: 10485760 size: 1012545) 07-28 11:20:49:697 propagator_legacy.cpp:123 About to upload "testcrash.docx" ( "" 11498305 bytes ) 07-28 11:20:49:697 propagator_legacy.h:33 hbf_transfer PUT request to /owncloud/remote.php/webdav/testcrash.docx 07-28 11:20:49:697 propagator_legacy.h:33 _hbf_dav_request Block: 0 , Start: 0 and Size: 10485760 07-28 11:21:01:204 folderwatcher.cpp:154 detected changes in folders: QSet("C:/Users/me\ownCloud/") 07-28 11:21:01:205 folderman.cpp:397 the current folder is currently syncing. 07-28 11:21:01:317 networkjobs.cpp:191 !!! Mirall::CheckQuotaJob created for QUrl( "https://owncloud.sron.nl/owncloud" ) querying "/" 07-28 11:21:05:257 folderwatcher.cpp:154 detected changes in folders: QSet("C:/Users/me\ownCloud/") 07-28 11:21:05:258 folderman.cpp:397 the current folder is currently syncing. 07-28 11:21:31:391 networkjobs.cpp:191 !!! Mirall::CheckQuotaJob created for QUrl( "https://owncloud.sron.nl/owncloud" ) querying "/" 07-28 11:22:01:521 networkjobs.cpp:191 !!! Mirall::CheckQuotaJob created for QUrl( "https://owncloud.sron.nl/owncloud" ) querying "/" - Web server error log: nothing in the error log about this, i filtered using a grep on the ip address.
- ownCloud log (data/owncloud.log): nothing in the error log about this, i filtered using a grep on the ip address.
i've add
ed a screenshot
@dragotin What do you think about this?
Let's track this at https://github.com/owncloud/mirall/issues/2070