Closed bogatkaj closed 4 weeks ago
Hi @bogatkaj - Unfortunately there are many things that can trigger this. But it's typically a local environment or configuration issue. The most common culprits are things like:
/tmp
space/usage and/or your PHP's sys_temp_dir
https://docs.nextcloud.com/server/26/admin_manual/configuration_files/big_file_upload_configuration.html https://docs.nextcloud.com/server/26/admin_manual/installation/server_tuning.html
Hey, thanks for the feedback. Unfortunatly this also happens to other users of the cloud, so I guess I can drop OS / AV / Browser and client side network. On the serverside, as I mentioned, there was nothing changed besides the cloud update. The server is standing as local machine in a DMZ at my office, so cloudflare is also nothing to take care of.
I'll check the other points and give feedback in the next days.
Did you update to 26.0.1 or 27.0.1? I'm on 27.0.1 and this started to happen to me too.
Did you update to 26.0.1 or 27.0.1? I'm on 27.0.1 and this started to happen to me too.
Well, i first updated to 26.0.1 (thats when the problems began) and now to 27.0.1 where the problems persisted.
BUT after applying the changes from the docs mentioned by @joshtrichards it seems that that fixed the problems at the moment. (Tried single large file ~ 300 MB and 100 files of ~10 MB each until now)
So thanks for the support, I guess the problem is fixed. If not I will recomment on this issue.
Well, today I tried to upload 37 files of 1 to 16 MB per file. I got again upload errors as follows:
[no app in context] Fehler: Sabre\DAV\Exception\BadRequest: Erwartete Dateigröße von 3708098 bytes, aber 49152 bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein. at <<closure>>
0. /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php line 149
OCA\DAV\Connector\Sabre\File->put()
1. /var/www/html/nextcloud/apps/dav/lib/Upload/UploadFolder.php line 50
OCA\DAV\Connector\Sabre\Directory->createFile("*** sensitive parameters replaced ***")
2. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1098
OCA\DAV\Upload\UploadFolder->createFile("*** sensitive parameters replaced ***")
3. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 504
Sabre\DAV\Server->createFile("*** sensitive parameters replaced ***")
4. /var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
Sabre\DAV\CorePlugin->httpPut()
5. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
Sabre\DAV\Server->emit()
6. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
Sabre\DAV\Server->invokeMethod()
7. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
Sabre\DAV\Server->start()
8. /var/www/html/nextcloud/apps/dav/lib/Server.php line 364
Sabre\DAV\Server->exec()
9. /var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php line 35
OCA\DAV\Server->exec()
10. /var/www/html/nextcloud/remote.php line 172
require_once("/var/www/html/n ... p")
PUT /remote.php/dav/uploads/bogatkaj/web-file-upload-5e0ec457440f0dcbb05f53a379fb319e-1691876330429/2
from 192.168.11.160 by bogatkaj at 2023-08-12T23:38:59+00:00
I already applied the points from the manual as mentioned before. Also /tmp has >20 GB of free space and timeouts are set according to the manual.
So most probably I guess that there's some kind of bug or not documented change which needs tweaking by the admin.
Hello, I also have this problem after updating NC to version 27.1.1 and the server to Debian 12 with all depencies. I my case I could solve the problem with the help of this article https://kanuracer.eu/index.php/nextcloud-fehlerbehebung/ (last paragraph). I added LimitRequestBody 0 to my apache config file for NC and this solved the issue, no further errors.
@bogatkaj Are you still experiencing this behavior today?
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.
@bogatkaj Are you still experiencing this behavior today?
Hey, sorry forgot a bit about this issue... I don't experience this issue anymore.
Thanks anyway
⚠️ This issue respects the following points: ⚠️
Bug description
Since the update to 26.0.1 i randomly getting errors when uploading files via Web-GUI. In The GUI it's called unknown error, in the log it'S logged as follows:
Besides updating to 27.0.1 (what doesn't fixed it) I didn't changed anything on the server or the network. Also there is more than enought disc space available.
Steps to reproduce
Expected behavior
Files upload as in the previous versions
Installation method
Community Web Installer on VPS or Webspace
Nextcloud Server version
27
Operating system
Ubuntu/Debian
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MySQL 10.5.19
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR Version (25 to 26)
Are you using the Nextcloud Server Encryption module?
No
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Had to ommit most of log since it's too large (first entry from 2021)