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

If a keyring is used (KeepassXC) and is locked, Nextcloud tries to authenticate via browser instead of trying to unlock keyring #3195

Closed
gradinaruvasile opened this issue Apr 23, 2021 · 14 comments

Comments

@gradinaruvasile
Copy link

gradinaruvasile commented Apr 23, 2021

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Expected behaviour

Nextcloud Desktop should try to unlock keyring if present (for example Chrome does this succesfully).

Actual behaviour

Nextcloud Desktop starts and opens browser window to authenticate the user.
I have to quit NC, unlock the keepassxc key then start NC again. Then it retrieves the keys from the keychain .

Note that i use libsecret via KeepasXC. It is working as intended when it is unlocked before. NC is started. But if the database is locked, NC fails to signal the keyring that it needs unlocking. For example Chrome, if started with a locked database, signals the keyring and KeepassXC pops up the database unlock message. This behavious should be present in NC too. I did not test this with the Gnome keychain as i replaced it on all my installations, but it is possible to behave like this (but since Gnome keychain is in most cases permanently unlocked when a user is logged in, this issue doesn't happen).
Edit: Gnome keychain unlocking seems to be working as per @FlexW 's comment below.

Steps to reproduce

  1. Lock the KeepassXC keyring (or at user logon, when the keychain is not unlocked yet)
  2. Start Nextcloud

Client configuration

Client version:
Version 3.2.0 (Debian)

Operating system:
Debial Linux (Testing)

OS language:
English

Qt version used by client package (Linux only, see also Settings dialog):
Not displayed in Settings

Client package (From Nextcloud or distro) (Linux only):
From Nextcloud (also happens with Debian repo versions)
Installation path of client:
/home/username/bin/

Server configuration

Nextcloud version:
Happened with 18-21 (it is not server-related)

Logs

Please use Gist (https://gist.github.com/) or a similar code paster for longer
logs.

  1. Client logfile:
    Since 3.1: Under the "General" settings, you can click on "Create Debug Archive ..." to pick the location of where the desktop client will export the logs and the database to a zip file.
    On previous releases: Via the command line: nextcloud --logdebug --logwindow or nextcloud --logdebug --logfile log.txt
    (See also https://docs.nextcloud.com/desktop/3.0/troubleshooting.html#log-files)
2021-04-23 13:40:40:647 [ info nextcloud.gui.application ]:	"################## Nextcloud locale:[en_US] ui_lang:[] version:[3.2.0git (build 5390)] os:[Debian GNU/Linux bullseye/sid]"
2021-04-23 13:40:40:648 [ info nextcloud.gui.application ]:	Using "en_US" translation
2021-04-23 13:40:40:648 [ info nextcloud.gui.application ]:	VFS suffix plugin is available
2021-04-23 13:40:40:650 [ info nextcloud.gui.socketapi ]:	server started, listening at  "/run/user/1000/Nextcloud/socket"
2021-04-23 13:40:40:650 [ info nextcloud.gui.folder.manager ]:	setting remote poll timer interval to 30000 msec
2021-04-23 13:40:40:743 [ info nextcloud.gui.account.manager ]:	Account for QUrl("https://my.domain/nextcloud") using auth type "webflow"
2021-04-23 13:40:40:745 [ info nextcloud.sync.credentials.webflow ]:	Get QNAM
2021-04-23 13:40:40:745 [ info nextcloud.gui.account.manager ]:	Restored:  1  unknown certs.
2021-04-23 13:40:40:756 [ debug nextcloud.gui.activity ]	[ OCC::User::setNotificationRefreshInterval ]:	Starting Notification refresh timer with  300  sec interval
2021-04-23 13:40:40:788 [ info nextcloud.gui.folder.manager ]:	Setup folders from settings file
2021-04-23 13:40:40:789 [ debug nextcloud.gui.folder ]	[ OCC::Folder::checkLocalPath ]:	Checked local path ok
2021-04-23 13:40:40:792 [ info nextcloud.sync.configfile ]:	Adding user defined ignore list to csync: "/home/user/.config/Nextcloud/sync-exclude.lst"
2021-04-23 13:40:40:810 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "PRAGMA quick_check;"
2021-04-23 13:40:40:811 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "SELECT sqlite_version();"
2021-04-23 13:40:40:811 [ info nextcloud.sync.database ]:	sqlite3 version "3.11.0"
2021-04-23 13:40:40:812 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "PRAGMA locking_mode=EXCLUSIVE;"
2021-04-23 13:40:40:812 [ info nextcloud.sync.database ]:	sqlite3 locking_mode= "exclusive"
2021-04-23 13:40:40:812 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "PRAGMA journal_mode=WAL;"
2021-04-23 13:40:40:812 [ info nextcloud.sync.database ]:	sqlite3 journal_mode= "wal"
2021-04-23 13:40:40:812 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "PRAGMA synchronous = NORMAL;"
2021-04-23 13:40:40:812 [ info nextcloud.sync.database ]:	sqlite3 synchronous= "NORMAL"
2021-04-23 13:40:40:812 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "PRAGMA case_sensitive_like = ON;"
2021-04-23 13:40:40:812 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "CREATE TABLE IF NOT EXISTS metadata(phash INTEGER(8),pathlen INTEGER,path VARCHAR(4096),inode INTEGER,uid INTEGER,gid INTEGER,mode INTEGER,modtime INTEGER(8),type INTEGER,md5 VARCHAR(32),PRIMARY KEY(phash));"
2021-04-23 13:40:40:812 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
2021-04-23 13:40:40:812 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "CREATE TABLE IF NOT EXISTS downloadinfo(path VARCHAR(4096),tmpfile VARCHAR(4096),etag VARCHAR(32),errorcount INTEGER,PRIMARY KEY(path));"
2021-04-23 13:40:40:812 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "CREATE TABLE IF NOT EXISTS uploadinfo(path VARCHAR(4096),chunk INTEGER,transferid INTEGER,errorcount INTEGER,size INTEGER(8),modtime INTEGER(8),contentChecksum TEXT,PRIMARY KEY(path));"
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "CREATE TABLE IF NOT EXISTS blacklist (path VARCHAR(4096),lastTryEtag VARCHAR[32],lastTryModtime INTEGER[8],retrycount INTEGER,errorstring VARCHAR[4096],PRIMARY KEY(path));"
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "CREATE TABLE IF NOT EXISTS async_poll(path VARCHAR(4096),modtime INTEGER(8),filesize BIGINT,pollpath VARCHAR(4096));"
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "CREATE TABLE IF NOT EXISTS selectivesync (path VARCHAR(4096),type INTEGER);"
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "CREATE TABLE IF NOT EXISTS checksumtype(id INTEGER PRIMARY KEY,name TEXT UNIQUE);"
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "CREATE TABLE IF NOT EXISTS datafingerprint(fingerprint TEXT UNIQUE);"
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "CREATE TABLE IF NOT EXISTS flags (path TEXT PRIMARY KEY,pinState INTEGER);"
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "CREATE TABLE IF NOT EXISTS conflicts(path TEXT PRIMARY KEY,baseFileId TEXT,baseEtag TEXT,baseModtime INTEGER);"
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "CREATE TABLE IF NOT EXISTS version(major INTEGER(8),minor INTEGER(8),patch INTEGER(8),custom VARCHAR(256));"
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "checkConnect" and starting new transaction
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "PRAGMA table_info('metadata');"
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database ]	[ 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")
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "CREATE INDEX IF NOT EXISTS metadata_inode ON metadata(inode);"
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "update database structure: add inode index" and starting new transaction
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "CREATE INDEX IF NOT EXISTS metadata_path ON metadata(path);"
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "update database structure: add path index" and starting new transaction
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "CREATE INDEX IF NOT EXISTS metadata_parent ON metadata(parent_hash(path));"
2021-04-23 13:40:40:813 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
2021-04-23 13:40:40:814 [ debug nextcloud.sync.database ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "update database structure: add parent index" and starting new transaction
2021-04-23 13:40:40:814 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "PRAGMA table_info('uploadinfo');"
2021-04-23 13:40:40:814 [ debug nextcloud.sync.database ]	[ OCC::SyncJournalDb::tableColumns ]:	Columns in the current journal: QVector("path", "chunk", "transferid", "errorcount", "size", "modtime", "contentChecksum")
2021-04-23 13:40:40:814 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "PRAGMA table_info('conflicts');"
2021-04-23 13:40:40:814 [ debug nextcloud.sync.database ]	[ OCC::SyncJournalDb::tableColumns ]:	Columns in the current journal: QVector("path", "baseFileId", "baseEtag", "baseModtime", "basePath")
2021-04-23 13:40:40:814 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "CREATE INDEX IF NOT EXISTS metadata_e2e_id ON metadata(e2eMangledName);"
2021-04-23 13:40:40:814 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
2021-04-23 13:40:40:814 [ debug nextcloud.sync.database ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "update database structure: add e2eMangledName index" and starting new transaction
2021-04-23 13:40:40:814 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "PRAGMA table_info('blacklist');"
2021-04-23 13:40:40:814 [ debug nextcloud.sync.database ]	[ OCC::SyncJournalDb::tableColumns ]:	Columns in the current journal: QVector("path", "lastTryEtag", "lastTryModtime", "retrycount", "errorstring", "lastTryTime", "ignoreDuration", "renameTarget", "errorCategory", "requestId")
2021-04-23 13:40:40:814 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "CREATE INDEX IF NOT EXISTS blacklist_index ON blacklist(path collate nocase);"
2021-04-23 13:40:40:814 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
2021-04-23 13:40:40:814 [ debug nextcloud.sync.database ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "checkConnect End" 
2021-04-23 13:40:40:814 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "SELECT COUNT(*) FROM metadata"
2021-04-23 13:40:40:814 [ info nextcloud.gui.folder.manager ]:	Adding folder to Folder Map  OCC::Folder(0x5615fabf82b0) "1"
2021-04-23 13:40:40:814 [ debug nextcloud.gui.folderwatcher ]	[ OCC::FolderWatcherPrivate::slotAddFolderRecursive ]:	(+) Watcher: "/media/hugedata/GREEN/"
2021-04-23 13:40:40:818 [ debug nextcloud.gui.folderwatcher ]	[ OCC::FolderWatcherPrivate::slotAddFolderRecursive ]:	    `-> and 54 subdirectories
2021-04-23 13:40:40:818 [ info nextcloud.gui.folder.manager ]:	Schedule folder  "1"  to sync!
2021-04-23 13:40:40:818 [ info nextcloud.gui.folder.manager ]:	Folder is not ready to sync, not scheduled!
2021-04-23 13:40:40:818 [ info nextcloud.gui.application ]:	Sync state changed for folder  "https://my.domain/nextcloud/remote.php/webdav/" :  "Not yet Started"
2021-04-23 13:40:40:818 [ info nextcloud.sync.clientproxy ]:	Set proxy configuration to use NO proxy
2021-04-23 13:40:40:944 [ debug nextcloud.gui.updater ]	[ OCC::Updater::getSystemInfo ]:	Sys Info size:  102
2021-04-23 13:40:40:944 [ debug nextcloud.gui.updater ]	[ OCC::Updater::create ]:	QUrl("https://updates.nextcloud.org/client/?client=RGlzdHJpYnV0b3IgSUQ6CURlYmlhbgpEZXNjcmlwdGlvbjoJRGViaWFuIEdOVS9MaW51eCBidWxsc2V5ZS9zaWQKUmVsZWFzZToJdGVzdGluZwpDb2RlbmFtZToJYnVsbHNleWUK&version=3.2.0.5390&platform=linux&oem=Nextcloud&buildArch=x86_64&currentArch=x86_64&versionsuffix=git&updatesegment=12")
2021-04-23 13:40:41:606 [ warning default ]:	qrc:/qml/src/gui/tray/Window.qml:430:20: QML Image: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
2021-04-23 13:40:41:629 [ warning default ]:	qrc:/qml/src/gui/tray/Window.qml:168: ReferenceError: PopupMenu is not defined
2021-04-23 13:40:41:629 [ warning default ]:	qrc:/qml/src/gui/tray/Window.qml:360: TypeError: Property 'currentUserId' of object OCC::UserModel(0x5615fac3e690) is not a function
2021-04-23 13:40:41:629 [ warning default ]:	qrc:/qml/src/gui/tray/Window.qml:443: TypeError: Property 'currentUserId' of object OCC::UserModel(0x5615fac3e690) is not a function
2021-04-23 13:40:41:633 [ debug nextcloud.gui.folderwatcher ]	[ OCC::FolderWatcher::pathIsIgnored ]:	* Ignoring file "/media/hugedata/GREEN/.owncloudsync.log"
2021-04-23 13:40:41:634 [ info nextcloud.sync.credentials.webflow ]:	Fetch from keychain!
2021-04-23 13:40:41:668 [ debug default ]	[ unknown ]:	static bool LibSecretKeyring::findPassword(const QString&, const QString&, QKeychain::JobPrivate*)
2021-04-23 13:40:41:683 [ warning nextcloud.sync.credentials.keychainchunk ]:	Unable to read "user_clientCertificatePEM:https://my.domain/nextcloud/:0" chunk "0" "Entry not found"
2021-04-23 13:40:41:683 [ debug default ]	[ unknown ]:	static bool LibSecretKeyring::findPassword(const QString&, const QString&, QKeychain::JobPrivate*)
2021-04-23 13:40:41:684 [ warning nextcloud.sync.credentials.keychainchunk ]:	Unable to read "user_clientKeyPEM:https://my.domain/nextcloud/:0" chunk "0" "Entry not found"
2021-04-23 13:40:41:685 [ warning nextcloud.sync.credentials.webflow ]:	Unable to read client key "Entry not found"
2021-04-23 13:40:41:685 [ debug default ]	[ unknown ]:	static bool LibSecretKeyring::findPassword(const QString&, const QString&, QKeychain::JobPrivate*)
2021-04-23 13:40:41:685 [ warning nextcloud.sync.credentials.keychainchunk ]:	Unable to read "user_clientCaCertificatePEM0:https://my.domain/nextcloud/:0" chunk "0" "Entry not found"
2021-04-23 13:40:41:685 [ warning nextcloud.sync.credentials.webflow ]:	Unable to read client CA cert slot "0" "Entry not found"
2021-04-23 13:40:41:686 [ debug default ]	[ unknown ]:	static bool LibSecretKeyring::findPassword(const QString&, const QString&, QKeychain::JobPrivate*)
2021-04-23 13:40:41:686 [ debug default ]	[ unknown ]:	static bool LibSecretKeyring::findPassword(const QString&, const QString&, QKeychain::JobPrivate*)
2021-04-23 13:40:41:687 [ warning nextcloud.sync.credentials.keychainchunk ]:	Unable to read "user_clientCertificatePEM:https://my.domain/nextcloud/" chunk "0" "Entry not found"
2021-04-23 13:40:41:687 [ debug default ]	[ unknown ]:	static bool LibSecretKeyring::findPassword(const QString&, const QString&, QKeychain::JobPrivate*)
2021-04-23 13:40:41:687 [ warning nextcloud.sync.credentials.keychainchunk ]:	Unable to read "user_clientKeyPEM:https://my.domain/nextcloud/" chunk "0" "Entry not found"
2021-04-23 13:40:41:687 [ warning nextcloud.sync.credentials.webflow ]:	Unable to read client key "Entry not found"
2021-04-23 13:40:41:688 [ debug default ]	[ unknown ]:	static bool LibSecretKeyring::findPassword(const QString&, const QString&, QKeychain::JobPrivate*)
2021-04-23 13:40:41:688 [ warning nextcloud.sync.credentials.keychainchunk ]:	Unable to read "user_clientCaCertificatePEM0:https://my.domain/nextcloud/" chunk "0" "Entry not found"
2021-04-23 13:40:41:688 [ warning nextcloud.sync.credentials.webflow ]:	Unable to read client CA cert slot "0" "Entry not found"
2021-04-23 13:40:41:688 [ debug default ]	[ unknown ]:	static bool LibSecretKeyring::findPassword(const QString&, const QString&, QKeychain::JobPrivate*)
2021-04-23 13:40:41:689 [ info nextcloud.gui.account.state ]:	Fetched credentials for "https://my.domain/nextcloud" attempting to connect
2021-04-23 13:40:41:689 [ debug nextcloud.sync.account ]	[ OCC::Account::resetNetworkAccessManager ]:	Resetting QNAM
2021-04-23 13:40:41:689 [ info nextcloud.sync.credentials.webflow ]:	Get QNAM
2021-04-23 13:40:41:689 [ debug nextcloud.sync.connectionvalidator ]	[ OCC::ConnectionValidator::checkServerAndAuth ]:	Checking server and authentication
2021-04-23 13:40:41:689 [ info nextcloud.sync.accessmanager ]:	2 "" "https://my.domain/nextcloud/status.php" has X-Request-ID "5327872f-5320-41b7-b471-e76f2485922a"
2021-04-23 13:40:41:691 [ debug nextcloud.sync.cookiejar ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://my.domain/nextcloud/status.php") requests: (QNetworkCookie("nc_sameSiteCookielax=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=my.domain; path=/nextcloud"), QNetworkCookie("nc_sameSiteCookiestrict=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=my.domain; path=/nextcloud"))
2021-04-23 13:40:41:691 [ info nextcloud.sync.networkjob ]:	OCC::CheckServerJob created for "https://my.domain/nextcloud" + "status.php" "OCC::ConnectionValidator"
2021-04-23 13:40:41:891 [ info nextcloud.sync.credentials.webflow ]:	request finished
2021-04-23 13:40:41:891 [ info nextcloud.sync.networkjob.checkserver ]:	status.php returns:  QJsonDocument({"edition":"","extendedSupport":false,"installed":true,"maintenance":false,"needsDbUpgrade":false,"productname":"Nextcloud user","version":"21.0.1.1","versionstring":"21.0.1"})   QNetworkReply::NoError  Reply:  QNetworkReplyHttpImpl(0x5615fae6df30)
2021-04-23 13:40:41:891 [ info nextcloud.sync.connectionvalidator ]:	** Application: ownCloud found:  QUrl("https://my.domain/nextcloud")  with version  "21.0.1" ( "21.0.1.1" )
2021-04-23 13:40:41:891 [ info nextcloud.sync.connectionvalidator ]:	QUrl("https://my.domain/nextcloud") has server version "21.0.1.1"
2021-04-23 13:40:41:891 [ debug nextcloud.sync.networkjob ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job OCC::CheckServerJob finished for "status.php"
2021-04-23 13:40:41:891 [ info nextcloud.gui.account.state ]:	AccountState connection status change:  OCC::ConnectionValidator::Undefined -> OCC::ConnectionValidator::CredentialsNotReady
2021-04-23 13:40:41:891 [ info nextcloud.gui.account.state ]:	Invalid credentials for "https://my.domain/nextcloud" asking user
2021-04-23 13:40:41:891 [ info nextcloud.gui.account.state ]:	AccountState state change:  "Disconnected" -> "Asking Credentials"
2021-04-23 13:40:41:892 [ info nextcloud.gui.folder.manager ]:	Account "[email protected]" disconnected or paused, terminating or descheduling sync folders
2021-04-23 13:40:41:892 [ info nextcloud.sync.networkjob.determineauthtype ]:	Determining auth type for QUrl("https://my.domain/nextcloud/remote.php/webdav/")
2021-04-23 13:40:41:892 [ info nextcloud.sync.accessmanager ]:	2 "" "https://my.domain/nextcloud" has X-Request-ID "cb6741c6-9568-4938-b6bf-59ccace79b96"
2021-04-23 13:40:41:892 [ debug nextcloud.sync.cookiejar ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://my.domain/nextcloud") requests: (QNetworkCookie("nc_sameSiteCookielax=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=my.domain; path=/nextcloud"), QNetworkCookie("nc_sameSiteCookiestrict=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=my.domain; path=/nextcloud"), QNetworkCookie("oc_sessionPassphrase=TRop7kVVH0BzfRfa%2BeMK8gF%2F5Do5JRFyR8Ei3lE7CnpCG1okb7E3U9S2qZ%2BKquaFXvLBMem%2Fcobba%2BtFhhv%2B48UONJAAoMWfne5PrK179b58%2BC7VKhhCfwohoPtlznce; secure; HttpOnly; domain=my.domain; path=/nextcloud"), QNetworkCookie("oc4m6gf8llol=5bfs4rjda0fopl12mke1vsmv5u; secure; HttpOnly; domain=my.domain; path=/nextcloud"))
2021-04-23 13:40:41:892 [ info nextcloud.sync.networkjob ]:	OCC::SimpleNetworkJob created for "https://my.domain/nextcloud" + "" ""
2021-04-23 13:40:41:892 [ info nextcloud.sync.accessmanager ]:	6 "PROPFIND" "https://my.domain/nextcloud/remote.php/webdav/" has X-Request-ID "9ad356b8-1725-4720-8194-c76d6a7e7da6"
2021-04-23 13:40:41:892 [ debug nextcloud.sync.cookiejar ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://my.domain/nextcloud/remote.php/webdav/") requests: (QNetworkCookie("nc_sameSiteCookielax=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=my.domain; path=/nextcloud"), QNetworkCookie("nc_sameSiteCookiestrict=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=my.domain; path=/nextcloud"), QNetworkCookie("oc_sessionPassphrase=TRop7kVVH0BzfRfa%2BeMK8gF%2F5Do5JRFyR8Ei3lE7CnpCG1okb7E3U9S2qZ%2BKquaFXvLBMem%2Fcobba%2BtFhhv%2B48UONJAAoMWfne5PrK179b58%2BC7VKhhCfwohoPtlznce; secure; HttpOnly; domain=my.domain; path=/nextcloud"), QNetworkCookie("oc4m6gf8llol=5bfs4rjda0fopl12mke1vsmv5u; secure; HttpOnly; domain=my.domain; path=/nextcloud"))
2021-04-23 13:40:41:893 [ info nextcloud.sync.networkjob ]:	OCC::SimpleNetworkJob created for "https://my.domain/nextcloud" + "" ""
2021-04-23 13:40:41:893 [ info nextcloud.sync.accessmanager ]:	2 "" "https://my.domain/nextcloud/ocs/v2.php/cloud/capabilities?format=json" has X-Request-ID "2425386d-dbe9-4787-a783-447fb44ade6b"
2021-04-23 13:40:41:893 [ debug nextcloud.sync.cookiejar ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://my.domain/nextcloud/ocs/v2.php/cloud/capabilities?format=json") requests: (QNetworkCookie("nc_sameSiteCookielax=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=my.domain; path=/nextcloud"), QNetworkCookie("nc_sameSiteCookiestrict=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=my.domain; path=/nextcloud"), QNetworkCookie("oc_sessionPassphrase=TRop7kVVH0BzfRfa%2BeMK8gF%2F5Do5JRFyR8Ei3lE7CnpCG1okb7E3U9S2qZ%2BKquaFXvLBMem%2Fcobba%2BtFhhv%2B48UONJAAoMWfne5PrK179b58%2BC7VKhhCfwohoPtlznce; secure; HttpOnly; domain=my.domain; path=/nextcloud"), QNetworkCookie("oc4m6gf8llol=5bfs4rjda0fopl12mke1vsmv5u; secure; HttpOnly; domain=my.domain; path=/nextcloud"))
2021-04-23 13:40:41:893 [ info nextcloud.sync.networkjob ]:	OCC::JsonApiJob created for "https://my.domain/nextcloud" + "/ocs/v2.php/cloud/capabilities" "OCC::DetermineAuthTypeJob"
2021-04-23 13:40:41:893 [ debug nextcloud.sync.credentials.webflow ]	[ OCC::WebFlowCredentials::askFromUser ]:	User needs to reauth!
2021-04-23 13:40:41:893 [ info nextcloud.sync.credentials.webflow ]:	request finished
2021-04-23 13:40:41:894 [ info nextcloud.sync.networkjob ]:	Redirecting "GET" QUrl("https://my.domain/nextcloud") QUrl("https://my.domain/nextcloud/")
2021-04-23 13:40:41:894 [ info nextcloud.sync.accessmanager ]:	2 "" "https://my.domain/nextcloud/" has X-Request-ID "6b237c4c-fe22-4c74-b9d8-efc664043bf4"
2021-04-23 13:40:41:894 [ debug nextcloud.sync.cookiejar ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://my.domain/nextcloud/") requests: (QNetworkCookie("nc_sameSiteCookielax=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=my.domain; path=/nextcloud"), QNetworkCookie("nc_sameSiteCookiestrict=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=my.domain; path=/nextcloud"), QNetworkCookie("oc_sessionPassphrase=TRop7kVVH0BzfRfa%2BeMK8gF%2F5Do5JRFyR8Ei3lE7CnpCG1okb7E3U9S2qZ%2BKquaFXvLBMem%2Fcobba%2BtFhhv%2B48UONJAAoMWfne5PrK179b58%2BC7VKhhCfwohoPtlznce; secure; HttpOnly; domain=my.domain; path=/nextcloud"), QNetworkCookie("oc4m6gf8llol=5bfs4rjda0fopl12mke1vsmv5u; secure; HttpOnly; domain=my.domain; path=/nextcloud"))
2021-04-23 13:40:41:961 [ info nextcloud.sync.credentials.webflow ]:	request finished
2021-04-23 13:40:41:961 [ warning nextcloud.sync.credentials.webflow ]:	QNetworkReply::AuthenticationRequiredError
2021-04-23 13:40:41:961 [ warning nextcloud.sync.credentials.webflow ]:	"Host requires authentication"
2021-04-23 13:40:41:961 [ warning nextcloud.sync.networkjob.determineauthtype ]:	Unknown WWW-Authenticate reply to auth-test PROPFIND: "basic realm=\"nextcloud user\", charset=\"utf-8\""
2021-04-23 13:40:41:961 [ debug nextcloud.sync.networkjob ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job OCC::SimpleNetworkJob finished for ""
2021-04-23 13:40:41:993 [ info nextcloud.sync.credentials.webflow ]:	request finished
2021-04-23 13:40:41:993 [ info nextcloud.sync.networkjob ]:	Redirecting "GET" QUrl("https://my.domain/nextcloud/") QUrl("https://my.domain/nextcloud/login")
2021-04-23 13:40:41:993 [ info nextcloud.sync.accessmanager ]:	2 "" "https://my.domain/nextcloud/login" has X-Request-ID "573692c0-0c5f-4a74-922a-c9b924027072"
2021-04-23 13:40:41:994 [ debug nextcloud.sync.cookiejar ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://my.domain/nextcloud/login") requests: (QNetworkCookie("nc_sameSiteCookielax=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=my.domain; path=/nextcloud"), QNetworkCookie("nc_sameSiteCookiestrict=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=my.domain; path=/nextcloud"), QNetworkCookie("oc_sessionPassphrase=TRop7kVVH0BzfRfa%2BeMK8gF%2F5Do5JRFyR8Ei3lE7CnpCG1okb7E3U9S2qZ%2BKquaFXvLBMem%2Fcobba%2BtFhhv%2B48UONJAAoMWfne5PrK179b58%2BC7VKhhCfwohoPtlznce; secure; HttpOnly; domain=my.domain; path=/nextcloud"), QNetworkCookie("oc4m6gf8llol=5bfs4rjda0fopl12mke1vsmv5u; secure; HttpOnly; domain=my.domain; path=/nextcloud"))
2021-04-23 13:40:42:046 [ info nextcloud.sync.credentials.webflow ]:	request finished
2021-04-23 13:40:42:046 [ info nextcloud.sync.networkjob.jsonapi ]:	JsonApiJob of QUrl("https://my.domain/nextcloud/ocs/v2.php/cloud/capabilities?format=json") FINISHED WITH STATUS "OK"
2021-04-23 13:40:42:047 [ debug nextcloud.sync.networkjob ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job OCC::JsonApiJob finished for "/ocs/v2.php/cloud/capabilities"
2021-04-23 13:40:42:085 [ info nextcloud.sync.credentials.webflow ]:	request finished
2021-04-23 13:40:42:085 [ info nextcloud.sync.networkjob.determineauthtype ]:	Auth type for QUrl("https://my.domain/nextcloud/remote.php/webdav/") is OCC::DetermineAuthTypeJob::LoginFlowV2
2021-04-23 13:40:42:085 [ warning default ]:	QLayout: Attempting to add QLayout "" to OCC::WebFlowCredentialsDialog "", which already has a layout
2021-04-23 13:40:42:089 [ info nextcloud.sync.accessmanager ]:	4 "" "https://my.domain/nextcloud/index.php/login/v2" has X-Request-ID "053adf7c-6e03-455b-b0dc-e9acd525f308"
2021-04-23 13:40:42:090 [ debug nextcloud.sync.cookiejar ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://my.domain/nextcloud/index.php/login/v2") requests: (QNetworkCookie("nc_sameSiteCookielax=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=my.domain; path=/nextcloud"), QNetworkCookie("nc_sameSiteCookiestrict=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=my.domain; path=/nextcloud"), QNetworkCookie("oc_sessionPassphrase=TRop7kVVH0BzfRfa%2BeMK8gF%2F5Do5JRFyR8Ei3lE7CnpCG1okb7E3U9S2qZ%2BKquaFXvLBMem%2Fcobba%2BtFhhv%2B48UONJAAoMWfne5PrK179b58%2BC7VKhhCfwohoPtlznce; secure; HttpOnly; domain=my.domain; path=/nextcloud"), QNetworkCookie("oc4m6gf8llol=5bfs4rjda0fopl12mke1vsmv5u; secure; HttpOnly; domain=my.domain; path=/nextcloud"))
2021-04-23 13:40:42:090 [ info nextcloud.sync.networkjob ]:	OCC::SimpleNetworkJob created for "https://my.domain/nextcloud" + "" ""
2021-04-23 13:40:42:104 [ debug nextcloud.sync.networkjob ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job OCC::SimpleNetworkJob finished for ""
2021-04-23 13:40:42:211 [ info nextcloud.sync.credentials.webflow ]:	request finished
2021-04-23 13:40:42:211 [ info nextcloud.sync.credentials.flow2auth ]:	setting remote poll timer interval to 30000 msec
2021-04-23 13:40:42:220 [ debug nextcloud.sync.networkjob ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job OCC::SimpleNetworkJob finished for ""
2021-04-23 13:40:45:231 [ info nextcloud.gui.updater ]:	Checking for available update
2021-04-23 13:40:45:231 [ info nextcloud.sync.accessmanager ]:	2 "" "https://updates.nextcloud.org/client/?client=RGlzdHJpYnV0b3IgSUQ6CURlYmlhbgpEZXNjcmlwdGlvbjoJRGViaWFuIEdOVS9MaW51eCBidWxsc2V5ZS9zaWQKUmVsZWFzZToJdGVzdGluZwpDb2RlbmFtZToJYnVsbHNleWUK&version=3.2.0.5390&platform=linux&oem=Nextcloud&buildArch=x86_64&currentArch=x86_64&versionsuffix=git&updatesegment=12" has X-Request-ID "49c96c6e-40ff-49cc-bc86-440399faef5f"
2021-04-23 13:40:45:231 [ debug nextcloud.sync.cookiejar ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://updates.nextcloud.org/client/?client=RGlzdHJpYnV0b3IgSUQ6CURlYmlhbgpEZXNjcmlwdGlvbjoJRGViaWFuIEdOVS9MaW51eCBidWxsc2V5ZS9zaWQKUmVsZWFzZToJdGVzdGluZwpDb2RlbmFtZToJYnVsbHNleWUK&version=3.2.0.5390&platform=linux&oem=Nextcloud&buildArch=x86_64&currentArch=x86_64&versionsuffix=git&updatesegment=12") requests: ()
2021-04-23 13:40:45:562 [ info nextcloud.gui.updater ]:	Client is on latest version!
2021-04-23 13:40:45:646 [ info nextcloud.sync.accessmanager ]:	4 "" "https://my.domain/nextcloud/login/v2/poll" has X-Request-ID "16519627-b567-4110-a44c-895e6ca9b282"
2021-04-23 13:40:45:646 [ debug nextcloud.sync.cookiejar ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://my.domain/nextcloud/login/v2/poll") requests: (QNetworkCookie("nc_sameSiteCookielax=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=my.domain; path=/nextcloud"), QNetworkCookie("nc_sameSiteCookiestrict=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=my.domain; path=/nextcloud"), QNetworkCookie("oc_sessionPassphrase=TRop7kVVH0BzfRfa%2BeMK8gF%2F5Do5JRFyR8Ei3lE7CnpCG1okb7E3U9S2qZ%2BKquaFXvLBMem%2Fcobba%2BtFhhv%2B48UONJAAoMWfne5PrK179b58%2BC7VKhhCfwohoPtlznce; secure; HttpOnly; domain=my.domain; path=/nextcloud"), QNetworkCookie("oc4m6gf8llol=5bfs4rjda0fopl12mke1vsmv5u; secure; HttpOnly; domain=my.domain; path=/nextcloud"))
2021-04-23 13:40:45:646 [ info nextcloud.sync.networkjob ]:	OCC::SimpleNetworkJob created for "https://my.domain/nextcloud" + "" ""
2021-04-23 13:40:45:707 [ info nextcloud.sync.credentials.webflow ]:	request finished
2021-04-23 13:40:45:707 [ warning nextcloud.sync.networkjob ]:	QNetworkReply::ContentNotFoundError "Server replied \"404 Not Found\" to \"POST https://my.domain/nextcloud/login/v2/poll\"" QVariant(int, 404)
2021-04-23 13:40:45:707 [ warning nextcloud.sync.credentials.webflow ]:	QNetworkReply::ContentNotFoundError
2021-04-23 13:40:45:707 [ warning nextcloud.sync.credentials.webflow ]:	"Error transferring https://my.domain/nextcloud/login/v2/poll - server replied: Not Found"
2021-04-23 13:40:45:707 [ debug nextcloud.sync.credentials.flow2auth ]	[ OCC::Flow2Auth::slotPollTimerTimeout()::<lambda ]:	Error when polling for the appPassword QJsonObject({"error":null}) "There was an error accessing the 'token' endpoint: <br><em>Error transferring https://my.domain/nextcloud/login/v2/poll - server replied: Not Found</em>"
2021-04-23 13:40:45:707 [ debug nextcloud.sync.networkjob ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job OCC::SimpleNetworkJob finished for ""
2021-04-23 13:40:50:396 [ debug nextcloud.sync.credentials.webflow ]	[ OCC::WebFlowCredentials::slotAskFromUserCancelled ]:	User cancelled reauth!
2021-04-23 13:40:50:397 [ info nextcloud.gui.account.state ]:	Credentials asked for "https://my.domain/nextcloud" are they ready? false
2021-04-23 13:40:50:397 [ info nextcloud.gui.account.state ]:	AccountState state change:  "Asking Credentials" -> "Signed out"
2021-04-23 13:40:50:397 [ info nextcloud.gui.folder.manager ]:	Account "[email protected]" disconnected or paused, terminating or descheduling sync folders
2021-04-23 13:40:52:423 [ debug default ]	[ unknown ]:	static bool LibSecretKeyring::findPassword(const QString&, const QString&, QKeychain::JobPrivate*)
2021-04-23 13:40:52:424 [ warning nextcloud.sync.credentials.keychainchunk ]:	Unable to read "proxy-password" chunk "0" "Entry not found"
2021-04-23 13:40:52:433 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::bindValue ]:	SQL bind 1 3
2021-04-23 13:40:52:433 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "SELECT path FROM selectivesync WHERE type=?1"
2021-04-23 13:40:52:439 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::bindValue ]:	SQL bind 1 3
2021-04-23 13:40:52:439 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "SELECT path FROM selectivesync WHERE type=?1"
2021-04-23 13:40:52:452 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::bindValue ]:	SQL bind 1 3
2021-04-23 13:40:52:452 [ debug nextcloud.sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec "SELECT path FROM selectivesync WHERE type=?1"
2021-04-23 13:41:10:621 [ info nextcloud.gui.folder.manager ]:	Etag poll timer timeout
2021-04-23 13:41:10:621 [ info nextcloud.gui.folder.manager ]:	Folders to sync: 1
2021-04-23 13:41:10:621 [ info nextcloud.gui.folder.manager ]:	Number of folders that don't use push notifications: 1
2021-04-23 13:41:10:621 [ info nextcloud.gui.folder.manager ]:	Run etag job on folder OCC::Folder(0x5615fabf82b0)
2021-04-23 13:41:10:621 [ info nextcloud.gui.folder.manager ]:	Can not run etag job: Folder is busy

@FlexW
Copy link

FlexW commented Apr 23, 2021

Just for the record: Unlocking works fine with the GNOME keyring. The issue could also be in https://github.com/frankosterfeld/qtkeychain

@gradinaruvasile gradinaruvasile changed the title If a keyring is used (KeepassXC) and is locked, Nextcloud triest to authenticate via browser instead of trying to unlock keyring If a keyring is used (KeepassXC) and is locked, Nextcloud tries to authenticate via browser instead of trying to unlock keyring Apr 23, 2021
@T-bond
Copy link

T-bond commented Apr 26, 2021

I think this is related to/duplicate of #2573
Also see my comment about my futher investigation: #2573 (comment)

@github-actions

This comment was marked as outdated.

@github-actions github-actions bot added the stale label May 24, 2021
@FlexW FlexW removed the stale label May 26, 2021
@github-actions

This comment was marked as outdated.

@github-actions github-actions bot added the stale label Jun 23, 2021
@T-bond

This comment was marked as resolved.

@github-actions github-actions bot removed the stale label Jun 24, 2021
@FlexW FlexW added the approved bug approved by the team label Jun 24, 2021
@xannor
Copy link

xannor commented Oct 17, 2021

I just came across this and I wanted to know if the merge that closed this issue (keepassxreboot/keepassxc#4443) would solve this issue (on linux), or if the desktop app even honors this? This was just merged a few hours ago, and I dont know if it will be in the next release for keepassxc.

@T-bond
Copy link

T-bond commented Jan 8, 2022

I just came across this and I wanted to know if the merge that closed this issue (keepassxreboot/keepassxc#4443) would solve this issue (on linux), or if the desktop app even honors this? This was just merged a few hours ago, and I dont know if it will be in the next release for keepassxc.

I just tested with the current develop branch of keepassxc, and it seems to be working now. So we just have to wait for the next release of Keepassxc.

If KeePassXC database is locked, and Nextcloud client starts, KeePassXC will show up to ask for unlocking the database. After you unlock it, Nextcloud will authenticate. (NO MORE BROWSER LOGIN REQUEST :) )

One important thing to have this checkbox enabled in KeePassXC
image

I also tested what happens when KeePassXC is not running, and Nextcloud will just wait for some time, and will stop after X seconds passed.

@gradinaruvasile
Copy link
Author

I just came across this and I wanted to know if the merge that closed this issue (keepassxreboot/keepassxc#4443) would solve this issue (on linux), or if the desktop app even honors this? This was just merged a few hours ago, and I dont know if it will be in the next release for keepassxc.

I just tested with the current develop branch of keepassxc, and it seems to be working now. So we just have to wait for the next release of Keepassxc.

If KeePassXC database is locked, and Nextcloud client starts, KeePassXC will show up to ask for unlocking the database. After you unlock it, Nextcloud will authenticate. (NO MORE BROWSER LOGIN REQUEST :) )

One important thing to have this checkbox enabled in KeePassXC image

I also tested what happens when KeePassXC is not running, and Nextcloud will just wait for some time, and will stop after X seconds passed.

I just tested this functionality and it doesnt work. I locked databases, exited and relaunched nextcloud. Keepassxc was running. Nextcloud still popped up the browser authentication window.

@T-bond
Copy link

T-bond commented Jan 11, 2022

Does your Nextcloud stored the credentials in KeepasXC through libsecret?

Did you checked in the box that I showed on the picture? For me this is still working.

Only thing I noticed since then, that if I don't type in my password for a longer time (maybe minutes), the browser login still pops up. Which is not wanted.

@gradinaruvasile
Copy link
Author

Yes, the credentials are stored through libsecret. Nextcloud doesnt start if Keepass is not started or is locked.
image
The options look different for me. I use the latest KeepassXC version 2.6.6, appimage downloaded directly from the website.

@T-bond
Copy link

T-bond commented Jan 11, 2022

That is the problem. You have to use the not yet released 2.7 version of KeepasXC as I stated in my original comment.

@gradinaruvasile
Copy link
Author

gradinaruvasile commented Jan 11, 2022

I checked and it does work with pre release 2.7.0. Locked keepassxc, launched nextcloud, got the prompt, unlocked and nextcloud started.

BTW by default all of those options are checked.

@ericfischereu
Copy link

Is this related to #2573 ?

@joshtrichards
Copy link
Member

Closing per: #3195 (comment)

@ericfischerbav It's likely related to some of the people commenting in #2573, yes.

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

6 participants