Errors in log since update to version 21.0.0

Support intro

Since the update to version 20.0.0 I can see some errors in the log file (always 4 entries together)

Nextcloud version (eg, 20.0.5): 20.0.0
Operating system and version (eg, Ubuntu 20.04): DEBIAN 10 (buster)
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.38 (Debian)
PHP version (eg, 7.4): 7.3

The issue you are facing:

Is this the first time you’ve seen this error? Y

The output of your Nextcloud log in Admin > Logging:
{“reqId”:“s6w8y3EVsaspnT6C3Rew”,“level”:3,“time”:“2021-04-04T17:46:00+00:00”,“remoteAddr”:“91.33.22.130”,“user”:“philipp”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/philipp/367529094/00000002",“message”:{“Exception”:“Error”,“Message”:“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#691”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:"::",“args”:[2,“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php:132)”,"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php",691,{“string”:“X-Hash-MD5: fc339a73442d09b0fb74d25386c258f5”}]},{“file”:"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php",“line”:691,“function”:“header”,“args”:[“X-Hash-MD5: fc339a73442d09b0fb74d25386c258f5”]},{“file”:"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php",“line”:189,“function”:“header”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:"->",“args”:[“X-Hash-MD5: fc339a73442d09b0fb74d25386c258f5”]},{“function”:“OCA\DAV\Connector\Sabre\{closure}”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:"->",“args”:["*** sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php",“line”:71,“function”:“call_user_func”,“args”:[{“class”:“Closure”}," sensitive parameter replaced ***"]},{“function”:“stream_close”,“class”:“OC\Files\Stream\HashWrapper”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php",“line”:96,“function”:“fclose”,“args”:[null]},{“file”:"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php",“line”:75,“function”:“stream_close”,“class”:“Icewind\Streams\Wrapper”,“type”:"->",“args”:[]},{“function”:“stream_close”,“class”:“OC\Files\Stream\HashWrapper”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php",“line”:96,“function”:“fclose”,“args”:[null]},{“file”:"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php",“line”:75,“function”:“stream_close”,“class”:“Icewind\Streams\Wrapper”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:321,“function”:“stream_close”,“class”:“OC\Files\Stream\HashWrapper”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/apps/dav/lib/Server.php",“line”:332,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php",“line”:35,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/remote.php",“line”:167,“args”:["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],“function”:“require_once”}],“File”:"/var/www/nextcloud/lib/private/Log/ErrorHandler.php",“Line”:92,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows) mirall/3.1.3stable-Win64 (build 20210218) (Nextcloud)”,“version”:“21.0.0.18”,“id”:“606cdf352e73c”}

{“reqId”:“s6w8y3EVsaspnT6C3Rew”,“level”:3,“time”:“2021-04-04T17:46:00+00:00”,“remoteAddr”:“91.33.22.130”,“user”:“philipp”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/philipp/367529094/00000002",“message”:{“Exception”:“Error”,“Message”:“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#691”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:"::",“args”:[2,“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php:132)”,"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php",691,{“string”:“X-Hash-SHA1: 40d183c26668865ff0e7a75f883c47a90b849fc8”}]},{“file”:"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php",“line”:691,“function”:“header”,“args”:[“X-Hash-SHA1: 40d183c26668865ff0e7a75f883c47a90b849fc8”]},{“file”:"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php",“line”:192,“function”:“header”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:"->",“args”:[“X-Hash-SHA1: 40d183c26668865ff0e7a75f883c47a90b849fc8”]},{“function”:“OCA\DAV\Connector\Sabre\{closure}”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:"->",“args”:["*** sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php",“line”:71,“function”:“call_user_func”,“args”:[{“class”:“Closure”}," sensitive parameter replaced ***"]},{“function”:“stream_close”,“class”:“OC\Files\Stream\HashWrapper”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php",“line”:96,“function”:“fclose”,“args”:[null]},{“file”:"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php",“line”:75,“function”:“stream_close”,“class”:“Icewind\Streams\Wrapper”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:321,“function”:“stream_close”,“class”:“OC\Files\Stream\HashWrapper”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/apps/dav/lib/Server.php",“line”:332,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php",“line”:35,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/remote.php",“line”:167,“args”:["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],“function”:“require_once”}],“File”:"/var/www/nextcloud/lib/private/Log/ErrorHandler.php",“Line”:92,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows) mirall/3.1.3stable-Win64 (build 20210218) (Nextcloud)”,“version”:“21.0.0.18”,“id”:“606cdf352e779”}

{“reqId”:“s6w8y3EVsaspnT6C3Rew”,“level”:3,“time”:“2021-04-04T17:46:00+00:00”,“remoteAddr”:“91.33.22.130”,“user”:“philipp”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/philipp/367529094/00000002",“message”:{“Exception”:“Error”,“Message”:“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#691”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:"::",“args”:[2,“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php:132)”,"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php",691,{“string”:“X-Hash-SHA256: f638c2592f8d681ce5d4749063b6b44e18e6956566ac578b8387aaa6b0208843”}]},{“file”:"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php",“line”:691,“function”:“header”,“args”:[“X-Hash-SHA256: f638c2592f8d681ce5d4749063b6b44e18e6956566ac578b8387aaa6b0208843”]},{“file”:"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php",“line”:195,“function”:“header”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:"->",“args”:[“X-Hash-SHA256: f638c2592f8d681ce5d4749063b6b44e18e6956566ac578b8387aaa6b0208843”]},{“function”:“OCA\DAV\Connector\Sabre\{closure}”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:"->",“args”:["*** sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php",“line”:71,“function”:“call_user_func”,“args”:[{“class”:“Closure”}," sensitive parameter replaced ***"]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:321,“function”:“stream_close”,“class”:“OC\Files\Stream\HashWrapper”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/apps/dav/lib/Server.php",“line”:332,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php",“line”:35,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/remote.php",“line”:167,“args”:["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],“function”:“require_once”}],“File”:"/var/www/nextcloud/lib/private/Log/ErrorHandler.php",“Line”:92,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows) mirall/3.1.3stable-Win64 (build 20210218) (Nextcloud)”,“version”:“21.0.0.18”,“id”:“606cdf352e840”}

{“reqId”:“s6w8y3EVsaspnT6C3Rew”,“level”:3,“time”:“2021-04-04T17:46:00+00:00”,“remoteAddr”:“91.33.22.130”,“user”:“philipp”,“app”:“no app in context”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/philipp/367529094/00000002",“message”:{“Exception”:“Sabre\DAV\Exception\BadRequest”,“Message”:“Expected filesize of 78899763 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 32768 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”:156,“function”:“put”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:"->",“args”:[null]},{“file”:"/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php",“line”:46,“function”:“createFile”,“class”:“OCA\DAV\Connector\Sabre\Directory”,“type”:"->",“args”:[“00000002”,null]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:1098,“function”:“createFile”,“class”:“OCA\DAV\Upload\UploadFolder”,“type”:"->",“args”:[“00000002”,null]},{“file”:"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",“line”:504,“function”:“createFile”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[“uploads/philipp/367529094/00000002”,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”:472,“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”:253,“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”:321,“function”:“start”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/apps/dav/lib/Server.php",“line”:332,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php",“line”:35,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/remote.php",“line”:167,“args”:["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],“function”:“require_once”}],“File”:"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php",“Line”:246,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows) mirall/3.1.3stable-Win64 (build 20210218) (Nextcloud)”,“version”:“21.0.0.18”,“id”:“606cdf352e87d”}

Error seems to be solved with version 21.0.1.1