Hey everyone. So I am following some of the suggestions that @skois has been recommending in regards to the large file 504 gateway timeout error. I accessed my NextCloud console and edited the /config/php/php-local.ini file to include the necessary lines to allow for a greater upload size. I thought this may have been the fix, but alas I am stuck with this 504 Gateway on MOVE error. I have attached my most recent error log below:
[PHP] Error: Error: rmdir(/data/USER/uploads/516641516): No such file or directory at /config/www/nextcloud/lib/private/Files/Storage/Local.php#125 at <<closure>>
0. <<closure>>
OC\Log\ErrorHandler::onError(2, "rmdir(/data/rma ... y", "/config/www/nex ... p", 125, {path: "uploads/ ... }})
1. /config/www/nextcloud/lib/private/Files/Storage/Local.php line 125
rmdir("/data/USER/uploads/516641516")
2. /config/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php line 311
OC\Files\Storage\Local->rmdir("uploads/516641516")
3. <<closure>>
OC\Files\Storage\Wrapper\Encryption->rmdir("uploads/516641516")
4. /config/www/nextcloud/apps/files_trashbin/lib/Storage.php line 183
call_user_func([OC\Files\Storag ... "], "uploads/516641516")
5. /config/www/nextcloud/apps/files_trashbin/lib/Storage.php line 118
OCA\Files_Trashbin\Storage->doDelete("uploads/516641516", "rmdir")
6. /config/www/nextcloud/lib/private/Files/View.php line 1167
OCA\Files_Trashbin\Storage->rmdir("uploads/516641516")
7. /config/www/nextcloud/lib/private/Files/View.php line 350
OC\Files\View->basicOperation("rmdir", "/516641516", ["delete"])
8. /config/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php line 309
OC\Files\View->rmdir("/516641516")
9. /config/www/nextcloud/apps/dav/lib/Upload/FutureFile.php line 102
OCA\DAV\Connector\Sabre\Directory->delete()
10. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 168
OCA\DAV\Upload\FutureFile->delete()
11. /config/www/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php line 95
Sabre\DAV\Tree->move("uploads/USER/516641516/.file", "files/USER/Test/5GB.txt")
12. /config/www/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php line 77
OCA\DAV\Upload\ChunkingPlugin->performMove("uploads/USER/516641516/.file", "files/USER/Test/5GB.txt")
13. /config/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
OCA\DAV\Upload\ChunkingPlugin->beforeMove("uploads/USER/516641516/.file", "files/USER/Test/5GB.txt")
14. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 632
Sabre\DAV\Server->emit("beforeMove", ["uploads/rmathe ... "])
15. /config/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
Sabre\DAV\CorePlugin->httpMove(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
16. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 474
Sabre\DAV\Server->emit("method:MOVE", [Sabre\HTTP\Requ ... }])
17. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 251
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
18. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 319
Sabre\DAV\Server->start()
19. /config/www/nextcloud/apps/dav/lib/Server.php line 332
Sabre\DAV\Server->exec()
20. /config/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
OCA\DAV\Server->exec()
21. /config/www/nextcloud/remote.php line 167
require_once("/config/www/nex ... p")
MOVE /remote.php/dav/uploads/USER/516641516/.file
from 10.10.150.1 by USER at 2020-12-18T05:26:36+00:00
I hope this may potentially shed some light on this common issue we are all facing. I get stuck whenever I try and upload files that are a byte larger than 2GB, and it all just seems so bizarre. All I want are 5GB uploads to work without users seeing that nasty red "Gateway-Timeout" banner. If there is any other information or testing I can do to help out, please let me know 🙂