External Access, No HTTPS, & Mounted Drives

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): 23.0.0
Operating system and version (eg, Ubuntu 20.04): TrueNAS 12.3
Apache or nginx version (eg, Apache 2.4.25): nginx
PHP version (eg, 7.4): 7.4

The issue you are facing:
Unable to get external IP access to work, with static IP

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

Steps to replicate it:

  1. install plugin, configure router to open on ports 80&443 inbound
  2. run nextcloud, can axs and login at local IP, cannot at external IP - two different WANS can’t access
  3. configured ipfw to allow 80 and 443, port checking tools online say ports are open

The output of your Nextcloud log in Admin > Logging:

{"reqId":"70coUZ19psVZq6mT3Za6","level":3,"time":"2022-01-05T20:28:10+00:00","remoteAddr":"192.168.0.10","user":"--","app":"index","method":"GET","url":"/apps/accessibility/css/user-a82fd95db10ff25dfad39f07372ebe37","message":"Could not create folder","userAgent":"Mozilla/5.0 (Windows NT 10.0; WOW64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4641.60 Safari/537.36","version":"23.0.0.10","exception":{"Exception":"OCP\\Files\\NotPermittedException","Message":"Could not create folder","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/lib/private/Files/AppData/AppData.php","line":156,"function":"newFolder","class":"OC\\Files\\Node\\Folder","type":"->","args":["icons"]},{"file":"/usr/local/www/nextcloud/lib/private/Template/IconsCacher.php","line":89,"function":"newFolder","class":"OC\\Files\\AppData\\AppData","type":"->","args":["icons"]},{"function":"__construct","class":"OC\\Template\\IconsCacher","type":"->","args":[{"__class__":"OC\\Log"},{"__class__":"OC\\Files\\AppData\\Factory"},{"__class__":"OC\\URLGenerator","userSession":{"__class__":"OC\\User\\Session"}},{"__class__":"OC\\AppFramework\\Utility\\TimeFactory"}]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"newInstanceArgs","class":"ReflectionClass","type":"->","args":[[{"__class__":"OC\\Log"},{"__class__":"OC\\Files\\AppData\\Factory"},{"__class__":"OC\\URLGenerator","userSession":{"__class__":"OC\\User\\Session"}},{"__class__":"OC\\AppFramework\\Utility\\TimeFactory"}]]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[{"__class__":"ReflectionClass","name":"OC\\Template\\IconsCacher"}]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OC\\Template\\IconsCacher"]},{"file":"/usr/local/www/nextcloud/lib/private/ServerContainer.php","line":161,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OC\\Template\\IconsCacher",true]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":438,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OC\\Template\\IconsCacher",true]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":87,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OC\\Template\\IconsCacher",true]},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"array_map","args":[{"__class__":"Closure"},[{"__class__":"ReflectionParameter","name":"appName"},{"__class__":"ReflectionParameter","name":"request"},{"__class__":"ReflectionParameter","name":"config"},{"__class__":"ReflectionParameter","name":"logger"},{"__class__":"ReflectionParameter","name":"timeFactory"},"And 4 more entries, set log level to debug to see all entries"]]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[{"__class__":"ReflectionClass","name":"OCA\\Accessibility\\Controller\\AccessibilityController"}]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Accessibility\\Controller\\AccessibilityController"]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":463,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Accessibility\\Controller\\AccessibilityController"]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":435,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Accessibility\\Controller\\AccessibilityController"]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/App.php","line":144,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Accessibility\\Controller\\AccessibilityController"]},{"file":"/usr/local/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Accessibility\\Controller\\AccessibilityController","getCss",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"md5":"a82fd95db10ff25dfad39f07372ebe37","_route":"accessibility.accessibility.getCss"}]},{"file":"/usr/local/www/nextcloud/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/accessibility/css/user-a82fd95db10ff25dfad39f07372ebe37"]},{"file":"/usr/local/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/usr/local/www/nextcloud/lib/private/Files/Node/Folder.php","Line":173,"CustomMessage":"--"},"id":"61d6445a60bda"}

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

<?php
$CONFIG = array (
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/usr/local/www/nextcloud/apps',
      'url' => '/apps',
      'writable' => true,
    ),
    1 =>
    array (
      'path' => '/usr/local/www/nextcloud/apps-pkg',
      'url' => '/apps-pkg',
      'writable' => false,
    ),
  ),
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'one-click-instance' => true,
  'one-click-instance.user-limit' => 100,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'localhost',
  ),
  'passwordsalt' => 'x',
  'secret' => 'x',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '192.168.0.15',
    2 => '192.168.0.110',
    3 => 'My External IP',
  ),
  'datadirectory' => '/usr/local/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '23.0.0.10',   
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_ncadmin',
  'dbpassword' => 'x',
  'installed' => true, 'dbhost' => 'localhost',
  'dbport' => '',
  'instanceid' => 'ocpjhqr5xnaq',
  'default_phone_region' => 'CA',
);

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

2022/01/05 12:13:39 [warn] 98325#101334: "ssl_stapling" ignored, no OCSP respond
2022/01/05 12:13:39 [warn] 98325#101334: "ssl_stapling" ignored, no OCSP respond
2022/01/05 12:13:39 [warn] 98326#101334: "ssl_stapling" ignored, no OCSP respond
2022/01/05 12:13:39 [warn] 98326#101334: "ssl_stapling" ignored, no OCSP respond
2022/01/05 12:21:44 [warn] 892#101031: "ssl_stapling" ignored, no OCSP responder
2022/01/05 12:21:44 [warn] 892#101031: "ssl_stapling" ignored, no OCSP responder
2022/01/05 12:21:44 [warn] 900#101031: "ssl_stapling" ignored, no OCSP responder
2022/01/05 12:21:44 [warn] 900#101031: "ssl_stapling" ignored, no OCSP responder
2022/01/05 12:34:43 [warn] 3365#100341: "ssl_stapling" ignored, no OCSP responde
2022/01/05 12:34:43 [warn] 3365#100341: "ssl_stapling" ignored, no OCSP responde
2022/01/05 12:34:43 [warn] 3372#100341: "ssl_stapling" ignored, no OCSP responde
2022/01/05 12:34:43 [warn] 3372#100341: "ssl_stapling" ignored, no OCSP responde
2022/01/05 12:40:10 [warn] 5624#101449: "ssl_stapling" ignored, no OCSP responde
2022/01/05 12:40:10 [warn] 5624#101449: "ssl_stapling" ignored, no OCSP responde
2022/01/05 12:40:10 [warn] 5631#101449: "ssl_stapling" ignored, no OCSP responde
2022/01/05 12:40:10 [warn] 5631#101449: "ssl_stapling" ignored, no OCSP responde
2022/01/05 12:50:52 [warn] 5643#100988: *5 an upstream response is buffered to a
2022/01/05 12:53:28 [warn] 5641#101018: *373 an upstream response is buffered to
2022/01/05 12:59:17 [warn] 5641#101018: *394 an upstream response is buffered to
2022/01/05 16:06:40 [warn] 5641#101018: *617 an upstream response is buffered to
2022/01/05 16:50:32 [warn] 5641#101018: *643 an upstream response is buffered to
2022/01/05 16:53:53 [warn] 12011#100938: "ssl_stapling" ignored, no OCSP respond
2022/01/05 16:53:53 [warn] 12011#100938: "ssl_stapling" ignored, no OCSP respond
2022/01/05 16:53:53 [warn] 12019#100938: "ssl_stapling" ignored, no OCSP respon

Please note, I have an SSH on another jail working flawlessly, it’s ports are open to standard for now. I can access it from both WANS no problem. Another Jail hosts my miniDLNA server which does not have access to the external network. This would be my 3rd jail, with it’s own vnet IP and functional internet

I cannot seem to figure out how to import the files from the mounting points I’ve made in TrueNAS

I also do not have HTTPS and would like that to be working.

This is my first adventure into this, please be kind with my formatting and lack of experience :slight_smile: