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

Cannot configure sync, gi.repository.GLib.GError: g-io-error-quark: user interaction failed (0) #330

Open
v6ak opened this issue Aug 13, 2024 · 3 comments

Comments

@v6ak
Copy link

v6ak commented Aug 13, 2024

Environment

  • Fedora 40 / Debian 12, virtualized in Qubes OS
  • Flatpak
  • X11

Reproduction

  1. Freshly install Errands
  2. Configure sync – use CalDAV
  3. Test Connection
  4. Exit settings

Expected results

  1. Errands contacts the server to test the connection
  2. Connection details are stored

Actual results

  1. No connection attempt is made. (Verified with Wireshark.)
  2. I can no longer open settings
  3. Errands shows the following error in console:
Traceback (most recent call last):
  File "/app/share/errands/errands/widgets/preferences.py", line 130, in <lambda>
    self.sync_providers.connect("notify::selected", lambda *_: self._setup_sync())
                                                               ^^^^^^^^^^^^^^^^^^
  File "/app/share/errands/errands/widgets/preferences.py", line 195, in _setup_sync
    password: str = GSettings.get_secret(account)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/share/errands/errands/lib/gsettings.py", line 47, in get_secret
    return Secret.password_lookup_sync(SECRETS_SCHEMA, {"account": account}, None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gi.repository.GLib.GError: g-io-error-quark: user interaction failed (0)
Traceback (most recent call last):
  File "/app/share/errands/errands/widgets/preferences.py", line 130, in <lambda>
    self.sync_providers.connect("notify::selected", lambda *_: self._setup_sync())
                                                               ^^^^^^^^^^^^^^^^^^
  File "/app/share/errands/errands/widgets/preferences.py", line 195, in _setup_sync
    password: str = GSettings.get_secret(account)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/share/errands/errands/lib/gsettings.py", line 47, in get_secret
    return Secret.password_lookup_sync(SECRETS_SCHEMA, {"account": account}, None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gi.repository.GLib.GError: g-io-error-quark: user interaction failed (0)


@mrvladus
Copy link
Owner

mrvladus commented Aug 13, 2024

Do you have libsecret installed? Seems like it errors when trying to call libsecret function. Another cause can be that you don't have keyring setup. Like gnome-keyring.

@v6ak
Copy link
Author

v6ak commented Aug 13, 2024

Fedora

I've restarted the VM, which has affected list of installed packages. After the restart, it works well. I can't tell what packages have changed.

Debian

I have libsecret installed, but the issue persists:

~% apt search libsecret
Sorting... Done
Full Text Search... Done
gir1.2-secret-1/stable,now 0.20.5-3 amd64 [installed,automatic]
  Secret store (GObject-Introspection)

libsecret-1-0/stable,now 0.20.5-3 amd64 [installed,automatic]
  Secret store

libsecret-1-dev/stable 0.20.5-3 amd64
  Secret store (development files)

libsecret-common/stable,now 0.20.5-3 all [installed,automatic]
  Secret store (common files)

libsecret-tools/stable 0.20.5-3 amd64
  tool for storing and retrieving GObject passwords

I test it in a fresh VM:

flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install --user flathub io.github.mrvladus.List
flatpak run io.github.mrvladus.List

@hjc4869
Copy link

hjc4869 commented Nov 20, 2024

This happened to me once when my kwalletd crashed and it recovered after I restarted the kwallet service manually.

When I encountered the issue, the main problem for me was that the app didn't handle it gracefully. The synchronizing icon kept spinning and it wasn't even possible to open preferences to check what happened. A graceful handling of the error (e.g. a dialog telling the user that the keyring connection failed) would be nice to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants