Nextcloud version : 13.0.6, 14.0.1 and 14.0.2
Operating system and version : Debian 9.5
Apache or nginx version : Apache 2.4.25-3+deb9u5
PHP version : 7.0.30-0+deb9u1
The issue you are facing:
Some user have error when uploading files with iOS and Android sync client
Is this the first time you’ve seen this error? : N
Steps to replicate it:
- Upload lot of photos (~ 100)
The output of your Nextcloud log in Admin > Logging:
Sabre\DAV\Exception\BadRequest: expected filesize 3596972 got 180224
/home/sites/fiitelcom.fr/cloud/apps/dav/lib/Connector/Sabre/Directory.php - line 156:
OCA\DAV\Connector\Sabre\File->put(null)
/home/sites/fiitelcom.fr/cloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096:
OCA\DAV\Connector\Sabre\Directory->createFile("18-09-27 18-59-58 2198.jpg", null)
/home/sites/fiitelcom.fr/cloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 529:
Sabre\DAV\Server->createFile("Photos/2018 ... g", null, null)
Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
/home/sites/fiitelcom.fr/cloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:
call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])
/home/sites/fiitelcom.fr/cloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:
Sabre\Event\EventEmitter->emit("method:PUT", [ Sabre\HTTP ... }])
/home/sites/fiitelcom.fr/cloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
/home/sites/fiitelcom.fr/cloud/apps/dav/appinfo/v1/webdav.php - line 80:
Sabre\DAV\Server->exec()
/home/sites/fiitelcom.fr/cloud/remote.php - line 163:
require_once("/home/sites ... p")
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'ocwo3rkxhf0k',
'passwordsalt' => 'XXXXXXX',
'secret' => 'XXXXX',
'trusted_domains' =>
array (
0 => 'xxx.xxxxxx.xx',
),
'datadirectory' => '/home/sites/xxxxx.xx/cloud-datas',
'overwrite.cli.url' => 'https://xxxx.xxxxx.xx',
'dbtype' => 'mysql',
'version' => '14.0.1.1',
'dbname' => 'cloud',
'dbhost' => '10.0.0.20:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'xxxxx',
'dbpassword' => 'xxxxxxx',
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcached_servers' =>
array (
0 =>
array (
0 => 'localhost',
1 => 11211,
),
),
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
'timeout' => 0.0,
),
'user_backends' =>
array (
0 =>
array (
'class' => 'OC_User_IMAP',
'arguments' =>
array (
0 => '{xxx.xxxx.xxx:993/imap/ssl}',
),
),
),
'app.mail.accounts.default' =>
array (
'email' => '%USERID%',
'imapHost' => 'xxxx.xxxxx.xx',
'imapPort' => 993,
'imapUser' => '%USERID%',
'imapSslMode' => 'ssl',
'smtpHost' => 'xxxx.xxxxxx.xx',
'smtpPort' => 465,
'smtpUser' => '%USERID%',
'smtpSslMode' => 'ssl',
),
'mail_smtpmode' => 'sendmail',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => 'noreply',
'mail_domain' => 'xxxxx.xx',
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
'enable_previews' => false,
'updater.release.channel' => 'stable',
);
The output of your Apache/nginx/system log in /var/log/____
:
xx.xxx.xxx.xxx - xxxxxx@xxxxx.xx [28/Sep/2018:11:22:32 +0200] "PUT /remote.php/webdav/Photos/2018/09/18-09-27%2018-59-58%202198.jpg HTTP/1.1" 400 5770 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.22.2"
More info :
I’ve read this post https://forum.owncloud.org/viewtopic.php?f=17&t=32517 and have configured to set SSLRenegBufferSize in apache, LimitRequestBody is unlimited, tmp directory in on a disk who have a very large free space (more than 600Go), output_buffering is set to 0, and upload limit is set to 80Go
Anyone can help me to troubleshout this issue?
Thanks in advance.
Kev