Upload - Unknown Error after updating to 19.0.4

Nextcloud version (eg, 18.0.2): 19.0.4
Operating system and version (eg, Ubuntu 20.04): nextcloudpi
Operating system: Linux 5.4.72-v7l+ #1356 SMP Thu Oct 22 13:57:51 BST 2020 armv7l
Webserver: Apache (fpm-fcgi)
Database: mysql 10.3.22
PHP version: 7.3.19-1~deb10u1

After updating nextcloud to 19.0.4 i can’t upload files bigger than 10KB. The Error ist “unknown upload error” or “connection lost”.

|datadir|/media/myCloudDrive/ncdata|
|data in SD|no|
|data filesystem|btrfs|
|data disk usage|187G/3.7T|

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. every upload i do - client or webpage

The output of your Nextcloud log in Admin > Logging:

[PHP] Error: Error: Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php:132) at /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php#690 at <<closure>>

 0. <<closure>>
    OC\Log\ErrorHandler::onError(2, "Cannot modify h ... )", "/var/www/nextcl ... p", 690, {string: "X-Hash ... "})
 1. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 690
    header("X-Hash-MD5: 361 ... 7")
 2. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 188
    OCA\DAV\Connector\Sabre\File->header("X-Hash-MD5: 361 ... 7")
 3. <<closure>>
    OCA\DAV\Connector\Sabre\File->OCA\DAV\Connector\Sabre\{closure}("*** sensitive parameters replaced ***")
 4. /var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php line 71
    call_user_func(Closure {}, "*** sensitive parameter replaced ***")
 5. <<closure>>
    OC\Files\Stream\HashWrapper->stream_close()
 6. /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php line 132
    fclose(null)
 7. /var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php line 75
    Icewind\Streams\Wrapper->stream_close()
 8. <<closure>>
    OC\Files\Stream\HashWrapper->stream_close()
 9. /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php line 132
    fclose(null)
10. /var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php line 75
    Icewind\Streams\Wrapper->stream_close()
11. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 319
    OC\Files\Stream\HashWrapper->stream_close()
12. /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php line 82
    Sabre\DAV\Server->exec()
13. /var/www/nextcloud/remote.php line 167
    require_once("/var/www/nextcl ... p")

PUT /remote.php/webdav/rorning_town.obj
from 62.143.82.57 by gorn at 2020-10-27T12:48:19+00:00

[PHP] Error: Error: Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php:132) at /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php#690 at <<closure>>

 0. <<closure>>
    OC\Log\ErrorHandler::onError(2, "Cannot modify h ... )", "/var/www/nextcl ... p", 690, {string: "X-Hash ... "})
 1. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 690
    header("X-Hash-SHA1: 9a ... c")
 2. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 191
    OCA\DAV\Connector\Sabre\File->header("X-Hash-SHA1: 9a ... c")
 3. <<closure>>
    OCA\DAV\Connector\Sabre\File->OCA\DAV\Connector\Sabre\{closure}("*** sensitive parameters replaced ***")
 4. /var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php line 71
    call_user_func(Closure {}, "*** sensitive parameter replaced ***")
 5. <<closure>>
    OC\Files\Stream\HashWrapper->stream_close()
 6. /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php line 132
    fclose(null)
 7. /var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php line 75
    Icewind\Streams\Wrapper->stream_close()
 8. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 319
    OC\Files\Stream\HashWrapper->stream_close()
 9. /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php line 82
    Sabre\DAV\Server->exec()
10. /var/www/nextcloud/remote.php line 167
    require_once("/var/www/nextcl ... p")

PUT /remote.php/webdav/rorning_town.obj
from 62.143.82.57 by gorn at 2020-10-27T12:48:19+00:00

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

{“reqId”:“X5gXEi5SGKuf5egkTrELpwAAAQc”,“level”:3,“time”:“2020-10-27T12:48:19+00:00”,“remoteAddr”:“62.143.82.57”,“user”:“gorn”,“app”:“no app in context”,“method”:“PUT”,“url”:"/remote.php/webdav/rorning_town.obj",“message”:{“Exception”:“Sabre\DAV\Exception\BadRequest”,“Message”:“Expected filesize of 136528 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 8192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.”,“Code”:0,“Trace”:[{“file”:"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php",“line”:154,“function”:“put”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:"->",“args”:[null]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:1104,“function”:“createFile”,“class”:“OCA\DAV\Connector\Sabre\Directory”,“type”:"->",“args”:[“rorning_town.obj”,null]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",“line”:527,“function”:“createFile”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[“rorning_town.obj”,null,null]},{“file”:"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",“line”:89,“function”:“httpPut”,“class”:“Sabre\DAV\CorePlugin”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:474,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[“method:PUT”,[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:251,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:319,“function”:“start”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php",“line”:82,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/remote.php",“line”:167,“args”:["/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php"],“function”:“require_once”}],“File”:"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php",“Line”:245,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15”,“version”:“19.0.4.2”,“id”:“5f9817138d519”}

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE