We are testing Discourse to use as a forum application for our community, and so far it looks quite great.
In addition to normal forum functionality, we have some specific needs.
From time to time we need to upload files to the forum, these are about 10MB-200MB in size (audio recordings).
Unfortunately we are now experiencing some difficulties with the file uploading. If the file is about 50MB or less it seems to upload fine, but something like 80MB and larger gives "Sorry, there was an error uploading that file. Please try again.” error to the screen.
Our Discourse version is v2.0.0.beta2 +115
We have added the parameter
upload_size: 150m into
app.yml (and ran ”
./launcher rebuild app”), and changed the ”max attachment size kb” from /admin settings to ”150000”.
i can’t see anything error related in production.log and there is nothing in production_errors.log, but
nginx/error.log shows this:
2018/02/11 16:53:35 [error] 70#70: *8891 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xx.xx.xx.xx, server: _, request: “POST /uploads.json?client_id=b4952f07d4d949e4a87c176473fbb5d6&authenticity_token=e%2F%2FRKI3YDCVCixp76YaIqpLTib6zdrO0vZBAYlHPVcZVBJUx%2BEy2juQ5xMrTeUPZoyX0uJzTPW7pCey47YRvwQ%3D%3D HTTP/1.1”, upstream: “http://127.0.0.1:3000/uploads.json?client_id=b4952f07d4d949e4a87c176473fbb5d6&authenticity_token=e%2F%2FRKI3YDCVCixp76YaIqpLTib6zdrO0vZBAYlHPVcZVBJUx%2BEy2juQ5xMrTeUPZoyX0uJzTPW7pCey47YRvwQ%3D%3D”, host: “server”, referrer: “http://server/c/test-category”
Around the same time as the upload fails, the file
unicorn.stderr gives this error:
E, [2018-02-11T16:53:35.331265 #73] ERROR -- : worker=0 PID:6403 timeout (31s > 30s), killing
Could there be a some kind of timeout/limit issue somewhere?
i’ve been trying to find a solution to this, but it seems i can’t get anywhere.
Our test server is a VPS with 1GB of memory (and a 3GB swap file).
We would not want to give up on Discourse just yet, so any help is truly appreciated!