I’ve experienced transient problems downloading large (1.3GB and 2.9GB) files found in Nextcloud, via the web interface, with the following error in the nginx reverse proxy error logs
2021/01/04 09:02:05 [error] 28316#28316: *5384 upstream prematurely closed connection while reading upstream, client: 10.63.0.1, server: nextcloud, request: "GET /remote.php/webdav/MVI_6988.MP4?downloadStartSecret=bv26g HTTP/1.1", upstream: "http://127.0.0.1:4300/remote.php/webdav/MVI_6988.MP4?downloadStartSecret=bv26gd", host: "nextcloud"
The Nextcloud client has similar problems.
In the Nextcloud nginx front for php-fpm logs
/srv/nextcloud/apache$ docker-compose logs web there are no errors:
2021/01/04 10:12:36 [warn] 30#30: *340 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/3/00/0000000003 while reading upstream, client: 172.19.0.1, server: , request: "GET /remote.php/webdav/MVI_6988.MP4?downloadStartSecret=1owxn HTTP/1.1", upstream: "fastcgi://172.19.0.4:9000", host: "nextcloud"
And I remember seeing 200 and 206 requests correctly handled but with a payload no greater than 1GB.
There are no error messages in the
In an attempt to debug I rebuilt the web image with
docker-compose build web and ran
docker-compose up -d (after changing one minor parameter). However… I can no longer reproduce the problem: something fixed itself, presumably because of the container being rebuilt but I have no clue if that is the reason.
I found an issue that seems related in the Nextcloud forums but I’m not convinced this helps because the nginx documentation does not suggest this is such a good idea. And I doubt communications were interrupted during more than one minute.
To be continued!