{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/11432","labels_url":"https://api.github.com/repos/owncloud/core/issues/11432/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/11432/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/11432/events","html_url":"https://github.com/owncloud/core/issues/11432","id":44979005,"number":11432,"title":"[6.0.5] Sync large file to SFTP external storage file not complete","user":{"login":"ser72","id":5174383,"avatar_url":"https://avatars.githubusercontent.com/u/5174383?v=3","gravatar_id":"","url":"https://api.github.com/users/ser72","html_url":"https://github.com/ser72","followers_url":"https://api.github.com/users/ser72/followers","following_url":"https://api.github.com/users/ser72/following{/other_user}","gists_url":"https://api.github.com/users/ser72/gists{/gist_id}","starred_url":"https://api.github.com/users/ser72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ser72/subscriptions","organizations_url":"https://api.github.com/users/ser72/orgs","repos_url":"https://api.github.com/users/ser72/repos","events_url":"https://api.github.com/users/ser72/events{/privacy}","received_events_url":"https://api.github.com/users/ser72/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/app:files_external","name":"app:files_external","color":"02d7e1"},{"url":"https://api.github.com/repos/owncloud/core/labels/blue-ticket","name":"blue-ticket","color":"0033CC"},{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"bantu","id":189375,"avatar_url":"https://avatars.githubusercontent.com/u/189375?v=3","gravatar_id":"","url":"https://api.github.com/users/bantu","html_url":"https://github.com/bantu","followers_url":"https://api.github.com/users/bantu/followers","following_url":"https://api.github.com/users/bantu/following{/other_user}","gists_url":"https://api.github.com/users/bantu/gists{/gist_id}","starred_url":"https://api.github.com/users/bantu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bantu/subscriptions","organizations_url":"https://api.github.com/users/bantu/orgs","repos_url":"https://api.github.com/users/bantu/repos","events_url":"https://api.github.com/users/bantu/events{/privacy}","received_events_url":"https://api.github.com/users/bantu/received_events","type":"User","site_admin":false},"milestone":null,"comments":18,"created_at":"2014-10-06T12:45:36Z","updated_at":"2015-02-20T14:50:49Z","closed_at":null,"body":"**Expected Behavior**\r\nFile to be reassembled and be proper size\r\n\r\n**Actual Behavior** \r\nFile is reassembled and improper size\r\n\r\n**Steps**\r\nCreate large file (11+ gig)\r\nConfigure SFTP external storage\r\nPlace large file in SFTP external storage folder on client\r\nWatch client sync to server\r\n\r\nAll chunks are sent to the files/<user>/cache folder\r\nFile is placed on oC server in /tmp folder:\r\n\r\n```\r\nroot@ubuntu:/var/www/owncloud605/data# ls -al /tmp\r\ntotal 15668204\r\ndrwxrwxrwt  6 root     root            4096 Oct  6 08:27 .\r\ndrwxr-xr-x 24 root     root            4096 Aug 21 14:10 ..\r\n-rw-r--r--  1 www-data www-data 16044208328 Oct  6 08:15 5667bc43f249d3944c97c6796e881781.part\r\n```\r\n\r\nAfter that, file is moved to SFTP server as .part file.\r\nOnce file hits 4GB, the size of the file stops increasing, however, the mtime continues to change:\r\n\r\n```\r\nroot@ubuntu14:/home/ser72# ls -al\r\ntotal 4194336\r\ndrwxr-xr-x 3 ser72 ser72       4096 Oct  6 07:49 .\r\ndrwxr-xr-x 3 root  root        4096 Sep 29 13:42 ..\r\n-rw-rw-r-- 1 ser72 ser72 4294967296 Oct  6 08:22 15gig.ocTransferId747568740.part\r\n```\r\n\r\n```\r\nroot@ubuntu14:/home/ser72# ls -al\r\ntotal 4194336\r\ndrwxr-xr-x 3 ser72 ser72       4096 Oct  6 07:49 .\r\ndrwxr-xr-x 3 root  root        4096 Sep 29 13:42 ..\r\n-rw-rw-r-- 1 ser72 ser72 4294967296 Oct  6 08:24 15gig.ocTransferId747568740.part\r\n```\r\n\r\n```\r\nroot@ubuntu14:/home/ser72# ls -al\r\ntotal 4194336\r\ndrwxr-xr-x 3 ser72 ser72       4096 Oct  6 07:49 .\r\ndrwxr-xr-x 3 root  root        4096 Sep 29 13:42 ..\r\n-rw-rw-r-- 1 ser72 ser72 4294967296 Oct  6 08:29 15gig.ocTransferId747568740.part\r\n```\r\n\r\nNotice the mtime is 8:22, 8:24, then 8:29 but the file size remains 4GB\r\n\r\nThe file eventually gets totally reassembled and the .part is removed and the file is still 4GB.  Should be 11GB\r\n\r\n**Notes**\r\nTesting the file and Linux server, I did an FTP from the PC to the Linux server directly to verify the file is in fact 11GB:\r\n\r\n```\r\nroot@ubuntu14:/home/ser72# ls -al /root\r\ntotal 11718796\r\ndrwx------  4 root root        4096 Oct  3 14:38 .\r\ndrwxr-xr-x 22 root root        4096 Sep 29 14:16 ..\r\n-rw-r--r--  1 root root 12000000000 Oct  3 11:36 15gig\r\n```\r\n\r\nNotice file size\r\n\r\n\r\n```\r\nroot@ubuntu14:/home/ser72# ls -al\r\ntotal 4194336\r\ndrwxr-xr-x 3 ser72 ser72       4096 Oct  6 08:38 .\r\ndrwxr-xr-x 3 root  root        4096 Sep 29 13:42 ..\r\n-rw-rw-r-- 1 ser72 ser72 4294967296 Oct  6 08:38 15gig\r\n```\r\n\r\n![capture](https://cloud.githubusercontent.com/assets/5174383/4525673/8de68b62-4d56-11e4-9a99-83fdb977095e.PNG)\r\n\r\n\r\n\r\n\r\n**Logs**\r\n```\r\nroot@ubuntu:/var/www/owncloud605/data# more owncloud.log\r\n{\"reqId\":\"5432771d78166\",\"app\":\"PHP\",\"message\":\"Comments starting with '#' are deprecated in \\/etc\\/php5\\/apache2\\/php.ini on line 1787 at Unknown#0\",\"level\":3,\"time\":\"2014-10-06T11:03:57+00:0\r\n0\",\"method\":\"PROPFIND\",\"url\":\"\\/owncloud605\\/remote.php\\/webdav\\/\"}\r\n{\"reqId\":\"543277328a8ab\",\"app\":\"PHP\",\"message\":\"Comments starting with '#' are deprecated in \\/etc\\/php5\\/apache2\\/php.ini on line 1787 at Unknown#0\",\"level\":3,\"time\":\"2014-10-06T11:04:18+00:0\r\n0\",\"method\":\"PROPFIND\",\"url\":\"\\/owncloud605\\/remote.php\\/webdav\\/\"}\r\n{\"reqId\":\"5432773cdf9a8\",\"app\":\"admin_audit\",\"message\":\"User ser72 attempted to log into ownCloud from IP address: 192.168.1.123\",\"level\":1,\"time\":\"2014-10-06T11:04:28+00:00\",\"method\":\"PROPFIN\r\nD\",\"url\":\"\\/owncloud605\\/remote.php\\/webdav\\/\"}\r\n{\"reqId\":\"5432773cdf9a8\",\"app\":\"admin_audit\",\"message\":\"User ser72 logged into ownCloud from IP address: 192.168.1.123\",\"level\":1,\"time\":\"2014-10-06T11:04:28+00:00\",\"method\":\"PROPFIND\",\"url\":\"\r\n\\/owncloud605\\/remote.php\\/webdav\\/\"}\r\n{\"reqId\":\"54327dca5bc00\",\"app\":\"PHP\",\"message\":\"Undefined index: mountpoint at \\/var\\/www\\/owncloud605\\/apps\\/files_external\\/templates\\/settings.php#20\",\"level\":3,\"time\":\"2014-10-06T11:32:26+\r\n00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud605\\/index.php\\/settings\\/admin\"}\r\n{\"reqId\":\"54327dca5bc00\",\"app\":\"PHP\",\"message\":\"Undefined index: mountpoint at \\/var\\/www\\/owncloud605\\/apps\\/files_external\\/templates\\/settings.php#27\",\"level\":3,\"time\":\"2014-10-06T11:32:26+\r\n00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud605\\/index.php\\/settings\\/admin\"}\r\n{\"reqId\":\"54327dca5bc00\",\"app\":\"PHP\",\"message\":\"Undefined index: mountpoint at \\/var\\/www\\/owncloud605\\/apps\\/files_external\\/templates\\/settings.php#29\",\"level\":3,\"time\":\"2014-10-06T11:32:26+\r\n00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud605\\/index.php\\/settings\\/admin\"}\r\n{\"reqId\":\"54327dca5bc00\",\"app\":\"PHP\",\"message\":\"Undefined index: mountpoint at \\/var\\/www\\/owncloud605\\/apps\\/files_external\\/templates\\/settings.php#111\",\"level\":3,\"time\":\"2014-10-06T11:32:26\r\n+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud605\\/index.php\\/settings\\/admin\"}\r\n{\"reqId\":\"54327dfe7aa0d\",\"app\":\"PHP\",\"message\":\"Comments starting with '#' are deprecated in \\/etc\\/php5\\/apache2\\/php.ini on line 1787 at Unknown#0\",\"level\":3,\"time\":\"2014-10-06T11:33:18+00:0\r\n0\",\"method\":\"PROPFIND\",\"url\":\"\\/owncloud605\\/remote.php\\/webdav\\/\"}\r\n{\"reqId\":\"54327e0192f8d\",\"app\":\"PHP\",\"message\":\"Comments starting with '#' are deprecated in \\/etc\\/php5\\/apache2\\/php.ini on line 1787 at Unknown#0\",\"level\":3,\"time\":\"2014-10-06T11:33:21+00:0\r\n0\",\"method\":\"PROPFIND\",\"url\":\"\\/owncloud605\\/remote.php\\/webdav\\/\"}\r\n{\"reqId\":\"543281d9e3998\",\"app\":\"admin_audit\",\"message\":\"Create \\\"\\/ser72\\/files\\/SFTP\\/15gig.ocTransferId747568740.part\\\" by user ser72, owner: ser72\",\"level\":1,\"time\":\"2014-10-06T11:49:45+00:\r\n00\",\"method\":\"PUT\",\"url\":\"\\/owncloud605\\/remote.php\\/webdav\\/SFTP\\/15gig-chunking-747568740-1145-1143\"}\r\n{\"reqId\":\"543281d9e3998\",\"app\":\"admin_audit\",\"message\":\"Write \\\"\\/ser72\\/files\\/SFTP\\/15gig.ocTransferId747568740.part\\\" by user ser72, owner: ser72\",\"level\":1,\"time\":\"2014-10-06T11:49:46+00:0\r\n0\",\"method\":\"PUT\",\"url\":\"\\/owncloud605\\/remote.php\\/webdav\\/SFTP\\/15gig-chunking-747568740-1145-1143\"}\r\n{\"reqId\":\"543286fedf2dc\",\"app\":\"PHP\",\"message\":\"Comments starting with '#' are deprecated in \\/etc\\/php5\\/apache2\\/php.ini on line 1787 at Unknown#0\",\"level\":3,\"time\":\"2014-10-06T12:11:42+00:0\r\n0\",\"method\":\"PROPFIND\",\"url\":\"\\/owncloud605\\/remote.php\\/webdav\\/\"}\r\n{\"reqId\":\"543281d9e3998\",\"app\":\"OC\\\\Files\\\\Cache\\\\Scanner\",\"message\":\"!!! Path '15gig' is not readable !!!\",\"level\":0,\"time\":\"2014-10-06T12:15:26+00:00\",\"method\":\"PUT\",\"url\":\"\\/owncloud605\\/re\r\nmote.php\\/webdav\\/SFTP\\/15gig-chunking-747568740-1145-1143\"}\r\n{\"reqId\":\"5432891907c89\",\"app\":\"PHP\",\"message\":\"Comments starting with '#' are deprecated in \\/etc\\/php5\\/apache2\\/php.ini on line 1787 at Unknown#0\",\"level\":3,\"time\":\"2014-10-06T12:20:41+00:0\r\n0\",\"method\":\"POST\",\"url\":\"\\/owncloud605\\/index.php\\/heartbeat\"}\r\n{\"reqId\":\"543289ab93739\",\"app\":\"PHP\",\"message\":\"Comments starting with '#' are deprecated in \\/etc\\/php5\\/apache2\\/php.ini on line 1787 at Unknown#0\",\"level\":3,\"time\":\"2014-10-06T12:23:07+00:0\r\n0\",\"method\":\"PROPFIND\",\"url\":\"\\/owncloud605\\/remote.php\\/webdav\\/\"}\r\n{\"reqId\":\"54328b95cd08c\",\"app\":\"PHP\",\"message\":\"Comments starting with '#' are deprecated in \\/etc\\/php5\\/apache2\\/php.ini on line 1787 at Unknown#0\",\"level\":3,\"time\":\"2014-10-06T12:31:17+00:0\r\n0\",\"method\":\"PROPFIND\",\"url\":\"\\/owncloud605\\/remote.php\\/webdav\\/\"}\r\n{\"reqId\":\"543281d9e3998\",\"app\":\"admin_audit\",\"message\":\"Write \\\"\\/ser72\\/files\\/SFTP\\/15gig\\\" by user ser72, owner: ser72\",\"level\":1,\"time\":\"2014-10-06T12:38:17+00:00\",\"method\":\"PUT\",\"url\":\"\\/owncloud605\\/remote.php\\/webdav\\/SFTP\\/15gig-chunking-747568740-1145-1143\"}\r\n```\r\n\r\n\r\nClient logs on  S3   support/github-issues/core/11432\r\n\r\n\r\n\r\n**Environment**\r\nUbuntu 12.04\r\nPHP 5.4.33\r\n\r\nSFTP server on Ubuntu 14.0.4"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/75249574","html_url":"https://github.com/owncloud/core/issues/11432#issuecomment-75249574","issue_url":"https://api.github.com/repos/owncloud/core/issues/11432","id":75249574,"user":{"login":"gig13","id":4803385,"avatar_url":"https://avatars.githubusercontent.com/u/4803385?v=3","gravatar_id":"","url":"https://api.github.com/users/gig13","html_url":"https://github.com/gig13","followers_url":"https://api.github.com/users/gig13/followers","following_url":"https://api.github.com/users/gig13/following{/other_user}","gists_url":"https://api.github.com/users/gig13/gists{/gist_id}","starred_url":"https://api.github.com/users/gig13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gig13/subscriptions","organizations_url":"https://api.github.com/users/gig13/orgs","repos_url":"https://api.github.com/users/gig13/repos","events_url":"https://api.github.com/users/gig13/events{/privacy}","received_events_url":"https://api.github.com/users/gig13/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T14:50:49Z","updated_at":"2015-02-20T14:50:49Z","body":"@bantu \r\nCorrect the log still shows OC6-- I will recheck we were testing an upgrade to OC7"}}