Downloads (non local) are capped at 2mb/s....I get 10mb/s local

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 version (eg, 20.0.5): 26
Operating system and version (eg, Ubuntu Server 22.04): Ubuntu Server 22.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.52
PHP version (eg, 7.4): 8.1

The issue you are facing:

Download speeds outside of my local network are capped at 2mb/s. This can be tested as soon as I use a VPN - speeds drop from 10mb/s to 2bm/s.
Other downloads outside of nextcloud are very good.

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

Steps to replicate it: Try and download anything from my nextcloud outside of my local network.

The output of your Nextcloud log in Admin > Logging:

Not sure what log to show...

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

<?php
$CONFIG = array (
  'instanceid' => 'ocim0r96utwm',
  'passwordsalt' => 'CC8OqNUPaU7OkwLWU6aRsWDPpGHfUW',
  'secret' => 'Xc39ea0xDJ6iHcT1MFAeI1B0f2Pf1utFTUk8Ceqd5IUBKxcE',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'mtsfilmscloud.com.au',
    2 => '127.0.1.1',
    2 => '192.168.1.230',
    3 => '10.42.0.43',
  ),
  'datadirectory' => '/var/www/mtsfilmscloud.com.au/data',
  'dbtype' => 'mysql',
  'version' => '26.0.0.11',
  'overwrite.cli.url' => 'http://192.168.1.230',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '************',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'default_phone_region' => 'AU',

);

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

Nothing to share?```

PASTE HERE

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

No errors according to nextcloud```

You pass through a VPN to simulate an external access? And you share the same connection as the server? What is the up/down speed of your internet connection?

Like this, it can be a lot of things. Regarding the logs it can be interesting to know the difference between a local and remote access. There can be things like reverse DNS lookup for the logs (domain name system - Apache httpd won't stop doing reverse DNS requests for clients' IPs - Server Fault) that can slow down the overall performance.

And there could be network stuff as well. As you write that you don’t have issues with other services, I suppose it is just Nextcloud. As a next step, you could just do a static download via the webserver (large iso-file or something) and see if you have the same issue. That way, you see if it is Nextcloud-specific or not.

Hey thanks for the reply, much appreciated.

The slow speeds were noticed when I connected from home, then asked a friend and they got the same speed cap (it’s right bang on 2MB/s). When back in at the server’s network (local), the speeds are 10Mb/s. Then I thought, I wonder if a VPN can simulate the external network slow down effect, and wouldn’t you know - bang on speed cap of 2MB/s. So I’m not sure if that’s an accurate test, but it is interesting.

Of course I tested my internet download speeds outside of Nextcloud and they are 10MB/s from many test sights. I then check speeds to and from the server without going through the internet (static download?) and they are super fast (700MB/s using 10GbE). I did this from a samba share.

I think you could be onto something regarding the up/down speed…specifically the up speed. Wouldn’t that be the cause? If the up speed is 2MB/s wouldn’t that theoretically cap the external down speed?

My internet max upload speed is 18Mbps which equates to 2MB/s…is that my issue do you think?

Thanks for your patience, I’m still learning all this stuff.