Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Version 3.9.1 cannot connect to server (but version 3.9.0 can) #5929

Open
4 of 8 tasks
badshah400 opened this issue Jul 26, 2023 · 24 comments
Open
4 of 8 tasks

Comments

@badshah400
Copy link

⚠️ Before submitting, please verify the following: ⚠️

Bug description

After updating to desktop client version 3.9.1 and restarting the client app, the app can no longer connect to the server and do any of the synchronisation activities with my local synced folder. The settings window says this at the very top: "Server is currently being redirected, or your connection is behind a captive portal." Neither is true: upon downgrading back to version 3.9.0, it immediately connects and resumes synchronisation with the same server with no change to my network status.

Please note that the hosting server is based on Owncloud 10.8.0.4, but using nextcloud-desktop for sync has not been an issue until version 3.9.0.

Steps to reproduce

  1. Upgrade to desktop client 3.9.1
  2. Restart nextcloud-desktop app.
  3. No longer connects to server and complains as noted above.

Expected behavior

App should connect to server and synchronise as 3.9.0 does.

Which files are affected by this bug

Not applicable

Operating system

Linux

Which version of the operating system you are running.

openSUSE Tumbleweed

Package

Compiled it myself

Nextcloud Server version

Owncloud 10.8.0.4

Nextcloud Desktop Client version

3.9.1

Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 3.4.2 to 3.4.4)

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

No response

Additional info

No response

@badshah400
Copy link
Author

Here is the log (I have edited it to remove potentially identifying information):

2023-07-26 17:33:54:470 [ info nextcloud.gui.application /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/application.cpp:611 ]:	################## "Nextcloud" locale: "en_GB" ui_lang: QVariant(Invalid) version: "3.9.1git" os: "openSUSE Tumbleweed"
2023-07-26 17:33:54:470 [ info nextcloud.gui.application /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/application.cpp:616 ]:	Arguments: ("/usr/bin/nextcloud")
2023-07-26 17:33:54:470 [ info nextcloud.gui.application /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/application.cpp:904 ]:	Using "en_GB" translation
2023-07-26 17:33:54:473 [ info nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:294 ]:	server started, listening at  "/run/user/1000/Nextcloud/socket"
2023-07-26 17:33:54:473 [ info nextcloud.gui.folder.manager /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/folderman.cpp:66 ]:	setting remote poll timer interval to 30000 msec
2023-07-26 17:33:54:476 [ debug nextcloud.gui.ocsuserstatusconnector /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/ocsuserstatusconnector.cpp:226 ]	[ OCC::OcsUserStatusConnector::fetchUserStatus ]:	Try to fetch user status
2023-07-26 17:33:54:476 [ debug nextcloud.gui.ocsuserstatusconnector /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/ocsuserstatusconnector.cpp:229 ]	[ OCC::OcsUserStatusConnector::fetchUserStatus ]:	User status not supported
2023-07-26 17:33:54:539 [ info nextcloud.gui.account.manager /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/accountmanager.cpp:412 ]:	Account for QUrl("https://FOO") using auth type "webflow"
2023-07-26 17:33:54:539 [ info nextcloud.sync.credentials.webflow /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/creds/webflowcredentials.cpp:117 ]:	Get QNAM
2023-07-26 17:33:54:540 [ info nextcloud.gui.account.manager /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/accountmanager.cpp:434 ]:	Restored:  0  unknown certs.
2023-07-26 17:33:54:540 [ debug nextcloud.gui.activity /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/tray/usermodel.cpp:279 ]	[ OCC::User::setNotificationRefreshInterval ]:	Starting Notification refresh timer with  60  sec interval
2023-07-26 17:33:54:549 [ info nextcloud.gui.folder.manager /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/folderman.cpp:188 ]:	Setup folders from settings file
2023-07-26 17:33:54:550 [ debug nextcloud.gui.folder /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/folder.cpp:175 ]	[ OCC::Folder::checkLocalPath ]:	Checked local path ok
2023-07-26 17:33:54:550 [ info nextcloud.sync.configfile /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/configfile.cpp:1155 ]:	Adding user defined ignore list to csync: "/home/USER/.config/Nextcloud/sync-exclude.lst"
2023-07-26 17:33:55:281 [ info nextcloud.sync.database /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/common/syncjournaldb.cpp:311 ]:	sqlite3 version "3.42.0"
2023-07-26 17:33:55:281 [ info nextcloud.sync.database /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/common/syncjournaldb.cpp:323 ]:	sqlite3 locking_mode= "exclusive"
2023-07-26 17:33:55:281 [ info nextcloud.sync.database /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/common/syncjournaldb.cpp:331 ]:	sqlite3 journal_mode= "wal"
2023-07-26 17:33:55:281 [ info nextcloud.sync.database /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/common/syncjournaldb.cpp:353 ]:	sqlite3 synchronous= "NORMAL"
2023-07-26 17:33:55:281 [ debug nextcloud.sync.database /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/common/syncjournaldb.cpp:2665 ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "checkConnect" and starting new transaction
2023-07-26 17:33:55:281 [ debug nextcloud.sync.database /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/common/syncjournaldb.cpp:879 ]	[ OCC::SyncJournalDb::tableColumns ]:	Columns in the current journal: QVector("phash", "pathlen", "path", "inode", "uid", "gid", "mode", "modtime", "type", "md5", "fileid", "remotePerm", "filesize", "ignoredChildrenRemote", "contentChecksum", "contentChecksumTypeId", "e2eMangledName", "isE2eEncrypted", "lock", "lockType", "lockOwnerDisplayName", "lockOwnerId", "lockOwnerEditor", "lockTime", "lockTimeout", "isShared", "lastShareStateFetchedTimestmap", "sharedByMe")
2023-07-26 17:33:55:282 [ debug nextcloud.sync.database /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/common/syncjournaldb.cpp:2665 ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "update database structure: add inode index" and starting new transaction
2023-07-26 17:33:55:282 [ debug nextcloud.sync.database /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/common/syncjournaldb.cpp:2665 ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "update database structure: add path index" and starting new transaction
2023-07-26 17:33:55:282 [ debug nextcloud.sync.database /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/common/syncjournaldb.cpp:2665 ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "update database structure: add parent index" and starting new transaction
2023-07-26 17:33:55:282 [ debug nextcloud.sync.database /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/common/syncjournaldb.cpp:879 ]	[ OCC::SyncJournalDb::tableColumns ]:	Columns in the current journal: QVector("path", "chunk", "transferid", "errorcount", "size", "modtime", "contentChecksum")
2023-07-26 17:33:55:282 [ debug nextcloud.sync.database /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/common/syncjournaldb.cpp:879 ]	[ OCC::SyncJournalDb::tableColumns ]:	Columns in the current journal: QVector("path", "baseFileId", "baseEtag", "baseModtime", "basePath")
2023-07-26 17:33:55:282 [ debug nextcloud.sync.database /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/common/syncjournaldb.cpp:2665 ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "update database structure: add e2eMangledName index" and starting new transaction
2023-07-26 17:33:55:282 [ debug nextcloud.sync.database /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/common/syncjournaldb.cpp:879 ]	[ OCC::SyncJournalDb::tableColumns ]:	Columns in the current journal: QVector("path", "lastTryEtag", "lastTryModtime", "retrycount", "errorstring", "lastTryTime", "ignoreDuration", "renameTarget", "errorCategory", "requestId")
2023-07-26 17:33:55:282 [ debug nextcloud.sync.database /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/common/syncjournaldb.cpp:2665 ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "checkConnect End" 
2023-07-26 17:33:55:282 [ info nextcloud.gui.folder.manager /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/folderman.cpp:1227 ]:	Adding folder to Folder Map  OCC::Folder(0x562464129400) "1"
2023-07-26 17:33:55:282 [ debug nextcloud.gui.folderwatcher /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/folderwatcher_linux.cpp:100 ]	[ OCC::FolderWatcherPrivate::slotAddFolderRecursive ]:	(+) Watcher: "/home/USER/Nextcloud/"
2023-07-26 17:33:55:798 [ debug nextcloud.gui.folderwatcher /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/folderwatcher_linux.cpp:126 ]	[ OCC::FolderWatcherPrivate::slotAddFolderRecursive ]:	    `-> and 10633 subdirectories
2023-07-26 17:33:55:798 [ info nextcloud.gui.folder.manager /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/folderman.cpp:692 ]:	Schedule folder  "1"  to sync!
2023-07-26 17:33:55:798 [ info nextcloud.gui.folder.manager /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/folderman.cpp:696 ]:	Folder is not ready to sync, not scheduled!
2023-07-26 17:33:55:798 [ info nextcloud.gui.application /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/owncloudgui.cpp:235 ]:	Sync state changed for folder  "https://FOO/remote.php/dav/files/USER/" :  "Not yet started"
2023-07-26 17:33:55:798 [ info nextcloud.sync.clientproxy /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/clientproxy.cpp:98 ]:	Set proxy configuration to use NO proxy
2023-07-26 17:33:55:798 [ debug com.nextcloud.owncloudgui /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/owncloudgui.cpp:412 ]	[ OCC::ownCloudGui::slotShowTrayMessage ]:	Going to show notification with title: ' "Unsupported Server Version" ' and message: ' "The server on account USER@FOO runs an unsupported version 10.8.0.4. Using this client with unsupported server versions is untested and potentially dangerous. Proceed at your own risk." '
2023-07-26 17:33:55:810 [ debug nextcloud.gui.updater /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/updater/updater.cpp:126 ]	[ OCC::Updater::getSystemInfo ]:	Sys Info size:  107
2023-07-26 17:33:55:810 [ debug nextcloud.gui.updater /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/updater/updater.cpp:140 ]	[ OCC::Updater::create ]:	QUrl("https://updates.nextcloud.org/client/?client=TFNCIFZlcnNpb246CW4vYQpEaXN0cmlidXRvciBJRDoJb3BlblNVU0UKRGVzY3JpcHRpb246CW9wZW5TVVNFIFR1bWJsZXdlZWQKUmVsZWFzZToJMjAyMzA3MjQKQ29kZW5hbWU6CW4vYQo%3D&version=3.9.1.0&platform=linux&osRelease=opensuse-tumbleweed&osVersion=20230724&kernelVersion=6.4.4-1-default&oem=Nextcloud&buildArch=x86_64&currentArch=x86_64&versionsuffix=git&updatesegment=55")
2023-07-26 17:33:56:129 [ info nextcloud.gui.account.state /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/accountstate.cpp:267 ]:	check connectivity
2023-07-26 17:33:56:129 [ info nextcloud.sync.credentials.webflow /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/creds/webflowcredentials.cpp:139 ]:	Fetch from keychain!
2023-07-26 17:33:56:131 [ info nextcloud.gui.folderwatcher /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/folderwatcher.cpp:206 ]:	Detected changes in paths: QSet("/home/USER/Nextcloud/.nextcloudsync.log")
2023-07-26 17:33:56:131 [ debug nextcloud.gui.folder /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/folder.cpp:834 ]	[ OCC::Folder::pathIsIgnored ]:	* Ignoring file "/home/USER/Nextcloud/.nextcloudsync.log"
2023-07-26 17:33:56:145 [ warning nextcloud.sync.credentials.keychainchunk /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/creds/keychainchunk.cpp:360 ]:	Unable to read "USER_clientCertificatePEM:https://FOO/:0" chunk "0" "Entry not found"
2023-07-26 17:33:56:147 [ warning nextcloud.sync.credentials.keychainchunk /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/creds/keychainchunk.cpp:360 ]:	Unable to read "USER_clientKeyPEM:https://FOO/:0" chunk "0" "Entry not found"
2023-07-26 17:33:56:147 [ warning nextcloud.sync.credentials.webflow /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/creds/webflowcredentials.cpp:484 ]:	Unable to read client key "Entry not found"
2023-07-26 17:33:56:148 [ warning nextcloud.sync.credentials.keychainchunk /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/creds/keychainchunk.cpp:360 ]:	Unable to read "USER_clientCaCertificatePEM0:https://FOO/:0" chunk "0" "Entry not found"
2023-07-26 17:33:56:148 [ warning nextcloud.sync.credentials.webflow /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/creds/webflowcredentials.cpp:525 ]:	Unable to read client CA cert slot "0" "Entry not found"
2023-07-26 17:33:56:150 [ debug nextcloud.sync.account /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/account.cpp:624 ]	[ OCC::Account::slotCredentialsFetched ]:	User id already fetched.
2023-07-26 17:33:56:150 [ info nextcloud.gui.account.state /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/accountstate.cpp:468 ]:	Fetched credentials for "https://FOO" attempting to connect
2023-07-26 17:33:56:150 [ info nextcloud.gui.account.state /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/accountstate.cpp:267 ]:	check connectivity
2023-07-26 17:33:56:150 [ debug nextcloud.sync.account /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/account.cpp:369 ]	[ OCC::Account::resetNetworkAccessManager ]:	Resetting QNAM
2023-07-26 17:33:56:150 [ info nextcloud.sync.credentials.webflow /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/creds/webflowcredentials.cpp:117 ]:	Get QNAM
2023-07-26 17:33:56:150 [ debug nextcloud.sync.connectionvalidator /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/connectionvalidator.cpp:53 ]	[ OCC::ConnectionValidator::checkServerAndAuth ]:	Checking server and authentication
2023-07-26 17:33:56:150 [ info nextcloud.sync.accessmanager /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/accessmanager.cpp:78 ]:	2 "" "https://FOO/index.php/204" has X-Request-ID "31b35f3b-b3b5-4de0-bc58-b1ca66d758c4"
2023-07-26 17:33:56:150 [ debug nextcloud.sync.cookiejar /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/cookiejar.cpp:90 ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://FOO/index.php/204") requests: ()
2023-07-26 17:33:56:151 [ info nextcloud.sync.networkjob /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/abstractnetworkjob.cpp:363 ]:	OCC::CheckRedirectCostFreeUrlJob created for "https://FOO" + "status.php" "OCC::ConnectionValidator"
2023-07-26 17:33:57:485 [ info nextcloud.sync.credentials.webflow /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/creds/webflowcredentials.cpp:426 ]:	request finished
2023-07-26 17:33:57:485 [ debug nextcloud.sync.networkjob.checkredirectcostfreeurl /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/networkjobs.cpp:587 ]	[ OCC::CheckRedirectCostFreeUrlJob::finished ]:	Redirecting cost-free URL QUrl("https://FOO/index.php/204")  to QUrl("https://FOO/index.php/login")
2023-07-26 17:33:57:485 [ info nextcloud.gui.account.state /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/accountstate.cpp:366 ]:	AccountState connection status change:  OCC::ConnectionValidator::Undefined -> OCC::ConnectionValidator::StatusRedirect
2023-07-26 17:33:57:486 [ info nextcloud.gui.folder.manager /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/folderman.cpp:797 ]:	Account "USER@FOO" disconnected or paused, terminating or descheduling sync folders
2023-07-26 17:33:57:486 [ info nextcloud.gui.account.state /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/accountstate.cpp:109 ]:	AccountState state change:  "Disconnected" -> "Redirect detected"
2023-07-26 17:33:57:486 [ info nextcloud.gui.account.state /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/accountstate.cpp:267 ]:	check connectivity
2023-07-26 17:33:57:486 [ debug nextcloud.sync.account /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/account.cpp:369 ]	[ OCC::Account::resetNetworkAccessManager ]:	Resetting QNAM
2023-07-26 17:33:57:486 [ info nextcloud.sync.credentials.webflow /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/creds/webflowcredentials.cpp:117 ]:	Get QNAM
2023-07-26 17:33:57:486 [ debug nextcloud.sync.connectionvalidator /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/connectionvalidator.cpp:53 ]	[ OCC::ConnectionValidator::checkServerAndAuth ]:	Checking server and authentication
2023-07-26 17:33:57:486 [ info nextcloud.gui.folder.manager /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/folderman.cpp:797 ]:	Account "USER@FOO" disconnected or paused, terminating or descheduling sync folders
2023-07-26 17:33:57:487 [ debug nextcloud.sync.networkjob /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/abstractnetworkjob.cpp:295 ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job OCC::CheckRedirectCostFreeUrlJob finished for "status.php"
2023-07-26 17:33:57:487 [ info nextcloud.sync.accessmanager /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/accessmanager.cpp:78 ]:	2 "" "https://FOO/index.php/204" has X-Request-ID "7ee6b6e9-791b-42ca-9284-1abdf7b3612e"
2023-07-26 17:33:57:487 [ debug nextcloud.sync.cookiejar /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/cookiejar.cpp:90 ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://FOO/index.php/204") requests: (QNetworkCookie("octidn4tilpi=a00e33f98b868e740f0d80d4e8add177; secure; HttpOnly; SameSite=Strict; domain=FOO; path=/"), QNetworkCookie("oc_sessionPassphrase=NRlDAtHRNnyQ%2BUAKuUqJ7LIybPLd5HiwtqqAZH3lH%2FSKLwDTy%2Foc7oQw4rBdjp6vkkSpOSMXTJwznbeZ4lVMIGjwKe5RHsYrhn2eq%2F7z1jEX3GELAQSBWBdv0JvFcmgD; secure; HttpOnly; SameSite=Strict; domain=FOO; path=/"), QNetworkCookie("OCSERVER=server2; domain=FOO; path=/"))
2023-07-26 17:33:57:488 [ info nextcloud.sync.networkjob /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/abstractnetworkjob.cpp:363 ]:	OCC::CheckRedirectCostFreeUrlJob created for "https://FOO" + "status.php" "OCC::ConnectionValidator"
2023-07-26 17:33:57:540 [ info nextcloud.sync.account /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/account.cpp:773 ]:	appPassword stored in keychain
2023-07-26 17:33:57:608 [ info nextcloud.sync.credentials.webflow /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/creds/webflowcredentials.cpp:426 ]:	request finished
2023-07-26 17:33:57:608 [ debug nextcloud.sync.networkjob.checkredirectcostfreeurl /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/networkjobs.cpp:587 ]	[ OCC::CheckRedirectCostFreeUrlJob::finished ]:	Redirecting cost-free URL QUrl("https://FOO/index.php/204")  to QUrl("https://FOO/index.php/login")
2023-07-26 17:33:57:609 [ info nextcloud.gui.folder.manager /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/folderman.cpp:797 ]:	Account "USER@FOO" disconnected or paused, terminating or descheduling sync folders
2023-07-26 17:33:57:609 [ debug nextcloud.sync.networkjob /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/abstractnetworkjob.cpp:295 ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job OCC::CheckRedirectCostFreeUrlJob finished for "status.php"
2023-07-26 17:33:59:433 [ info nextcloud.gui.updater /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/updater/ocupdater.cpp:134 ]:	Checking for available update
2023-07-26 17:33:59:434 [ info nextcloud.sync.accessmanager /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/accessmanager.cpp:78 ]:	2 "" "https://updates.nextcloud.org/client/?client=TFNCIFZlcnNpb246CW4vYQpEaXN0cmlidXRvciBJRDoJb3BlblNVU0UKRGVzY3JpcHRpb246CW9wZW5TVVNFIFR1bWJsZXdlZWQKUmVsZWFzZToJMjAyMzA3MjQKQ29kZW5hbWU6CW4vYQo%3D&version=3.9.1.0&platform=linux&osRelease=opensuse-tumbleweed&osVersion=20230724&kernelVersion=6.4.4-1-default&oem=Nextcloud&buildArch=x86_64&currentArch=x86_64&versionsuffix=git&updatesegment=55" has X-Request-ID "40dafe06-e4ea-4f33-82e8-8e3c3f6a4f28"
2023-07-26 17:33:59:434 [ debug nextcloud.sync.cookiejar /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/libsync/cookiejar.cpp:90 ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://updates.nextcloud.org/client/?client=TFNCIFZlcnNpb246CW4vYQpEaXN0cmlidXRvciBJRDoJb3BlblNVU0UKRGVzY3JpcHRpb246CW9wZW5TVVNFIFR1bWJsZXdlZWQKUmVsZWFzZToJMjAyMzA3MjQKQ29kZW5hbWU6CW4vYQo%3D&version=3.9.1.0&platform=linux&osRelease=opensuse-tumbleweed&osVersion=20230724&kernelVersion=6.4.4-1-default&oem=Nextcloud&buildArch=x86_64&currentArch=x86_64&versionsuffix=git&updatesegment=55") requests: ()
2023-07-26 17:33:59:576 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:319 ]	[ OCC::SocketApi::slotNewConnection ]:	New connection QLocalSocket(0x562464199190)
2023-07-26 17:33:59:577 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:369 ]	[ OCC::SocketApi::slotReadSocket ]:	Received SocketAPI message <-- "VERSION:" from QLocalSocket(0x562464199190)
2023-07-26 17:33:59:577 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:212 ]	[ OCC::SocketListener::sendMessage ]:	Sending SocketAPI message --> "VERSION:3.9.1git:1.1" to QLocalSocket(0x562464199190)
2023-07-26 17:33:59:577 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:369 ]	[ OCC::SocketApi::slotReadSocket ]:	Received SocketAPI message <-- "GET_STRINGS:" from QLocalSocket(0x562464199190)
2023-07-26 17:33:59:577 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:212 ]	[ OCC::SocketListener::sendMessage ]:	Sending SocketAPI message --> "GET_STRINGS:BEGIN" to QLocalSocket(0x562464199190)
2023-07-26 17:33:59:577 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:212 ]	[ OCC::SocketListener::sendMessage ]:	Sending SocketAPI message --> "STRING:SHARE_MENU_TITLE:Share options" to QLocalSocket(0x562464199190)
2023-07-26 17:33:59:577 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:212 ]	[ OCC::SocketListener::sendMessage ]:	Sending SocketAPI message --> "STRING:FILE_ACTIVITY_MENU_TITLE:Activity" to QLocalSocket(0x562464199190)
2023-07-26 17:33:59:577 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:212 ]	[ OCC::SocketListener::sendMessage ]:	Sending SocketAPI message --> "STRING:CONTEXT_MENU_TITLE:Nextcloud" to QLocalSocket(0x562464199190)
2023-07-26 17:33:59:577 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:212 ]	[ OCC::SocketListener::sendMessage ]:	Sending SocketAPI message --> "STRING:COPY_PRIVATE_LINK_MENU_TITLE:Copy private link to clipboard" to QLocalSocket(0x562464199190)
2023-07-26 17:33:59:577 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:212 ]	[ OCC::SocketListener::sendMessage ]:	Sending SocketAPI message --> "STRING:EMAIL_PRIVATE_LINK_MENU_TITLE:Send private link by email …" to QLocalSocket(0x562464199190)
2023-07-26 17:33:59:577 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:212 ]	[ OCC::SocketListener::sendMessage ]:	Sending SocketAPI message --> "STRING:CONTEXT_MENU_ICON:Nextcloud" to QLocalSocket(0x562464199190)
2023-07-26 17:33:59:577 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:212 ]	[ OCC::SocketListener::sendMessage ]:	Sending SocketAPI message --> "GET_STRINGS:END" to QLocalSocket(0x562464199190)
2023-07-26 17:34:01:037 [ debug nextcloud.gui.updater /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/updater/ocupdater.cpp:261 ]	[ OCC::OCUpdater::slotVersionInfoArrived ]:	received a reply
2023-07-26 17:34:01:037 [ info nextcloud.gui.updater /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/updater/ocupdater.cpp:558 ]:	Client is on latest version!
2023-07-26 17:34:19:249 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:369 ]	[ OCC::SocketApi::slotReadSocket ]:	Received SocketAPI message <-- "GET_MENU_ITEMS:" from QLocalSocket(0x562464199190)
2023-07-26 17:34:19:249 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:212 ]	[ OCC::SocketListener::sendMessage ]:	Sending SocketAPI message --> "GET_MENU_ITEMS:BEGIN" to QLocalSocket(0x562464199190)
2023-07-26 17:34:19:249 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:212 ]	[ OCC::SocketListener::sendMessage ]:	Sending SocketAPI message --> "GET_MENU_ITEMS:END" to QLocalSocket(0x562464199190)
2023-07-26 17:34:19:324 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:369 ]	[ OCC::SocketApi::slotReadSocket ]:	Received SocketAPI message <-- "GET_MENU_ITEMS:" from QLocalSocket(0x562464199190)
2023-07-26 17:34:19:324 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:212 ]	[ OCC::SocketListener::sendMessage ]:	Sending SocketAPI message --> "GET_MENU_ITEMS:BEGIN" to QLocalSocket(0x562464199190)
2023-07-26 17:34:19:325 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:212 ]	[ OCC::SocketListener::sendMessage ]:	Sending SocketAPI message --> "GET_MENU_ITEMS:END" to QLocalSocket(0x562464199190)
2023-07-26 17:34:19:485 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:369 ]	[ OCC::SocketApi::slotReadSocket ]:	Received SocketAPI message <-- "GET_MENU_ITEMS:" from QLocalSocket(0x562464199190)
2023-07-26 17:34:19:485 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:212 ]	[ OCC::SocketListener::sendMessage ]:	Sending SocketAPI message --> "GET_MENU_ITEMS:BEGIN" to QLocalSocket(0x562464199190)
2023-07-26 17:34:19:485 [ debug nextcloud.gui.socketapi /home/abuild/rpmbuild/BUILD/desktop-3.9.1/src/gui/socketapi/socketapi.cpp:212 ]	[ OCC::SocketListener::sendMessage ]:	Sending SocketAPI message --> "GET_MENU_ITEMS:END" to QLocalSocket(0x562464199190)

@badshah400
Copy link
Author

Same issue reproduced when using the flatpak version (Nextcloud desktop version 3.9.1).

@eidota
Copy link

eidota commented Jul 27, 2023

We have the same error ("Server is currently being redirected, or your connection is behind a captive portal."):

Server: Nextcloud 25.0.7 on Ubuntu
Clients with error:

  • Windows 3.9.1
  • Linux 3.9.1
  • MacOS 3.9.1

3.9.0 worked flawlessly

@gzuaps
Copy link

gzuaps commented Jul 28, 2023

Same issue here on CentOS9 stream, had to revert to 3.9.0.
owncloud version 10.10.0.3

@gabboman
Copy link

Just wriging here to confirm that happends both in windows and macos, using latest stable owncloud server. Had to rollback to 3.9.0

@eidota
Copy link

eidota commented Jul 28, 2023

I guess its related to this merge: e4816de

Any hints where to check our configuration to not trigger this?

@Arrrchie
Copy link

Got the issue on Windows 10, after installation of version 3.9.0 everything is working again.

Our server uses a shiboleth login, could this trigger the redirect warning?

@badshah400
Copy link
Author

I guess its related to this merge: e4816de

Any hints where to check our configuration to not trigger this?

Thanks. Indeed, reverting commit e4816de fixes it for me.

@Clashsoft
Copy link

This was caused by the """feature""" in #5894

@nursoda
Copy link

nursoda commented Aug 1, 2023

Question is whether this ancient ownCloud server SHOULD or SHOULD NOT be supported by the sync client.
(I am affected, too – there are customers running outdated servers…)

@badshah400
Copy link
Author

Question is whether this ancient ownCloud server SHOULD or SHOULD NOT be supported by the sync client. (I am affected, too – there are customers running outdated servers…)

One thing has nothing to do with the other. As noted in a previous comment, the issue may be reproduced even against "Nextcloud server 25.x", which is not too old and indeed still supported.

@nursoda
Copy link

nursoda commented Aug 1, 2023

Sorry, should have read all comments more carefully.

@badshah400
Copy link
Author

Posing this question for the distro maintainers or other admins providing nextcloud-desktop to users: How are you all handling this? Skipping (or delaying) 3.9.1 for now or just reverting commit e4816de with a patch? Thanks in advance for any helpful suggestions.

@nursoda
Copy link

nursoda commented Aug 10, 2023

It seems to me this was not fixed in 3.9.2, right?

@badshah400
Copy link
Author

It seems to me this was not fixed in 3.9.2, right?

Nope, tested version 3.9.2 today morning and same issue shows up.

@stacheldrahtje
Copy link

It seems to me this wasn't fixed in 3.9.3 either (mainly a translation update)

@jospoortvliet
Copy link
Member

jospoortvliet commented Aug 21, 2023

So does anyone know why this happens to some people but - well, not very many people, clearly - none of our customers has seen this, and they have a combined ~20 million users ;-)

This must be a server configuration that is interacting with this captive portal detection. Does anybody know what exactly is happening, is there a redirect to their server? Might help debug it - the captive portal detection is a very helpful feature and I am not happy that my openSUSE client is now on 3.9.0 instead of 3.9.3. I'd really like those bugfixes and I bet so do many other users. My mac os system is on 3.9.3 and none of the 3 servers I connect to have any issues, so hum.

Note on ownCloud: we don't support using such ancient, servers, sorry. There are so many potential issues with those, including many security related, and we do not test it at all. If you really want to use them - use an old client, or better - the ownCloud client. I'm honestly surprised it still works.

As private user: just install the AIO and move data over. Much less maintenance work, better performance and security, and features of course.

As a company or university - we happily help you migrate.

I realize migration is of course still a pain - hey, I still use a Apache setup that breaks every now and then, but still haven't migrated to the AIO). But that's why I say - use the oC client if you still are on an old ownCloud setup.

PS I'll ask @allexzander to see if he can fix this ;-)

So please, provide info on if your server has some kind of redirect or is behind one, to help him debug - and hopefully he can find out the problem soon.

@badshah400
Copy link
Author

badshah400 commented Aug 21, 2023

I cannot help debug the server config since it isn't hosted by me.

Nonetheless, I stress that introducing such a new feature with a patch version update is somewhat shocking. As a package maintainer, I generally assume such updates would solely fix bugs and otherwise maintain compatibility with the previous version.

For openSUSE, I have been mulling over submitting 3.9.3 after reverting commit e4816de but am unsure if this will end up presenting new issues or not. Otherwise, since, as noted previously, even relatively recent NextCloud server versions — perhaps with specific configurations that nonetheless worked with 3.9.0 — I find it difficult to push 3.9.1/2/3 to the distro official repos. The use of an older owncloud server is a red herring as far as this bug goes.

@eidota
Copy link

eidota commented Aug 22, 2023

As someone who is/was having this problem, i'll add some more details:

Our self-hosted Nextcloud (25.0.10) is behind an HA-Proxy and we use shibboleth for authentification. We fixed the problem for now by configuring our webserver to deliver 204 for the specific page that is used for the captive portal check. More a workaround than a solution imho.

@nursoda
Copy link

nursoda commented Aug 25, 2023

Jos: we don't support old ownCloud servers. There are potential security issues

Agreed. Yet sometimes you have little influence on what servers others run. As long as it worked, it was better than running two clients, or old ones compromising security on my laptop. I'm OK with an update introducing new protocol constraints, but as said by @badshah400 I don't expect patch versions to break things that did work before. I'll remove the old ownCloud server.

If otherwise it's a server/proxy config issue, this bug should be closed and support be moved to a new forum thread.

@jspitz
Copy link

jspitz commented Sep 11, 2023

Hit by this as well after an update to 3.9.3. Costed me a 2hr trip through the city as I didn't check whether the sync was successful before going to the office. As some others, I also am connected to a rather old server, but it's completely out of my control to change that.

@jhenin
Copy link

jhenin commented Oct 1, 2023

I'm affected as well, as the user of an institutional server I have no privileged access to.

Is there a reason to believe that the server is misconfigured, without question? Then I could request a change from the admins, but I would need to justify this extra work to them. Until then I'll have to downgrade.

@jospoortvliet
Copy link
Member

@jhenin it is definitely a server configuration - we added a feature to handle captive portals now, but the way some servers do auth looks like a captive portal to the client. I think @allexzander can probably make the logic a little smarter perhaps. I personally think it's a great feature but I'm not using shibboleth or such ;-)

I would suggest indeed to ping the sysadmins - #5929 (comment) has a solution. https://http.cat/status/204 does seem like an odd status code, indeed. I'd think a 511 is what is needed to show a portal, but anyhow, I'm no expert.

I agree that, as a feature, this is weird to add to a minor release - though we do often add small things that were planned for the major a bit later, rather than waiting for a full new major. In any case, with 3.10.x out now, this point is moot in any case.

With regards to "I do not control the server", I understand - I don't control our company server either. But, as a user, I would suppose you have some influence? After all, servers are run for users, not for the amusement of administrators. I would suggest at least to complain ;-)

@pascalBokBok
Copy link
Contributor

I was hit by this when moving from my old url domain.com/owncloud to domain.com/nextcloud
My workaround in apache was to issue a 204 for the old 204 url (before the permanent redirect). Otherwise the client would not connect and see the permanent redirect.
my apache conf.

    RewriteEngine on
    RewriteCond %{REQUEST_URI} ^/owncloud/index.php/204$
    RewriteRule ^ - [R=204,L]
    RedirectMatch 301 ^/owncloud(.*)$ https://domain.com/nextcloud$1

Then it works for the desktop sync clients.

(my mobile clients are still saying "Server unavailable" - can I get a hint for where to look?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests