Access to NC from home network causes router (!) reboot!

Nextcloud version (eg, 12.0.2): 15.0.7.0
Operating system and version (eg, Ubuntu 17.04): Debian 4.19.37
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1): 7.2.17

The issue you are facing:

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

Steps to replicate it:

Instance of Nextcloud was installed following Technodadlife’s videos on youtube
Duckdns subdomain was created, letsencrypt set up (all according to TDL videos on youtube).

I can now access my NC instance via the duckdns subdomain. However, uploading and downloading files works for a short time, then the router reboots.
This behaviour only arises when I am on my home network.
If I access my NC from the work network, everything syncs fine.

To me, this seems like an internal routing error caused my a misconfigured NC instance.

The output of your Nextcloud log in Admin > Logging:

Accessing this information is impossible through the webinterface. Loading icon appears and stays. Other settings categories can be accessed.

See error.log in nginx error.log file: failed to open stream: Permission denied at \/config\/www\/nextcloud\/apps\/logreader\/lib\/Controller\/LogController.php
Can I access the log file directly from the server?

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

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'REDACTED',
  'passwordsalt' => 'REDACTED',
  'secret' => 'REDACTED',
  'trusted_domains' =>
  array (
    0 => 'INTERNAL IP of server:port',
    1 => 'REDACTED.duckdns.org',
  ),
  'trusted_proxies' =>
  array (
    0 => 'letsencrypt',
  ),
  'overwrite.cli.url' => 'https://REDACTED.duckdns.org',
  'overwritehost' => 'REDACTED.duckdns.org',
  'overwriteprotocol' => 'https',
  'dbtype' => 'mysql',
  'version' => '15.0.7.0',
  'dbname' => 'nextcloud',
  'dbhost' => 'INTERNAL IP:PORT',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'REDACTED',
  'dbpassword' => 'REDACTED',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'REDACTED',
  'mail_domain' => 'REDACTED',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'REDACTED',
  'mail_smtpport' => 'REDACTED',
  'mail_smtpname' => 'REDACTED',
  'mail_smtppassword' => 'REDACTED',
);

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

I have attached the error.log file taken from Nextcloud/log/nginx:


2019/05/30 08:40:15 [error] 313#313: *21680 access forbidden by rule, client: 172.18.0.2, server: _, request: "GET /.well-known/security.txt HTTP/1.1", host: "REDACTED.duckdns.org:443"
2019/07/21 14:54:08 [error] 312#312: *67255 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] Host is unreachable in /config/www/nextcloud/lib/private/DB/Connection.php:64
Stack trace:
#0 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /config/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array,...
PHP message: PHP Fatal error:  Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] Host is unreachable in /config/www/nextcloud/lib/private/DB/Connection.php:64
Stack trace:
#0 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /config/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine
2019/07/21 14:54:14 [error] 312#312: *67257 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] Host is unreachable in /config/www/nextcloud/lib/private/DB/Connection.php:64
Stack trace:
#0 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /config/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array,...
PHP message: PHP Fatal error:  Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] Host is unreachable in /config/www/nextcloud/lib/private/DB/Connection.php:64
Stack trace:
#0 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /config/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine
2019/08/04 11:00:45 [error] 311#311: *1 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:30 [error] 313#313: *178 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /css/files_sharing/6a15-7d4f-mergedAdditionalStyles.css?v=db81cddf52fdb3c8ca1e4c859e214124-6a154fe0-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:30 [error] 310#310: *180 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /css/files_texteditor/b1d7-7d4f-merged.css?v=db81cddf52fdb3c8ca1e4c859e214124-b1d71238-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:30 [error] 311#311: *171 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /css/comments/35c3-7d4f-autocomplete.css?v=db81cddf52fdb3c8ca1e4c859e214124-35c36e89-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:30 [error] 312#312: *187 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /css/core/3108-7d4f-systemtags.css?v=db81cddf52fdb3c8ca1e4c859e214124-87470ca2-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 312#312: *189 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /css/systemtags/35c3-7d4f-systemtagsfilelist.css?v=db81cddf52fdb3c8ca1e4c859e214124-35c36e89-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 310#310: *172 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /css/comments/35c3-7d4f-comments.css?v=db81cddf52fdb3c8ca1e4c859e214124-35c36e89-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 312#312: *203 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /avatar/user/32?v=3 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 310#310: *212 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /js/files/merged-index.js?v=87470ca2-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 312#312: *233 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /js/spreed/merged-files.js?v=87470ca2-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 310#310: *217 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /js/activity/activity-sidebar.js?v=87470ca2-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 312#312: *234 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /js/core/merged.js?v=87470ca2-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 310#310: *244 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /apps/theming/favicon/files?v=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 312#312: *235 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /js/systemtags/merged.js?v=87470ca2-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 313#313: *186 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /css/spreed/1831-7d4f-merged-files.css?v=db81cddf52fdb3c8ca1e4c859e214124-18313f04-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 311#311: *167 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /css/files_trashbin/35c3-7d4f-trash.css?v=db81cddf52fdb3c8ca1e4c859e214124-35c36e89-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 311#311: *191 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /css/icons/icons-vars.css?v=1558896779 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 311#311: *220 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /js/comments/merged.js?v=87470ca2-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 311#311: *221 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /js/files_versions/merged.js?v=87470ca2-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 311#311: *227 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /js/files_sharing/additionalScripts.js?v=87470ca2-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 311#311: *230 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /js/gallery/scripts-for-file-app.js?v=87470ca2-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 311#311: *229 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /js/files_texteditor/merged.js?v=87470ca2-0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 17:27:31 [error] 311#311: *243 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /apps/theming/icon/files?v=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 21:49:06 [error] 308#308: *764 FastCGI sent in stderr: "PHP message: {"reqId":"kuo3G3rxbbbFzmtG2HMY","level":3,"time":"2019-08-04T19:49:06+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/apps\/logreader\/get?offset=0&count=50&levels=11111","message":"fopen(\/data\/nextcloud.log): failed to open stream: Permission denied at \/config\/www\/nextcloud\/apps\/logreader\/lib\/Controller\/LogController.php#71","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"15.0.7.0"}
PHP message: {"reqId":"kuo3G3rxbbbFzmtG2HMY","level":3,"time":"2019-08-04T19:49:06+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"index","method":"GET","url":"\/apps\/logreader\/get?offset=0&count=50&levels=11111","message":{"Exception":"Exception","Message":"Error while opening \/data\/nextcloud.log","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/apps\/logreader\/lib\/Controller\/LogController.php","line":91,"function":"getLogIterator","class":"OCA\\LogReader\\Controller\\LogController","type":"->","args":["11111"]},{"file":"\/config\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"get","class":"OCA\\LogReader\\Controller\\LogController","type":"->","args":[50,0,"11111"]},{"file":"\/config\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\LogReader\\Controller\\LogController"},"get"]},{"file":"\/config\/www\/ne" while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /apps/logreader/get?offset=0&count=50&levels=11111 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 21:49:06 [error] 308#308: *764 FastCGI sent in stderr: "PHP message: {"reqId":"kuo3G3rxbbbFzmtG2HMY","level":3,"time":"2019-08-04T19:49:06+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/apps\/logreader\/get?offset=0&count=50&levels=11111","message":"fopen(\/data\/nextcloud.log): failed to open stream: Permission denied at \/config\/www\/nextcloud\/lib\/private\/Log\/File.php#139","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"15.0.7.0"}" while reading upstream, client: 172.18.0.3, server: _, request: "GET /apps/logreader/get?offset=0&count=50&levels=11111 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 21:50:06 [error] 308#308: *856 FastCGI sent in stderr: "PHP message: {"reqId":"U8RuX6HAbkP0jeEGfMvB","level":3,"time":"2019-08-04T19:50:06+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/settings\/admin\/talk","message":"touch(): Unable to create file \/data\/appdata_ocg5gym6ij2j\/css\/spreed\/1831-7d4f-settings-admin.css because Permission denied at \/config\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#206","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"15.0.7.0"}
PHP message: {"reqId":"U8RuX6HAbkP0jeEGfMvB","level":3,"time":"2019-08-04T19:50:06+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/settings\/admin\/talk","message":"touch(): Unable to create file \/data\/appdata_ocg5gym6ij2j\/css\/spreed\/1831-7d4f-settings-admin.css.deps because Permission denied at \/config\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#206","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"15.0.7.0"}
PHP message: {"reqId":"U8RuX6HAbkP0jeEGfMvB","level":3,"time":"2019-08-04T19:50:06+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/settings\/admin\/talk","message":"file_put_contents(\/data\/appdata_ocg5gym6ij2j\/css\/icons\/icons-vars.css): failed to open stream: Permission denied at \/config\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#220","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"15.0.7.0"}
PHP message: {"reqId":"U8RuX6HAbkP0jeEGfMvB","level":3,"time":"2019-08-04T19:50:06+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"index","method":"GET","url":"\/settings\/admin\/talk","message":{"Exception":"OCP\\Files\\GenericFileException","Message":"file_put_contents failed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/private\/Files\/SimpleFS\/SimpleFile.php","line":106,"function":"putContent
2019/08/04 21:50:06 [error] 308#308: *856 FastCGI sent in stderr: "PHP message: {"reqId":"U8RuX6HAbkP0jeEGfMvB","level":3,"time":"2019-08-04T19:50:06+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/settings\/admin\/talk","message":"fopen(\/data\/nextcloud.log): failed to open stream: Permission denied at \/config\/www\/nextcloud\/lib\/private\/Log\/File.php#139","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"15.0.7.0"}" while reading upstream, client: 172.18.0.3, server: _, request: "GET /settings/admin/talk HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 21:50:27 [error] 308#308: *986 FastCGI sent in stderr: "PHP message: {"reqId":"DPcElmIFMiLC8nVhKGQ9","level":3,"time":"2019-08-04T19:50:27+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/apps\/logreader\/get?offset=0&count=50&levels=11111","message":"fopen(\/data\/nextcloud.log): failed to open stream: Permission denied at \/config\/www\/nextcloud\/apps\/logreader\/lib\/Controller\/LogController.php#71","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"15.0.7.0"}
PHP message: {"reqId":"DPcElmIFMiLC8nVhKGQ9","level":3,"time":"2019-08-04T19:50:27+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"index","method":"GET","url":"\/apps\/logreader\/get?offset=0&count=50&levels=11111","message":{"Exception":"Exception","Message":"Error while opening \/data\/nextcloud.log","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/apps\/logreader\/lib\/Controller\/LogController.php","line":91,"function":"getLogIterator","class":"OCA\\LogReader\\Controller\\LogController","type":"->","args":["11111"]},{"file":"\/config\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"get","class":"OCA\\LogReader\\Controller\\LogController","type":"->","args":[50,0,"11111"]},{"file":"\/config\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\LogReader\\Controller\\LogController"},"get"]},{"file":"\/config\/www\/ne" while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /apps/logreader/get?offset=0&count=50&levels=11111 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 21:50:27 [error] 308#308: *986 FastCGI sent in stderr: "PHP message: {"reqId":"DPcElmIFMiLC8nVhKGQ9","level":3,"time":"2019-08-04T19:50:27+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/apps\/logreader\/get?offset=0&count=50&levels=11111","message":"fopen(\/data\/nextcloud.log): failed to open stream: Permission denied at \/config\/www\/nextcloud\/lib\/private\/Log\/File.php#139","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"15.0.7.0"}" while reading upstream, client: 172.18.0.3, server: _, request: "GET /apps/logreader/get?offset=0&count=50&levels=11111 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 21:56:18 [error] 308#308: *1182 FastCGI sent in stderr: "PHP message: {"reqId":"0qbtHFLdvPuDA66awsek","level":3,"time":"2019-08-04T19:56:18+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/ocs\/v2.php\/apps\/updatenotification\/api\/v1\/applist\/16.0.3.0","message":"file_put_contents(\/data\/appdata_ocg5gym6ij2j\/appstore\/future-apps.json): failed to open stream: Permission denied at \/config\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#220","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"15.0.7.0"}" while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /ocs/v2.php/apps/updatenotification/api/v1/applist/16.0.3.0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 21:56:18 [error] 308#308: *1182 FastCGI sent in stderr: "PHP message: {"reqId":"0qbtHFLdvPuDA66awsek","level":3,"time":"2019-08-04T19:56:18+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/ocs\/v2.php\/apps\/updatenotification\/api\/v1\/applist\/16.0.3.0","message":"fopen(\/data\/nextcloud.log): failed to open stream: Permission denied at \/config\/www\/nextcloud\/lib\/private\/Log\/File.php#139","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"15.0.7.0"}" while reading upstream, client: 172.18.0.3, server: _, request: "GET /ocs/v2.php/apps/updatenotification/api/v1/applist/16.0.3.0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 21:57:50 [error] 308#308: *1257 FastCGI sent in stderr: "PHP message: {"reqId":"Oa9QHwJOuYexBoUrlTMw","level":3,"time":"2019-08-04T19:57:50+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/apps\/logreader\/get?offset=0&count=50&levels=11111","message":"fopen(\/data\/nextcloud.log): failed to open stream: Permission denied at \/config\/www\/nextcloud\/apps\/logreader\/lib\/Controller\/LogController.php#71","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"15.0.7.0"}
PHP message: {"reqId":"Oa9QHwJOuYexBoUrlTMw","level":3,"time":"2019-08-04T19:57:50+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"index","method":"GET","url":"\/apps\/logreader\/get?offset=0&count=50&levels=11111","message":{"Exception":"Exception","Message":"Error while opening \/data\/nextcloud.log","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/apps\/logreader\/lib\/Controller\/LogController.php","line":91,"function":"getLogIterator","class":"OCA\\LogReader\\Controller\\LogController","type":"->","args":["11111"]},{"file":"\/config\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"get","class":"OCA\\LogReader\\Controller\\LogController","type":"->","args":[50,0,"11111"]},{"file":"\/config\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\LogReader\\Controller\\LogController"},"get"]},{"file":"\/config\/www\/ne" while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /apps/logreader/get?offset=0&count=50&levels=11111 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 21:57:50 [error] 308#308: *1257 FastCGI sent in stderr: "PHP message: {"reqId":"Oa9QHwJOuYexBoUrlTMw","level":3,"time":"2019-08-04T19:57:50+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/apps\/logreader\/get?offset=0&count=50&levels=11111","message":"fopen(\/data\/nextcloud.log): failed to open stream: Permission denied at \/config\/www\/nextcloud\/lib\/private\/Log\/File.php#139","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"15.0.7.0"}" while reading upstream, client: 172.18.0.3, server: _, request: "GET /apps/logreader/get?offset=0&count=50&levels=11111 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 22:19:55 [error] 307#307: *1683 FastCGI sent in stderr: "PHP message: {"reqId":"VZOtQukKBiaSMXZJeWjW","level":3,"time":"2019-08-04T20:19:55+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/avatar\/admin\/345?v=0","message":"touch(): Unable to create file \/data\/appdata_ocg5gym6ij2j\/avatar\/admin\/avatar.345.png because Permission denied at \/config\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#206","userAgent":"Mozilla\/5.0 (Linux; Android 9; ONEPLUS A3003) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/76.0.3809.89 Mobile Safari\/537.36","version":"15.0.7.0"}
PHP message: {"reqId":"VZOtQukKBiaSMXZJeWjW","level":3,"time":"2019-08-04T20:19:55+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/avatar\/admin\/345?v=0","message":"stat(): stat failed for \/data\/appdata_ocg5gym6ij2j\/avatar\/admin\/avatar.345.png at \/config\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#142","userAgent":"Mozilla\/5.0 (Linux; Android 9; ONEPLUS A3003) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/76.0.3809.89 Mobile Safari\/537.36","version":"15.0.7.0"}
PHP message: {"reqId":"VZOtQukKBiaSMXZJeWjW","level":3,"time":"2019-08-04T20:19:55+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/avatar\/admin\/345?v=0","message":"fopen(\/data\/nextcloud.log): failed to open stream: Permission denied at \/config\/www\/nextcloud\/lib\/private\/Log\/File.php#139","userAgent":"Mozilla\/5.0 (Linux; Android 9; ONEPLUS A3003) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/76.0.3809.89 Mobile Safari\/537.36","version":"15.0.7.0"}" while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /avatar/admin/345?v=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 22:20:05 [error] 308#308: *1708 FastCGI sent in stderr: "PHP message: {"reqId":"BAxdD1XavRVP9z8H9evC","level":3,"time":"2019-08-04T20:20:05+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/apps\/logreader\/get?offset=0&count=50&levels=11111","message":"fopen(\/data\/nextcloud.log): failed to open stream: Permission denied at \/config\/www\/nextcloud\/apps\/logreader\/lib\/Controller\/LogController.php#71","userAgent":"Mozilla\/5.0 (Linux; Android 9; ONEPLUS A3003) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/76.0.3809.89 Mobile Safari\/537.36","version":"15.0.7.0"}
PHP message: {"reqId":"BAxdD1XavRVP9z8H9evC","level":3,"time":"2019-08-04T20:20:05+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"index","method":"GET","url":"\/apps\/logreader\/get?offset=0&count=50&levels=11111","message":{"Exception":"Exception","Message":"Error while opening \/data\/nextcloud.log","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/apps\/logreader\/lib\/Controller\/LogController.php","line":91,"function":"getLogIterator","class":"OCA\\LogReader\\Controller\\LogController","type":"->","args":["11111"]},{"file":"\/config\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"get","class":"OCA\\LogReader\\Controller\\LogController","type":"->","args":[50,0,"11111"]},{"file":"\/config\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\LogReader\\Controller\\LogController"},"get"]},{"file":"\/config\/www\/ne" while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /apps/logreader/get?offset=0&count=50&levels=11111 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"
2019/08/04 22:20:05 [error] 308#308: *1708 FastCGI sent in stderr: "PHP message: {"reqId":"BAxdD1XavRVP9z8H9evC","level":3,"time":"2019-08-04T20:20:05+00:00","remoteAddr":"172.18.0.3","user":"admin","app":"PHP","method":"GET","url":"\/apps\/logreader\/get?offset=0&count=50&levels=11111","message":"fopen(\/data\/nextcloud.log): failed to open stream: Permission denied at \/config\/www\/nextcloud\/lib\/private\/Log\/File.php#139","userAgent":"Mozilla\/5.0 (Linux; Android 9; ONEPLUS A3003) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/76.0.3809.89 Mobile Safari\/537.36","version":"15.0.7.0"}" while reading upstream, client: 172.18.0.3, server: _, request: "GET /apps/logreader/get?offset=0&count=50&levels=11111 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "REDACTED.duckdns.org:443"


Sounds like you need a real router. I run mine behind pfsense.

When you access it from on the same network, are you accessing it via the public IP or LAN IP? If the former, that could give a weak router a real stomach ache. Most serious routers won’t even allow that.