Device: Odroid HC1
Nextcloud version: 13.0.0
Operating system and version: Ubuntu 16.04.4 LTS (32 bit)
Apache or nginx version: nginx/1.10.3
PHP version: 7.0
The issue you are facing:
Last week I’ve been trying to get Nextcloud to work on my Odroid HC1. However I keep running into the same problem time and again.
Everything works fine up to the point where I try to upload a file from outside the LAN. Over the internet only the first few hundred kilobytes come through, after which the upload fails. This happens with both the web interface and the Windows client. Via LAN everything works fine, even large files.
All file size limits are set at 2 GB, external ip added to trusted domains in config.php and ports on the router are forwarded. I have this issue with both apache as well as nginx. Also tested with device in router DMZ, etc.
Who has seen this before or can point me in the right direction?
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Install Nextcloud
- Add external ip to trusted domains
- Forward ports in router
- Upload file from outside LAN
The output of your Nextcloud log in Admin > Logging:
Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 504145 got 344064
/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 151: OCA\DAV\Connector\Sabre\File->put(Resource id #17)
/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096: OCA\DAV\Connector\Sabre\Directory->createFile('34431561983_af8...', Resource id #17)
/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 525: Sabre\DAV\Server->createFile('34431561983_af8...', Resource id #17, NULL)
[internal function] Sabre\DAV\CorePlugin->httpPut(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/html/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit('method PUT', Array)
/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/html/nextcloud/apps/dav/appinfo/v1/webdav.php - line 80: Sabre\DAV\Server->exec()
/var/www/html/nextcloud/remote.php - line 164: require_once('/var/www/html/n...')
{main}
Log is full with these errors, all at different filesizes:
Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 504145 got 352256
Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 690080 got 491520
Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 1129816 got 598016
Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 540672
etc.
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'xxxxxxxxxxxx',
'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'trusted_domains' =>
array (
0 => '192.168.2.111',
1 => 'ex.ter.al.ip',
),
'datadirectory' => '/media/hdd/nextcloud/data',
'overwrite.cli.url' => 'https://192.168.2.111/nextcloud',
'dbtype' => 'mysql',
'version' => '13.0.0.14',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'xxxx',
'dbpassword' => 'xxxxxxxxxxxxxxxxxxxxxxxx',
'installed' => true,
'memcache.local' => '\OC\Memcache\APCu',
);
The output of your Apache/nginx/system log in /var/log/____
:
No errors here.