Uploads fail with "server" error


#1

Hi it’s me again, collecting bugs and head aches.

This time it’s for funkwhale 0.17 non-docker with apache. I have a hard time uploading files, with most of them erroring. I tested mp3 from 2MB, and I keep getting this on apache side :

[Wed Dec 05 22:42:16.033841 2018] [proxy:error] [pid 17637] (32)Broken pipe: [client 185.156.175.140:51588] AH01084: pass request body failed to 127.0.0.1:5000 (127.0.0.1), 
referer: https://funkwhale.duckdns.org/content/libraries/2417975d-2c9b-40a2-b4c4-a3d56e997157/upload?import=2018-12-05T22%3A40%3A45%2B01%3A00
[Wed Dec 05 22:42:16.034087 2018] [proxy_http:error] [pid 17637] [client 185.156.175.140:51588] AH01097: pass request body failed to 127.0.0.1:5000 (127.0.0.1) from 185.156.175.140 (), 
referer: https://funkwhale.duckdns.org/content/libraries/2417975d-2c9b-40a2-b4c4-a3d56e997157/upload?import=2018-12-05T22%3A40%3A45%2B01%3A00

It might be some timeout somewhere, but no results when I tried to tinker with timeouts and keepalive vars on apache side. Any help welcome :slight_smile:


#2

do you have any corresponding logs in nginx / api containers?


#3

This a non docker instance, no logs on the funkwhale-server nor funkwhale-worker.


#4

I wonder if you’ve not hit https://blog.ionelmc.ro/2018/03/25/proxy-issues-with-apache/, does it timeout after a long time or immediatly ?


#5

I also found this one. It does timeout after a long time, but even if keepalive timeout is off and SetEnv proxy-sendchunked is set. In this article, there is also an nginx involved, missing in my case.