This is a cross-post from the german sub!
Hello, dear community!
I have a problem uploading large files. Of course, I have already searched this and other forums for this error, but I have not found a solution to my problem. Smaller files are working fine.
The following message can be found in the Nextcloud log:
2024-08-04T14:22:25+00:00","remoteAddr":"188.40.xxx.yyy","user":"USER","app":"webdav","method":"MOVE","url":"/remote.php/dav/uploads/USER/web-file-upload-b2974b589af2e6f4/.file","message":"Could not open file","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"29.0.4.1","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Could not open file","Code":0,"Trace":[{"file":"/var/www/html/apps/dav/lib/Upload/AssemblyStream.php","line":294,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/html/apps/dav/lib/Upload/AssemblyStream.php","line":164,"function":"getStream","class":"OCA\\DAV\\Upload\\AssemblyStream","type":"->"},{"function":"stream_read","class":"OCA\\DAV\\Upload\\AssemblyStream","type":"->"},{"file":"/var/www/html/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php","line":55,"function":"fread"},{"file":"/var/www/html/apps/files_external/3rdparty/icewind/streams/src/CallbackWrapper.php","line":96,"function":"stream_read","class":"Icewind\\Streams\\Wrapper","type":"->"},{"function":"stream_read","class":"Icewind\\Streams\\CallbackWrapper","type":"->"},{"file":"/var/www/html/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php","line":55,"function":"fread"},{"file":"/var/www/html/apps/files_external/3rdparty/icewind/streams/src/CallbackWrapper.php","line":96,"function":"stream_read","class":"Icewind\\Streams\\Wrapper","type":"->"},{"file":"/var/www/html/apps/files_antivirus/lib/CallbackReadDataWrapper.php","line":54,"function":"stream_read","class":"Icewind\\Streams\\CallbackWrapper","type":"->"},{"function":"stream_read","class":"OCA\\Files_Antivirus\\CallbackReadDataWrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/Storage/Local.php","line":339,"function":"file_put_contents"},{"file":"/var/www/html/lib/private/Files/Storage/Local.php","line":650,"function":"file_put_contents","class":"OC\\Files\\Storage\\Local","type":"->"},{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":653,"function":"writeStream","class":"OC\\Files\\Storage\\Local","type":"->"},{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":653,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/html/apps/files_antivirus/lib/AvirWrapper.php","line":83,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":653,"function":"writeStream","class":"OCA\\Files_Antivirus\\AvirWrapper","type":"->"},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":250,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Directory.php","line":148,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Tree.php","line":325,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Tree.php","line":151,"function":"copyNode","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Tree.php","line":181,"function":"copy","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/html/apps/dav/lib/Upload/ChunkingPlugin.php","line":94,"function":"move","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/html/apps/dav/lib/Upload/ChunkingPlugin.php","line":76,"function":"performMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->"},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->"},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":603,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/apps/dav/lib/Server.php","line":383,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/html/remote.php","line":172,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","Line":505,"message":"Could not open file","exception":{},"CustomMessage":"Could not open file"}}
Apache2 throws following errors:
Sun Aug 04 12:26:11.605386 2024] [proxy_fcgi:error] [pid 186866:tid 186866] [client 188.40.xxx.yyy:39288] AH01079: failed to make connection to backend: localhost
and
Sun Aug 04 15:17:18.347871 2024] [proxy_fcgi:error] [pid 2057:tid 2057] (70007) The timeout specified has expired: [client 188.40.xxx.yyy:45918] AH01075: Error dispatching request to : (polling)
PHP max_input_time = -1
PHP upload_max_filesize = 20G
Size of the file that was tried to be uploaded: 750MB
What could be the reason? I have no clue.
Thank you very much for your help!
Nextcloud version (eg, 29.0.5): 29.0.4
Operating system and version (eg, Ubuntu 24.04): Debian 12
Apache or nginx version (eg, Apache 2.4.25): 2.4.61-1~deb12u1
PHP version (eg, 8.3): 8.2
What kind of server? Root server, Intel Core i9-9900K, 2x 6TB SSD, 64GB RAM
On which hardware? Server in data centre
Operating system and version of ALL systems involved: Debian 12, Proxmox 8.2.4
Which database? MariaDB 1:10.11.6-0+deb12u1
Is NC running in Docker, Snap or VM: Proxmox VM
Have server updates been made recently? No
The issue you are facing:
Unknown error during file upload
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Upload huge file to any folder (Button or drag & drop)
The output of your Nextcloud log in Admin > Logging:
PASTE HERE
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
PASTE HERE
The output of your Apache/nginx/system log in /var/log/____
:
SEE ABOVE
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
SEE ABOVE