Client: [Gnome] password is not saved, but gnome-keyring-daemon is started

Created on 2 Sep 2015  路  20Comments  路  Source: owncloud/client

Like in issue #1590 I cannot get owncloud to work together with the gnome-keyring-daemon in version 2.0.0. Here is what I did:

$ eval $(gnome-keyring-daemon)
$ export SSH_AUTH_SOCK
$ export GPG_AGENT_INFO
$ owncloud --logwindow

The login box then shows Reading from keychain failed with error: 'No keychain service available'

After I enter my password the following line is logged:

09-02 10:35:00:987 17975 OCC::HttpCredentials::slotWriteJobDone: Error while writing password "Could not open wallet: org.freedesktop.DBus.Error.ServiceUnknown; The name org.kde.kwalletd was not provided by any .service files"

I find this suspicious, because I do not use the KWallet, I use the gnome-keyring.

I am using Arch Linux and all required packages should be installed:

pacman -Q owncloud-client qtkeychain-qt5 qt5-webkit gnome-keyring
owncloud-client 2.0.0-1
qtkeychain-qt5 0.5-1
qt5-webkit 5.5.0-2
gnome-keyring 3.16.0-1

I'm going to look into qtkeychain, maybe the problem can be found there.

edit: I found an issue for qtkeychain with similar symptoms to what I am experiencing and want to try to build the test-client for qtkeychain to see if I get the same problem with qtkeychain itself, which would mean that the problem is not with the owncloud client.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Known Issue / Workaround bug p3-medium

Most helpful comment

Had the same problem under arch linux. Turns out that libgnome-keyring hasn't been installed despite the fact that the gnome-keyring has been running and qtkeychain was installed.

Maybe that helps somebody.

All 20 comments

Which desktop environment/window manager are you using?

In the referenced owncloud issue I read "I am using Linux Mint 16 with MATE desktop.". Is that still the case?

The other issue was not created by me, I am using Arch Linux with i3wm.

Same problem on arch linux with i3 as window manager.

Does it work if you set the environmaent varialbe XDG_CURRENT_DESKTOP=GNOME before running owncloud?

I just upgraded to the latest version. Now the log always reads:

OCC::HttpCredentials::slotWriteJobDone: Error while writing password "Cancelled"

the XDG_CURRENT_DESKTOP variable does not affect this, but if I set it to GNOME the font becomes really small, so small that I cannot read the text on the buttons.

@greenkeeper And if you totally unset XDG_CURRENT_DESKTOP?

@guruz The variable has no effect on what is written in the log, I always get the message mentioned above.

I just solved an issue similar to yours on archlinux with awesome wm. Symptoms were the same, but the underlying issue was not being able to create new keyrings in gnome-keyring. Same error message from owncloud client.
My gnome-keychain did not correctly interface with dbus and crash. More info here: https://bbs.archlinux.org/viewtopic.php?id=202754

Fix was adding

dbus-update-activation-environment --systemd DISPLAY

to ~/.xinitrc

PS. I also experienced the kdewallet error, it twas related to not having libgnome-keyring installed on my machine.

Wow, thanks a lot! I can confirm that it works, at least for me.

For reference, the thread linked above says one should configure .xinitrc properly and refers to the arch wiki page.

I guess this can be closed now.

@greenkeeper Let's keep it open as "Known issue" for now so people find it easier

I've been running into this problem as well (running lxdm/i3), even after following all the advice here. It turns out that the current head of qtkeychain does not support libsecret, (when I checked the client's logs I could see that owncloud wanted to access a non-existent kwallet, which lead me to investigate further.) My workaround was to build and install this patched version of gtkeychain at frankosterfeld/qtkeychain#62 .

Had the same problem under arch linux. Turns out that libgnome-keyring hasn't been installed despite the fact that the gnome-keyring has been running and qtkeychain was installed.

Maybe that helps somebody.

@tvannahl Maybe submit this info also upstream at Arch Linux? They could fix packages

@tvannahl thank you! That was bugging me so much. For the info of any future searchers, I'm actually running Solus rather than Arch, and this solution works for Solus too.

@tvannahl This helped me as well! I use Antergos (Arch Linux).

I figured out that on ubuntu 16.04 + gnome-shell, on the start up there is /usr/bin/gnome-keyring-daemon --start --components=ssh.

I figure out that removing --start --components=ssh was allowing to save the password, visible in the seahorse app.

@lowbosch Thank you so much. It works!

Installing libgnome-keyring0 worked for me on Debian. The package is not available in _testing_ at the moment, but can be installed from _unstable_.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tflidd picture tflidd  路  3Comments

ogasser picture ogasser  路  4Comments

ohnemich picture ohnemich  路  5Comments

JKawohl picture JKawohl  路  5Comments

jnweiger picture jnweiger  路  5Comments