Support intro
Sorry to hear you’re facing problems
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
Nextcloud version 18.0.0:
Operating system and version Ubuntu 18.04.3:
Apache or nginx version nginx/1.17.5:
PHP version 7.3.14:
Mobile phone Nokia 8.1:
Android version 10:
The issue you are facing:
File upload to Nextcloud fails from mobile device or web portal.
Is this the first time you’ve seen this error? Y:
Steps to replicate it:
- Try to upload a file to Nextcloud.
- Upload seems to begin, percentage rises but very slowly, and eventually fails with “Connection error”.
The issue is with a cloud based (SSDNODES) server I’ve just built using this guide: https://blog.ssdnodes.com/blog/self-hosting-handbook/.Nextcloud, database, and nginx are all running in docker containers.
I have another Nextcloud cloud based (AWS) server running version 16, which I do not have the same issue with. This server doesn’t use docker or reverse proxies.
I’ve noticed these things:
- Uploads fail on wifi or cellular.
- Uploads are successful if my VPN is turned on.
I’ve had a look around and have seen similar issues with people using Cloudflare to manage their DNS, which is solved by disabling Browser Integrity Check. I am using Cloudflare, and disbling BIC doesn’t help my issue.
Any help would be great!
The output of your Nextcloud log in Admin > Logging:
[no app in context] Error: Sabre\DAV\Exception\BadRequest: Expected filesize of 1024000 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 696024 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/html/apps/dav/lib/Connector/Sabre/Directory.php line 156
OCA\DAV\Connector\Sabre\File->put(null)
1. /var/www/html/apps/dav/lib/Upload/UploadFolder.php line 47
OCA\DAV\Connector\Sabre\Directory->createFile("0000000002048000-0000000003071999", null)
2. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 1096
OCA\DAV\Upload\UploadFolder->createFile("0000000002048000-0000000003071999", null)
3. /var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 525
Sabre\DAV\Server->createFile("uploads/myuser/b0b ... 9", null, null)
4. <<closure>>
Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
5. /var/www/html/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
call_user_func_array([Sabre\DAV\CorePlugin {},"httpPut"], [Sabre\HTTP\Requ ... }])
6. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 479
Sabre\Event\EventEmitter->emit("method:PUT", [Sabre\HTTP\Requ ... }])
7. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 254
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
8. /var/www/html/apps/dav/lib/Server.php line 319
Sabre\DAV\Server->exec()
9. /var/www/html/apps/dav/appinfo/v2/remote.php line 35
OCA\DAV\Server->exec()
10. /var/www/html/remote.php line 165
require_once("/var/www/html/a ... p")
PUT /remote.php/dav/uploads/myuser/b0baa8183339d2466fa6ec782089fcc8/0000000002048000-0000000003071999
from X.X.X.X by myuser at 2020-02-01T06:17:49+00:00
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'instanceid' => 'XXX',
'passwordsalt' => 'XXX',
'secret' => 'XXX',
'trusted_domains' =>
array (
0 => 'nextcloud.my.domain',
),
'trusted_proxies' =>
array (
0 => 'X.X.X.X',
1 => 'X.X.X.X',
),
'overwrite.cli.url' => 'https://nextcloud.my.domain',
'overwriteprotocol' => 'https',
'overwritehost' => 'nextcloud.my.domain',
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '18.0.0.10',
'overwrite.cli.url' => 'http://nextcloud.my.domain',
'dbname' => 'nextcloud',
'dbhost' => 'db',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'XXX',
'dbpassword' => 'XXX',
'installed' => true,
'maintenance' => false,
);