{"id":482,"date":"2017-08-30T19:42:48","date_gmt":"2017-08-30T18:42:48","guid":{"rendered":"http:\/\/jaran.de\/goodbits\/?p=482"},"modified":"2017-08-30T19:55:00","modified_gmt":"2017-08-30T18:55:00","slug":"fixing-broken-http2-downloads-from-nextcloud-on-an-apache-server","status":"publish","type":"post","link":"http:\/\/jaran.de\/goodbits\/2017\/08\/30\/fixing-broken-http2-downloads-from-nextcloud-on-an-apache-server\/","title":{"rendered":"Fixing broken http\/2 downloads from Nextcloud on an Apache server"},"content":{"rendered":"<p>I recently installed Apache 2.4.27 and Nextcloud 12.0.2 on Arch Linux using the available offical packages.<br \/>\nAfter enabling http2 I found that larger downloads from Nextcloud were failing after a couple of hundred megabytes. The download just stops until there is a timeout and the browser shows a failure. The server logs showed no error at all but infact a nice http 200 success code.<\/p>\n<p>After switching between php-fpm and an fcgi wrapper, between mpm worker and mpm event I gave it a test and disabled http2 again and voila the downloads were working just fine.<\/p>\n<p>And indeed there are some issues to be found when searching the net and especially <a href=\"https:\/\/github.com\/owncloud\/core\/issues\/26753\">https:\/\/github.com\/owncloud\/core\/issues\/26753<\/a> sounded very familiar.<\/p>\n<p>After fiddling with some of the mod_http2 options I finally increased the <a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/mod\/mod_http2.html\" target=\"_blank\" rel=\"noopener\">H2StreamMaxMemSize Directive<\/a> to an arbitrary but significantly higher value: <code>H2StreamMaxMemSize 5120000<\/code><\/p>\n<p>No more failures after that, even when downloading multiple files concurrently from different devices! No more stuck files and perfect happyness \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently installed Apache 2.4.27 and Nextcloud 12.0.2 on Arch Linux using the available offical packages. After enabling http2 I found that larger downloads from Nextcloud were failing after a couple of hundred megabytes. The download just stops until there &hellip;<\/p>\n<p class=\"read-more\"><a href=\"http:\/\/jaran.de\/goodbits\/2017\/08\/30\/fixing-broken-http2-downloads-from-nextcloud-on-an-apache-server\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[35],"tags":[],"_links":{"self":[{"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/posts\/482"}],"collection":[{"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/comments?post=482"}],"version-history":[{"count":4,"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/posts\/482\/revisions"}],"predecessor-version":[{"id":486,"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/posts\/482\/revisions\/486"}],"wp:attachment":[{"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/media?parent=482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/categories?post=482"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jaran.de\/goodbits\/wp-json\/wp\/v2\/tags?post=482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}