Connection Closed, Operation Canceled - only when download files

help

#1

Please help us by providing the following info.

Steps to reproduce
1. Use config my server
2. Owncloud client version 2.3.1
3. 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 :confused: 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 :confused:

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


#2

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.


#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.


#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.


#5

Could be because you used PHP FPM?

FYI @PVince81 @DeepDiver1975 nginx worked, Apache didn't.. something bogus with Apache to keep in mind


#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 :wink:


#7

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] https://bugs.php.net/bug.php?id=65641

[2] https://www.drupal.org/node/2603696

[3] https://bugs.php.net/bug.php?id=70757