Connection Closed, Operation Canceled - only when download files

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 owncloud vhosts
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/WnioskiUrzedowe/zał 2 ppoż.doc|INST_NEW|Down|1490952949|520e5dd1b7d3cca203c61e94c7633716|66048|00017674ocu2k50mw68d|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)

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.

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.

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.

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

Could be because you used PHP FPM?

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

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:

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.