{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/client/issues/4796","repository_url":"https://api.github.com/repos/owncloud/client","labels_url":"https://api.github.com/repos/owncloud/client/issues/4796/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/client/issues/4796/comments","events_url":"https://api.github.com/repos/owncloud/client/issues/4796/events","html_url":"https://github.com/owncloud/client/issues/4796","id":153308942,"number":4796,"title":"Sync client is stuck in an endless uploading loop when syncing large files to a Federated Share","user":{"login":"mmattel","id":3321281,"avatar_url":"https://avatars.githubusercontent.com/u/3321281?v=3","gravatar_id":"","url":"https://api.github.com/users/mmattel","html_url":"https://github.com/mmattel","followers_url":"https://api.github.com/users/mmattel/followers","following_url":"https://api.github.com/users/mmattel/following{/other_user}","gists_url":"https://api.github.com/users/mmattel/gists{/gist_id}","starred_url":"https://api.github.com/users/mmattel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmattel/subscriptions","organizations_url":"https://api.github.com/users/mmattel/orgs","repos_url":"https://api.github.com/users/mmattel/repos","events_url":"https://api.github.com/users/mmattel/events{/privacy}","received_events_url":"https://api.github.com/users/mmattel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/client/labels/Server%20Involved","name":"Server Involved","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-05T19:43:32Z","updated_at":"2016-05-06T08:39:50Z","closed_at":"2016-05-06T08:39:50Z","body":"**Please see core issue https://github.com/owncloud/core/issues/24454 because this one is related to ! \r\nThe system setup ect is described there**\r\n\r\n### Expected behaviour\r\nAfter putting a 165MB video file into a folder that gets synced (folder is on a federated share), the sync should start and complete sucessfully.\r\n\r\n### Actual behaviour\r\nSync starts and upload completes, but during the waiting time while the owncloud server uploads to the federated share, the client runes into a timeout and restarts the upload. This confuses the system completely, because this is a endless loop ! The old upload to the federated share has not finished and a new upload from the sync client with the same file starts conflicting with the cached file.\r\nTo stop this loop, you have to take out the large file from the folder to be synced - BUT when you logon in the browser (after a while) the large file shows up (because it has been uploaded to the federated owncloud system successfully) and now gets back synced to the client (I also have seen that the large file was visible in the browser only but not in the synced folder...)\r\n\r\n\r\n### Server configuration\r\nOperating system: Ubuntu 14.04\r\n\r\nWeb server: nginx\r\n\r\nDatabase: mysql\r\n\r\nPHP version: 5.5.9\r\n\r\nownCloud version:\r\nownCloud 9.0.2 RC1 (daily) Build:2016-04-28T03:03:12+00:00 795f321a1985b682bff584f252dd6f2fd95dad65\r\n\r\nStorage backend:\r\n\r\n### Client configuration\r\nClient version:\r\n2.2.0beta2 (build 6044)\r\n(same with the stable version)\r\n\r\nOperating system: W7x64\r\n\r\nOS language: German\r\n\r\nInstallation path of client: standard\r\n\r\n### Logs\r\n\r\n1. Client: cant share as this contains sensitive data. But it is easy to reproduce...\r\n(There should be a anonymizing function for the log output like you have in core for config.php)\r\n\r\n2. Web server error log:\r\nno corresponding errors\r\n\r\n3. ownCloud log (data/owncloud.log):\r\n````\r\nException: {\"Exception\":\"OCP\\\\Lock\\\\LockedException\",\"Message\":\"\\\"FederatedShareFolder\\/TestVideo.mp4\\\" is locked\",\"Code\":0,\"Trace\":\"#0 \\/var\\/www\\/owncloud\\/lib\\/private\\/files\\/view.php(1956): OC\\\\Files\\\\View->lockPath('\\/files\\/FederatedS...', 1, false)\\\r\nn#1 \\/var\\/www\\/owncloud\\/lib\\/private\\/files\\/view.php(803): OC\\\\Files\\\\View->lockFile('\\/files\\/FederatedS...', 1)\\\r\nn#2 \\/var\\/www\\/owncloud\\/apps\\/files_versions\\/lib\\/storage.php(193): OC\\\\Files\\\\View->copy('files\\/\\/FederatedS...', 'files_versions\\/...')\\\r\nn#3 \\/var\\/www\\/owncloud\\/apps\\/files_versions\\/lib\\/hooks.php(60): OCA\\\\Files_Versions\\\\Storage::store('\\/FederatedSon Eng...')\\\r\nn#4 [internal function]: OCA\\\\Files_Versions\\\\Hooks::write_hook(Array)\\\r\nn#5 \\/var\\/www\\/owncloud\\/lib\\/private\\/hook.php(105): call_user_func(Array, Array)\\\r\nn#6 \\/var\\/www\\/owncloud\\/lib\\/private\\/filechunking.php(215): OC_Hook::emit('OC_Filesystem', 'write', Array)\\\r\nn#7 \\/var\\/www\\/owncloud\\/apps\\/dav\\/lib\\/connector\\/sabre\\/file.php(455): OC_FileChunking->file_assemble(Object(OCA\\\\Files_Trashbin\\\\Storage), 'SubFolder1\\/SubSubFolder1...', '\\/TestUser\\/files...')\\\r\nn#8 \\/var\\/www\\/owncloud\\/apps\\/dav\\/lib\\/connector\\/sabre\\/file.php(103): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->createFileChunked(Resource id #48)\\\r\nn#9 \\/var\\/www\\/owncloud\\/apps\\/dav\\/lib\\/connector\\/sabre\\/directory.php(134): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->put(Resource id #48)\\\r\nn#10 \\/var\\/www\\/owncloud\\/3rdparty\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(1036): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->createFile(TestVideo -...', Resource id #48)\\\r\nn#11 \\/var\\/www\\/owncloud\\/3rdparty\\/sabre\\/dav\\/lib\\/DAV\\/CorePlugin.php(523): Sabre\\\\DAV\\\\Server->createFile('FederatedS...', Resource id #48, NULL)\\\r\nn#12 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpPut(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\\r\nn#13 \\/var\\/www\\/owncloud\\/3rdparty\\/sabre\\/event\\/lib\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\\r\nn#14 \\/var\\/www\\/owncloud\\/3rdparty\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(459): Sabre\\\\Event\\\\EventEmitter->emit('method:PUT', Array)\\\r\nn#15 \\/var\\/www\\/owncloud\\/3rdparty\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\\r\nn#16 \\/var\\/www\\/owncloud\\/apps\\/dav\\/appinfo\\/v1\\/webdav.php(55): Sabre\\\\DAV\\\\Server->exec()\\\r\nn#17 \\/var\\/www\\/owncloud\\/remote.php(138): require_once('\\/var\\/w...')\\\r\nn#18 {main}\",\"File\":\"\\/var\\/www\\/owncloud\\/lib\\/private\\/files\\/view.php\",\"Line\":1858}\r\n````\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/client/issues/comments/217384164","html_url":"https://github.com/owncloud/client/issues/4796#issuecomment-217384164","issue_url":"https://api.github.com/repos/owncloud/client/issues/4796","id":217384164,"user":{"login":"guruz","id":959327,"avatar_url":"https://avatars.githubusercontent.com/u/959327?v=3","gravatar_id":"","url":"https://api.github.com/users/guruz","html_url":"https://github.com/guruz","followers_url":"https://api.github.com/users/guruz/followers","following_url":"https://api.github.com/users/guruz/following{/other_user}","gists_url":"https://api.github.com/users/guruz/gists{/gist_id}","starred_url":"https://api.github.com/users/guruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guruz/subscriptions","organizations_url":"https://api.github.com/users/guruz/orgs","repos_url":"https://api.github.com/users/guruz/repos","events_url":"https://api.github.com/users/guruz/events{/privacy}","received_events_url":"https://api.github.com/users/guruz/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T08:39:50Z","updated_at":"2016-05-06T08:39:50Z","body":"Thanks!\r\nIndeed, streaming uploads would be good here.."}}