Sabre\DAV\Exception\BadRequest Nextcloud 26.0.0.11

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud is running on an Proxmox Virtual Machine which is connected with a Cloudflare Tunnel.

Nextcloud version (eg, 20.0.5): 26.0.0.11
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.52
PHP version (eg, 7.4): 8.1.2

Steps to replicate it:

  1. Open the Nextcloud app on the IPhone
  2. Go to Settings, Auto upload
  3. Select “Only use Wi-Fi connection” for video and photos, “Upload the whole camera roll” and “use subfolders”
  4. Click “Change filename mask” and select “Specify type in filename”

The output of your Nextcloud log in Admin > Logging:

Sabre\DAV\Exception\BadRequest: Expected filesize of 2753689 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1391747 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.

    /var/www/nextcloud-baldauf.de/apps/dav/lib/Connector/Sabre/Directory.php - line 149:
    OCA\DAV\Connector\Sabre\File->put()
    /var/www/nextcloud-baldauf.de/3rdparty/sabre/dav/lib/DAV/Server.php - line 1098:
    OCA\DAV\Connector\Sabre\Directory->createFile("*** sensiti ... *")
    /var/www/nextcloud-baldauf.de/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 504:
    Sabre\DAV\Server->createFile("*** sensiti ... *")
    /var/www/nextcloud-baldauf.de/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:
    Sabre\DAV\CorePlugin->httpPut()
    /var/www/nextcloud-baldauf.de/3rdparty/sabre/dav/lib/DAV/Server.php - line 472:
    Sabre\DAV\Server->emit()
    /var/www/nextcloud-baldauf.de/3rdparty/sabre/dav/lib/DAV/Server.php - line 253:
    Sabre\DAV\Server->invokeMethod()
    /var/www/nextcloud-baldauf.de/3rdparty/sabre/dav/lib/DAV/Server.php - line 321:
    Sabre\DAV\Server->start()
    /var/www/nextcloud-baldauf.de/apps/dav/lib/Server.php - line 366:
    Sabre\DAV\Server->exec()
    /var/www/nextcloud-baldauf.de/apps/dav/appinfo/v2/remote.php - line 35:
    OCA\DAV\Server->exec()
    /var/www/nextcloud-baldauf.de/remote.php - line 171:
    require_once("/var/www/ne ... p")

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

<?php
$CONFIG = array (
  'instanceid' => '###',
  'passwordsalt' => '###',
  'secret' => 'P1LLMtKBMuOqOlHsqTAOm11kKfYVM0dx5DqjyiBQWo3fGdZg',
  'trusted_domains' =>
  array (
    0 => 'URL.com',
  ),
  'datadirectory' => '/home/data',
  'dbtype' => 'mysql',
  'version' => '26.0.0.11',
  'overwrite.cli.url' => 'https://URL.com',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '###',
  'dbpassword' => '###',
  'installed' => true,
  'default_phone_region' => 'DE',
  'memcache.local' => '\\OC\\Memcache\\APCu',
);

This can probably be ignored, the exception should be caught and not logged.