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

QGIS cannot store master password in wallet/keyring #29278

Open
qgib opened this issue Mar 4, 2019 · 8 comments
Open

QGIS cannot store master password in wallet/keyring #29278

qgib opened this issue Mar 4, 2019 · 8 comments
Labels
Authentication Related to the QGIS Authentication subsystem or user/password handling Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@qgib
Copy link
Contributor

qgib commented Mar 4, 2019

Author Name: Cory Albrecht (@CoryAlbrecht)
Original Redmine Issue: 21461
Affected QGIS version: 3.4.5
Redmine category:authentication_system


../../src/core/qgsmessagelog.cpp:29 : (logMessage) [23002ms] 2019-03-03T19:15:29 Password Helper[1] Opening Wallet/KeyRing for WRITE…
../../src/core/qgsmessagelog.cpp:29 : (logMessage) [7ms] 2019-03-03T19:15:29 Password Helper[1] Error in Wallet/KeyRing: Storing password in your Wallet/KeyRing failed: Unknown error.
../../src/core/qgsmessagelog.cpp:29 : (logMessage) [17ms] 2019-03-03T19:15:29 Messages[1] Password helper write :

Affects 3.45, 3.60 and 3.7

@qgib
Copy link
Contributor Author

qgib commented Mar 4, 2019

Author Name: Cory Albrecht (@CoryAlbrecht)


Wen trying to add a layer from a PostGIS connection that uses a stored auth config instead of saving the userid and password separately:

../../src/providers/postgres/qgspostgresconn.cpp:216 : (QgsPostgresConn) [0ms] [thread:0x55d640e6e5e0] New PostgreSQL connection for dbname='physgeo' host=pg1.db.cory.albrecht.name port=5432 sslmode=require authcfg=ou8c1bg
../../src/core/auth/qgsauthmanager.cpp:501 : (setMasterPassword) [0ms] [thread:0x55d640e6e5e0] Master password is not yet set by user
../../src/core/qgsmessagelog.cpp:29 : (logMessage) [0ms] [thread:0x55d640e6e5e0] 2019-03-03T19:21:57 Password Helper[1] Opening Wallet/KeyRing for READ…
../../src/core/qgsmessagelog.cpp:29 : (logMessage) [3ms] [thread:0x55d640e6e5e0] 2019-03-03T19:21:57 Password Helper[1] Error in Wallet/KeyRing: Retrieving password from your Wallet/KeyRing failed: Unknown error.
../../src/gui/qgscredentialdialog.cpp:112 : (requestMasterPassword) [0ms] [thread:0x55d640e6e5e0] emitting signal
../../src/core/qgsmessagelog.cpp:29 : (logMessage) [6ms] 2019-03-03T19:21:57 Messages[2] Authentication Manager : Retrieving password from your Wallet/KeyRing failed: Unknown error.
../../src/gui/qgscredentialdialog.cpp:124 : (requestCredentialsMasterPassword) [1ms] Entering.
../../src/gui/qgscredentialdialog.cpp:156 : (requestCredentialsMasterPassword) [1ms] exec()

And then QGIS just hangs. This is even though the

@qgib
Copy link
Contributor Author

qgib commented Mar 5, 2019

Author Name: Giovanni Manghi (@gioman)


@alessandro is this a previously unknown regression? I can't replicate trying store username/password.


  • assigned_to_id removed Larry Shaffer

@qgib
Copy link
Contributor Author

qgib commented Mar 6, 2019

Author Name: Alessandro Pasotti (@elpaso)


Nothing I'm aware of.

Are you on Ubuntu with the default window manager?

@qgib
Copy link
Contributor Author

qgib commented Mar 6, 2019

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Mar 6, 2019

Author Name: Alessandro Pasotti (@elpaso)


Confirmed on ubuntu with default window manager.

Maybe related to:
#9333

According to gdb, there is a deadlock in
QSqlDatabase QgsAuthManager::authDatabaseConnection() const

@qgib
Copy link
Contributor Author

qgib commented Mar 6, 2019

Author Name: Cory Albrecht (@CoryAlbrecht)


I use Ubuntu 18.10. In the chooser by the green "Sign In" button there is a gear and it allows the choice of "GNOME", "GNOME on Xorg", "Ubuntu", and "Ubuntu on Wayland". I use the "GNOME on Xorg" one, normally, though because I have a high dpi screen on my laptop (3840x2160), I occasionally choose "GNOME" which starts Wayland instead of Xorg because it can occasionally make multi-monitor use easier especially with differing resolutions. However, this error occurs on both. (I never choose the "Ubuntu" options.)

@qgib qgib added Feedback Waiting on the submitter for answers Bug Either a bug report, or a bug fix. Let's hope for the latter! Authentication Related to the QGIS Authentication subsystem or user/password handling labels May 25, 2019
@gioman gioman removed the Feedback Waiting on the submitter for answers label Jun 12, 2020
@mcomelli
Copy link

mcomelli commented Jun 1, 2021

Same problem in:
QGIS 3.18.3
Ubuntu 20.04

@davidg-sil
Copy link

davidg-sil commented Jul 16, 2022

FWIW, this error can also be triggered(qgis 3.26) by a mangled/missing login.keyring
Solution (on devuan linux):

  • install seahorse if not currently installed (apt install seahorse)

  • start seahorse ('Passwords and keys' on menu)

  • If it starts you off in a keyring, click on the back button

  • You ought to have a password keyring called login.keyring

  • If it doesn't exist, click on add button, select 'password keyring' and use your login password for it. This gave me a happy qgis

  • Hmm. No it didn't :-(

  • You need to name the keyring login

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Authentication Related to the QGIS Authentication subsystem or user/password handling Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

4 participants