Slow Download speeds from Cloud to PC over internet 200kB/s

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): 21.0.1
Operating system and version (eg, Ubuntu 20.04): Debian 4.19.181-1
Apache or nginx version (eg, Apache 2.4.25): NGINX 1.19.10-1~buster
PHP version (eg, 7.4): 8.0

The issue you are facing:
Slow Download speeds from Cloud to PC over internet

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

Steps to replicate it:

  1. Download anything from my cloud
  2. Download speeds are 200kb/s (But Bandwith is 250MBits Down and 50MBits up)
  3. But when VPN activated, Download is 1mb/s

The output of your Nextcloud log in Admin > Logging:

No Errors

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

<?php
$CONFIG = array (
  'instanceid' => '***********',
  'passwordsalt' => '****************',
  'secret' => '*********************',
  'trusted_domains' => 
  array (
    0 => '192.168.3.8',
    1 => '*************',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '21.0.1.1',
  'overwrite.cli.url' => 'https://********',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost:3307',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'root',
  'dbpassword' => '************',
  'installed' => true,
  'mail_from_address' => 'no-reply',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '**********',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.strato.de',
  'mail_smtpport' => '465',
  'mail_smtpname' => '***********',
  'mail_smtppassword' => '********************',
  'app_install_overwrite' => 
  array (
    0 => 'occweb',
    1 => 'uploaddetails',
    2 => 'files_clipboard',
  ),
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'activity_expire_days' => 14,
  'auth.bruteforce.protection.enabled' => true,
  'blacklisted_files' => 
  array (
    0 => '.htaccess',
    1 => 'Thumbs.db',
    2 => 'thumbs.db',
  ),
  'cron_log' => true,
  'default_phone_region' => 'DE',
  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\Movie',
    6 => 'OC\\Preview\\PDF',
    7 => 'OC\\Preview\\MP3',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
  ),
  'filesystem_check_changes' => 0,
  'filelocking.enabled' => 'true',
  'htaccess.RewriteBase' => '/',
  'integrity.check.disabled' => false,
  'knowledgebaseenabled' => false,
  'logfile' => '/var/nc_data/nextcloud.log',
  'logtimezone' => 'Europe/Berlin',
  'log_rotate_size' => 104857600,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'overwriteprotocol' => 'https',
  'preview_max_x' => 1024,
  'preview_max_y' => 768,
  'preview_max_scale_factor' => 1,
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'quota_include_external_storage' => false,
  'share_folder' => '/Freigaben',
  'skeletondirectory' => '',
  'trashbin_retention_obligation' => 'auto, 7',
  'updater.release.channel' => 'stable',
  'trusted_proxies' => 
  array (
    0 => '127.0.0.1',
    1 => '::1',
  ),
);

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

2021/05/17 03:36:49 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 03:36:49 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 03:36:54 [error] 4085#4085: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: "/etc/letsencrypt/ecc-certs/fullchain.pem"
2021/05/17 03:52:20 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 03:52:20 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 03:52:25 [error] 4085#4085: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: "/etc/letsencrypt/ecc-certs/fullchain.pem"
2021/05/17 05:40:12 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 05:40:12 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 05:40:17 [error] 4085#4085: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: "/etc/letsencrypt/ecc-certs/fullchain.pem"
2021/05/17 06:57:57 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 06:57:57 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 06:58:02 [error] 4085#4085: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: "/etc/letsencrypt/ecc-certs/fullchain.pem"
2021/05/17 08:52:43 [error] 4085#4085: recv() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 08:52:48 [error] 4085#4085: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: "/etc/letsencrypt/ecc-certs/fullchain.pem"
2021/05/17 11:08:41 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 11:08:41 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 11:08:46 [error] 4085#4085: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: "/etc/letsencrypt/ecc-certs/fullchain.pem"
2021/05/17 11:18:24 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 11:18:24 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 11:18:29 [error] 4085#4085: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: "/etc/letsencrypt/ecc-certs/fullchain.pem"
2021/05/17 12:04:00 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 12:04:00 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 12:04:05 [error] 4085#4085: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: "/etc/letsencrypt/ecc-certs/fullchain.pem"
2021/05/17 12:21:14 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 12:21:14 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 12:21:18 [crit] 4085#4085: *166516 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: ************, server: 0.0.0.0:443
2021/05/17 12:21:19 [error] 4085#4085: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: "/etc/letsencrypt/ecc-certs/fullchain.pem"
2021/05/17 13:50:56 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 13:50:56 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 13:51:01 [error] 4085#4085: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: "/etc/letsencrypt/ecc-certs/fullchain.pem"
2021/05/17 15:41:00 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 15:41:00 [error] 4085#4085: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 15:41:00 [error] 4086#4086: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 15:41:00 [error] 4086#4086: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.53:53
2021/05/17 15:41:05 [error] 4085#4085: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: "/etc/letsencrypt/ecc-certs/fullchain.pem"
2021/05/17 15:41:05 [error] 4086#4086: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: "/etc/letsencrypt/ecc-certs/fullchain.pem"
2021/05/17 15:42:28 [warn] 4085#4085: *167355 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/4/09/0000000094 while reading upstream, client: **.***.***.***, server: ********, request: "GET /s/bqSyJxExBAwNwpA/download/*********.rar HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.0-fpm.sock:", host: "*********"

Hello Nextcloud Community!
After searching hours and hours for the cause of this weird behavior of my cloud, I finally reached out to you.
The Problem:
Everytime People download files from my cloud over the internet, the download speeds are super low! (200kilobytes/s). Upload is fine though.
I’ve got a 250mbit down and 50mbit up inet connection to my cloud and in the local network, the speeds are also fine.
But I’ve also noticed something strange… Everytime I connect my pc to hide.me VPN, my cloud starts delivering the files quicker… (arround 1Megabyte/s) but its still slow.
I also checked the DNS settings to see, if i accidently use Telekoms DNS servers. But everything was alright. (1.1.1.1 and 8.8.8.8)
I also monitored the CPU and RAM usage and CPU is at 12% and RAM at 34%

I really tried my best but I couldn’t find the problem. Any advices? Maybe it’s a routing problem???

Thanks in advance guys!

~djrimzi

Its difficult to understand what your numbers mean since your use of units is invalid/incorrect and you’re jumping between different ways of writing things.

kb = kilo-bits
kB = kilo-bytes
Mb = mega-bits
MB = mega-bytes
mb = milli-bit, which is a THOUSANDTH of a bit, i.e., there are a thousand milli-bits in a bit. This unit makes no sense at all, since a bit is indivisible.

Try to keep your units straight in order to make your message easier to understand.

So I’m going to need a little more information to get going on this;

  1. You are downloading something, what is it? Are you trying to download a number of small files, or are you looking at the download speed for a single very large file? Smaller files will generally transfer slower because there is proportionally more overhead and less actual data being transferred, but very large files should give you a better sense of the real performance. For example, try something that is 1 GB or more and see what you get with that after the transfer stabilizes.
  2. The bandwidth you are referring to as 250 down and 50 up is uneven, so that sounds like a home internet connection. Where is your server with respect to that connection? Is it in a datacenter? If so, what are the network specs for the datacenter? Or is the server in your basement and you are downloading from it at a remote location? (in which case the “upstream” 50 is what you expect downstream at a remote location). Also, home internet connections will often mess with your speeds in order to favor your neighbor watching crappy tv shows over you performing real work, so you really need to conduct the test without using a home network connection to really understand what is going on. The fact that you are apparently getting a different performance when doing something with a VPN strongly suggests that this may be related. Generally speaking, a VPN will be considerably SLOWER than without it, since VPN typically involves an additional layer of encryption, however, your network service provider may interpret a VPN as you connecting to your employer, and therefore gives it a higher priority.
  3. What are the specifications of your server and what is going on in it when you are transferring data? Is it a proper server with a decent multi-core CPU and lots of RAM? Or is it a toy with an obsolete phone CPU and barely enough RAM to boot? Is the CPU under heavy load when you are transferring data? Or mostly idle?
1 Like

Hey! Thanks for your message. Edited my Post :slight_smile:

  1. This problem occures on all files. I tried large files (1-4GB) and small files (few MB) and the larger ones got the problem after arround 12 Megabytes.

  2. Yes, it is an home internet connection. The server is directly connected to the router per GBIT LAN. I’ve got this internet connection for 12 years now and never had any speed issues whatsoever with my provider. We got our own connection with no neighbours attached to it.

  3. The server is nothing special. It’s a Terra PC with an Intel Celeron 1007U with 2 Cores @ 1.5GHz and 4GB of DDR3 RAM. Nextcloud is running smoothly on it and on local network, I get full speed up and downloads, so performance shouldn’t be an issue :slight_smile:

EDIT: Maybe I should add that sometimes I get crappy download speeds from Github and when turning on the VPN, those are solved… But it’s only on Github… Strange

Thanks for your help! I very appreciate it!!!

~djrimzi