Desktop Client - Connection Closed

I get the message "Connection Closed" when I try and connect my desktop client.

The URL appears to be OK and I have added additional trusted domains and even set an app password through the web UI but still get this message.

Any thoughts...?

No-one available to help on this...?

Open the client-log-windows with F12. Is the connection closed from server or client?

Possible server-side problems:
The web-interface works properly? Direct access via webdav as well (check with cyberduck, WinSCP)? Check the server logfiles for errors.

If it is the client:
https://doc.owncloud.org/desktop/latest/troubleshooting.html

Thanks tflidd

I've restored the owncloud repository to a version I KNEW worked and has all the files etc needed. I can easily access the web interface and there's no issues sharing files etc.

However, despite uninstalling and re-installing the desktop client it simply will not connect. I tried accessing the the client log but as it has been re-installed it simply brings up the connection dialog:

I checked the web log and no entries at all for today.

I checked the client log on my laptop as this has not been re-installed and it was empty. Grrr...

An update, from the client on my laptop:

12-09 21:06:12:127 1340 OCC::Account::resetNetworkAccessManager: Resetting QNAM

12-09 21:06:12:327 1340 OCC::ConnectionValidator::checkServerAndAuth: Checking server and authentication
12-09 21:06:12:333 1340 OCC::AbstractNetworkJob::start: !!! OCC::CheckServerJob created for "https://cloud.MyCloudDomain.co.uk" + "status.php" "OCC::ConnectionValidator"
12-09 21:06:12:899 1340 OCC::CheckServerJob::finished: status.php returns: QMap(("edition", QVariant(QString, "Community"))("installed", QVariant(QString, "true"))("maintenance", QVariant(QString, "false"))("needsDbUpgrade", QVariant(QString, "false"))("productname", QVariant(QString, "ownCloud"))("version", QVariant(QString, "10.0.3.3"))("versionstring", QVariant(QString, "10.0.3"))) QNetworkReply::NetworkError(NoError) Reply: QNetworkReplyHttpImpl(0x90af360)
12-09 21:06:12:903 1340 OCC::ConnectionValidator::slotStatusFound: ** Application: ownCloud found: QUrl("https://cloud.MyCloudDomain.co.uk/status.php") with version "10.0.3" ( "10.0.3.3" )
12-09 21:06:12:905 1340 OCC::ConnectionValidator::setAndCheckServerVersion: QUrl("https://cloud.MyCloudDomain.co.uk") has server version "10.0.3.3"
12-09 21:06:12:909 1340 OCC::ConnectionValidator::checkAuthentication: # Check whether authenticated propfind works.
12-09 21:06:12:910 1340 OCC::AbstractNetworkJob::start: !!! OCC::PropfindJob created for "https://cloud.MyCloudDomain.co.uk" + "/" "OCC::ConnectionValidator"
12-09 21:06:18:387 1340 OCC::AbstractNetworkJob::slotFinished: void OCC::AbstractNetworkJob::slotFinished() QNetworkReply::NetworkError(RemoteHostClosedError) "Connection closed" QVariant(Invalid)
12-09 21:06:18:391 1340 OCC::PropfindJob::finished: PROPFIND request not successful, http result code is 0 ""
12-09 21:06:18:395 1340 OCC::AccountSettings::showConnectionLabel: "No connection to ownCloud at https://cloud.MyCloudDomain.co.uk.\nConnection closed"
12-09 21:06:18:407 1340 OCC::FolderMan::slotAccountStateChanged: Account "webmaster1@cloud.MyCloudDomain.co.uk" disconnected or paused, terminating or descheduling sync folders
12-09 21:06:44:132 1340 OCC::Account::resetNetworkAccessManager: Resetting QNAM
12-09 21:06:44:136 1340 OCC::ConnectionValidator::checkServerAndAuth: Checking server and authentication
12-09 21:06:44:144 1340 OCC::AbstractNetworkJob::start: !!! OCC::CheckServerJob created for "https://cloud.MyCloudDomain.co.uk" + "status.php" "OCC::ConnectionValidator"
12-09 21:06:44:720 1340 OCC::CheckServerJob::finished: status.php returns: QMap(("edition", QVariant(QString, "Community"))("installed", QVariant(QString, "true"))("maintenance", QVariant(QString, "false"))("needsDbUpgrade", QVariant(QString, "false"))("productname", QVariant(QString, "ownCloud"))("version", QVariant(QString, "10.0.3.3"))("versionstring", QVariant(QString, "10.0.3"))) QNetworkReply::NetworkError(NoError) Reply: QNetworkReplyHttpImpl(0x910e980)
12-09 21:06:44:724 1340 OCC::ConnectionValidator::slotStatusFound: ** Application: ownCloud found: QUrl("https://cloud.MyCloudDomain.co.uk/status.php") with version "10.0.3" ( "10.0.3.3" )
12-09 21:06:44:727 1340 OCC::ConnectionValidator::setAndCheckServerVersion: QUrl("https://cloud.MyCloudDomain.co.uk") has server version "10.0.3.3"
12-09 21:06:44:730 1340 OCC::ConnectionValidator::checkAuthentication: # Check whether authenticated propfind works.
12-09 21:06:44:732 1340 OCC::AbstractNetworkJob::start: !!! OCC::PropfindJob created for "https://cloud.MyCloudDomain.co.uk" + "/" "OCC::ConnectionValidator"
12-09 21:06:50:128 1340 OCC::AbstractNetworkJob::slotFinished: void OCC::AbstractNetworkJob::slotFinished() QNetworkReply::NetworkError(RemoteHostClosedError) "Connection closed" QVariant(Invalid)
12-09 21:06:50:133 1340 OCC::PropfindJob::finished: PROPFIND request not successful, http result code is 0 ""
12-09 21:06:50:137 1340 OCC::AccountSettings::showConnectionLabel: "No connection to ownCloud at https://cloud.MyCloudDomain.co.uk.\nConnection closed"
12-09 21:06:50:146 1340 OCC::FolderMan::slotAccountStateChanged: Account "webmaster1@cloud.MyCloudDomain.co.uk" disconnected or paused, terminating or descheduling sync folders
12-09 21:07:16:139 1340 OCC::Account::resetNetworkAccessManager: Resetting QNAM
12-09 21:07:16:143 1340 OCC::ConnectionValidator::checkServerAndAuth: Checking server and authentication
12-09 21:07:16:151 1340 OCC::AbstractNetworkJob::start: !!! OCC::CheckServerJob created for "https://cloud.MyCloudDomain.co.uk" + "status.php" "OCC::ConnectionValidator"
12-09 21:07:16:705 1340 OCC::CheckServerJob::finished: status.php returns: QMap(("edition", QVariant(QString, "Community"))("installed", QVariant(QString, "true"))("maintenance", QVariant(QString, "false"))("needsDbUpgrade", QVariant(QString, "false"))("productname", QVariant(QString, "ownCloud"))("version", QVariant(QString, "10.0.3.3"))("versionstring", QVariant(QString, "10.0.3"))) QNetworkReply::NetworkError(NoError) Reply: QNetworkReplyHttpImpl(0x910ee90)
12-09 21:07:16:710 1340 OCC::ConnectionValidator::slotStatusFound: ** Application: ownCloud found: QUrl("https://cloud.MyCloudDomain.co.uk/status.php") with version "10.0.3" ( "10.0.3.3" )
12-09 21:07:16:715 1340 OCC::ConnectionValidator::setAndCheckServerVersion: QUrl("https://cloud.MyCloudDomain.co.uk") has server version "10.0.3.3"
12-09 21:07:16:723 1340 OCC::ConnectionValidator::checkAuthentication: # Check whether authenticated propfind works.
12-09 21:07:16:725 1340 OCC::AbstractNetworkJob::start: !!! OCC::PropfindJob created for "https://cloud.MyCloudDomain.co.uk" + "/" "OCC::ConnectionValidator"
12-09 21:07:22:122 1340 OCC::AbstractNetworkJob::slotFinished: void OCC::AbstractNetworkJob::slotFinished() QNetworkReply::NetworkError(RemoteHostClosedError) "Connection closed" QVariant(Invalid)
12-09 21:07:22:125 1340 OCC::PropfindJob::finished: PROPFIND request not successful, http result code is 0 ""
12-09 21:07:22:128 1340 OCC::AccountSettings::showConnectionLabel: "No connection to ownCloud at https://cloud.MyCloudDomain.co.uk.\nConnection closed"
12-09 21:07:22:137 1340 OCC::FolderMan::slotAccountStateChanged: Account "webmaster1@cloud.MyCloudDomain.co.uk" disconnected or paused, terminating or descheduling sync folders
12-09 21:07:48:128 1340 OCC::Account::resetNetworkAccessManager: Resetting QNAM
12-09 21:07:48:129 1340 OCC::ConnectionValidator::checkServerAndAuth: Checking server and authentication
12-09 21:07:48:137 1340 OCC::AbstractNetworkJob::start: !!! OCC::CheckServerJob created for "https://cloud.MyCloudDomain.co.uk" + "status.php" "OCC::ConnectionValidator"
12-09 21:07:48:782 1340 OCC::CheckServerJob::finished: status.php returns: QMap(("edition", QVariant(QString, "Community"))("installed", QVariant(QString, "true"))("maintenance", QVariant(QString, "false"))("needsDbUpgrade", QVariant(QString, "false"))("productname", QVariant(QString, "ownCloud"))("version", QVariant(QString, "10.0.3.3"))("versionstring", QVariant(QString, "10.0.3"))) QNetworkReply::NetworkError(NoError) Reply: QNetworkReplyHttpImpl(0x910e370)
12-09 21:07:48:788 1340 OCC::ConnectionValidator::slotStatusFound: ** Application: ownCloud found: QUrl("https://cloud.MyCloudDomain.co.uk/status.php") with version "10.0.3" ( "10.0.3.3" )
12-09 21:07:48:794 1340 OCC::ConnectionValidator::setAndCheckServerVersion: QUrl("https://cloud.MyCloudDomain.co.uk") has server version "10.0.3.3"
12-09 21:07:48:796 1340 OCC::ConnectionValidator::checkAuthentication: # Check whether authenticated propfind works.
12-09 21:07:48:798 1340 OCC::AbstractNetworkJob::start: !!! OCC::PropfindJob created for "https://cloud.MyCloudDomain.co.uk" + "/" "OCC::ConnectionValidator"
12-09 21:07:54:263 1340 OCC::AbstractNetworkJob::slotFinished: void OCC::AbstractNetworkJob::slotFinished() QNetworkReply::NetworkError(RemoteHostClosedError) "Connection closed" QVariant(Invalid)
12-09 21:07:54:267 1340 OCC::PropfindJob::finished: PROPFIND request not successful, http result code is 0 ""
12-09 21:07:54:271 1340 OCC::AccountSettings::showConnectionLabel: "No connection to ownCloud at https://cloud.MyCloudDomain.co.uk.\nConnection closed"
12-09 21:07:54:292 1340 OCC::FolderMan::slotAccountStateChanged: Account "webmaster1@cloud.MyCloudDomain.co.uk" disconnected or paused, terminating or descheduling sync folders

Maybe you need to have a look at your webserver and its configuration rather then the client?

Thanks Tom, that's exactly what I'm doing today actually.

As we run a dedicated server it'll be easy to make any changes required but the only thing I can think of that might possibly have had an effect was that we deployed HTTP2 a few days ago.

We reinstalled OwnCloud client and even rolled back the web app to a version prior to the problem and still no connection on Desktop either from the tower or laptop or even on Android so I suspect it may well be HTTP2 that's causing the issue.

Or maybe something else.

If I find out what I'll be sure to post though, thanks.

I was just clicking around in the documentation and found the following docs: https://doc.owncloud.org/server/latest/admin_manual/issues/general_troubleshooting.html#common-problems-error-messages Maybe this also gives a few additional info.

Thanks Tom

I had a read through that,m changed the Keep-Alive setting and yes it took longer but still closed the connection.

I suspect it's a firewall setting on the server but ConfigServer Security & Firewall blocks based on IP addresses, not applications. I even disabled the firewall but still no joy.

The log output from the laptop client (completely unchanged throughout this whole process) simply shows that it is repeatedly trying to connect.

The posted link is explaining something about an Apache module. Maybe this got changed by the move to HTTP2? Or this HTTP2 is generally not that stable or buggy in Apache?

I thought the same so I disabled HTTP2 but still no connection. PITA I know.

Or try the demo setup to connect the client. This way, you can find out if the problem is on client side (firewall etc.).

Thanks, I tried that and it worked OK which is why I am focused on the web side of things.

Ideally a list of what OwnCloud DOES NOT support would be nice so I can walk through it but I can't seem to find such a list.

I have since completely re-installed OwnCloud on our server and still am unable to login using the desktop client.

I do however have a client on the laptop where the credentials remain unchanged but get this in the desktop client log on the laptop:

12-16 14:14:33:636 6528 OCC::Account::resetNetworkAccessManager: Resetting QNAM
12-16 14:14:33:636 6528 OCC::ConnectionValidator::checkServerAndAuth: Checking server and authentication
12-16 14:14:33:636 6528 OCC::ConnectionValidator::checkServerAndAuth: Trying to look up system proxy
12-16 14:14:33:681 6528 OCC::ConnectionValidator::systemProxyLookupDone: No system proxy set by OS
12-16 14:14:33:684 6528 OCC::AbstractNetworkJob::start: !!! OCC::CheckServerJob created for "https://cloud.MyDomain.co.uk" + "status.php" "OCC::ConnectionValidator"
12-16 14:14:34:110 6528 OCC::CheckServerJob::finished: status.php returns: QMap(("edition", QVariant(QString, "Community"))("installed", QVariant(QString, "true"))("maintenance", QVariant(QString, "false"))("needsDbUpgrade", QVariant(QString, "false"))("productname", QVariant(QString, "ownCloud"))("version", QVariant(QString, "10.0.3.3"))("versionstring", QVariant(QString, "10.0.3"))) QNetworkReply::NetworkError(NoError) Reply: QNetworkReplyHttpImpl(0x8a1d9a8)
12-16 14:14:34:110 6528 OCC::ConnectionValidator::slotStatusFound: ** Application: ownCloud found: QUrl("https://cloud.MyDomain.co.uk/status.php") with version "10.0.3" ( "10.0.3.3" )
12-16 14:14:34:110 6528 OCC::ConnectionValidator::setAndCheckServerVersion: QUrl("https://cloud.MyDomain.co.uk") has server version "10.0.3.3"
12-16 14:14:34:125 6528 OCC::ConnectionValidator::checkAuthentication: # Check whether authenticated propfind works.
12-16 14:14:34:125 6528 OCC::AbstractNetworkJob::start: !!! OCC::PropfindJob created for "https://cloud.MyDomain.co.uk" + "/" "OCC::ConnectionValidator"
12-16 14:14:39:455 6528 OCC::AbstractNetworkJob::slotFinished: void OCC::AbstractNetworkJob::slotFinished() QNetworkReply::NetworkError(RemoteHostClosedError) "Connection closed" QVariant(Invalid)
12-16 14:14:39:459 6528 OCC::PropfindJob::finished: PROPFIND request not successful, http result code is 0 ""
12-16 14:14:39:462 6528 OCC::AccountSettings::showConnectionLabel: "No connection to ownCloud at https://cloud.MyDomain.co.uk.\nConnection closed"
12-16 14:14:39:475 6528 OCC::FolderMan::slotAccountStateChanged: Account "WebMaster@cloud.MyDomain.co.uk" disconnected or paused, terminating or descheduling sync folders
12-16 14:15:05:641 6528 OCC::Account::resetNetworkAccessManager: Resetting QNAM
12-16 14:15:05:641 6528 OCC::ConnectionValidator::checkServerAndAuth: Checking server and authentication
12-16 14:15:05:641 6528 OCC::ConnectionValidator::checkServerAndAuth: Trying to look up system proxy
12-16 14:15:05:657 6528 OCC::ConnectionValidator::systemProxyLookupDone: No system proxy set by OS
12-16 14:15:05:657 6528 OCC::AbstractNetworkJob::start: !!! OCC::CheckServerJob created for "https://cloud.MyDomain.co.uk" + "status.php" "OCC::ConnectionValidator"
12-16 14:15:06:117 6528 OCC::CheckServerJob::finished: status.php returns: QMap(("edition", QVariant(QString, "Community"))("installed", QVariant(QString, "true"))("maintenance", QVariant(QString, "false"))("needsDbUpgrade", QVariant(QString, "false"))("productname", QVariant(QString, "ownCloud"))("version", QVariant(QString, "10.0.3.3"))("versionstring", QVariant(QString, "10.0.3"))) QNetworkReply::NetworkError(NoError) Reply: QNetworkReplyHttpImpl(0x8a1c448)
12-16 14:15:06:117 6528 OCC::ConnectionValidator::slotStatusFound: ** Application: ownCloud found: QUrl("https://cloud.MyDomain.co.uk/status.php") with version "10.0.3" ( "10.0.3.3" )
12-16 14:15:06:133 6528 OCC::ConnectionValidator::setAndCheckServerVersion: QUrl("https://cloud.MyDomain.co.uk") has server version "10.0.3.3"
12-16 14:15:06:133 6528 OCC::ConnectionValidator::checkAuthentication: # Check whether authenticated propfind works.
12-16 14:15:06:133 6528 OCC::AbstractNetworkJob::start: !!! OCC::PropfindJob created for "https://cloud.MyDomain.co.uk" + "/" "OCC::ConnectionValidator"
12-16 14:15:11:464 6528 OCC::AbstractNetworkJob::slotFinished: void OCC::AbstractNetworkJob::slotFinished() QNetworkReply::NetworkError(RemoteHostClosedError) "Connection closed" QVariant(Invalid)
12-16 14:15:11:464 6528 OCC::PropfindJob::finished: PROPFIND request not successful, http result code is 0 ""
12-16 14:15:11:480 6528 OCC::AccountSettings::showConnectionLabel: "No connection to ownCloud at https://cloud.MyDomain.co.uk.\nConnection closed"
12-16 14:15:11:480 6528 OCC::FolderMan::slotAccountStateChanged: Account "WebMaster@cloud.MyDomain.co.uk" disconnected or paused, terminating or descheduling sync folders

I think if the issue is somewhere within PHP or your web server configuration re-installing ownCloud won't help. Maybe you can try to open https://cloud.MyCloudDomain.co.uk/remote.php/webdav to see if a basic connection to this is working?

I would have agreed with you but yesterday I tried to connect the Android app and got invalid username and password.

I re-installed the app, setup a new admin login through the web UI and got the same error.

I think this is exactly confirming what i'm always trying to say: The issue is somewhere within your server configuration / environment, not within your clients.

I'm not disagreeing but I have been trying to solve this for weeks now and no help.

Still having the same issue despite numerous uninstalls and re-installs. I've even tried a spare domain we have and the same issues.

Any thoughts...?

From the client app all I get is connection closed whether I use http or https

I have added both the www and non www domain to the config and redirected to the non secure http.

Any thoughts...?