# \[16.0.6 upgraded to 17.0.1 \] "Fatal: Sabre\\DAV\\Exception\\BadRequest: Expected filesize of..." in log

**URL:** <https://help.nextcloud.com/t/16-0-6-upgraded-to-17-0-1-fatal-sabre-dav-exception-badrequest-expected-filesize-of-in-log/64553>\
**Category:** ℹ️ Support\
**Created:** [November 19, 2019, 10:41pm UTC](https://help.nextcloud.com/t/16-0-6-upgraded-to-17-0-1-fatal-sabre-dav-exception-badrequest-expected-filesize-of-in-log/64553 "2019-11-19T22:41:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gannet](https://help.nextcloud.com/letter_avatar/gannet/32/6_22734026db12803ebb3e059622ac3534.png) [@Gannet](https://help.nextcloud.com/u/Gannet)\
**Post date:** [November 19, 2019, 10:41pm UTC](https://help.nextcloud.com/t/16-0-6-upgraded-to-17-0-1-fatal-sabre-dav-exception-badrequest-expected-filesize-of-in-log/64553/1 "2019-11-19T22:41:30Z")

</div>

> **Support intro**
>
> Sorry to hear you’re facing problems 🙁
> 
> _**[help.nextcloud.com](http://help.nextcloud.com) is for home/non-enterprise users. If you’re running a business, paid support can be accessed via [portal.nextcloud.com](http://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:
> 
> Or for longer, use three backticks above and below the code snippet:
> 
> ```auto
> 
> ```
> 
> 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 ❤

Nextcloud version: 17.0.1  
Operating system and version: Ubuntu Server 18.04  
Apache or nginx version: 2.4.29  
PHP version: 7.2

The issue you are facing:

After upgrading Nextcloud to 17.0.1 trying to upload (through web interface) any big file \>1G it starts but seems not progressing at all. And the following errors each time appears in a log:

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

The output of your Nextcloud log in **Admin \> Logging** :

```auto
[webdav] Fatal: Sabre\DAV\Exception\BadRequest: Expected filesize of 10485760 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 4710400 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side. at <<closure>>

 0. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php line 156
    OCA\DAV\Connector\Sabre\File->put(null)
 1. /var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php line 45
    OCA\DAV\Connector\Sabre\Directory->createFile("52428800", null)
 2. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1096
    OCA\DAV\Upload\UploadFolder->createFile("52428800", null)
 3. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 525
    Sabre\DAV\Server->createFile("uploads/Eugene/ ... 0", null, null)
 4. <<closure>>
    Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
 5. /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
    undefinedundefinedcall_user_func_array([Sabre\DAV\CorePlugin {},"httpPut"], [Sabre\HTTP\Requ ... }])
 6. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 479
    Sabre\Event\EventEmitter->emit("method:PUT", [Sabre\HTTP\Requ ... }])
 7. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 254
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
 8. /var/www/nextcloud/apps/dav/lib/Server.php line 317
    Sabre\DAV\Server->exec()
 9. /var/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
10. /var/www/nextcloud/remote.php line 163
    undefinedundefinedrequire_once("/var/www/nextcl ... p")

PUT /remote.php/dav/uploads/Eugene/web-file-upload-84a3d464cd75d3bb2549b5c03312ea3a-1574202150145/52428800
from 109.11.11.11 by Eugene at 2019-11-19T22:23:56+00:00

```

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

```auto
<?php
$CONFIG = array (
  'instanceid' => 'oyblaoyoybla',
  'passwordsalt' => 'blablablablabla',
  'secret' => 'blablablablabla',
  'trusted_domains' => 
  array (
    0 => 'bla.bla.bla.bla',
  ),
  'datadirectory' => '/srv/data',
  'overwrite.cli.url' => 'https://bla.bla.bla.bla',
  'dbtype' => 'pgsql',
  'version' => '17.0.1.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => 'blablabla',
  'installed' => true,
  'maintenance' => false,
  'filelocking.enabled' => 'true',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',
  'mail_smtpmode' => 'smtp',
  'mail_smtphost' => '1.2.3.4',
  'mail_smtpport' => '25',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'next.cloud@bla.bla.bla',
  'mail_smtppassword' => 'bla-bla',
  'mail_from_address' => 'noreply',
  'mail_domain' => 'ucl.com.ua',
  'updater.secret' => 'bla-bla',
);

```

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

```auto
$ cat error.log
[Tue Nov 19 06:25:09.652968 2019] [mpm_worker:notice] [pid 176:tid 140523051224000] AH00292: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Tue Nov 19 06:25:09.652998 2019] [core:notice] [pid 176:tid 140523051224000] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 19 09:52:58.810808 2019] [authz_core:error] [pid 2256:tid 140522671535872] [client 10.17.16.17:4790] AH01630: client denied by server configuration: /var/www/nextcloud/config
[Tue Nov 19 12:58:40.141453 2019] [authz_core:error] [pid 2254:tid 140522496698112] [client 10.17.16.61:52111] AH01630: client denied by server configuration: /var/www/nextcloud/config
[Tue Nov 19 13:39:24.452331 2019] [autoindex:error] [pid 2256:tid 140522747094784] [client 10.17.16.17:6783] AH01276: Cannot serve directory /var/www/nextcloud/core/doc/user/_static/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 19 15:09:57.976687 2019] [authz_core:error] [pid 2254:tid 140522068899584] [client 212.90.62.83:50246] AH01630: client denied by server configuration: /var/www/nextcloud/config
[Tue Nov 19 15:54:44.378204 2019] [authz_core:error] [pid 2256:tid 140522747094784] [client 10.17.16.17:1732] AH01630: client denied by server configuration: /var/www/nextcloud/config
[Tue Nov 19 22:35:49.318872 2019] [authz_core:error] [pid 2254:tid 140522530268928] [client 212.90.62.83:51296] AH01630: client denied by server configuration: /var/www/nextcloud/config
[Tue Nov 19 22:59:43.780639 2019] [proxy_fcgi:error] [pid 2254:tid 140522730309376] (103)Software caused connection abort: [client 109.86.88.11:41012] AH01075: Error dispatching request to : (reading input brigade)
[Tue Nov 19 23:27:02.379390 2019] [mpm_worker:notice] [pid 176:tid 140523051224000] AH00295: caught SIGTERM, shutting down
[Tue Nov 19 23:27:02.493150 2019] [mpm_worker:notice] [pid 8854:tid 140644741602240] AH00292: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Tue Nov 19 23:27:02.493304 2019] [core:notice] [pid 8854:tid 140644741602240] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 19 23:33:22.310621 2019] [proxy_fcgi:error] [pid 8856:tid 140644328310528] (103)Software caused connection abort: [client 109.86.88.11:55028] AH01075: Error dispatching request to : (reading input brigade)
[Tue Nov 19 23:35:26.353821 2019] [mpm_worker:notice] [pid 8854:tid 140644741602240] AH00295: caught SIGTERM, shutting down
[Tue Nov 19 23:35:26.465780 2019] [mpm_worker:notice] [pid 9610:tid 140456539114432] AH00292: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Tue Nov 19 23:35:26.465902 2019] [core:notice] [pid 9610:tid 140456539114432] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 19 23:36:47.962493 2019] [proxy_fcgi:error] [pid 9612:tid 140456151025408] (103)Software caused connection abort: [client 109.86.88.11:55236] AH01075: Error dispatching request to : (reading input brigade)
[Tue Nov 19 23:40:08.615588 2019] [mpm_worker:notice] [pid 9610:tid 140456539114432] AH00295: caught SIGTERM, shutting down
[Tue Nov 19 23:40:08.730162 2019] [mpm_worker:notice] [pid 10236:tid 140329963969472] AH00292: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Tue Nov 19 23:40:08.730304 2019] [core:notice] [pid 10236:tid 140329963969472] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 19 23:58:00.622468 2019] [mpm_worker:notice] [pid 10236:tid 140329963969472] AH00295: caught SIGTERM, shutting down
[Tue Nov 19 23:58:00.735938 2019] [mpm_worker:notice] [pid 10839:tid 139953116818368] AH00292: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Tue Nov 19 23:58:00.736077 2019] [core:notice] [pid 10839:tid 139953116818368] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 19 23:58:56.162450 2019] [proxy_fcgi:error] [pid 10842:tid 139952722458368] (103)Software caused connection abort: [client 109.86.88.11:55946] AH01075: Error dispatching request to : (reading input brigade)
[Wed Nov 20 00:00:57.976117 2019] [mpm_worker:notice] [pid 10839:tid 139953116818368] AH00295: caught SIGTERM, shutting down
[Wed Nov 20 00:00:58.089137 2019] [mpm_worker:notice] [pid 11274:tid 139934170819520] AH00292: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Wed Nov 20 00:00:58.089285 2019] [core:notice] [pid 11274:tid 139934170819520] AH00094: Command line: '/usr/sbin/apache2'
[Wed Nov 20 00:21:46.256201 2019] [mpm_worker:notice] [pid 11274:tid 139934170819520] AH00295: caught SIGTERM, shutting down
[Wed Nov 20 00:21:46.369569 2019] [mpm_worker:notice] [pid 11964:tid 140596373613504] AH00292: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Wed Nov 20 00:21:46.369708 2019] [core:notice] [pid 11964:tid 140596373613504] AH00094: Command line: '/usr/sbin/apache2'
[Wed Nov 20 00:23:56.450001 2019] [proxy_fcgi:error] [pid 11967:tid 140596006082304] (70008)Partial results are valid but processing is incomplete: [client 109.86.88.11:56992] AH01075: Error dispatching request to : (reading input brigade)
[Wed Nov 20 00:24:32.587610 2019] [mpm_worker:notice] [pid 11964:tid 140596373613504] AH00295: caught SIGTERM, shutting down
[Wed Nov 20 00:24:32.701582 2019] [mpm_worker:notice] [pid 12362:tid 140516874189760] AH00292: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 configured -- resuming normal operations
[Wed Nov 20 00:24:32.701725 2019] [core:notice] [pid 12362:tid 140516874189760] AH00094: Command line: '/usr/sbin/apache2'

```

---

<div class="post-metadata">

**Author:** ![Gannet](https://help.nextcloud.com/letter_avatar/gannet/32/6_22734026db12803ebb3e059622ac3534.png) [@Gannet](https://help.nextcloud.com/u/Gannet)\
**Post date:** [November 28, 2019, 9:07pm UTC](https://help.nextcloud.com/t/16-0-6-upgraded-to-17-0-1-fatal-sabre-dav-exception-badrequest-expected-filesize-of-in-log/64553/2 "2019-11-28T21:07:50Z")

</div>

Great… 🙄

---

<div class="post-metadata">

**Author:** ![gas85](https://help.nextcloud.com/user_avatar/help.nextcloud.com/gas85/32/7772_2.png) [@gas85](https://help.nextcloud.com/u/gas85)\
**Post date:** [November 29, 2019, 9:13am UTC](https://help.nextcloud.com/t/16-0-6-upgraded-to-17-0-1-fatal-sabre-dav-exception-badrequest-expected-filesize-of-in-log/64553/3 "2019-11-29T09:13:43Z")

</div>

> [@Gannet](#):
>
> Sabre\DAV\Exception\BadRequest

Could be that you meet PHP Memory limit. Check your WebUI under https://…/index.php/settings/admin/serverinfo in Section PHP you have memory limit.  
Then you can check this Doku: [https://docs.nextcloud.com/server/16/admin\_manual/configuration\_files/big\_file\_upload\_configuration.html](https://docs.nextcloud.com/server/16/admin_manual/configuration_files/big_file_upload_configuration.html)

---

<div class="post-metadata">

**Author:** ![Gannet](https://help.nextcloud.com/letter_avatar/gannet/32/6_22734026db12803ebb3e059622ac3534.png) [@Gannet](https://help.nextcloud.com/u/Gannet)\
**Post date:** [November 29, 2019, 8:36pm UTC](https://help.nextcloud.com/t/16-0-6-upgraded-to-17-0-1-fatal-sabre-dav-exception-badrequest-expected-filesize-of-in-log/64553/4 "2019-11-29T20:36:01Z")

</div>

> [@gas85](#):
>
> https://…/index.php/settings/admin/serverinfo

Thanks a lot for your answer. Here is my PHP section:  
 ![%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%BD%D1%8F](https://help.nextcloud.com/uploads/default/original/3X/1/6/169e66eaf3b4804e3911ed9cc7028278017c3893.png)

---

<div class="post-metadata">

**Author:** ![gas85](https://help.nextcloud.com/user_avatar/help.nextcloud.com/gas85/32/7772_2.png) [@gas85](https://help.nextcloud.com/u/gas85)\
**Post date:** [December 2, 2019, 11:07am UTC](https://help.nextcloud.com/t/16-0-6-upgraded-to-17-0-1-fatal-sabre-dav-exception-badrequest-expected-filesize-of-in-log/64553/5 "2019-12-02T11:07:30Z")

</div>

I think this is it: **Memory Limit 512 MB**.  
Try linked Doku from above (here is again for NC 17): [https://docs.nextcloud.com/server/17/admin\_manual/configuration\_files/big\_file\_upload\_configuration.html](https://docs.nextcloud.com/server/17/admin_manual/configuration_files/big_file_upload_configuration.html)

---

<div class="post-metadata">

**Author:** ![Gannet](https://help.nextcloud.com/letter_avatar/gannet/32/6_22734026db12803ebb3e059622ac3534.png) [@Gannet](https://help.nextcloud.com/u/Gannet)\
**Post date:** [December 3, 2019, 12:05am UTC](https://help.nextcloud.com/t/16-0-6-upgraded-to-17-0-1-fatal-sabre-dav-exception-badrequest-expected-filesize-of-in-log/64553/6 "2019-12-03T00:05:16Z")

</div>

Thank you for your comment. I changed memory limitation to the following:  
 ![%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%BD%D1%8F](https://help.nextcloud.com/uploads/default/original/3X/c/0/c0dcce3bcb629d0d3b87d382ef9a9b8c3d4a6d82.png)  
and the error is disappeared. But if I cancel the uploading the similar error still appearing in a log:

> **webdav Fatal: Sabre\\DAV\\Exception: Could not rename part file to final file at \<\<closure\>\>**
>
> ```auto
> [webdav] Fatal: Sabre\DAV\Exception: Could not rename part file to final file at <<closure>>
> 
> 0. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php line 156
> OCA\DAV\Connector\Sabre\File->put(null)
> 1. /var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php line 45
> OCA\DAV\Connector\Sabre\Directory->createFile("178257920", null)
> 2. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1096
> OCA\DAV\Upload\UploadFolder->createFile("178257920", null)
> 3. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 525
> Sabre\DAV\Server->createFile("uploads/Eugene/ ... 0", null, null)
> 4. <<closure>>
> Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
> 5. /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
> undefinedundefinedcall_user_func_array([Sabre\DAV\CorePlugin {},"httpPut"], [Sabre\HTTP\Requ ... }])
> 6. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 479
> Sabre\Event\EventEmitter->emit("method:PUT", [Sabre\HTTP\Requ ... }])
> 7. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 254
> Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
> 8. /var/www/nextcloud/apps/dav/lib/Server.php line 317
> Sabre\DAV\Server->exec()
> 9. /var/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
> OCA\DAV\Server->exec()
> 10. /var/www/nextcloud/remote.php line 163
> undefinedundefinedrequire_once("/var/www/nextcl ... p")
> 
> PUT /remote.php/dav/uploads/Eugene/web-file-upload-84a3d464cd75d3bb2549b5c03312ea3a-1575330799446/178257920
> from bla.bla.bla.bla by Eugene at 2019-12-02T23:54:21+00:100:
> 
> ```

---

<div class="post-metadata">

**Author:** ![gas85](https://help.nextcloud.com/user_avatar/help.nextcloud.com/gas85/32/7772_2.png) [@gas85](https://help.nextcloud.com/u/gas85)\
**Post date:** [December 3, 2019, 7:56am UTC](https://help.nextcloud.com/t/16-0-6-upgraded-to-17-0-1-fatal-sabre-dav-exception-badrequest-expected-filesize-of-in-log/64553/7 "2019-12-03T07:56:06Z")

</div>

It seems to be another issue. Are you using externals SAMBA storage?  
If yes, there is a link to issue on GitHub and configuration for SAMBA there: [Sabre\DAV\Exception: Could not rename part file to final file](https://help.nextcloud.com/t/sabre-dav-exception-could-not-rename-part-file-to-final-file/53044/3)

---

<div class="post-metadata">

**Author:** ![Gannet](https://help.nextcloud.com/letter_avatar/gannet/32/6_22734026db12803ebb3e059622ac3534.png) [@Gannet](https://help.nextcloud.com/u/Gannet)\
**Post date:** [December 3, 2019, 5:09pm UTC](https://help.nextcloud.com/t/16-0-6-upgraded-to-17-0-1-fatal-sabre-dav-exception-badrequest-expected-filesize-of-in-log/64553/8 "2019-12-03T17:09:55Z")

</div>

There is SAMBA storage mounted in nextcloud but it is not used. And I am uploading file not on SAMBA storage when the error appears after uploading was cancelled. Or does it not matter?

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 10:45am UTC](https://help.nextcloud.com/t/16-0-6-upgraded-to-17-0-1-fatal-sabre-dav-exception-badrequest-expected-filesize-of-in-log/64553/9 "2024-12-04T10:45:14Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 4:00pm UTC](https://help.nextcloud.com/t/16-0-6-upgraded-to-17-0-1-fatal-sabre-dav-exception-badrequest-expected-filesize-of-in-log/64553/10 "2024-12-11T16:00:17Z")

</div>


