Could not load album - Plugin, SSL handshake, Network request error

Today when I tried to use MusicBrainz to name a CD I got an error: Could not load album

Here is the log. Would be great if anybody could help me with this:

I: 21:09:56 Plugin directory ‘C:\Julians Programme\MusicBrainz Picard\plugins’ doesn’t exist

E: 21:09:59 Network request error for https://picard.musicbrainz.org:443/api/v1/plugins/: SSL handshake failed (QT code 6, HTTP code None)

E: 21:09:59 Error loading plugins list: SSL handshake failed

What version of Picard are you using and on which operating system? From a first glance at the log info you provided, I would guess that you’re using an outdated version. If your version is less that v2.6 then I suggest that you update and try again. The latest version is available from the Picard Website.

2 Likes

Picard 1.x stopped working as it does not handle the newer SSL certificates used by the server.

As written above if possible update to the latest version of Picard.

The following thread also discusses the issue and provides a possible workaround for Picard 1.4:

3 Likes

I installed the new version of Picard today and now it works!

Thank you very much for your help!

2 Likes

I installed version 2.12-0ppa26ubuntu22.04.1 on my computer (Linux Mint 21.3) today. Picard does not perform any queries. When I click on a grouped album → Lookup in Browser, I get the following error:

Network request error for https://musicbrainz.org/ws/2/release?limit=50&query=artist%3A%28Nelly Furtado%29 release%3A%28Loose%29 tracks%3A%2813%29:
SSL handshake failed (QT code 6, HTTP code None)

The computer is directly connected to the Fritzbox and there are no other internet issues. Does anyone have any ideas on how to fix this?

Can you provide versions as listed in About dialog? It is likely an issue related to SSL libs.

Version 2.12

Python 3.10.12, PyQt 5.15.9, Qt 5.15.2, Mutagen 1.45.1, Discid discid 1.1.0 (compat layer from python‑libdiscid 2.0.1), libdiscid 0.6.2, astrcmp C, SSL OpenSSL 3.0.2 15 Mar 2022

Can you enable debug mode (-d on command line) and see if it provides more information about the error?

Is your system up-to-date? Especially ca-certificates package.

icard -d
qt.network.ssl: QSslSocket: cannot resolve EVP_PKEY_base_id
qt.network.ssl: QSslSocket: cannot resolve SSL_get_peer_certificate
D: 12:50:58,108 tagger.__init__:315: Starting Picard from '/usr/lib/picard/picard/tagger.py'
D: 12:50:58,108 tagger.__init__:316: Platform: Linux-6.5.0-1025-oem-x86_64-with-glibc2.35 CPython 3.10.12
D: 12:50:58,108 tagger.__init__:318: Versions: Picard 2.12, Python 3.10.12, PyQt 5.15.9, Qt 5.15.2, Mutagen 1.45.1, Discid discid 1.1.0 (compat layer from python-libdiscid 2.0.1), libdiscid 0.6.2, astrcmp C, SSL OpenSSL 3.0.2 15 Mar 2022
D: 12:50:58,109 tagger.__init__:319: Configuration file path: '/home/s.gehr/.config/MusicBrainz/Picard.ini'
D: 12:50:58,109 tagger.__init__:321: User directory: '/home/s.gehr/.config/MusicBrainz/Picard'
D: 12:50:58,109 tagger.__init__:322: System long path support: True
D: 12:50:58,109 tagger.__init__:325: Qt Env.: QT_ACCESSIBILITY='1' QT_QPA_PLATFORMTHEME='qt5ct'
D: 12:50:58,109 i18n.setup_gettext:146: UI language: system
D: 12:50:58,110 i18n._log_lang_env_vars:131: Env vars: LANG=de_DE.UTF-8 LANGUAGE=de_DE
D: 12:50:58,110 i18n.setup_gettext:154: Trying locales: []
D: 12:50:58,110 i18n.set_locale_from_env:74: Setting locale from env: 'de_DE.UTF-8'
D: 12:50:58,110 i18n.setup_gettext:171: Using locale: 'de_DE.UTF-8'
D: 12:50:58,111 i18n._load_translation:118: Loading gettext translation for picard, localedir='/usr/share/locale', language='de_DE.UTF-8'
D: 12:50:58,113 i18n._load_translation:118: Loading gettext translation for picard-attributes, localedir='/usr/share/locale', language='de_DE.UTF-8'
D: 12:50:58,116 i18n._load_translation:118: Loading gettext translation for picard-constants, localedir='/usr/share/locale', language='de_DE.UTF-8'
D: 12:50:58,117 i18n._load_translation:118: Loading gettext translation for picard-countries, localedir='/usr/share/locale', language='de_DE.UTF-8'
D: 12:50:58,118 i18n.setup_gettext:191: _ = <bound method GNUTranslations.gettext of <gettext.GNUTranslations object at 0x7803eb9d3610>>
D: 12:50:58,118 i18n.setup_gettext:192: N_ = <function <lambda> at 0x7803ec924430>
D: 12:50:58,118 i18n.setup_gettext:193: ngettext = <bound method GNUTranslations.ngettext of <gettext.GNUTranslations object at 0x7803eb9d3610>>
D: 12:50:58,118 i18n.setup_gettext:194: gettext_countries = <bound method GNUTranslations.gettext of <gettext.GNUTranslations object at 0x7803eb9d3ee0>>
D: 12:50:58,118 i18n.setup_gettext:195: gettext_attributes = <bound method GNUTranslations.gettext of <gettext.GNUTranslations object at 0x7803eb9d3790>>
D: 12:50:58,119 i18n.setup_gettext:196: pgettext_attributes = <bound method GNUTranslations.pgettext of <gettext.GNUTranslations object at 0x7803eb9d3790>>
D: 12:50:58,160 webservice._network_accessible_changed:388: Network accessible requested: 1, actual: 1
D: 12:50:58,164 webservice.set_cache:410: NetworkDiskCache dir: '/home/s.gehr/.cache/MusicBrainz/Picard/network/' current size: 6.7 MB max size: 100 MB
D: 12:50:58,164 pluginmanager.load_plugins_from_directory:264: Looking for plugins in directory '/home/s.gehr/.config/MusicBrainz/Picard/plugins', 0 names found
D: 12:50:58,164 pluginmanager.load_plugins_from_directory:264: Looking for plugins in directory '/usr/lib/picard/picard/plugins', 0 names found
D: 12:50:58,170 ui/playertoolbar.__init__:91: Internal player: QtMultimedia available, initializing QMediaPlayer
D: 12:50:58,223 ui/playertoolbar.__init__:98: Internal player: available, QMediaPlayer set up
D: 12:50:58,353 tagger.main:1576: Looking for Qt locale de_DE in /home/s.gehr/.local/lib/python3.10/site-packages/PyQt5/Qt5/translations
I: 12:50:58,354 browser/browser.start:121: Starting the browser integration (127.0.0.1:8000)
D: 12:50:58,394 config.event:261: Config file update requested on thread 131958362652672
D: 12:51:14,379 config.event:261: Config file update requested on thread 131958362652672

Yes, the system is up-to-date and I have already tried the following:

apt install --reinstall ca-certificates

This indicates some incompatibility between the Qt5 version and the OpenSSL library on your system. Please ensure you install both from the official package repositories.

Mint 21.3 is based on Ubuntu 22.04, and that holds Qt5 version 5.15.3 and PyQt 5.15.6 in its repository. The logs show Qt 5.15.2 and PyQt 5.15.9.

This indicates you have installed both PyQt5 and Qt5 from other sources, and the installed version is not binary compatible with the locally installed openssl. Typical reasons for this are having installed PyQt5 using pip or the Anaconda Python distribution.

3 Likes

Yes, that was the problem. Now it works. Thank you very much!

2 Likes