

#Gateway time out nginx update
During this time there is no visual update to the client. On my server re-assembly of the 50Gb file takes about 30 minutes. The problem appears to a result of what we see on the screen for re-assembly. The upload process (where the chunks are uploaded to the server) works perfectly with NextCloud default values in the php.ini files. I am not a developer on this project, however, I can tell you what my tests have come up with. # Added for testing of this issue (but it didn't seem to have any effect) 'logfile' => '/var/log/nextcloud/nextcloud.log', 'path' => '/usr/local/www/nextcloud/apps-pkg', 'path' => '/usr/local/www/nextcloud/apps', ZFS on mechanical drives (~100MB+ in seq write speeds) Add this to your nginx config: fastcgi_read_timeout 600.Add this to your PHP FPM config: request_terminate_timeout = 600.Increasing the timeouts in nginx and fpm solves this for me, but it doesn’t answer the question of what’s actually is going on, which is what I would like to find out.

And that seems resonable (at least for a suboptimal architecture that forces multiple FS writes of the uploaded data).īut that shouldn’t cause that much CPU load? (Unless IO wait is included in that metric I guess? I’m not that familiar with FreeBSD.)īut that a page reload almost instantly creates the target file (on the file system and in the web UI) seems to contradict that so much time is needed for that action. My first guess would be that 4 is just writing the chunks to the destination file. Whatever it’s doing seems useless as a simple refresh at step 8 creates the complete 5GB file and removes the part files in a few seconds. How common is this for large file uploads? Does this happen to everyone that have 1 minute of 100% CPU usage until the request is killed? It doesn’t seem to be writing to the destination file as it does not exist when the request is killed. What is Nextcloud actually doing in step 4 below? I’m a developer and would like to figure out what is actually going on here.
#Gateway time out nginx code
I’m getting the not so uncommon error when uploading large files trough the web interface:Įrror when assembling chunks, status code 504
