{"action":"closed","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/22957","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/22957/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/22957/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/22957/events","html_url":"https://github.com/owncloud/core/issues/22957","id":139324522,"number":22957,"title":"Operation canceled: connection closed","user":{"login":"LaurentLM2I","id":17726787,"avatar_url":"https://avatars.githubusercontent.com/u/17726787?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurentLM2I","html_url":"https://github.com/LaurentLM2I","followers_url":"https://api.github.com/users/LaurentLM2I/followers","following_url":"https://api.github.com/users/LaurentLM2I/following{/other_user}","gists_url":"https://api.github.com/users/LaurentLM2I/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentLM2I/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentLM2I/subscriptions","organizations_url":"https://api.github.com/users/LaurentLM2I/orgs","repos_url":"https://api.github.com/users/LaurentLM2I/repos","events_url":"https://api.github.com/users/LaurentLM2I/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentLM2I/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-08T16:31:50Z","updated_at":"2016-03-08T17:28:09Z","closed_at":"2016-03-08T17:28:09Z","body":"**Client:** Version 2.1.1 (build 5837) sur machine Windows 10 \r\n**OR**\r\n**Client:** Version 2.1.0 (build 5683) sur machine Windows 10\r\n**Server:** 8.2.2 (stable)\r\n**Machine server:** Debian Linux 8.3\r\n**Apache2** Version 2.4.10\r\n**PHP** Version 5.6.17-0+deb8u1\r\n**MySQL** Version 5.5.47 \r\n\r\n**Error message when the client sync:**\r\n```\r\n26/02/2016 15:28:25, Création/Blois_MySQL.xlsx, ownCloud,Operation canceled\r\n26/02/2016 15:28:25, Création/Blois BSM 1.xlsx, ownCloud,Connexion fermée\r\n26/02/2016 15:28:23, Création/Maintenance 2016.pdf, ownCloud,Conserver sur liste noire : Error downloading https://SERVEUR/owncloud/remote.php/web ... aintenance 2016.pdf - server replied: Bad Request (expected filesize 29954 got 8192)\r\n\r\n```\r\n\r\n**Server logs:**\r\n```\r\n{\"reqId\":\"qpoxfH+DfcfkfuImTQCk\",\"remoteAddr\":\"IP\",\"app\":\"webdav\",\"message\":\"Exception: {\"Message\":\"HTTP/1.1 400 expected filesize 5242880 got 8192\",\"Exception\":\"Sabre\\DAV\\Exception\\BadRequest\",\"Code\":0,\"Trace\":\"\r\n#0 /var/www/owncloud/lib/private/connector/sabre/file.php(101): OC\\Connector\\Sabre\\File->createFileChunked(Resource id #30)\r\n#1 /var/www/owncloud/lib/private/connector/sabre/directory.php(115): OC\\Connector\\Sabre\\File->put(Resource id #30)\r\n#2 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(1053): OC\\Connector\\Sabre\\Directory->createFile('Blois_MySQL.xls...', Resource id #30)\r\n#3 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(513): Sabre\\DAV\\Server->createFile('Création/...', Resource id #30, NULL)\r\n#4 [internal function]: Sabre\\DAV\\CorePlugin->httpPut(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\r\n#5 /var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\r\n#6 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(469): Sabre\\Event\\EventEmitter->emit('method:PUT', Array)\r\n#7 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\r\n#8 /var/www/owncloud/apps/files/appinfo/remote.php(56): Sabre\\DAV\\Server->exec()\r\n#9 /var/www/owncloud/remote.php(137): require_once('/var/www/ownclo...')\r\n#10 {main}\",\"File\":\"/var/www/owncloud/lib/private/connector/sabre/file.php\",\"Line\":361}\",\"level\":4,\"time\":\"2016-02-26T13:47:55+00:00\"}\r\n{\"reqId\":\"MsZWEoFnwpcxhYugBGXU\",\"remoteAddr\":\"IP\",\"app\":\"webdav\",\"message\":\"Exception: {\"Message\":\"HTTP/1.1 400 expected filesize 5242880 got 8192\",\"Exception\":\"Sabre\\DAV\\Exception\\BadRequest\",\"Code\":0,\"Trace\":\"\r\n#0 /var/www/owncloud/lib/private/connector/sabre/file.php(101): OC\\Connector\\Sabre\\File->createFileChunked(Resource id #30)\r\n#1 /var/www/owncloud/lib/private/connector/sabre/directory.php(115): OC\\Connector\\Sabre\\File->put(Resource id #30)\r\n#2 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(1053): OC\\Connector\\Sabre\\Directory->createFile('Blois BSM 1.xls...', Resource id #30)\r\n#3 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(513): Sabre\\DAV\\Server->createFile('Création/...', Resource id #30, NULL)\r\n#4 [internal function]: Sabre\\DAV\\CorePlugin->httpPut(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\r\n#5 /var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\r\n#6 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(469): Sabre\\Event\\EventEmitter->emit('method:PUT', Array)\r\n#7 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\r\n#8 /var/www/owncloud/apps/files/appinfo/remote.php(56): Sabre\\DAV\\Server->exec()\r\n#9 /var/www/owncloud/remote.php(137): require_once('/var/www/ownclo...')\r\n#10 {main}\",\"File\":\"/var/www/owncloud/lib/private/connector/sabre/file.php\",\"Line\":361}\",\"level\":4,\"time\":\"2016-02-26T13:47:56+00:00\"}\r\n{\"reqId\":\"XcYRnW0qBv3Lj6OUEf4g\",\"remoteAddr\":\"IP\",\"app\":\"webdav\",\"message\":\"Exception: {\"Message\":\"HTTP/1.1 400 expected filesize 29954 got 8192\",\"Exception\":\"Sabre\\DAV\\Exception\\BadRequest\",\"Code\":0,\"Trace\":\"\r\n#0/var/www/owncloud/lib/private/connector/sabre/directory.php(115): OC\\Connector\\Sabre\\File->put(Resource id #30)\r\n#1 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(1053): OC\\Connector\\Sabre\\Directory->createFile('Maintenance...', Resource id #30)\r\n#2 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(513): Sabre\\DAV\\Server->createFile('Création/...', Resource id #30, NULL)\r\n#3 [internal function]: Sabre\\DAV\\CorePlugin->httpPut(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\r\n#4 /var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\r\n#5 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(469): Sabre\\Event\\EventEmitter->emit('method:PUT', Array)\r\n#6 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\r\n#7 /var/www/owncloud/apps/files/appinfo/remote.php(56): Sabre\\DAV\\Server->exec()\r\n#8 /var/www/owncloud/remote.php(137): require_once('/var/www/ownclo...')\r\n#9 {main}\",\"File\":\"/var/www/owncloud/lib/private/connector/sabre/file.php\",\"Line\":139}\",\"level\":4,\"time\":\"2016-02-26T14:28:57+00:00\"}\r\n\r\n```\r\n\r\n**I had to look this post:** https://forum.owncloud.org/viewtopic.php?f=17&t=32517\r\n\r\n**I just read it in detail and tested the following changes (without success):**\r\n1. A bug in Apache https://github.com/owncloud/core/issues ... -148380791\r\n2. A too small \"SSLRenegBufferSize\" Apache setting https://github.com/owncloud/core/issues ... t-90508358\r\n3. A too small \"LimitRequestBody\" Apache setting https://github.com/owncloud/core/issues ... t-68443113\r\n4. Timeouts on server side https://github.com/owncloud/core/issues ... t-85709557\r\n5. Just a temporary network issue https://github.com/owncloud/core/issues ... t-86418646\r\n\r\n**and:**\r\n1) owncloud server> as administrator> I have set all of the users to quota = UNLIMITED\r\n2) The Following option added to my apache config: 10486000 SSLRenegBufferSize\r\nthe apache config Was Located in /etc/apache2/conf.d/owncloud.conf, and is shown below:\r\n\r\n```\r\n---------------------------------- ------------- Conf.d ----------------------\r\nAlias ​​/ owncloud \"/var/www/owncloud/\"\r\n\r\nSSLRenegBufferSize 10486000\r\nOptions + FollowSymLinks\r\nAllowOverride All\r\n\r\n<IfModule mod_dav.c>\r\n  Dav off\r\n</ IfModule>\r\n\r\nSetEnv HOME /var/www/owncloud\r\nSetEnv HTTP_HOME /var/www/owncloud\r\n\r\n# Just in case if .htaccess gets disabled\r\nRequire all denied\r\n----------------------------- ----------------- End conf.d -----------------\r\n```\r\n\r\n3) etc / php5 / apache2 / php.ini has-been changed from 2M to 16G: upload_max_filesize = 16G\r\n\r\n4) /etc/apache2/httpd.conf point to server-tuning.conf Where I ensured\r\nKeepAlive On\r\nMaxKeepAliveRequests 500\r\nKeepAliveTimeout 500\r\n\r\nRestarted server: apache2 restart systemctl\r\n\r\n\r\n**/etc/apache2/conf-available/owncloud.conf:**\r\n```\r\nAlias /owncloud \"/var/www/owncloud/\"\r\n<Directory /var/www/owncloud/>\r\nSSLRenegBufferSize 10486000\r\nOptions +FollowSymLinks\r\nAllowOverride All\r\nSetEnv MOD_X_SENDFILE_ENABLED 1\r\nXSendFile On\r\nXSendFilePath /tmp/\r\n</Directory>\r\n\r\n```\r\n\r\n\r\n**/etc/apache2/sites-available/SERVEUR.conf:**\r\n```\r\n<VirtualHost *:443>\r\nDocumentRoot /var/www/owncloud\r\nServerName SERVEUR\r\n<IfModule mod_headers.c>\r\nHeader always set Strict-Transport-Security \"max-age=15768000; includeSubDomains; preload\"\r\n</IfModule>\r\n\r\n\r\nSSLEngine on\r\nSSLOptions +StdEnvVars\r\nSSLStrictSNIVHostCheck off\r\n\r\nSSLCertificateFile /etc/apache2/ssl/SERVEUR.crt\r\nSSLCertificateKeyFile /etc/apache2/ssl/SERVEUR.key\r\n\r\n</VirtualHost>\r\n\r\n```\r\n\r\n**/var/www/owncloud/config/config.php:**\r\n```\r\n<?php\r\n$CONFIG = array (\r\n'instanceid' => 'xxxxxxxxxxxxxxx',\r\n'passwordsalt' => 'xxxxxxxxxxxxxxx',\r\n'secret' => 'xxxxxxxxxxxxxxx',\r\n'trusted_domains' => \r\narray (\r\n0 => 'SERVEUR',\r\n1 => 'IP',\r\n),\r\n'datadirectory' => '/var/www/owncloud/data',\r\n'overwrite.cli.url' => 'https://SERVEUR/owncloud',\r\n'dbtype' => 'mysql',\r\n'version' => '8.2.2.2',\r\n'dbname' => 'owncloud',\r\n'dbhost' => 'localhost',\r\n'dbtableprefix' => '',\r\n'dbuser' => 'cloudAdmin',\r\n'dbpassword' => 'xxxxxxxxxxxxxxx',\r\n'logtimezone' => 'UTC',\r\n'installed' => true,\r\n'filelocking.enabled' => 'true',\r\n'memcache.locking' => '\\\\OC\\\\Memcache\\\\Redis',\r\n'redis' => \r\narray (\r\n'host' => 'localhost',\r\n'port' => 6379,\r\n'timeout' => 500,\r\n'password' => '',\r\n'dbindex' => 0,\r\n),\r\n'memcache.local' => '\\\\OC\\\\Memcache\\\\APCu',\r\n'theme' => '',\r\n'log_type' => 'owncloud',\r\n'logfile' => '/var/www/owncloud/data/owncloud.log',\r\n\r\n'loglevel' => 0,\r\n'log_rotate_size' => 10485760,\r\n\r\n'maintenance' => false,\r\n);\r\n```\r\n\r\n**## impossible to synchronize new files. but if there are no new files, it works correctly ...**"}}