Connection timed out on external connection

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, 18.0.2): 20.0.2.2
Operating system and version (eg, Ubuntu 20.04): Nextcloudpi 1.31.1
Apache or nginx version (eg, Apache 2.4.25): 2.4.38
PHP version (eg, 7.1): 7.3.19-1

The issue you are facing: Accessing my website in my local network using my external IP is fine, but when i use an external network, it keeps giving my “Connection timed out”

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

Steps to replicate it:

  1. Honestly, i dont know

The output of your Nextcloud log in Admin > Logging:

{"reqId":"zT7Axls9gth86OfhnFzs","level":3,"time":"2020-11-27T23:24:35+00:00","remoteAddr":"","user":"ncp","app":"no app in context","method":"","url":"--","message":{"Exception":"OCP\\AppFramework\\QueryException","Message":"Could not resolve trashManager! Class trashManager does not exist","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":126,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["trashManager"]},{"file":"/var/www/nextcloud/lib/private/ServerContainer.php","line":156,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["trashManager",true]},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":430,"function":"query","class":"OC\\ServerContainer","type":"->","args":["trashManager",true]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":56,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["trashManager"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":58,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["trashManager"]},{"function":"OC\\AppFramework\\Bootstrap\\{closure}","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":68,"function":"array_map","args":[{"__class__":"Closure"},[{"name":"serverContainer","__class__":"ReflectionParameter"},{"name":"logger","__class__":"ReflectionParameter"},{"name":"appManager","__class__":"ReflectionParameter"},"*** sensitive parameter replaced ***"]]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php","line":52,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->","args":[[{"__class__":"OCA\\Files_Trashbin\\AppInfo\\Application"},"registerTrashBackends"]]},{"file":"/var/www/nextcloud/apps/files_trashbin/lib/AppInfo/Application.php","line":57,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->","args":[[{"__class__":"OCA\\Files_Trashbin\\AppInfo\\Application"},"registerTrashBackends"]]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":168,"function":"boot","class":"OCA\\Files_Trashbin\\AppInfo\\Application","type":"->","args":[{"__class__":"OC\\AppFramework\\Bootstrap\\BootContext"}]},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":191,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":["files_trashbin"]},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":131,"function":"loadApp","class":"OC_App","type":"::","args":["files_trashbin"]},{"file":"/var/www/nextcloud/apps/dav/lib/AppInfo/Application.php","line":113,"function":"loadApps","class":"OC_App","type":"::","args":[["dav"]]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":168,"function":"boot","class":"OCA\\DAV\\AppInfo\\Application","type":"->","args":[{"__class__":"OC\\AppFramework\\Bootstrap\\BootContext"}]},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":191,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":["dav"]},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":131,"function":"loadApp","class":"OC_App","type":"::","args":["dav"]},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Util.php","line":201,"function":"loadApps","class":"OC_App","type":"::","args":[["filesystem"]]},{"file":"/var/www/nextcloud/lib/private/User/Session.php","line":554,"function":"setupFS","class":"OC_Util","type":"::","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/nextcloud/lib/private/User/Session.php","line":415,"function":"prepareUserLogin","class":"OC\\User\\Session","type":"->","args":[true,"*** sensitive parameter replaced ***"]},{"file":"/var/www/nextcloud/lib/private/User/Session.php","line":624,"function":"completeLogin","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/User/Session.php","line":367,"function":"loginWithPassword","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Setup.php","line":436,"function":"login","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/core/Command/Maintenance/Install.php","line":106,"function":"install","class":"OC\\Setup","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Maintenance\\Install","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":1000,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":271,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"OC\\Core\\Command\\Maintenance\\Install"},{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":147,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":215,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/nextcloud/console.php","line":100,"function":"run","class":"OC\\Console\\Application","type":"->","args":[]},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","Line":115,"CustomMessage":"Could not boot files_trashbinCould not resolve trashManager! Class trashManager does not exist"},"userAgent":"--","version":"20.0.2.2"}

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

<?php
$CONFIG = array (
  'passwordsalt' => 'uUUku6VUbelrV2ZVnRWwfZYLvPE19q',
  'secret' => 'FA/fhDyPkDShfWoOIlCye+0m8mgva+C3mH5ceaGzBIA3sowU',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    5 => 'nextcloudpi.local',
    7 => 'nextcloudpi',
    8 => 'nextcloudpi.lan',
    11 => '139.255.***.**',
    1 => '192.168.0.***',
    20 => 'cloudarrell.mooo.com',
    21 => 'cloudarrell.ddns.net',
    22 => '139.255.***.**',
  ),
  'datadirectory' => '/media/myCloudDrive/ncdata',
  'dbtype' => 'mysql',
  'version' => '20.0.2.2',
  'overwrite.cli.url' => 'https://192.168.0.***/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',                                                                 'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => '2FL3OV4aqcp/w7ssJs+EhunQQZMnIwNP6Qoq2D17dNs=',
  'installed' => true,
  'instanceid' => 'ocwn0g3teaag',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>                                                                                array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,                                                                         'password' => 'ToXIViNkctVunIXZgwpesY2wYx0ZTnkuhv5oOC8hFc4=',
  ),
  'tempdirectory' => '/media/myCloudDrive/ncdata/tmp',
  'mail_smtpmode' => 'sendmail',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'admin',
  'mail_domain' => 'ownyourbits.com',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'loglevel' => '2',
  'log_type' => 'file',
  'maintenance' => false,
  'logfile' => '/media/myCloudDrive/ncdata/nextcloud.log',
  'trusted_proxies' =>
  array (
    0 => 'cloudarrell.ddns.net',
    1 => 'cloudarrell.mooo.com',
  ),
);

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

[Thu Jan 14 00:00:01.513975 2021] [ssl:warn] [pid 863:tid 548172383600] AH01909: localhos
$[Thu Jan 14 00:00:01.514299 2021] [ssl:error] [pid 863:tid 548172383600] AH02217: ssl_sta
$[Thu Jan 14 00:00:01.514327 2021] [ssl:error] [pid 863:tid 548172383600] AH02604: Unable 
$[Thu Jan 14 00:00:01.515433 2021] [mpm_event:notice] [pid 863:tid 548172383600] AH00489: 
$[Thu Jan 14 00:00:01.515486 2021] [core:notice] [pid 863:tid 548172383600] AH00094: Comma
$[Thu Jan 14 01:53:19.561907 2021] [authnz_external:error] [pid 7009:tid 547978441104] [cl
$[Thu Jan 14 01:53:19.562147 2021] [auth_basic:error] [pid 7009:tid 547978441104] [client 
$[Thu Jan 14 01:53:32.350010 2021] [authnz_external:error] [pid 7009:tid 547978441104] [cl
$[Thu Jan 14 01:53:32.350114 2021] [auth_basic:error] [pid 7009:tid 547978441104] [client 
$[Thu Jan 14 01:54:42.940352 2021] [authnz_external:error] [pid 7010:tid 548003619216] [cl
$[Thu Jan 14 01:54:42.940479 2021] [auth_basic:error] [pid 7010:tid 548003619216] [client 
$[Thu Jan 14 02:18:30.823010 2021] [mpm_event:notice] [pid 863:tid 548172383600] AH00493: 
$[Thu Jan 14 02:18:30.853623 2021] [ssl:warn] [pid 863:tid 548172383600] AH01909: localhos
$[Thu Jan 14 02:18:30.853867 2021] [ssl:error] [pid 863:tid 548172383600] AH02217: ssl_sta
$[Thu Jan 14 02:18:30.853897 2021] [ssl:error] [pid 863:tid 548172383600] AH02604: Unable 
$[Thu Jan 14 02:18:30.854988 2021] [mpm_event:notice] [pid 863:tid 548172383600] AH00489: 
$[Thu Jan 14 02:18:30.855037 2021] [core:notice] [pid 863:tid 548172383600] AH00094: Comma
$[Thu Jan 14 02:24:41.136556 2021] [proxy_fcgi:error] [pid 7010:tid 547995226512] [client 
$[Thu Jan 14 02:24:41.136761 2021] [proxy_fcgi:error] [pid 7010:tid 547995226512] (104)Con
$[Thu Jan 14 02:24:41.147844 2021] [proxy_fcgi:error] [pid 7009:tid 547911274896] [client 
$[Thu Jan 14 02:24:41.147978 2021] [proxy_fcgi:error] [pid 7009:tid 547911274896] (104)Con
$[Thu Jan 14 02:24:41.149601 2021] [proxy_fcgi:error] [pid 7010:tid 547978441104] [client 
$[Thu Jan 14 02:24:41.149691 2021] [proxy_fcgi:error] [pid 7010:tid 547978441104] (104)Con
$[Thu Jan 14 02:24:41.471647 2021] [mpm_event:notice] [pid 863:tid 548172383600] AH00491: 
$[Thu Jan 14 02:25:02.115194 2021] [ssl:warn] [pid 683:tid 548306429296] AH01909: localhos
$[Thu Jan 14 02:25:02.117469 2021] [ssl:error] [pid 683:tid 548306429296] AH02217: ssl_sta
$[Thu Jan 14 02:25:02.117564 2021] [ssl:error] [pid 683:tid 548306429296] AH02604: Unable 
$[Thu Jan 14 02:25:02.150374 2021] [ssl:warn] [pid 849:tid 548306429296] AH01909: localhos
$[Thu Jan 14 02:25:02.150584 2021] [ssl:error] [pid 849:tid 548306429296] AH02217: ssl_sta
$[Thu Jan 14 02:25:02.150605 2021] [ssl:error] [pid 849:tid 548306429296] AH02604: Unable 
$[Thu Jan 14 02:25:02.154197 2021] [mpm_event:notice] [pid 849:tid 548306429296] AH00489: 
$[Thu Jan 14 02:25:02.154301 2021] [core:notice] [pid 849:tid 548306429296] AH00094: Comma
$[Thu Jan 14 02:25:02.287715 2021] [proxy:error] [pid 851:tid 548003316112] (2)No such fil
$[Thu Jan 14 02:25:02.287813 2021] [proxy_fcgi:error] [pid 851:tid 548003316112] [client 1
$[Thu Jan 14 02:25:02.584423 2021] [proxy:error] [pid 851:tid 547994915216] (2)No such fil
$[Thu Jan 14 02:25:02.584505 2021] [proxy_fcgi:error] [pid 851:tid 547994915216] [client 1
$[Thu Jan 14 02:25:02.587592 2021] [proxy:error] [pid 851:tid 548003316112] (2)No such fil
$[Thu Jan 14 02:25:02.587670 2021] [proxy_fcgi:error] [pid 851:tid 548003316112] [client 1
$[Thu Jan 14 02:45:37.789914 2021] [authnz_external:error] [pid 851:tid 548104094096] [cli
$[Thu Jan 14 02:45:37.790041 2021] [auth_basic:error] [pid 851:tid 548104094096] [client 1
$[Thu Jan 14 02:53:01.042921 2021] [mpm_event:notice] [pid 849:tid 548306429296] AH00493: 
$[Thu Jan 14 02:53:01.066617 2021] [ssl:warn] [pid 849:tid 548306429296] AH01909: localhos
$[Thu Jan 14 02:53:01.066830 2021] [ssl:error] [pid 849:tid 548306429296] AH02217: ssl_st
$[Thu Jan 14 02:53:01.066851 2021] [ssl:error] [pid 849:tid 548306429296] AH02604: Unable 
$[Thu Jan 14 02:53:01.067887 2021] [mpm_event:notice] [pid

Just to add, here is the picture of the connection timed out, this was taken when i trie to connect using my phone’s data connection

what do you mean by: external IL ?

ncp is on v.1.34.1 with NC 20.0.4

Can you run

sudo ncp-report

And share output (preferably via a pastebin service), if want further assistance.
Please also provide link to install method or medium used.

Sorry its a typo, it was supposed to be IP. Anyways, i found out the problem, turns out it was my ISP’s idiotic way of blocking port 80 and 443, by giving me that page instead of blocking it right away. It still puzzles me how i was able to access it just fine when i tried accessing it in my LAN, even though i was accessing it using my external IP. I’ve since then changed my port, and it is now working almost flawlessly. Thank you for your reply though, it is much appreciated.