Failed to connect to the secure server address - how do you wish to proceed

Support intro

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.3
Operating system and version (eg, Ubuntu 20.04): Centos 7/docker
Apache or nginx version (eg, Apache 2.4.25): nginx 1.21.6 as reverse proxy and apache from nc 23.0.3-apache docker image
PHP version (eg, 7.4): 8.0.18

The issue you are facing:
I cannot connect to my own nextcloud server with nextclient client (version 3.4.4) using mas os monterey 12.3.1 (macbook pro 2017). Error:

Failed to connect to the secure server address - how do you wish to proceed

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

Steps to replicate it:

Simply following the wizard steps and after entering the url, the error pops up.

The output of your Nextcloud log in Admin > Logging:

nothing related to my requests at all

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

<?php
$CONFIG = array (
  'overwriteprotocol' => 'https',
  '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' => 'randominstanceid',
  'passwordsalt' => 'salt',
  'secret' => 'secret',
  'trusted_domains' =>
  array (
    0 => 'example.com',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '23.0.3.2',
  'overwrite.cli.url' => 'http://example.com',
  'dbname' => 'nextcloud',
  'dbhost' => 'next-db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => 'dbpassword',
  'installed' => true,
  'app_install_overwrite' =>
  array (
    0 => 'joplin',
  ),
  'loglevel' => 2,
  'maintenance' => false,
  'updater.secret' => '$2updatersecret',
  'mysql.utf8mb4' => false,
  'default_phone_region' => 'DE',
);

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

  • I’m not seeing any requests whatsoever coming from the client side. Now that I come to think of it, this looks like an independent client-side bug.

When I switch to http (which cannot work, because there’s a https redirect, but just for debugging purposes):

client_ip - - [12/May/2022:17:27:52 +0000] "GET /status.php HTTP/1.1" 301 169 "-" "Mozilla/5.0 (Macintosh) mirall/3.5.0git (build 10063) (Nextcloud, osx-21.4.0 ClientArchitecture: arm64 OsArchitecture: arm64)" "-"
client_ip - - [12/May/2022:17:27:52 +0000] "GET / HTTP/1.1" 301 169 "-" "Mozilla/5.0 (Macintosh) mirall/3.5.0git (build 10063) (Nextcloud, osx-21.4.0 ClientArchitecture: arm64 OsArchitecture: arm64)" "-"

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

No errors since February this year.

Nextcloud works perfectly on other laptops, such as m1 (same OS version as mentioned above, monterey), but here I’m using 3.3.6.

So on the laptop where I get the error I’ve tried downgrading to 3.3.6, but I get the same error.

Later Edit:
I’ve installed a random older version (3.1.2) and it simply works. I’m not sure what’s going on here.