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

Fix dbus exception where algorithm 'plain' is not supported #2061

Merged
merged 1 commit into from Oct 10, 2022

Conversation

fatg3erman
Copy link
Contributor

I'e been getting a strange error on Kubuntu 22.04. I can run Mopidy as a service, and I can run it from a .desktop file in ~/.config/autostart. But when I try to run it once logged in (ie from a terminal) I get

Traceback (most recent call last):
  File "/home/bob/.virtualenvs/mopidy/bin/mopidy", line 33, in <module>
    sys.exit(load_entry_point('Mopidy', 'console_scripts', 'mopidy')())
  File "/home/bob/github/mopidy-dev/mopidy/mopidy/__main__.py", line 55, in main
    config, config_errors = config_lib.load(
  File "/home/bob/github/mopidy-dev/mopidy/mopidy/config/__init__.py", line 111, in load
    raw_config = _load(files, defaults, keyring.fetch() + (overrides or []))
  File "/home/bob/github/mopidy-dev/mopidy/mopidy/config/keyring.py", line 44, in fetch
    session = service.OpenSession("plain", EMPTY_STRING)[1]
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 72, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__
    return self._connection.call_blocking(self._named_service,
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.InvalidArgs: Algorithm plain is not supported. (only dh-ietf1024-sha256-aes128-cbc-pkcs7 is supported)

I've no desire to understand dbus, and if something can cause an exception then that should be trapped, so I put a try/except block around the offending code.

@kingosticks
Copy link
Member

Thanks, it sounds like it's due to https://www.mail-archive.com/kde-bugs-dist@kde.org/msg710974.html which I assume they will sort out at some point but your fix is good either way. Thanks

@kingosticks kingosticks added C-bug Category: This is a bug A-config Area: Config management labels Oct 10, 2022
@kingosticks kingosticks added this to the Next bug fix release milestone Oct 10, 2022
@kingosticks kingosticks merged commit 801b5a5 into mopidy:develop Oct 10, 2022
@jodal jodal modified the milestones: Next bug fix release, v3.4.0 Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-config Area: Config management C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants