Can't connect Mac-Client (3.4.4) to 23.0.3 (from TrueNAS plugin)

Hi all,

I’ve already successfully connected Fedora, iPad & iPhone to the server…So it basically works!

But I can’t get my MacBook get to connect.

Nextcloud version: 23.0.3
Operating system and version: MacOS 11.6.5
Apache or nginx version: Nginx 1.18.0
PHP version: 7.4.28

Is this the first time you’ve seen this error? : since setting it up it didn’t work on this mac

Steps to replicate it:

  1. Install the client on the Mac (doesn’t make a difference if I install it with brew or manually)
  2. Start the process of adding a server
  3. see the failure

This is the log from ~/Library/Preferences/Nextcloud/logs

2022-04-20 14:50:27:901 [ debug nextcloud.gui.wizard /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/gui/wizard/owncloudwizard.cpp:276 ]	[ OCC::OwncloudWizard::slotCurrentPageChanged ]:	Current Wizard page changed to  0
2022-04-20 14:50:29:612 [ debug nextcloud.gui.wizard /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/gui/wizard/owncloudwizard.cpp:276 ]	[ OCC::OwncloudWizard::slotCurrentPageChanged ]:	Current Wizard page changed to  1
2022-04-20 14:50:40:077 [ debug nextcloud.gui.wizard /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/gui/owncloudsetupwizard.cpp:171 ]	[ OCC::OwncloudSetupWizard::slotCheckServer ]:	Trying to look up system proxy
2022-04-20 14:50:40:077 [ info nextcloud.gui.wizard /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/gui/owncloudsetupwizard.cpp:187 ]:	No system proxy set by OS
2022-04-20 14:50:40:078 [ info nextcloud.sync.accessmanager /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/accessmanager.cpp:78 ]:	2 "" "https://my.dyndns.com/status.php" has X-Request-ID "0c36011b-fd76-4f2f-b8a4-b6b794b5abb1"
2022-04-20 14:50:40:078 [ debug nextcloud.sync.cookiejar /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/cookiejar.cpp:90 ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://my.dyndns.com/status.php") requests: ()
2022-04-20 14:50:40:078 [ info nextcloud.sync.networkjob /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/abstractnetworkjob.cpp:361 ]:	OCC::CheckServerJob created for "https://my.dyndns.com" + "status.php" "OCC::OwncloudSetupWizard"
2022-04-20 14:50:40:084 [ warning nextcloud.sync.networkjob /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/abstractnetworkjob.cpp:185 ]:	SslHandshakeFailedError:  "Im Ablauf des SSL-Protokolls ist ein Fehler aufgetreten."  : can be caused by a webserver wanting SSL client certificates
2022-04-20 14:50:40:084 [ warning nextcloud.sync.networkjob /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/abstractnetworkjob.cpp:224 ]:	QNetworkReply::SslHandshakeFailedError "Im Ablauf des SSL-Protokolls ist ein Fehler aufgetreten." QVariant(Invalid)
2022-04-20 14:50:40:084 [ warning nextcloud.sync.networkjob.checkserver /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/networkjobs.cpp:541 ]:	error: status.php replied  0 ""
2022-04-20 14:50:40:084 [ info nextcloud.sync.accessmanager /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/accessmanager.cpp:78 ]:	2 "" "https://my.dyndns.com" has X-Request-ID "30e88260-905d-4328-a994-0f5365dcc984"
2022-04-20 14:50:40:084 [ debug nextcloud.sync.cookiejar /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/cookiejar.cpp:90 ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://my.dyndns.com") requests: ()
2022-04-20 14:50:40:084 [ info nextcloud.sync.networkjob /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/abstractnetworkjob.cpp:361 ]:	OCC::SimpleNetworkJob created for "https://my.dyndns.com" + "" ""
2022-04-20 14:50:40:084 [ debug nextcloud.sync.networkjob /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/abstractnetworkjob.cpp:298 ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job OCC::CheckServerJob finished for "status.php"
2022-04-20 14:50:40:086 [ warning nextcloud.sync.networkjob /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/abstractnetworkjob.cpp:185 ]:	SslHandshakeFailedError:  "Im Ablauf des SSL-Protokolls ist ein Fehler aufgetreten."  : can be caused by a webserver wanting SSL client certificates
2022-04-20 14:50:40:086 [ warning nextcloud.sync.networkjob /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/abstractnetworkjob.cpp:224 ]:	QNetworkReply::SslHandshakeFailedError "Im Ablauf des SSL-Protokolls ist ein Fehler aufgetreten." QVariant(Invalid)
2022-04-20 14:50:40:086 [ info nextcloud.sync.accessmanager /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/accessmanager.cpp:78 ]:	2 "" "https://my.dyndns.com/status.php" has X-Request-ID "55e00aaf-1a49-40cf-a5ff-e889cd750d50"
2022-04-20 14:50:40:086 [ debug nextcloud.sync.cookiejar /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/cookiejar.cpp:90 ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://my.dyndns.com/status.php") requests: ()
2022-04-20 14:50:40:086 [ info nextcloud.sync.networkjob /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/abstractnetworkjob.cpp:361 ]:	OCC::CheckServerJob created for "https://my.dyndns.com" + "status.php" "OCC::OwncloudSetupWizard"
2022-04-20 14:50:40:086 [ debug nextcloud.sync.networkjob /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/abstractnetworkjob.cpp:298 ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job OCC::SimpleNetworkJob finished for ""
2022-04-20 14:50:40:087 [ warning nextcloud.sync.networkjob /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/abstractnetworkjob.cpp:185 ]:	SslHandshakeFailedError:  "Im Ablauf des SSL-Protokolls ist ein Fehler aufgetreten."  : can be caused by a webserver wanting SSL client certificates
2022-04-20 14:50:40:087 [ warning nextcloud.sync.networkjob /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/abstractnetworkjob.cpp:224 ]:	QNetworkReply::SslHandshakeFailedError "Im Ablauf des SSL-Protokolls ist ein Fehler aufgetreten." QVariant(Invalid)
2022-04-20 14:50:40:087 [ warning nextcloud.sync.networkjob.checkserver /var/folders/yr/9dx0mtfj7kdf4725tmcz6md80000gp/T/macos-9585/src/libsync/networkjobs.cpp:541 ]:	error: status.php replied  0 ""

The output of your config.php file in /usr/local/www/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' => 'SECRET',
  'secret' => 'ANOTHERSECRET',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '10.10.100.11',
    2 => '10.10.100.13',
    3 => '10.10.100.14',
    4 => 'nextcloud.bh.one.lan',
    5 => 'my.dyndns.com',
    6 => 'nxtcld.mydomain.de'
  ),
  'datadirectory' => '/usr/local/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '23.0.3.2',
  'overwrite.cli.url' => 'http://localhost',
  //'overwrite.cli.url' => 'http://10.10.100.13',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_ncadmin',
  'dbpassword' => 'ONEMORESECRET',
  'installed' => true,
  'instanceid' => 'octikd4a3b3p',
);

I can’t see any access in the logs of nginx, neither on the ReverseProxy nor the Nextcloud server itself

here’s the ReverseProxy config:


server {
listen 80;
server_name my.dyndns.com;
return 301 https://$host$request_uri;
}

server {
listen 443 ssl http2;
server_name my.dyndns.com;
include snippets/ssl;

location / {
	proxy_pass http://10.10.100.13;
	include snippets/proxy_nextcloud;
client_max_body_size 10G;
client_body_timeout 600;
#underscores_in_headers on;
location /.well-known { }
}
location /.well-known/carddav {
	return 301 $scheme://$host/remote.php/dav;
}
location /.well-known/caldav {
	return 301 $scheme://$host/remote.php/dav;
}

ssl_certificate /usr/local/etc/letsencrypt/live/my.dyndns.com/fullchain.pem;
ssl_certificate_key /usr/local/etc/letsencrypt/live/my.dyndns.com/privkey.pem;

access_log /var/log/nginx/nextcloud-access.log;
error_log /var/log/nginx/nextcloud-error.log;

}

Even the nextcloud.log in /var/log/nextcloud doesn’t see the access from my mac! But I can access it through the browser…

Let me know which additional info you need… Hope we find a solution ASAP as this Mac is my main machine and holds the data I need on the other devices. :frowning:

Reply to myself:

So I found 3974 which is from November and seems to be unsolved since…

Is going back to 3.3.6 or reenabling TLS1.2 the only solution?

As I’m to lazy to figure a way to install an older version of the cask like here using the old composer file I went and got 3.3.6 and installed it manually…

In the meantime I’ve subscribed to the issue and hope to see a solution in 3.4.5 or 3.5.1 soon!!!

1 Like