Timeout error accessing Nextcloud

Nextcloud version “latest” Docker
Operating system and version via Docker running on Synology DSM 6.the latest
Apache or nginx version Apache 2,4
PHP version 7.2

The issue you are facing:

After entering (correct) username and password I eventually receive a “405” error. Calendar and contact apps running on desktop cannot connect to Nextcloud calendar or contact apps running on server - timeout error.

iOS Nextcloud on iPad can access files.

So NC is running, I can access via WebDAV but not HTTP/S.

Is this the first time you’ve seen this error? Yes!

Steps to replicate it:

  1. go to https://nextcloud.mydomain.tld
  2. Enter username and password
  3. receive 405 error message

The output of your Nextcloud log in Admin > Logging:

Unable to access (see above)

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

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => 'xxxxx',
  'passwordsalt' => 'xxxxx',
  'secret' => 'xxxxx',
  'trusted_domains' => 
  array (
    0 => '192.168.1.2:8080',
    1 => 'nextcloud.mydomain.tld',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '22.1.1.2',
  'overwrite.cli.url' => 'http://192.168.1.2:8080',
  'dbname' => 'mydatabase',
  'dbhost' => '192.168.1.2:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'myuser',
  'dbpassword' => 'xxxxx',
  'installed' => true,
  'overwriteprotocol' => 'https',
  'maintenance' => false,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 'nextcloud.mydomain.tld',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'nextcloud.mydomain.tld',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'nextcloud',
  'mail_smtppassword' => 'xxxxx',
  'theme' => '',
  'loglevel' => 2,
  'app_install_overwrite' => 
  array (
    0 => 'groupfolders',
  ),
);

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

I'll have to look for that, if its needed...

This a line from the Nginx error log

2021/09/03 15:37:58 [error] 18272#18272: *72268 upstream timed out (110:
Connection timed out) while reading response header from upstream,
client: 12.34.56.78, server: nextcloud.myserver.tld, request: "PROPFIND
/remote.php/dav/principals/users/myusername/ HTTP/2.0", upstream:
"http://127.0.0.1:8080/remote.php/dav/principals/users/myusername/", host:
"nextcloud.myserver.tld"

What does this tell me?