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

Bug#1037304: gnome-control-center: sharing non-accessible after fresh GNOME 3 installation

278 views
Skip to first unread message

Markus Koschany

unread,
Jun 10, 2023, 2:40:04 PM6/10/23
to
Package: gnome-control-center
Version: 1:43.4.1-1
Severity: normal
X-Debbugs-Cc: a...@debian.org

I just installed GNOME 3 on a Lenovo X280 and X230i Thinkpad. I used the most recent Debian installer as of 10.06.2023 which was still an RC candidate for Bookworm.

Open the gnome-control-center, click on the sharing menu item. Now the application starts to freeze and a dialogue opens whether I would like to wait or force quit the application. I waited for several minutes and retried the process but that didn't help.

After removing gnome-remote-desktop, the menu item "Sharing" became accessible again.

I just re-installed gnome-remote-desktop and now clicking on Sharing also works as expected which is weird. After rebooting my second Laptop Sharing also works again. Here I did not remove gnome-remote-desktop.

So apparently there is something going on in the background which blocks the Sharing menu item on a very fresh GNOME 3 installation. I would have expected a more descriptive error message or that it just works TM right from the start.

Regards,

Markus



-- System Information:
Debian Release: 12.0
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gnome-control-center depends on:
ii accountsservice 22.08.8-6
ii apg 2.2.3.dfsg.1-5+b2
ii colord 1.4.6-2.2
ii desktop-base 12.0.6
ii desktop-file-utils 0.26-1
ii gnome-control-center-data 1:43.4.1-1
ii gnome-desktop3-data 43.2-2
ii gnome-settings-daemon 43.0-4
ii gsettings-desktop-schemas 43.0-1
ii libaccountsservice0 22.08.8-6
ii libadwaita-1-0 1.2.2-1
ii libc6 2.36-9
ii libcairo2 1.16.0-7
ii libcolord-gtk4-1 0.3.0-3.1
ii libcolord2 1.4.6-2.2
ii libcups2 2.4.2-3
ii libepoxy0 1.5.10-1
ii libfontconfig1 2.14.1-4
ii libgcr-base-3-1 3.41.1-1+b1
ii libgdk-pixbuf-2.0-0 2.42.10+dfsg-1+b1
ii libglib2.0-0 2.74.6-2
ii libgnome-bg-4-2 43.2-2
ii libgnome-bluetooth-ui-3.0-13 42.5-3
ii libgnome-desktop-4-2 43.2-2
ii libgnome-rr-4-2 43.2-2
ii libgnutls30 3.7.9-2
ii libgoa-1.0-0b 3.46.0-1
ii libgoa-backend-1.0-1 3.46.0-1
ii libgsound0 1.0.3-2
ii libgtk-3-0 3.24.37-2
ii libgtk-4-1 4.8.3+ds-2
ii libgtop-2.0-11 2.40.0-2
ii libgudev-1.0-0 237-2
ii libibus-1.0-5 1.5.27-5
ii libkrb5-3 1.20.1-2
ii libmalcontent-0-0 0.11.0-4
ii libmm-glib0 1.20.4-1
ii libnm0 1.42.4-1
ii libnma-gtk4-0 1.10.6-1
ii libpango-1.0-0 1.50.12+ds-1
ii libpangocairo-1.0-0 1.50.12+ds-1
ii libpolkit-gobject-1-0 122-3
ii libpulse-mainloop-glib0 16.1+dfsg1-2+b1
ii libpulse0 16.1+dfsg1-2+b1
ii libpwquality1 1.4.5-1+b1
ii libsecret-1-0 0.20.5-3
ii libsmbclient 2:4.17.8+dfsg-2
ii libsnapd-glib-2-1 1.63-5
ii libudisks2-0 2.9.4-4
ii libupower-glib3 0.99.20-2
ii libwacom9 2.6.0-1
ii libx11-6 2:1.8.4-2
ii libxi6 2:1.8-1+b1
ii libxml2 2.9.14+dfsg-1.2
ii webp-pixbuf-loader 0.2.1-1

Versions of packages gnome-control-center recommends:
ii cracklib-runtime 2.9.6-5+b1
ii cups-pk-helper 0.2.6-1+b1
ii gkbd-capplet 3.28.1-1
ii gnome-bluetooth-sendto 42.5-3
ii gnome-online-accounts 3.46.0-1
ii gnome-remote-desktop 43.3-1
ii gnome-user-docs 43.0-2
ii gnome-user-share 43.0-1
ii iso-codes 4.15.0-1
ii libcanberra-pulse 0.30-10
ii libnss-myhostname 252.6-1
ii libspa-0.2-bluetooth 0.3.65-3
ii malcontent-gui 0.11.0-4
ii network-manager-gnome 1.30.0-2
ii polkitd 122-3
ii power-profiles-daemon 0.12-1+b1
ii realmd 0.17.1-1
ii rygel 0.42.1-1
ii rygel-tracker 0.42.1-1
ii system-config-printer-common 1.5.18-1

Versions of packages gnome-control-center suggests:
ii gnome-software 43.4-1
pn gstreamer1.0-pulseaudio <none>
ii pkexec 122-3
ii x11-xserver-utils 7.7+9+b1

-- no debconf information

Simon McVittie

unread,
Jun 17, 2023, 4:40:04 PM6/17/23
to
Control: clone -1 -2
Control: retitle -1 Keyring access in gnome-control-center -> Sharing gets stuck during first login to fresh installation
Control: tags -1 + confirmed
Control: reassign -1 gnome-keyring 42.1-1
Control: affects -1 + gnome-control-center
Control: retitle -2 gnome-control-center: Sharing panel should access gnome-keyring asynchronously
Control: severity -2 wishlist

On Sat, 10 Jun 2023 at 20:32:11 +0200, Markus Koschany wrote:
> I just installed GNOME 3 on a Lenovo X280 and X230i Thinkpad.
>
> Open the gnome-control-center, click on the sharing menu item. Now the application starts to freeze and a dialogue opens whether I would like to wait or force quit the application. I waited for several minutes and retried the process but that didn't help.

I can reproduce this with a fresh installation from
debian-live-12.0.0-amd64-gnome.iso using debian-installer.

I think this is a problem with gnome-keyring, rather than
gnome-control-center specifically. Attaching gdb to gnome-control-center
indicates that the main thread is blocking in a call to
secret_password_store_sync(), which is storing a generated password to be
used by gnome-remote-desktop if enabled:

Thread 1 (Thread 0x7ffff0a31640 (LWP 3605) "gnome-control-c"):
#0 0x00007ffff603cfff in __GI___poll (fds=0x5555558f6010, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x00007ffff7c8e9ae in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x5555558f6010, timeout=<optimized out>, context=0x55555828ba10) at ../../../glib/gmain.c:4553
#2 g_main_context_iterate (context=0x55555828ba10, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4243
#3 0x00007ffff7c8ecef in g_main_loop_run (loop=0x5555558f3470) at ../../../glib/gmain.c:4448
#4 0x00007ffff6864f08 in secret_password_storev_sync (schema=schema@entry=0x555555848ae0 <grd_rdp_credentials_schema>, attributes=attributes@entry=0x5555582a2d20, collection=collection@entry=0x5555556d8de2 "default", label=label@entry=0x5555556e50f8 "GNOME Remote Desktop RDP credentials", password=password@entry=0x5555582a7430 "{'username': <'user'>, 'password': <'__REDACTED__'>}", cancellable=cancellable@entry=0x0, error=0x0) at ../libsecret/secret-password.c:466
#5 0x00007ffff686510b in secret_password_store_sync (schema=0x555555848ae0 <grd_rdp_credentials_schema>, collection=collection@entry=0x5555556d8de2 "default", label=label@entry=0x5555556e50f8 "GNOME Remote Desktop RDP credentials", password=password@entry=0x5555582a7430 "{'username': <'user'>, 'password': <'__REDACTED__'>}", cancellable=cancellable@entry=0x0, error=error@entry=0x0) at ../libsecret/secret-password.c:404
#6 0x0000555555638597 in cc_grd_store_rdp_credentials (username=username@entry=0x5555582f22b0 "user", password=password@entry=0x7fffed46f008 "__REDACTED__", cancellable=<optimized out>) at ../panels/sharing/cc-gnome-remote-desktop.c:52
#7 0x000055555563620e in store_remote_desktop_credentials_timeout (user_data=<optimized out>) at ../panels/sharing/cc-sharing-panel.c:1004
#8 0x00007ffff7c8f19a in g_timeout_dispatch (source=0x5555582f21b0, callback=<optimized out>, user_data=<optimized out>) at ../../../glib/gmain.c:5017
#9 0x00007ffff7c8e67f in g_main_dispatch (context=0x5555558a4f00) at ../../../glib/gmain.c:3454
#10 g_main_context_dispatch (context=context@entry=0x5555558a4f00) at ../../../glib/gmain.c:4172
#11 0x00007ffff7c8ea38 in g_main_context_iterate (context=context@entry=0x5555558a4f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4248
#12 0x00007ffff7c8eacc in g_main_context_iteration (context=context@entry=0x5555558a4f00, may_block=may_block@entry=1) at ../../../glib/gmain.c:4313
#13 0x00007ffff7eae65d in g_application_run (application=0x5555558a0110, argc=argc@entry=1, argv=argv@entry=0x7fffffffe0e8) at ../../../gio/gapplication.c:2573
#14 0x00005555555b2e41 in main (argc=1, argv=0x7fffffffe0e8) at ../shell/main.c:60

However, gnome-keyring didn't start correctly:

Jun 17 20:46:35 momentum systemd[1875]: Listening on gnome-keyring-daemon.socket - GNOME Keyring daemon.
...
Jun 17 20:46:35 momentum systemd[1875]: Started gnome-keyring-daemon.service - GNOME Keyring daemon.
...
Jun 17 20:46:35 momentum gnome-keyring-daemon[1900]: GNOME_KEYRING_CONTROL=/run/user/1000/keyring
...
Jun 17 20:46:36 momentum gnome-keyring-daemon[1900]: The PKCS#11 component was already initialized
Jun 17 20:46:36 momentum gnome-keyring-d[1900]: The PKCS#11 component was already initialized
Jun 17 20:46:36 momentum gnome-keyring-daemon[2043]: discover_other_daemon: 1
Jun 17 20:46:36 momentum gnome-keyring-pkcs11.desktop[2043]: discover_other_daemon: 1GNOME_KEYRING_CONTROL=/run/user/1000/keyring
Jun 17 20:46:36 momentum gnome-keyring-daemon[1900]: The Secret Service was already initialized
Jun 17 20:46:36 momentum gnome-keyring-daemon[2044]: discover_other_daemon: 1
Jun 17 20:46:36 momentum gnome-keyring-ssh.desktop[2044]: discover_other_daemon: 1GNOME_KEYRING_CONTROL=/run/user/1000/keyring
Jun 17 20:46:36 momentum gnome-keyring-ssh.desktop[2044]: SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
Jun 17 20:46:36 momentum gnome-keyring-d[1900]: The Secret Service was already initialized
Jun 17 20:46:36 momentum gnome-keyring-secrets.desktop[2045]: discover_other_daemon: 1GNOME_KEYRING_CONTROL=/run/user/1000/keyring
Jun 17 20:46:36 momentum gnome-keyring-secrets.desktop[2045]: SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
Jun 17 20:46:36 momentum gnome-keyring-daemon[2045]: discover_other_daemon: 1
Jun 17 20:46:36 momentum systemd[1875]: app-gnome-gnome\x2dkeyring\x2dpkcs11-2039.scope: Couldn't move process 2039 to requested cgroup '/user.slice/user-1000.slice/us...@1000.service/app.slice/app-gnome-gnome\x2dkeyring\x2dpkcs11-2039.scope': No such process
Jun 17 20:46:36 momentum systemd[1875]: app-gnome-gnome\x2dkeyring\x2dpkcs11-2039.scope: Failed to add PIDs to scope's control group: No such process
Jun 17 20:46:36 momentum systemd[1875]: app-gnome-gnome\x2dkeyring\x2dpkcs11-2039.scope: Failed with result 'resources'.
Jun 17 20:46:36 momentum systemd[1875]: Failed to start app-gnome-gnome\x2dkeyring\x2dpkcs11-2039.scope - Application launched by gnome-session-binary.
Jun 17 20:46:36 momentum systemd[1875]: app-gnome-gnome\x2dkeyring\x2dsecrets-2042.scope: Couldn't move process 2042 to requested cgroup '/user.slice/user-1000.slice/us...@1000.service/app.slice/app-gnome-gnome\x2dkeyring\x2dsecrets-2042.scope': No such process
Jun 17 20:46:36 momentum systemd[1875]: app-gnome-gnome\x2dkeyring\x2dsecrets-2042.scope: Failed to add PIDs to scope's control group: No such process
Jun 17 20:46:36 momentum systemd[1875]: app-gnome-gnome\x2dkeyring\x2dsecrets-2042.scope: Failed with result 'resources'.
Jun 17 20:46:36 momentum systemd[1875]: Failed to start app-gnome-gnome\x2dkeyring\x2dsecrets-2042.scope - Application launched by gnome-session-binary.
Jun 17 20:46:36 momentum systemd[1875]: app-gnome-gnome\x2dkeyring\x2dssh-2041.scope: Couldn't move process 2041 to requested cgroup '/user.slice/user-1000.slice/us...@1000.service/app.slice/app-gnome-gnome\x2dkeyring\x2dssh-2041.scope': No such process
Jun 17 20:46:36 momentum systemd[1875]: app-gnome-gnome\x2dkeyring\x2dssh-2041.scope: Failed to add PIDs to scope's control group: No such process
Jun 17 20:46:36 momentum systemd[1875]: app-gnome-gnome\x2dkeyring\x2dssh-2041.scope: Failed with result 'resources'.
Jun 17 20:46:36 momentum systemd[1875]: Failed to start app-gnome-gnome\x2dkeyring\x2dssh-2041.scope - Application launched by gnome-session-binary.
Jun 17 20:46:36 momentum systemd[1875]: Started gnome-sess...@gnome.service - GNOME Session Manager (session: gnome).

A related symptom is that if I run "Passwords and Keys" (which is from
the seahorse package), I only see entries in the left sidebar for SSH and
GPG keys, and I do not see a password store labelled "Login" under the
"Passwords" heading. After restarting gnome-keyring-daemon.service and
re-running seahorse, I *do* see "Passwords" -> "Login" (and
gnome-control-center also works correctly).

https://bugs.debian.org/1035061 is maybe related (or maybe not).

gnome-control-center could mitigate this by using asynchronous instead
of synchronous APIs to interact with gnome-keyring (the cloned bug
"gnome-control-center: Sharing panel should access gnome-keyring
asynchronously" represents this). But that's only a mitigation, not a
solution: if gnome-keyring is unresponsive then obviously g-c-c won't
be able to set up the password that it's meant to.

> After removing gnome-remote-desktop, the menu item "Sharing" became accessible again.
>
> I just re-installed gnome-remote-desktop and now clicking on Sharing also works as expected which is weird. After rebooting my second Laptop Sharing also works again. Here I did not remove gnome-remote-desktop.

I think this indicates a problem with the first-time setup of
the keyring.

I tried to reproduce the same thing by booting
debian-live-12.0.0-amd64-gnome.iso in live mode (which, if it reproduced
the bug, would be a very convenient way to test, since every boot in
live mode behaves like a fresh installation), but that behaves differently:

In live mode, when I enter the Sharing panel, I'm prompted for "Choose
password for new keyring". gnome-control-center becomes unresponsive
while that prompt is open (which makes sense if it's using a blocking
API), but that doesn't really matter because the prompt is system-modal,
so every application is unavailable anyway. After I set a password,
gnome-control-center wakes up and appears to be working correctly.

I *think* this might indicate a problem with the code path in
libpam-gnome-keyring that unlocks/creates the default keyring while
logging in using a password, which is obviously not possible during
the live system's autologin. But perhaps that's irrelevant.

smcv

Brett Gilio

unread,
Jun 18, 2023, 1:40:05 AM6/18/23
to
Hey there comrades,

I would like to add that I can also replicate this same bug on a fresh install of Debian 12. However, when I upgrade to attempt to use Xorg rather than Wayland compositing the issue is bypassed. Likewise if I upgrade to unstable packages. Might this lead to the issue not being gnome-keyring?

Brett

Simon McVittie

unread,
Jun 18, 2023, 6:30:05 AM6/18/23
to
(Please try to keep a Subject line that uniquely identifies a bug,
rather than changing it to something generic like "Addendum" or "Found
a workaround" - package maintainers will often see your messages out
of context.)

On Sun, 18 Jun 2023 at 00:32:41 -0500, Brett Gilio wrote:
> I would like to add that I can also replicate this same bug on a fresh install
> of Debian 12. However, when I upgrade to attempt to use Xorg rather than
> Wayland compositing the issue is bypassed.

What exactly do you mean by "when I upgrade to attempt to use Xorg"? Do you
mean you have upgraded some packages, and then logged out from the Wayland
session, switched mode to "GNOME on Xorg" and logged and back in?

If yes, then I think the real workaround here may have simply been that
you logged out and back in. If you had done that, without upgrading
or reconfiguring anything, then the keyring would probably have worked
as intended in that second login.

> Likewise if I upgrade to unstable packages.

Which specific unstable packages?

Again, if you logged out and back in, that would probably have been enough
to work around this, even if you had not upgraded any packages.

smcv

Nicolas Le Cam

unread,
Nov 11, 2023, 5:30:05 PM11/11/23
to
Confirming I've faced the same problem on a fresh install using
official 12.2.0 bookworm amd64 netinst with firmware 20231007-10:28.
I've uninstalled gnome-remote-desktop as I don't have use for it and
gnome settings works now

Regards,
Nicolas Le Cam
0 new messages