Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#800617: Fails to provide secrets

141 views
Skip to first unread message

Michael Biebl

unread,
Oct 1, 2015, 6:50:03 PM10/1/15
to
Control: tags -1 moreinfo unreproducible

Am 01.10.2015 um 19:54 schrieb Josh Triplett:
> Package: gnome-keyring
> Version: 3.18.0-1
> Severity: grave
>
> Since upgrading gnome-keyring from 3.16.0-4 to 3.18.0-1, applications
> trying to retrieve secrets from gnome-keyring no longer can. I see log
> messages like the following:
>
> Oct 01 10:36:37 jtriplet-mobl1 gnome-keyring-daemon[5801]: couldn't access control socket: /run/user/1000/keyring/control: No such file or directory
> Oct 01 10:36:37 jtriplet-mobl1 gnome-session[5731]: ** Message: couldn't access control socket: /run/user/1000/keyring/control: No such file or directory
> Oct 01 10:36:37 jtriplet-mobl1 gnome-keyring-daemon[5803]: couldn't access control socket: /run/user/1000/keyring/control: No such file or directory
> Oct 01 10:36:37 jtriplet-mobl1 gnome-session[5731]: ** Message: couldn't access control socket: /run/user/1000/keyring/control: No such file or directory
> [...]
> Oct 01 10:36:38 jtriplet-mobl1 gnome-keyring-daemon[5808]: couldn't register in session: Timeout was reached
> Oct 01 10:36:38 jtriplet-mobl1 gnome-keyring-daemon[5803]: couldn't communicate with already running daemon: Timeout was reached
> Oct 01 10:36:38 jtriplet-mobl1 gnome-session[5731]: ** Message: couldn't communicate with already running daemon: Timeout was reached
> Oct 01 10:36:38 jtriplet-mobl1 gnome-session[5731]: SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
> Oct 01 10:36:39 jtriplet-mobl1 gnome-keyring-daemon[5844]: couldn't register in session: Timeout was reached
> [...]
> Oct 01 10:37:03 jtriplet-mobl1 gnome-keyring-daemon[5808]: couldn't request name 'org.freedesktop.secrets' on session bus: Timeout was reached
> [...]
> Oct 01 10:48:34 jtriplet-mobl1 org.gnome.evolution.dataserver.Sources4[5783]: server_side_source_credentials_lookup_cb: Failed to lookup password: Error calling StartServiceByName for org.freedesktop.secrets: Timeout was reached
> Oct 01 10:48:35 jtriplet-mobl1 org.gnome.seahorse.Application[5783]: (seahorse:8293): seahorse-WARNING **: gkr-backend.vala:85: couldn't connect to secret service: Error calling StartServiceByName for org.freedesktop.secrets: Timeout was reached
>
> In addition to that, it also looks like every time an application tries to
> access the org.freedesktop.secrets service, dbus spawns an instance of
> gnome-keyring with the --foreground option, likely based on
> /usr/share/dbus-1/services/org.freedesktop.secrets.service ; does this conflict
> with the instance already run via /etc/xdg/autostart?
>

Works fine here. Is this maybe a D-Bus problem? Do you use
dbus-user-session/kdbus? Any custom config?


--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

signature.asc

Peter Newey

unread,
Oct 3, 2015, 11:10:02 AM10/3/15
to
Package: gnome-keyring
Version: 3.18.0-1
Followup-For: Bug #800617

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?

*** End of the template - remove these template lines ***



-- System Information:
Debian Release: stretch/sid
APT prefers buildd-unstable
APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.2.2-towo.1-siduction-amd64 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gnome-keyring depends on:
ii dbus-x11 1.10.0-3
ii dconf-gsettings-backend [gsettings-backend] 0.24.0-2
ii gcr 3.16.0-1
ii libc6 2.19-22
ii libcap-ng0 0.7.7-1
ii libcap2-bin 1:2.24-12
ii libgck-1-0 3.16.0-1
ii libgcr-base-3-1 3.16.0-1
ii libgcrypt20 1.6.3-2
ii libglib2.0-0 2.46.0-2
ii p11-kit 0.23.1-3
ii pinentry-gnome3 0.9.5-4

Versions of packages gnome-keyring recommends:
ii libpam-gnome-keyring 3.18.0-1

gnome-keyring suggests no packages.









I have exactly the same log messages

my problems using this update are :

1. my cinnamon desktop takes longer to open

2. my chromium browser takes much longer to open up to a web page

3. when I shut down my computer with systemctl shutdown I get " a stop job is
running for session c1 of user peter " which takes 90 seconds to clear .

none of these problems exist when I return to gnome-keyring_3.16.0-4_amd64.deb

cheers

Peter

peter

unread,
Oct 6, 2015, 2:30:03 AM10/6/15
to
On Sat, 03 Oct 2015 22:04:21 +0200 Mikhail Morfikov
<mmor...@gmail.com> wrote:
> Package: gnome-keyring
> Version: 3.18.0-1
> Followup-For: Bug #800617

> So I upgraded everything to sid version as it was before, and then I
> noticed that there's a new version of config files in
> /etc/xdg/autostart/ -- those with gnome* in their name. I had also
> some files in the ~/.config/autostart/ directory, so I removed them
> completely. After reboot, everything seems to be working as it supposed
> to.
>


Thanks for the information

After upgrading I removed 3 /etc/xdg/autostart/ -- those with gnome* in
their name files

I did not have any ~/.config/autostart/ files applicable to gnome*

I too seem to have everything ok now with browser and shutdown

cheers

Peter

Mikhail Morfikov

unread,
Oct 8, 2015, 4:30:04 AM10/8/15
to
Package: gnome-keyring
Version: 3.18.0-2
Followup-For: Bug #800617

I've just upgraded the gnome-keyring package, and I think that didn't solve my
issues. I think it's the same situation as it was before, but there's another
thing worth mentioning.

When my openbox starts I have the following processes:

$ ps aux | grep gnome
morfik 16743 0.0 0.0 122748 516 ? Sl 09:52 0:00 /usr/bin
/gnome-keyring-daemon --daemonize --login
morfik 16891 0.0 0.2 216104 5676 ? Sl 09:52 0:00 /usr/lib/at-
spi2-core/at-spi2-registryd --use-gnome-session

When I do nothing, after a minute or so, the first process disappears. I'm not
sure whether this should happen or not, so I'm just sharing my observations
with you.

Anyways, I have two apps that I often use: gajim and ssh. When I type in a
terminal "gajim" after logging into my system, everything works just fine. I
mean the above processes stay the same, and there's no lag when the app starts.
I don't have to type any passwords manually in order to log into my jabber
accounts, so the keyring works. When I close the app and reopen it again, it
also works as expected. The problem is when I want to issue ssh command -- I
get lag here and the message in the log:

Oct 08 09:53:47 morfikownia gnome-keyring-daemon[16743]: The Secret Service was
already initialized

Still, gajim (when restarted) works just fine, but issuing ssh command again
gives the lag. It looks like they're separated somehow.

The funniest thing is that when I switch the order of issuing the two commands,
so in this case the ssh command would be the fist one after login, it works
just fine, with no lag and any message in the log. But when I start gajim after
that, there's a lag and the message in the log, and of course password prompts.

So it looks like there's just only one process (the first one started after
login) that can work just fine with gnome-keyring, and the others get a lag
when started.

Another observation is that I get doubled process when the lagged application
is starting:

$ ps aux | grep gnome
morfik 16743 0.0 0.3 205072 7292 ? Sl 09:52 0:00 /usr/bin
/gnome-keyring-daemon --daemonize --login
morfik 16891 0.0 0.2 216104 5676 ? Sl 09:52 0:00 /usr/lib/at-
spi2-core/at-spi2-registryd --use-gnome-session
morfik 17825 0.0 0.2 48992 4260 ? S 09:53 0:00 /usr/bin
/gnome-keyring-daemon --start --foreground --components=secrets
morfik 17933 0.0 0.2 48992 4268 ? S 09:53 0:00 /usr/bin
/gnome-keyring-daemon --start --foreground --components=secrets

The doubled process (17933) disappears after a minute or so.

I was testing this with and without the autostart files, and it's the same in
both cases.



-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (130, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.2.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gnome-keyring depends on:
ii dbus-x11 1.10.0-3
ii dconf-gsettings-backend [gsettings-backend] 0.24.0-2
ii gcr 3.16.0-1
ii libc6 2.19-22
ii libcap-ng0 0.7.7-1
ii libcap2-bin 1:2.24-12
ii libgck-1-0 3.16.0-1
ii libgcr-base-3-1 3.16.0-1
ii libgcrypt20 1.6.3-2
ii libglib2.0-0 2.46.0-2
ii p11-kit 0.23.1-3
ii pinentry-gnome3 0.9.6-2

Versions of packages gnome-keyring recommends:
ii libpam-gnome-keyring 3.18.0-2

gnome-keyring suggests no packages.

-- Configuration Files:
/etc/xdg/autostart/gnome-keyring-pkcs11.desktop [Errno 2] No such file or directory: u'/etc/xdg/autostart/gnome-keyring-pkcs11.desktop'
/etc/xdg/autostart/gnome-keyring-secrets.desktop [Errno 2] No such file or directory: u'/etc/xdg/autostart/gnome-keyring-secrets.desktop'
/etc/xdg/autostart/gnome-keyring-ssh.desktop [Errno 2] No such file or directory: u'/etc/xdg/autostart/gnome-keyring-ssh.desktop'

-- no debconf information

Michael Biebl

unread,
Oct 8, 2015, 5:20:03 AM10/8/15
to
Am 08.10.2015 um 10:25 schrieb Mikhail Morfikov:
> Package: gnome-keyring
> Version: 3.18.0-2
> Followup-For: Bug #800617
>
> I've just upgraded the gnome-keyring package, and I think that didn't solve my
> issues. I think it's the same situation as it was before, but there's another
> thing worth mentioning.

...

> -- Configuration Files:
> /etc/xdg/autostart/gnome-keyring-pkcs11.desktop [Errno 2] No such file or directory: u'/etc/xdg/autostart/gnome-keyring-pkcs11.desktop'
> /etc/xdg/autostart/gnome-keyring-secrets.desktop [Errno 2] No such file or directory: u'/etc/xdg/autostart/gnome-keyring-secrets.desktop'
> /etc/xdg/autostart/gnome-keyring-ssh.desktop [Errno 2] No such file or directory: u'/etc/xdg/autostart/gnome-keyring-ssh.desktop'

If you removed the autostart files, I don't see how gnome-keyring can
work properly.
signature.asc

Mikhail Morfikov

unread,
Oct 10, 2015, 8:50:03 AM10/10/15
to
Package: gnome-keyring
Version: 3.18.0-2
Followup-For: Bug #800617

Another observation that can prove useful.

First of all, the process that spawns along with my openbox (/usr/bin/gnome-
keyring-daemon --daemonize --login) lives about 2 minutes, not one minute --
I've just measured it. When it's gone, the /run/user/1000/keyring/ directory
also disappears.

The next thing concerns opening, for instance gajim, when the process
disappeared. In that case, I get a password prompt in order to unlock the
keyring, and also bunch of logs (http://pastebin.com/GrqQA6gy).

After entering the password, the keyring is unlocked and the app starts
normally without asking for any other passwords. There's just one process
concerning gnome-keyring:

$ ps aux | grep gnome
morfik 98603 0.0 0.3 216092 5784 ? Sl 14:14 0:00 /usr/lib/at-
spi2-core/at-spi2-registryd --use-gnome-session
morfik 100411 0.0 0.4 352536 8096 ? SLl 14:17 0:00 /usr/bin
/gnome-keyring-daemon --start --foreground --components=secrets

The rest of issues that I described earlier stay the same.

Dmitry Shachnev

unread,
Oct 19, 2015, 9:00:03 AM10/19/15
to
Hi Mikhail,

On Mon, 19 Oct 2015 13:38:38 +0200, Mikhail Morfikov wrote:
> I can confirm that the behavior has changed with the new version of the gnome-
> keyring package. I downgraded the gnupg packages as well, so I could check
> whether the new version of gnome-keyring works.
>
> I still get the following messages when I type ssh command into a terminal:
>
> Oct 19 13:23:41 morfikownia gnome-keyring-daemon[5140]: The Secret Service was
> already initialized
> Oct 19 13:23:41 morfikownia org.freedesktop.secrets[5189]:
> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
>
> There's also the lag.

I don't want to reopen this bug for the third time, and the symptoms you are
experiencing differ from those of the original bug submitter.

Can you please file a new bug for that? If you forward it upstream, that would
make it even better.

Thanks!

--
Dmitry Shachnev
signature.asc
0 new messages