michal
April 13, 2017, 1:15pm
1
Please help us by providing the following info.
Steps to reproduce
Use config my server
Owncloud client version 2.3.1
Tried to sync and download files from server
Expected behaviour
Sync download without problems.
Actual behaviour
When Owncloud client sync files from server to computer (downloading ~ 5 gb files) after few seconds i have Connection closed / Operation cancelled but when I upload files to server (it does not matter if many small or one big files) sync works fine without problems.
I tried to increase KeepAliveTimeout and MaxKeepAliveRequest without expected results.
I also tried to: turn off ssl, turn off iptables or selinux - with no effects
Server configuration
Operating system: Centos 7
Web server: Apache - conf https://pastebin.com/vngLRsUW owncloud vhosts https://pastebin.com/HuBFd0uW
Database: Mariadb
PHP version: 5.6.30 - FPM, APCu, Memcached
ownCloud version (see ownCloud admin page): 9.1.4
Updated from an older ownCloud or fresh install: 9.1.0
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption): SSL
ownCloud log (data/owncloud.log)
log is empty
Integrity status for oC9+
No errors have been found.
cilent log
09:32:13||ABCD/Protokoly_Oswiadczenia/zaswiadczenie_o_niezaleganiu.docx|INST_NEW|Down|1472474562|0f2a5f93e95349f34baf7743d0bc8ffd|72976|00017612ocu2k50mw68d|4||0|0|0|||INST_NONE|
09:32:13||ABCD/Wzory_umow/UmowaSerwisowa_Przyklad.doc|INST_NEW|Down|1406490624|9dc21d97efd8690a19ec19a185dd5a1b|41472|00015677ocu2k50mw68d|4||0|0|0|||INST_NONE|
||ABCD/ZapytaniaOfertowe|INST_NEW|Down|1490709405|58da6b9d609f0|0|00016681ocu2k50mw68d|4||0|0|0|||INST_NONE|
09:32:13||ABCD/WnioskiUrzedowe/zaŠ2 ppoż.doc|INST_NEW|Down|1490952949|520e5dd1b7d3cca203c61e94c7633716|66048|00017674ocu2k50mw68d|4||0|0|0|||INST_NONE|
09:32:13||ABCD/Wzory_umow/umowa_konserwcja_bram_silownikow.docx|INST_NEW|Down|1432937941|737c455281631ddadf44de1737b3f768|20430|00016283ocu2k50mw68d|4||0|0|0|||INST_NONE|
||ABCD/Ustawy/prawo_energetyczne_07_04_2017.pdf|INST_NEW|Down|1491558276|c337999a39e10ed1b97bd9090141e729|2136433|00017833ocu2k50mw68d|1|Connection closed|206|0|0|||INST_NONE|
||ABCD/Wzory_regulaminow/ochrona-zakres-obowiazkow-przyklad-1.docx|INST_NEW|Down|1394810397|0e0add520ac4a356944e3d31cc4d8312|33062|00015628ocu2k50mw68d|1|Operation canceled|0|0|0|||INST_NONE|
||ABCD/ZapytaniaOfertowe/Zapytanie ofertowe.docx|INST_NEW|Down|1455579161|09541782e3221d3303a0ef6de5156cc2|19017|00016682ocu2k50mw68d|1|Operation canceled|0|0|0|||INST_NONE|
||ABCD/ZapytaniaOfertowe/oferta_bb.doc|INST_NEW|Down|1456093642|488326d6cf377f816d86ccc3822fd280|63488|00017592ocu2k50mw68d|1|Operation canceled|0|0|0|||INST_NONE|
||ABCD/ZapytaniaOfertowe/oferta_xxsfs.docx|INST_NEW|Down|1456093754|4738357c0bb4ab0ebba1b09c33cfe453|77213|00017593ocu2k50mw68d|1|Operation canceled|0|0|0|||INST_NONE|
Syncrun finished 2017-04-13T11:31:08 (last step: 1073 msec, total: 3709 msec)
[code]
Other logs (apache error log, php error log) are empty
When using the search function of the forums to search for this āconnection closedā message you will stumble over various other threads about this topic.
https://central.owncloud.org/search?q=%22connection%20closed%22
As there is no single solution for this message you might need to work your way through all this threads to see if any solution / workaround posted there might solve your issue.
michal
April 13, 2017, 1:34pm
3
I was looking for a solution in all other threads but I didāt find.
This problem is only when I download files, uploads works fine and I donāt know why. Probably in apache php configuration but the logs on server side are clean.
michal
April 14, 2017, 12:02pm
4
I changed the server from apache to nginx and owncloud works fine without problem.
I tried to lookup when in my apache config is mistake.
1 Like
guruz
April 20, 2017, 7:46am
5
Could be because you used PHP FPM?
FYI @PVince81 @DeepDiver1975 nginx worked, Apache didnāt⦠something bogus with Apache to keep in mind
michal
April 20, 2017, 9:00am
6
With nginx I use php-fpm too and works fine.
I tried to change php config with apache fcgi or cli but I didāt get the expected results.
I recommend nginx for owncloud
Most likely. There are quite a few bugs and issues out there which are known if Apache is used with php-fpm or fastcgi ([1], [2] and [3]) and which are not happening if using Apache + mod_php or nginx + php-fpm.
[1] PHP :: Bug #65641 :: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache
[2] https://www.drupal.org/node/2603696
[3] PHP :: Bug #70757 :: $_SERVER["PHP_SELF"] is malformed with PHP-FPM and Apache 2.4.17
opened 05:23PM - 13 Mar 14 UTC
closed 08:04AM - 21 Sep 21 UTC
enhancement
status/STALE
my archlinux distribution just updated to apache 2.4. The recommended update for⦠php was to use php-fpm and proxy-fcgi.
Before the update owncloud 6.0.2 worked fine with apache 2.2 and php-module. After the update it does run: images/icons und css-styleheets are not loaded.
Similar problems are reported for ubuntu/debian.
https://forum.owncloud.org/viewtopic.php?f=26&t=19754
The following apache access log for the "home" /index.php and for the "files-directory" /index.php/apps/files shows some very strange HTTP-GET requests:
GET /index.php//index.php/apps/files/css/upload.css
with double reference to index.php and "//"-separator.
The problem might be due to the $_SERVER-environment provided by php-fpm. But owncloud should be able to run on this typical webserver-configuration.
----- clicking on the opencloud icon
88.67.235.79 - - [13/Mar/2014:17:40:16 +0100] "GET /index.php HTTP/1.1" 200 13344
88.67.235.79 - - [13/Mar/2014:17:40:21 +0100] "GET /apps/files/js/file-upload.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:21 +0100] "GET /apps/files/js/jquery.iframe-transport.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:21 +0100] "GET /apps/files/js/jquery.fileupload.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:21 +0100] "GET /apps/files/js/jquery-visibility.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:21 +0100] "GET /apps/files/js/filelist.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:21 +0100] "GET /apps/files/js/fileactions.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:21 +0100] "GET /apps/files/js/files.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:21 +0100] "GET /apps/files/js/keyboardshortcuts.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:21 +0100] "GET /index.php/core/js/config.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 200 14352
88.67.235.79 - - [13/Mar/2014:17:40:21 +0100] "GET /remote.php/core.css?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:21 +0100] "GET /remote.php/core.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:21 +0100] "GET /index.php/apps/files/css/upload.css?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 200 14800
88.67.235.79 - - [13/Mar/2014:17:40:21 +0100] "GET /index.php/apps/files/css/files.css?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 200 14744
88.67.235.79 - - [13/Mar/2014:17:40:41 +0100] "GET /core/img/logo-wide.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:41 +0100] "GET /settings/img/admin.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:41 +0100] "GET /settings/img/personal.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:41 +0100] "GET /settings/img/users.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:41 +0100] "GET /core/img/actions/caret.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:41 +0100] "GET /core/img/breadcrumb.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:41 +0100] "GET /settings/img/help.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:41 +0100] "GET /core/img/actions/logout.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:41 +0100] "GET /core/img/places/files.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:41 +0100] "GET /apps/activity/img/activity.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:42 +0100] "GET /apps/documents/img/documents.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:42 +0100] "GET /core/img/places/picture.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:42 +0100] "GET /apps/calendar/img/calendar.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:42 +0100] "GET /apps/contacts/img/contacts.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:42 +0100] "GET /settings/img/apps.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:42 +0100] "GET /core/img/actions/download.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:42 +0100] "GET /core/img/actions/delete.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:42 +0100] "GET /core/img/filetypes/text.png HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:42 +0100] "GET /core/img/filetypes/folder.png HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:42 +0100] "GET /core/img/places/link.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:42 +0100] "GET /core/img/filetypes/application-pdf.png HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:40:41 +0100] "POST /index.php/core/ajax/translations.php HTTP/1.1" 200 14856
88.67.235.79 - - [13/Mar/2014:17:40:41 +0100] "GET /index.php/core/routes.json HTTP/1.1" 200 14296
88.67.235.79 - - [13/Mar/2014:17:40:41 +0100] "GET /remote.p/core/img/noise.png?2013-12-17T15:48:20Z HTTP/1.1" 404 1865
88.67.235.79 - - [13/Mar/2014:17:40:41 +0100] "GET /cron.php HTTP/1.1" 200 20
88.67.235.79 - - [13/Mar/2014:17:40:41 +0100] "GET /remote.p/core/img/actions/search.svg?2013-12-17T15:48:20Z HTTP/1.1" 404 1865
88.67.235.79 - - [13/Mar/2014:17:40:47 +0100] "POST /index.php/core/ajax/translations.php HTTP/1.1" 200 14856
88.67.235.79 - - [13/Mar/2014:17:41:02 +0100] "POST /index.php/core/ajax/translations.php HTTP/1.1" 200 14856
88.67.235.79 - - [13/Mar/2014:17:41:07 +0100] "GET /core/img/actions/history.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:41:07 +0100] "GET /core/img/actions/share.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:41:07 +0100] "GET /core/img/actions/rename.svg HTTP/1.1" 304 -
88.67.235.79 - - [13/Mar/2014:17:41:02 +0100] "GET /undefined/templates/slideshow.html HTTP/1.1" 404 1865
88.67.235.79 - - [13/Mar/2014:17:41:07 +0100] "GET /index.php/core/ajax/share.php?fetch=getItemsSharedStatuses&itemType=file HTTP/1.1" 200 14464
88.67.235.79 - - [13/Mar/2014:17:41:07 +0100] "GET /remote.p/core/img/actions/delete.svg?2013-12-17T15:48:20Z HTTP/1.1" 404 1865
88.67.235.79 - - [13/Mar/2014:17:41:07 +0100] "GET /index.php/apps/files/ajax/scan.php?force=false&dir=&requesttoken=a12709e97e645b11f592 HTTP/1.1" 200 14744
88.67.235.79 - - [13/Mar/2014:17:41:10 +0100] "POST /index.php/core/ajax/translations.php HTTP/1.1" 200 14856
----- clicking on the files icon
88.67.235.79 - - [13/Mar/2014:17:42:21 +0100] "GET /index.php/apps/files HTTP/1.1" 200 13960
88.67.235.79 - - [13/Mar/2014:17:42:25 +0100] "GET /index.php//index.php/apps/files/css/upload.css?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 200 15416
88.67.235.79 - - [13/Mar/2014:17:42:26 +0100] "GET /index.php//index.php/core/js/config.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 200 14968
88.67.235.79 - - [13/Mar/2014:17:42:26 +0100] "GET /index.php//remote.php/core.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 200 14464
88.67.235.79 - - [13/Mar/2014:17:42:26 +0100] "GET /index.php//index.php/apps/files/css/files.css?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 200 15360
88.67.235.79 - - [13/Mar/2014:17:42:27 +0100] "GET /index.php//remote.php/core.css?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 200 14520
88.67.235.79 - - [13/Mar/2014:17:42:27 +0100] "GET /index.php//apps/files/js/file-upload.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 200 15024
88.67.235.79 - - [13/Mar/2014:17:42:31 +0100] "GET /index.php//apps/files/js/jquery.iframe-transport.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 200 15696
88.67.235.79 - - [13/Mar/2014:17:42:35 +0100] "GET /index.php//apps/files/js/jquery.fileupload.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 200 15360
88.67.235.79 - - [13/Mar/2014:17:42:40 +0100] "GET /index.php//apps/files/js/jquery-visibility.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 200 15360
88.67.235.79 - - [13/Mar/2014:17:42:45 +0100] "GET /index.php//apps/files/js/filelist.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 200 14856
88.67.235.79 - - [13/Mar/2014:17:42:50 +0100] "GET /index.php//apps/files/js/fileactions.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 200 15024
88.67.235.79 - - [13/Mar/2014:17:42:54 +0100] "GET /index.php//apps/files/js/files.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 200 14688
88.67.235.79 - - [13/Mar/2014:17:42:59 +0100] "GET /index.php//apps/files/js/keyboardshortcuts.js?v=d3673708f656239c4dd25f770054095d HTTP/1.1" 200 15360
88.67.235.79 - - [13/Mar/2014:17:43:27 +0100] "GET /index.php//core/img/actions/caret.svg HTTP/1.1" 200 14912
88.67.235.79 - - [13/Mar/2014:17:43:27 +0100] "GET /index.php//settings/img/users.svg HTTP/1.1" 200 14688
88.67.235.79 - - [13/Mar/2014:17:43:27 +0100] "GET /index.php//settings/img/help.svg HTTP/1.1" 200 14632
88.67.235.79 - - [13/Mar/2014:17:43:27 +0100] "GET /index.php//core/img/logo-wide.svg HTTP/1.1" 200 14688