"Not enough space on nextcloud server" when tryling to upload files via mapped network drive

Nextcloud version (eg, 20.0.5): Nextcloud Hub 7 (28.0.1)
Operating system and version (eg, Ubuntu 20.04): Raspberry Pi OS Lite based on Debian GNU/Linux 12 (bookworm)
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.57
PHP version (eg, 7.4): PHP 8.2.14 (cli)

The issue you are facing:
“Not enough space on nextcloud server” when tryling to upload files from Windows 10 to Nextcloud via mapped network drive

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

Steps to replicate it:

  1. Add Network Location in Windows using WebDAV link (Nextcloud sever - Files - Files Settings - WebDAV)
  2. Once network location successfully mounted, attempt uploading files
  3. “Not enough space on server” error message.

In reality, there is almost 1TB free space. It is possible to upload the very same files using the desktop app and the folder sync feature. However, it is not possible to upload files using the WebDAV link.

The data folder is stored on an external USB drive (mounted on /dev/usb1).

Output of df -h:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            1.9G     0  1.9G   0% /dev
tmpfs           405M  5.1M  400M   2% /run
/dev/mmcblk0p2  235G  4.7G  220G   3% /
tmpfs           2.0G     0  2.0G   0% /dev/shm
tmpfs           5.0M   48K  5.0M   1% /run/lock
/dev/mmcblk0p1  510M   61M  450M  12% /boot/firmware
/dev/sda1       916G  3.7G  866G   1% /mnt/usb1
tmpfs           405M     0  405M   0% /run/user/1000

I set up the server today so there may be some irrelevant errors in the log. I really searched a lot but couldn’t find a solution for my problem. Any help is much appreciated.

The output of your Nextcloud log in Admin > Logging:

{"reqId":"lGlhRPxuBq9IoMkFSD0D","level":3,"time":"2024-01-14T13:25:40+00:00","remoteAddr":"188.195.171.165","user":"icefire","app":"jsresourceloader","method":"GET","url":"/nextcloud/index.php/settings/admin/externalstorages","message":"Could not find resource files_external/js/oauth1.js to load","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.1.1","data":{"app":"jsresourceloader"}}
{"reqId":"lGlhRPxuBq9IoMkFSD0D","level":3,"time":"2024-01-14T13:25:40+00:00","remoteAddr":"188.195.171.165","user":"icefire","app":"jsresourceloader","method":"GET","url":"/nextcloud/index.php/settings/admin/externalstorages","message":"Could not find resource files_external/js/oauth2.js to load","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.1.1","data":{"app":"jsresourceloader"}}
{"reqId":"lGlhRPxuBq9IoMkFSD0D","level":3,"time":"2024-01-14T13:25:40+00:00","remoteAddr":"188.195.171.165","user":"icefire","app":"jsresourceloader","method":"GET","url":"/nextcloud/index.php/settings/admin/externalstorages","message":"Could not find resource files_external/js/public_key.js to load","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.1.1","data":{"app":"jsresourceloader"}}
{"reqId":"9uOSGUKfpUNhPsXp0HAe","level":2,"time":"2024-01-14T13:52:50+00:00","remoteAddr":"188.195.171.165","user":"icefire","app":"core","method":"POST","url":"/nextcloud/index.php/login/confirm","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"9NDFLocutpojaJXLclUL","level":2,"time":"2024-01-14T14:28:50+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/index.php/avatar/icefire/512","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"ChO3ipqa02nSZ0ymh9JS","level":2,"time":"2024-01-14T14:28:50+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/user?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"4vy0qXrNl6yphwmCsLwx","level":2,"time":"2024-01-14T14:28:51+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/capabilities?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"Tz95yWMxNuXdLqmmQTly","level":2,"time":"2024-01-14T14:28:53+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/user?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"bFxhQ9WoEvMD3rzNk0xX","level":2,"time":"2024-01-14T14:28:56+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"PROPFIND","url":"/nextcloud/remote.php/dav/files/icefire/","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"c0WmOE3KPftHX2itwntC","level":2,"time":"2024-01-14T14:29:00+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"POST","url":"/nextcloud/index.php/core/wipe/check?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"s1OZW76Xd77Py6G64frp","level":2,"time":"2024-01-14T14:30:19+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/user?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"6eO5cBy7lTZbGvqLiyhM","level":2,"time":"2024-01-14T14:30:19+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/user?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"329AxoZUCokaZDBMI1vU","level":2,"time":"2024-01-14T14:30:34+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/user?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"yTHLNaKzxGN2Kf1P3GMY","level":2,"time":"2024-01-14T14:31:01+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/user?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"LtbWP7tV7hrnoQTMDLdb","level":2,"time":"2024-01-14T14:31:57+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/user?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"8IGUVwYrr9Jyo2QPEFtm","level":2,"time":"2024-01-14T14:32:34+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/user?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"86i6lY1uFec5NuBu7e6p","level":3,"time":"2024-01-14T14:54:45+00:00","remoteAddr":"192.168.1.204","user":"icefire","app":"no app in context","method":"PUT","url":"/nextcloud/remote.php/dav/uploads/icefire/332549019/00001","message":"Expected filesize of 167682919 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 86917120 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","userAgent":"Mozilla/5.0 (Windows) mirall/3.11.0stable-Win64 (build 20231211) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.1.1","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 167682919 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 86917120 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":148,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php","line":51,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Upload\\UploadFolder","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":370,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"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":301,"message":"Expected filesize of 167682919 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 86917120 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","exception":{},"CustomMessage":"Expected filesize of 167682919 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 86917120 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."}}
{"reqId":"JKk8yPmYH3yXrow4QKjB","level":3,"time":"2024-01-14T14:54:45+00:00","remoteAddr":"192.168.1.204","user":"icefire","app":"no app in context","method":"PUT","url":"/nextcloud/remote.php/dav/uploads/icefire/2895452261/00001","message":"Expected filesize of 64187005 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 48496640 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","userAgent":"Mozilla/5.0 (Windows) mirall/3.11.0stable-Win64 (build 20231211) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.1.1","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 64187005 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 48496640 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":148,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php","line":51,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Upload\\UploadFolder","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":370,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"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":301,"message":"Expected filesize of 64187005 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 48496640 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","exception":{},"CustomMessage":"Expected filesize of 64187005 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 48496640 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."}}
{"reqId":"pst33e3igWOZcoi0fKSL","level":3,"time":"2024-01-14T14:54:45+00:00","remoteAddr":"192.168.1.204","user":"icefire","app":"no app in context","method":"PUT","url":"/nextcloud/remote.php/dav/uploads/icefire/3783707454/00001","message":"Expected filesize of 88435632 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 48119808 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","userAgent":"Mozilla/5.0 (Windows) mirall/3.11.0stable-Win64 (build 20231211) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.1.1","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 88435632 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 48119808 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":148,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php","line":51,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Upload\\UploadFolder","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":370,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"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":301,"message":"Expected filesize of 88435632 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 48119808 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","exception":{},"CustomMessage":"Expected filesize of 88435632 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 48119808 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."}}

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

  GNU nano 7.2                              /var/www/nextcloud/config/config.php                                        <?php
$CONFIG = array (
  'instanceid' => 'oc15uwasoqvp',
  'passwordsalt' => 'CRiihCrbDnqesDF/jf0Z6QfMO7PEln',
  'secret' => 'eCh87xKN1T94aP/bWZ31bO22nYd1QQ7HLBKYm/3qnBoIGb8T',
  'trusted_domains' =>
  array (
    0 => '192.168.1.210',
    1 => 'XXXXX.XXXXXXXX.com',
  ),
  'datadirectory' => '/mnt/usb1/data',
  'dbtype' => 'mysql',
  'version' => '28.0.1.1',
  'overwrite.cli.url' => 'http://192.168.1.210/nextcloud',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextclouduser',
  'dbpassword' => 'XXXXXXXXX',
  'installed' => true,
  'memories.exiftool' => '/var/www/nextcloud/apps/memories/bin-ext/exiftool-aarch64-glibc',
  'memories.vod.path' => '/var/www/nextcloud/apps/memories/bin-ext/go-vod-aarch64',
  'memories.gis_type' => 1,
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\Image',
    1 => 'OC\\Preview\\HEIC',
    2 => 'OC\\Preview\\TIFF',
    3 => 'OC\\Preview\\Movie',
  ),
);


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

icefire@royalcloud:/var/log/apache2 $ cat error.log
[Sun Jan 14 11:36:37.671594 2024] [mpm_event:notice] [pid 2727:tid 140734481602816] AH00489: Apache/2.4.57 (Debian) configured -- resuming normal operations
[Sun Jan 14 11:36:37.671948 2024] [core:notice] [pid 2727:tid 140734481602816] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 11:38:54.711730 2024] [mpm_event:notice] [pid 2727:tid 140734481602816] AH00492: caught SIGWINCH, shutting down gracefully
[Sun Jan 14 11:38:54.765530 2024] [mpm_event:notice] [pid 2902:tid 140734347729152] AH00489: Apache/2.4.57 (Debian) configured -- resuming normal operations
[Sun Jan 14 11:38:54.765715 2024] [core:notice] [pid 2902:tid 140734347729152] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 13:17:20.336844 2024] [mpm_event:notice] [pid 2902:tid 140734347729152] AH00492: caught SIGWINCH, shutting down gracefully
[Sun Jan 14 13:17:20.384665 2024] [mpm_prefork:notice] [pid 15997] AH00163: Apache/2.4.57 (Debian) configured -- resuming normal operations
[Sun Jan 14 13:17:20.384907 2024] [core:notice] [pid 15997] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 13:17:20.562433 2024] [mpm_prefork:notice] [pid 15997] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jan 14 13:17:20.792049 2024] [mpm_prefork:notice] [pid 16037] AH00163: Apache/2.4.57 (Debian) configured -- resuming normal operations
[Sun Jan 14 13:17:20.792175 2024] [core:notice] [pid 16037] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 13:17:26.639091 2024] [mpm_prefork:notice] [pid 16037] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jan 14 13:17:26.840842 2024] [mpm_prefork:notice] [pid 16202] AH00163: Apache/2.4.57 (Debian) configured -- resuming normal operations
[Sun Jan 14 13:17:26.849414 2024] [core:notice] [pid 16202] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 13:19:17.889748 2024] [mpm_prefork:notice] [pid 16202] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jan 14 13:19:18.054197 2024] [mpm_prefork:notice] [pid 16231] AH00163: Apache/2.4.57 (Debian) configured -- resuming normal operations
[Sun Jan 14 13:19:18.054341 2024] [core:notice] [pid 16231] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 13:43:25.018832 2024] [mpm_prefork:notice] [pid 16231] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Sun Jan 14 13:43:25.132411 2024] [mpm_prefork:notice] [pid 16231] AH00163: Apache/2.4.57 (Debian) configured -- resuming normal operations
[Sun Jan 14 13:43:25.132439 2024] [core:notice] [pid 16231] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 13:44:33.572654 2024] [mpm_prefork:notice] [pid 16231] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jan 14 13:44:51.707333 2024] [mpm_prefork:notice] [pid 900] AH00163: Apache/2.4.57 (Debian) configured -- resuming normal operations
[Sun Jan 14 13:44:51.707917 2024] [core:notice] [pid 900] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 13:57:33.944339 2024] [mpm_prefork:notice] [pid 900] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jan 14 13:57:34.149721 2024] [mpm_prefork:notice] [pid 1116] AH00163: Apache/2.4.57 (Debian) configured -- resuming normal operations
[Sun Jan 14 13:57:34.149871 2024] [core:notice] [pid 1116] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 14:00:02.461228 2024] [mpm_prefork:notice] [pid 1116] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jan 14 14:00:02.666121 2024] [mpm_prefork:notice] [pid 1153] AH00163: Apache/2.4.57 (Debian) configured -- resuming normal operations
[Sun Jan 14 14:00:02.666259 2024] [core:notice] [pid 1153] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 14:10:03.574304 2024] [mpm_prefork:notice] [pid 1153] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Sun Jan 14 14:10:03.707276 2024] [mpm_prefork:notice] [pid 1153] AH00163: Apache/2.4.57 (Debian) configured -- resuming normal operations
[Sun Jan 14 14:10:03.707315 2024] [core:notice] [pid 1153] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 14:10:11.353471 2024] [mpm_prefork:notice] [pid 1153] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Sun Jan 14 14:10:11.471478 2024] [mpm_prefork:notice] [pid 1153] AH00163: Apache/2.4.57 (Debian) configured -- resuming normal operations
[Sun Jan 14 14:10:11.471505 2024] [core:notice] [pid 1153] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 14:10:14.591015 2024] [mpm_prefork:notice] [pid 1153] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Sun Jan 14 14:10:14.710116 2024] [mpm_prefork:notice] [pid 1153] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations
[Sun Jan 14 14:10:14.710142 2024] [core:notice] [pid 1153] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 14:10:14.916639 2024] [mpm_prefork:notice] [pid 1153] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Sun Jan 14 14:10:15.038720 2024] [mpm_prefork:notice] [pid 1153] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations
[Sun Jan 14 14:10:15.038745 2024] [core:notice] [pid 1153] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 14:10:55.796711 2024] [mpm_prefork:notice] [pid 1153] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jan 14 14:10:55.994583 2024] [mpm_prefork:notice] [pid 1819] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations
[Sun Jan 14 14:10:55.994729 2024] [core:notice] [pid 1819] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 14:14:36.434046 2024] [mpm_prefork:notice] [pid 1819] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jan 14 14:14:36.552173 2024] [ssl:warn] [pid 1877] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 14:14:36.634334 2024] [ssl:warn] [pid 1878] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 14:14:36.644352 2024] [mpm_prefork:notice] [pid 1878] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations
[Sun Jan 14 14:14:36.644439 2024] [core:notice] [pid 1878] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 14:21:03.435920 2024] [mpm_prefork:notice] [pid 1878] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jan 14 14:21:03.574322 2024] [ssl:warn] [pid 1959] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 14:21:03.656311 2024] [ssl:warn] [pid 1960] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 14:21:03.666344 2024] [mpm_prefork:notice] [pid 1960] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations
[Sun Jan 14 14:21:03.666418 2024] [core:notice] [pid 1960] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 14:22:47.366623 2024] [mpm_prefork:notice] [pid 1960] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jan 14 14:22:47.502145 2024] [ssl:warn] [pid 2002] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 14:22:47.584992 2024] [ssl:warn] [pid 2003] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 14:22:47.595118 2024] [mpm_prefork:notice] [pid 2003] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations
[Sun Jan 14 14:22:47.595224 2024] [core:notice] [pid 2003] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 15:02:21.813622 2024] [ssl:warn] [pid 831] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 15:02:23.300739 2024] [ssl:warn] [pid 919] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 15:02:23.311893 2024] [mpm_prefork:notice] [pid 919] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations
[Sun Jan 14 15:02:23.311989 2024] [core:notice] [pid 919] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 15:14:14.701607 2024] [mpm_prefork:notice] [pid 919] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jan 14 15:14:32.817352 2024] [ssl:warn] [pid 819] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 15:14:34.501306 2024] [ssl:warn] [pid 910] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 15:14:34.512066 2024] [mpm_prefork:notice] [pid 910] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations
[Sun Jan 14 15:14:34.512193 2024] [core:notice] [pid 910] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 15:17:31.407358 2024] [mpm_prefork:notice] [pid 910] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jan 14 15:17:48.847076 2024] [ssl:warn] [pid 820] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 15:17:50.526028 2024] [ssl:warn] [pid 905] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 15:17:50.537288 2024] [mpm_prefork:notice] [pid 905] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations
[Sun Jan 14 15:17:50.537378 2024] [core:notice] [pid 905] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 15:27:05.238277 2024] [mpm_prefork:notice] [pid 905] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jan 14 15:27:22.786465 2024] [ssl:warn] [pid 811] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 15:27:24.427041 2024] [ssl:warn] [pid 900] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 15:27:24.437257 2024] [mpm_prefork:notice] [pid 900] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations
[Sun Jan 14 15:27:24.437343 2024] [core:notice] [pid 900] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 16:03:43.269424 2024] [mpm_prefork:notice] [pid 900] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jan 14 16:04:00.827588 2024] [ssl:warn] [pid 813] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 16:04:02.356156 2024] [ssl:warn] [pid 902] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 16:04:02.366684 2024] [mpm_prefork:notice] [pid 902] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations
[Sun Jan 14 16:04:02.366771 2024] [core:notice] [pid 902] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 14 18:19:42.252740 2024] [mpm_prefork:notice] [pid 902] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Sun Jan 14 18:19:42.387982 2024] [ssl:warn] [pid 902] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 14 18:19:42.390362 2024] [mpm_prefork:notice] [pid 902] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations
[Sun Jan 14 18:19:42.390378 2024] [core:notice] [pid 902] AH00094: Command line: '/usr/sbin/apache2'```

PASTE HERE

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.

PASTE HERE

$ sudo cat /mnt/usb1/data/nextcloud.log
{"reqId":"lGlhRPxuBq9IoMkFSD0D","level":3,"time":"2024-01-14T13:25:40+00:00","remoteAddr":"188.195.171.165","user":"icefire","app":"jsresourceloader","method":"GET","url":"/nextcloud/index.php/settings/admin/externalstorages","message":"Could not find resource files_external/js/oauth1.js to load","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.1.1","data":{"app":"jsresourceloader"}}
{"reqId":"lGlhRPxuBq9IoMkFSD0D","level":3,"time":"2024-01-14T13:25:40+00:00","remoteAddr":"188.195.171.165","user":"icefire","app":"jsresourceloader","method":"GET","url":"/nextcloud/index.php/settings/admin/externalstorages","message":"Could not find resource files_external/js/oauth2.js to load","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.1.1","data":{"app":"jsresourceloader"}}
{"reqId":"lGlhRPxuBq9IoMkFSD0D","level":3,"time":"2024-01-14T13:25:40+00:00","remoteAddr":"188.195.171.165","user":"icefire","app":"jsresourceloader","method":"GET","url":"/nextcloud/index.php/settings/admin/externalstorages","message":"Could not find resource files_external/js/public_key.js to load","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.1.1","data":{"app":"jsresourceloader"}}
{"reqId":"9uOSGUKfpUNhPsXp0HAe","level":2,"time":"2024-01-14T13:52:50+00:00","remoteAddr":"188.195.171.165","user":"icefire","app":"core","method":"POST","url":"/nextcloud/index.php/login/confirm","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"9NDFLocutpojaJXLclUL","level":2,"time":"2024-01-14T14:28:50+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/index.php/avatar/icefire/512","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"ChO3ipqa02nSZ0ymh9JS","level":2,"time":"2024-01-14T14:28:50+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/user?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"4vy0qXrNl6yphwmCsLwx","level":2,"time":"2024-01-14T14:28:51+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/capabilities?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"Tz95yWMxNuXdLqmmQTly","level":2,"time":"2024-01-14T14:28:53+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/user?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"bFxhQ9WoEvMD3rzNk0xX","level":2,"time":"2024-01-14T14:28:56+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"PROPFIND","url":"/nextcloud/remote.php/dav/files/icefire/","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"c0WmOE3KPftHX2itwntC","level":2,"time":"2024-01-14T14:29:00+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"POST","url":"/nextcloud/index.php/core/wipe/check?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"s1OZW76Xd77Py6G64frp","level":2,"time":"2024-01-14T14:30:19+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/user?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"6eO5cBy7lTZbGvqLiyhM","level":2,"time":"2024-01-14T14:30:19+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/user?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"329AxoZUCokaZDBMI1vU","level":2,"time":"2024-01-14T14:30:34+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/user?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"yTHLNaKzxGN2Kf1P3GMY","level":2,"time":"2024-01-14T14:31:01+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/user?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"LtbWP7tV7hrnoQTMDLdb","level":2,"time":"2024-01-14T14:31:57+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/user?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"8IGUVwYrr9Jyo2QPEFtm","level":2,"time":"2024-01-14T14:32:34+00:00","remoteAddr":"188.195.171.165","user":"--","app":"core","method":"GET","url":"/nextcloud/ocs/v2.php/cloud/user?format=json","message":"Login failed: 'icefire' (Remote IP: '188.195.171.165')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.27.0","version":"28.0.1.1","data":{"app":"core"}}
{"reqId":"86i6lY1uFec5NuBu7e6p","level":3,"time":"2024-01-14T14:54:45+00:00","remoteAddr":"192.168.1.204","user":"icefire","app":"no app in context","method":"PUT","url":"/nextcloud/remote.php/dav/uploads/icefire/332549019/00001","message":"Expected filesize of 167682919 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 86917120 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","userAgent":"Mozilla/5.0 (Windows) mirall/3.11.0stable-Win64 (build 20231211) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.1.1","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 167682919 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 86917120 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":148,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php","line":51,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Upload\\UploadFolder","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":370,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"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":301,"message":"Expected filesize of 167682919 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 86917120 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","exception":{},"CustomMessage":"Expected filesize of 167682919 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 86917120 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."}}
{"reqId":"JKk8yPmYH3yXrow4QKjB","level":3,"time":"2024-01-14T14:54:45+00:00","remoteAddr":"192.168.1.204","user":"icefire","app":"no app in context","method":"PUT","url":"/nextcloud/remote.php/dav/uploads/icefire/2895452261/00001","message":"Expected filesize of 64187005 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 48496640 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","userAgent":"Mozilla/5.0 (Windows) mirall/3.11.0stable-Win64 (build 20231211) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.1.1","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 64187005 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 48496640 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":148,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php","line":51,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Upload\\UploadFolder","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":370,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"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":301,"message":"Expected filesize of 64187005 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 48496640 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","exception":{},"CustomMessage":"Expected filesize of 64187005 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 48496640 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."}}
{"reqId":"pst33e3igWOZcoi0fKSL","level":3,"time":"2024-01-14T14:54:45+00:00","remoteAddr":"192.168.1.204","user":"icefire","app":"no app in context","method":"PUT","url":"/nextcloud/remote.php/dav/uploads/icefire/3783707454/00001","message":"Expected filesize of 88435632 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 48119808 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","userAgent":"Mozilla/5.0 (Windows) mirall/3.11.0stable-Win64 (build 20231211) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.1.1","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 88435632 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 48119808 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":148,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php","line":51,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Upload\\UploadFolder","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":370,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"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":301,"message":"Expected filesize of 88435632 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 48119808 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","exception":{},"CustomMessage":"Expected filesize of 88435632 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 48119808 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."}}

None of the log entries appear to be ones associated with the native Windows WebDAV client.

  • Can you provide an actual entry timestamped from when you try to do an upload/copy via the mapped drive?
  • Does it make a difference what size files you upload via the mapped drive? Try a small file (<1 MB.)
  • Can you download files via the Windows WebDAV mount?

I notice you’re using HTTP rather than HTTPS. I can’t remember all the specifics offhand, but I recall having to jump through extra hoops to get Windows to accept that. At a minimum I believe it’ll refuse to actually save credentials, but I don’t recall what else it’ll do.

Hi, thanks for the help. I think I kinda found the solution, or, to be more precise, the explanation.

I tried mapping a network drive instead of connecting a network folder. The difference is that if you map a network drive, windows automatically shows the free space and total capacity. I was surprised to find out that the values are identical with the system drive.

I tried it on another PC and it was the same thing. Aparently not a Nextcloud issue but a Windows problem with WebDAV. Found this info here: Windows 7 WebDAV network drive size shows local drive size. Does not let me copy files - Stack Overflow

However, there is a workaround.

If you have 30 GB of free space on C: and want to upload 40 GB, it will not work.
However, if you first upload 20 GB and then another 20GB, there is no problem. The values for free space and total capacity do not change, as they mirror the system drive. So this workaround will work provided there is enough space on the server.

Or you just free up space on your system drive.

1 Like