I get the same [webdav] error logs, same feof() and Sabre\DAV\Exception as OP. BUT only if the file is >1MB. All files smaller go right through.
When trying to upload a >1MB file via the portal it stays at “a few seconds” and never completes and stays at ~5% complete forever.
When trying to upload a <1MB file via the portal it completes with no problem.
Disable/enable/remove antivirus has no impact on the outcome. Additionally this has be reproduced on fresh 15.0.0 install on three separate new docker containers.
I can see in /apps/dav/lib/Connector/Sabre/File.php at the feof() on line 171 this is all related to parts of files. Can I infer that the parts are 1MB and if thats correct can we change to a larger value to see if the problem follows partitioning the file?
We had many of such reports. If you have different php-runtime settings/proxy-settings/…, probably somewhere in the chain you run into this limit, and people tend to tell you only half of the story:
Hi tflidd,
I figured out, what my problem was. It was a limit at the http-proxy level. I mentioned it later in an answer.
thanks for looking at my post.
I just wanted to publish my solution, especially because I’m using Apache as webserver. I wasted now almost a whole day to find this actually obvious solution, so I hope this helps one or the other to solve the problem quicker:
In my case it was the “LimitRequestBody” function of Apache. After i changed it from default to “0” (=unlimited) it works fine now!
You can do this rather in the “/etc/apache2/sites-available/nextcloud.conf” (respectively corresponding file) or directly in the “.htaccess” of your NC installation root directory. The first one is the better way I think, because it’s update-save.
Code-Example for “/etc/apache2/sites-available/nextcloud.conf”:
<Directory /var/www/nextcloud/>
Options +FollowSymlinks +Includes
LimitRequestBody 0
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
</Directory>