Archlinux x86_64
1.0.12-cf081332
Bug?
Nop
Nop
Hi,
When I'm trying to login to mailspring with a typical user, I can't get it to store my password
The app is giving me the folowing error :
Mailspring could not store your password securely. Make sure you have
libsecretinstalled and a keyring is present. For more information, visit http://support.getmailspring.com/hc/en-us/articles/115001875571
But if I run it with sudo mailspring it works direcly without any error
I don't know if the error is from me or not but you may update you'r support website
Amazing app, good luck guys !
Thanks for reporting this! I'll incorporate this change when we update that page in the KB.
I'm getting the same error on Arch Linux (mailspring 1.1.3.27dcee2-1)
core/libsecret 0.18.5+14+g9980655-1 [installed]
extra/gnome-keyring 1:3.27.2-1 (gnome) [installed]
extra/libgnome-keyring 3.12.0-2 [installed]
I don't want to use it with sudo.
Update/Edit: I found a solution on the Arch Wiki. I'm not using a DM (using only a WM: bspwm), so I tried the xinitrc method (the i3 method exactly):
https://wiki.archlinux.org/index.php/GNOME/Keyring#xinitrc_method
This is the important part to put in the .xinitrc:
dbus-update-activation-environment --systemd DISPLAY
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
After that the gnome-keyring asked for the password (it didn't accept my user password, only root's password.. Edit/Fix: The problem caused by using mailspring with sudo for the first time, so the gnome-keyring asked/remembered for the root's password. To fix I have to delete the keyring files in ~/.local/share/keyrings and after a logout-login the gnome-keyring asked for the new password for my user.)
This is a bit of a hack for linux users, but works (I'm using KDE Neon):
I solved this error by installing gnome-keyring package to system, which is also package defaultly installed with evolution, as @pba247 says. So thank you.
With apt: sudo apt install gnome-keyring
As @BlueManCZ suggests, installing gnome-keyring does fix the issue.
It would be great if the rpm packages would include this as a dependency.
I had the same problem on Kubuntu, and as @BlueManCZ suggests, installing gnome-keyring does fix the issue.
Incredible, thanks BlueManCZ its work for lubuntu18.04(64)
@BlueManCZ Thanks a lot man! This helped me on Manjaro KDE!
@BlueManCZ Thanks a lot man! This helped me on Manjaro KDE!
This worked for me as well (Manjaro KDE)
I'm surprised that installing gnome-keyring didn't work for me. After receiving the following error:
Mailspring could not store your password securely. Make sure you have `libsecret` installed and a keyring is present. For more information, visit http://support.getmailspring.com/hc/en-us/articles/115001875571
I attempted to install libsecret and gnome-keyring
$ sudo apt install libsecret-1-0 libsecret-1-dev gnome-keyring
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnome-keyring is already the newest version (3.31.91-1ubuntu1).
libsecret-1-0 is already the newest version (0.18.8-1).
libsecret-1-dev is already the newest version (0.18.8-1).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
But I still receive the error. I'm on Ubuntu 19.04 running Mailspring v1.6.3:
$ lsb_release -a
LSB Version: core-10.2019031300ubuntu1-noarch:printing-10.2019031300ubuntu1-noarch:security-10.2019031300ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco
$ mailspring -v
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
1.6.3-134a0e55
Checking the KB article linked in the error message prompts me to email support, which is what I'm doing presently.
EDIT
This was happening on a clean install when trying to log in for the first time with my existing Mailspring credentials. After hitting the Quit button supplied by the error dialog and restarting the application I was able to get in just fine.
@bengotow you may want to update that KB article to support this usecase until a fix is made.
Very happy that Gnome-Keyring worked. But why? Does anyone have any idea? The message says that there just isn't a lib-secret, even though there is. So what's the issue here?
If you're on Windows, I've found that running as administrator fixes this issue.
Most helpful comment
I solved this error by installing gnome-keyring package to system, which is also package defaultly installed with evolution, as @pba247 says. So thank you.
With apt:
sudo apt install gnome-keyring