Mac client can't connect - Connection closed

I just installed the Nextcloud client, I had been using the ownCloud one. When I try to connect to the server it returns an error: Failed to connect to Nextcloud at https://cloud/status.php: Connection closed
I can access the link in the browser just fine and the Windows client didn’t give any issues as well.
I reinstalled the ownCloud client and that doesn’t give me the error and connects and syncs just fine.

I also attempted copying the config from the ownCloud client to the Nextcloud one, but then it still says Connection closed and will not sync.

I am using Nextcloud 10, status.php returns: {“installed”:true,“maintenance”:false,“version”:“9.1.0.16”,“versionstring”:“10.0”,“edition”:“”}

The client log shows:

08-26 16:52:05:601 0x7fe5dac2f080 OCC::Account::resetNetworkAccessManager: Resetting QNAM
08-26 16:52:05:603 0x7fe5dac2f080 OCC::ConnectionValidator::checkServerAndAuth: Checking server and authentication
08-26 16:52:05:605 0x7fe5dac2f080 OCC::ConnectionValidator::checkServerAndAuth: Trying to look up system proxy
08-26 16:52:05:605 0x7fe5dd3137e0 OCC::SystemProxyRunnable::run: virtual void OCC::SystemProxyRunnable::run() Starting system proxy lookup
08-26 16:52:05:637 0x7fe5dac2f080 OCC::ConnectionValidator::systemProxyLookupDone: No system proxy set by OS
08-26 16:52:05:638 0x7fe5dac2f080 OCC::AbstractNetworkJob::start: !!! OCC::CheckServerJob created for “https://cloud” + “status.php” “OCC::ConnectionValidator”
08-26 16:52:05:791 0x7fe5dac2f080 OCC::AbstractNetworkJob::slotFinished: void OCC::AbstractNetworkJob::slotFinished() 2 “Connection closed” QVariant(Invalid)
08-26 16:52:05:792 0x7fe5dac2f080 OCC::ConnectionValidator::slotNoStatusFound: void OCC::ConnectionValidator::slotNoStatusFound(QNetworkReply *) 2 “Connection closed”
08-26 16:52:05:793 0x7fe5dac2f080 OCC::AccountState::slotConnectionValidatorResult: AccountState connection status change: “Undefined” → “Status not found”
08-26 16:52:05:793 0x7fe5dac2f080 OCC::AccountState::setState: AccountState state change: “Disconnected” → “Network error”
08-26 16:52:05:794 0x7fe5dac2f080 OCC::AccountSettings::showConnectionLabel: “No connection to Nextcloud at https://cloud.
Connection closed”
08-26 16:52:05:795 0x7fe5dac2f080 unknown: QString::arg: Argument missing: “https://docs.nextcloud.com/desktop/2.2/” , 2
08-26 16:52:05:796 0x7fe5dac2f080 unknown: QString::arg: Argument missing: “https://docs.nextcloud.com/desktop/2.2/” , 2
08-26 16:52:05:797 0x7fe5dac2f080 OCC::FolderMan::slotAccountStateChanged: Account “panic@cloud” disconnected or paused, terminating or descheduling sync folders
08-26 16:52:05:797 0x7fe5dac2f080 OCC::CheckServerJob::finished: error: status.php replied 0 “”
08-26 16:52:07:509 0x7fe5dac2f080 OCC::SocketApi::slotNewConnection: SocketApi: New connection SocketApiSocket(0x7fe5dd1ba810)
08-26 16:52:07:510 0x7fe5dac2f080 OCC::SocketApi::slotNewConnection: SocketApi: New connection SocketApiSocket(0x7fe5dd1b8e00)
08-26 16:52:07:512 0x7fe5dac2f080 OCC::SocketApi::sendMessage: SocketApi: Sending message: “SHARE_MENU_TITLE:Share with Nextcloud”
08-26 16:52:07:513 0x7fe5dac2f080 OCC::SocketApi::sendMessage: SocketApi: Sending message: “SHARE_MENU_TITLE:Share with Nextcloud”
08-26 16:52:07:541 0x7fe5dac2f080 OCC::SocketApi::slotNewConnection: SocketApi: New connection SocketApiSocket(0x7fe5dd323b60)
08-26 16:52:07:543 0x7fe5dac2f080 OCC::SocketApi::sendMessage: SocketApi: Sending message: “SHARE_MENU_TITLE:Share with Nextcloud”
08-26 16:52:07:575 0x7fe5dac2f080 OCC::SocketApi::slotNewConnection: SocketApi: New connection SocketApiSocket(0x7fe5dd1b8da0)
08-26 16:52:07:576 0x7fe5dac2f080 OCC::SocketApi::sendMessage: SocketApi: Sending message: “SHARE_MENU_TITLE:Share with Nextcloud”
08-26 16:52:07:607 0x7fe5dac2f080 OCC::SocketApi::slotNewConnection: SocketApi: New connection SocketApiSocket(0x7fe5dd31faa0)
08-26 16:52:07:608 0x7fe5dac2f080 OCC::SocketApi::sendMessage: SocketApi: Sending message: “SHARE_MENU_TITLE:Share with Nextcloud”
08-26 16:52:07:641 0x7fe5dac2f080 OCC::SocketApi::slotNewConnection: SocketApi: New connection SocketApiSocket(0x7fe5dd1b8cd0)
08-26 16:52:07:643 0x7fe5dac2f080 OCC::SocketApi::sendMessage: SocketApi: Sending message: “SHARE_MENU_TITLE:Share with Nextcloud”
08-26 16:52:08:543 0x7fe5dac2f080 OCC::SparkleUpdater::backgroundCheckForUpdate: virtual void OCC::SparkleUpdater::backgroundCheckForUpdate() launching background check
08-26 16:52:08:575 0x7fe5dac2f080 -[DelegateObject updaterMayCheckForUpdates:]: -[DelegateObject updaterMayCheckForUpdates:] may check: YES
08-26 16:52:09:131 0x7fe5dac2f080 -[DelegateObject updaterDidNotFindUpdate:]: -[DelegateObject updaterDidNotFindUpdate:]
08-26 16:52:38:043 0x7fe5dac2f080 OCC::Account::resetNetworkAccessManager: Resetting QNAM
08-26 16:52:38:044 0x7fe5dac2f080 OCC::ConnectionValidator::checkServerAndAuth: Checking server and authentication
08-26 16:52:38:045 0x7fe5dac2f080 OCC::ConnectionValidator::checkServerAndAuth: Trying to look up system proxy
08-26 16:52:38:045 0x7fe5dd3137e0 OCC::SystemProxyRunnable::run: virtual void OCC::SystemProxyRunnable::run() Starting system proxy lookup
08-26 16:52:38:050 0x7fe5dac2f080 OCC::ConnectionValidator::systemProxyLookupDone: No system proxy set by OS
08-26 16:52:38:052 0x7fe5dac2f080 OCC::AbstractNetworkJob::start: !!! OCC::CheckServerJob created for “https://cloud” + “status.php” “OCC::ConnectionValidator”
08-26 16:52:38:207 0x7fe5dac2f080 OCC::AbstractNetworkJob::slotFinished: void OCC::AbstractNetworkJob::slotFinished() 2 “Connection closed” QVariant(Invalid)
08-26 16:52:38:208 0x7fe5dac2f080 OCC::ConnectionValidator::slotNoStatusFound: void OCC::ConnectionValidator::slotNoStatusFound(QNetworkReply *) 2 “Connection closed”
08-26 16:52:38:209 0x7fe5dac2f080 OCC::AccountSettings::showConnectionLabel: “No connection to Nextcloud at https://cloud.
Connection closed”
08-26 16:52:38:211 0x7fe5dac2f080 unknown: QString::arg: Argument missing: “https://docs.nextcloud.com/desktop/2.2/” , 2
08-26 16:52:38:211 0x7fe5dac2f080 unknown: QString::arg: Argument missing: “https://docs.nextcloud.com/desktop/2.2/” , 2
08-26 16:52:38:212 0x7fe5dac2f080 OCC::FolderMan::slotAccountStateChanged: Account “panic@cloud” disconnected or paused, terminating or descheduling sync folders
08-26 16:52:38:213 0x7fe5dac2f080 OCC::CheckServerJob::finished: error: status.php replied 0 “”
08-26 16:53:10:043 0x7fe5dac2f080 OCC::Account::resetNetworkAccessManager: Resetting QNAM
08-26 16:53:10:045 0x7fe5dac2f080 OCC::ConnectionValidator::checkServerAndAuth: Checking server and authentication
08-26 16:53:10:046 0x7fe5dac2f080 OCC::ConnectionValidator::checkServerAndAuth: Trying to look up system proxy
08-26 16:53:10:046 0x7fe5dd3137e0 OCC::SystemProxyRunnable::run: virtual void OCC::SystemProxyRunnable::run() Starting system proxy lookup
08-26 16:53:10:053 0x7fe5dac2f080 OCC::ConnectionValidator::systemProxyLookupDone: No system proxy set by OS
08-26 16:53:10:054 0x7fe5dac2f080 OCC::AbstractNetworkJob::start: !!! OCC::CheckServerJob created for “https://cloud” + “status.php” “OCC::ConnectionValidator”
08-26 16:53:10:213 0x7fe5dac2f080 OCC::AbstractNetworkJob::slotFinished: void OCC::AbstractNetworkJob::slotFinished() 2 “Connection closed” QVariant(Invalid)
08-26 16:53:10:214 0x7fe5dac2f080 OCC::ConnectionValidator::slotNoStatusFound: void OCC::ConnectionValidator::slotNoStatusFound(QNetworkReply *) 2 “Connection closed”
08-26 16:53:10:215 0x7fe5dac2f080 OCC::AccountSettings::showConnectionLabel: “No connection to Nextcloud at https://cloud.
Connection closed”
08-26 16:53:10:216 0x7fe5dac2f080 unknown: QString::arg: Argument missing: “https://docs.nextcloud.com/desktop/2.2/” , 2
08-26 16:53:10:217 0x7fe5dac2f080 unknown: QString::arg: Argument missing: “https://docs.nextcloud.com/desktop/2.2/” , 2
08-26 16:53:10:218 0x7fe5dac2f080 OCC::FolderMan::slotAccountStateChanged: Account “panic@cloud” disconnected or paused, terminating or descheduling sync folders
08-26 16:53:10:218 0x7fe5dac2f080 OCC::CheckServerJob::finished: error: status.php replied 0 “”
08-26 16:53:42:043 0x7fe5dac2f080 OCC::Account::resetNetworkAccessManager: Resetting QNAM
08-26 16:53:42:045 0x7fe5dac2f080 OCC::ConnectionValidator::checkServerAndAuth: Checking server and authentication
08-26 16:53:42:046 0x7fe5dac2f080 OCC::ConnectionValidator::checkServerAndAuth: Trying to look up system proxy
08-26 16:53:42:046 0x7fe5dd3137e0 OCC::SystemProxyRunnable::run: virtual void OCC::SystemProxyRunnable::run() Starting system proxy lookup
08-26 16:53:42:053 0x7fe5dac2f080 OCC::ConnectionValidator::systemProxyLookupDone: No system proxy set by OS
08-26 16:53:42:055 0x7fe5dac2f080 OCC::AbstractNetworkJob::start: !!! OCC::CheckServerJob created for “https://cloud” + “status.php” “OCC::ConnectionValidator”
08-26 16:53:42:226 0x7fe5dac2f080 OCC::AbstractNetworkJob::slotFinished: void OCC::AbstractNetworkJob::slotFinished() 2 “Connection closed” QVariant(Invalid)
08-26 16:53:42:227 0x7fe5dac2f080 OCC::ConnectionValidator::slotNoStatusFound: void OCC::ConnectionValidator::slotNoStatusFound(QNetworkReply *) 2 “Connection closed”
08-26 16:53:42:227 0x7fe5dac2f080 OCC::AccountSettings::showConnectionLabel: “No connection to Nextcloud at https://cloud.
Connection closed”
08-26 16:53:42:229 0x7fe5dac2f080 unknown: QString::arg: Argument missing: “https://docs.nextcloud.com/desktop/2.2/” , 2
08-26 16:53:42:229 0x7fe5dac2f080 unknown: QString::arg: Argument missing: “https://docs.nextcloud.com/desktop/2.2/” , 2
08-26 16:53:42:230 0x7fe5dac2f080 OCC::FolderMan::slotAccountStateChanged: Account “panic@cloud” disconnected or paused, terminating or descheduling sync folders
08-26 16:53:42:231 0x7fe5dac2f080 OCC::CheckServerJob::finished: error: status.php replied 0 “”
08-26 16:53:49:440 0x7fe5dac2f080 OCC::SocketApi::slotNewConnection: SocketApi: New connection SocketApiSocket(0x7fe5dd1b8a10)
08-26 16:53:49:441 0x7fe5dac2f080 OCC::SocketApi::sendMessage: SocketApi: Sending message: “SHARE_MENU_TITLE:Share with Nextcloud”

I can confirm the issue on the latest Sierra beta (16A304a).

There are no requests logged on the nextcloud webserver, so i suspect it’s a TLS issue, especially as i’ve configured it pretty strict.

Latest owncloud Client has no issues connecting.

For reference, here’s the relevant nginx conf:

ssl                       on;
ssl_protocols             TLSv1.2;
ssl_ciphers               EECDH+AESGCM:EDH+AESGCM:EECDH:!EDH:!MD5:!RC4:!LOW:!MEDIUM:!CAMELLIA:!ECDSA:!DES:!DSS:!3DES:!NULL;
ssl_prefer_server_ciphers on;
add_header                Strict-Transport-Security max-age=31536000;

ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /etc/letsencrypt/live/$domain/chain.pem;

Same problem here. My nginx configs are pretty much the same as PyBeck and dise mentioned before. The logs show nothing. The client log shows the same output as archit3cct mentioned above. I am using Mac OSX 10.11.6 (El Capitan).

I will to stick to the ownCloud client til this is fixed (it is also still working for me).

PS: Another small “bug” I found is that the click on “Help” in the context menu leads to a “File not found” - error in the browser.

Same issue here, I have an “SSL handshake failed” in the setup wizard with Nextcloud client version 2.2.3 (build 4). Witn Owncloud client version 2.2.3 (build 3601) it works fine. I’m also on OSX. Server is version 10.0.0 with a wildcard SSL certificate for our domains.

I also have this issue and logged a new issue which I will close and refer to this.

I thought it was due to me using a custom port, but it is not.

Any update on what is happening?

hello,

same problem here, I did a little Wireshark and found that the MacOS client is using TLSv1

I enabled it in my nginx conf file and it worked …

Can you try to connect to demo.nextcloud.com. They have TLSv1.0 disabled, but the client should work this way.

On Apache (CentOS 7), reverting from a secure configuration to the default settings “solves” this issue, but it’s bad.

Non-working secure config:
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
SSLCipherSuite ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256

Working less-secure config:
SSLProtocol all -SSLv3
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!SEED:!IDEA

Has someone opened a bugreport on this?

I haven’t raised it anywhere other than here.

It appears from what has been found that the client needs updating to include the secure transport and ciphers?

As the Owncloud client includes this, this shouldn’t take long right?

There is already a topic:

And they want someone to run a SSL test from ssllabs.com.

I just tested this again.

Seems that you need TLSv1 for it to work. Also, if you try connecting to demo.nextcloud.com using the mac client, that also fails (demo.nextcloud.com has TLSv1.1 & TLSv1.2 enabled and not TLSv1).