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

Incompatible version of openssl #115

Closed
morngrar opened this issue Oct 15, 2023 · 5 comments
Closed

Incompatible version of openssl #115

morngrar opened this issue Oct 15, 2023 · 5 comments
Labels
wait for reply Answered, but the user did not reply.

Comments

@morngrar
Copy link

When I run the program, it fails to connect to keyservers. Running it in the terminal gives the following output:

[11:27:36.905] [T:23273] [main] [  info  ] [GlobalSettingStation.cpp:51] [GlobalSettingStation] -> app path: /tmp/.mount_gpgfroNjGikQ/usr/bin (+1959us)
[11:27:36.905] [T:23273] [main] [  info  ] [GlobalSettingStation.cpp:53] [GlobalSettingStation] -> app data path: /home/sk/.local/share/GpgFrontend (+6us)
[11:27:36.905] [T:23273] [main] [  info  ] [GlobalSettingStation.cpp:54] [GlobalSettingStation] -> app log path: /home/sk/.local/share/GpgFrontend/logs (+0us)
[11:27:36.905] [T:23273] [main] [  info  ] [GlobalSettingStation.cpp:55] [GlobalSettingStation] -> app locale path: /tmp/.mount_gpgfroNjGikQ/usr/bin/../share/locales (+0us)
[11:27:36.905] [T:23273] [main] [  info  ] [GlobalSettingStation.cpp:56] [GlobalSettingStation] -> app conf path: /home/sk/.config/GpgFrontend/conf/main.cfg (+0us)
[11:27:36.905] [T:23273] [main] [  info  ] [GlobalSettingStation.cpp:52] [GlobalSettingStation] -> app configure path: /home/sk/.config/GpgFrontend (+0us)
[11:27:36.908] [T:23273] [main] [  info  ] [GlobalSettingStation.cpp:58] [GlobalSettingStation] -> app log files total size: 19.70 KB (+2803us)
[11:27:36.908] [T:23273] [main] [  info  ] [GlobalSettingStation.cpp:59] [GlobalSettingStation] -> app data objects files total size: 1.55 KB (+40us)
[11:27:36.910] [T:23273] [core] [warning ] [GlobalSettingStation.h:78] [LookupSettings] -> setting not found: general.use_custom_gnupg_install_path (+1404us)
[11:27:36.910] [T:23273] [core] [warning ] [GlobalSettingStation.h:78] [LookupSettings] -> setting not found: general.custom_gnupg_install_path (+5us)
[11:27:36.916] [T:23273] [ ui ] [warning ] [GlobalSettingStation.h:78] [LookupSettings] -> setting not found: proxy.enable (+6574us)
[11:27:36.962] [T:23290] [core] [warning ] [GlobalSettingStation.h:78] [LookupSettings] -> setting not found: network.forbid_all_gnupg_connection (+51853us)
[11:27:36.962] [T:23290] [core] [warning ] [GlobalSettingStation.h:78] [LookupSettings] -> setting not found: network.auto_import_missing_key (+14us)
[11:27:36.962] [T:23290] [core] [warning ] [GlobalSettingStation.h:78] [LookupSettings] -> setting not found: general.custom_key_database_path (+10us)
[11:27:36.962] [T:23290] [core] [warning ] [GlobalSettingStation.h:78] [LookupSettings] -> setting not found: general.use_custom_gnupg_install_path (+3us)
[11:27:36.962] [T:23290] [core] [warning ] [GlobalSettingStation.h:78] [LookupSettings] -> setting not found: general.custom_gnupg_install_path (+3us)
[11:27:36.962] [T:23290] [core] [warning ] [GlobalSettingStation.h:78] [LookupSettings] -> setting not found: general.use_pinentry_as_password_input_dialog (+4us)
[11:27:36.962] [T:23290] [core] [ error  ] [GpgCoreInit.cpp:159] [init_gpgfrontend_core] -> core loaded custom gpgconf path is illegal: gpgconf (+4us)
[11:27:36.962] [T:23290] [core] [warning ] [GlobalSettingStation.h:78] [LookupSettings] -> setting not found: general.use_custom_key_database_path (+0us)
[11:27:36.962] [T:23290] [core] [ error  ] [GpgCoreInit.cpp:172] [init_gpgfrontend_core] -> core loaded custom gpg key database is illegal:  (+21us)
QProcess::readAllStandardError: Called with MergedChannels
QProcess::readAllStandardError: Called with MergedChannels
QProcess::readAllStandardError: Called with MergedChannels
[11:27:37.057] [T:23273] [ ui ] [warning ] [GlobalSettingStation.h:78] [LookupSettings] -> setting not found: network.forbid_all_gnupg_connection (+140930us)
[11:27:37.064] [T:23273] [ ui ] [warning ] [GlobalSettingStation.h:78] [LookupSettings] -> setting not found: network.forbid_all_gnupg_connection (+7146us)
[11:27:37.078] [T:23273] [ ui ] [ error  ] [MainWindow.cpp:247] [restore_settings] -> setting operation error: prohibit_update_checking (+13715us)
qt.tlsbackend.ossl: Incompatible version of OpenSSL (built with OpenSSL 1.x, runtime version is >= 3.x)
qt.network.ssl: The backend "cert-only" does not support QSslKey
qt.network.ssl: Active TLS backend does not support key creation
qt.network.ssl: The backend "cert-only" does not support QSslKey
qt.network.ssl: Active TLS backend does not support key creation
qt.network.ssl: The backend "cert-only" does not support QSslKey
qt.network.ssl: Active TLS backend does not support key creation
qt.network.ssl: The backend "cert-only" does not support QSslKey
qt.network.ssl: Active TLS backend does not support key creation
qt.network.ssl: The backend "cert-only" does not support QSslKey
qt.network.ssl: Active TLS backend does not support key creation
qt.network.ssl: The backend "cert-only" does not support QSslKey
qt.network.ssl: Active TLS backend does not support key creation
qt.network.ssl: The backend "cert-only" does not support QSslSocket
qt.network.ssl: The backend named "cert-only" does not support TLS
qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
[11:27:37.114] [T:23333] [ ui ] [ error  ] [VersionCheckTask.cpp:78] [slot_parse_latest_version_info] -> latest version request error (+35517us)
qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
[11:27:37.114] [T:23333] [ ui ] [ error  ] [VersionCheckTask.cpp:141] [slot_parse_current_version_info] -> current version request network error: TLS initialization failed (+85us)
[11:27:37.114] [T:23273] [ ui ] [ error  ] [MainWindowSlotFunction.cpp:841] [slot_version_upgrade] -> invalid version info (+10us)

Even though I am running the appimage it seems to attempt to use the system's openssl implementation, which is far ahead version-wise. I am running arch linux.

@saturneric
Copy link
Owner

saturneric commented Oct 15, 2023

qt.tlsbackend.ossl: Incompatible version of OpenSSL (built with OpenSSL 1.x, runtime version is >= 3.x)

It seems that GpgFrontend is built with OpenSSL 1.1.1 but the OpenSSL version on your machine is 3.x. Could you try to install OpenSSL 1.1.1? It may help.

@saturneric saturneric added the wait for reply Answered, but the user did not reply. label Oct 24, 2023
@morngrar
Copy link
Author

I'm not downgrading the system's openssl two major versions to get this app to work. I'm just curious why an appimage would need to depend on a system's dynamic libraries. I thought they are packaged with everything needed to run?

@morngrar
Copy link
Author

Just did a quick check, and both 3.1.3 and 1.1.1 are installed on my system, however the 32-bit version of 1.1.1 is not.

@saturneric
Copy link
Owner

AppImages are indeed designed to bundle most of the dependencies required to run an application. However, they might still rely on some system libraries, especially if those libraries are expected to be present on all or most target systems. OpenSSL is often one such library because it provides cryptographic functionality that many systems already have installed. You can see the Related Issue here. In your case, the AppImage might be looking for OpenSSL 1.1.1, but can't find the 64-bit version installed on your system. The search path for shared libraries could be affecting this, as you mentioned.

As for the GpgFrontend, it's offering a Flatpak Version as a workaround. Flatpak packages are another form of software distribution that include all necessary libraries, providing a more controlled environment. Since you mentioned that they will formally introduce this in v2.1.2, trying out the Flatpak version could indeed be a viable solution to your environment issues.

@morngrar
Copy link
Author

morngrar commented Nov 5, 2023

Using the flatpak completely solved the problem!

@morngrar morngrar closed this as completed Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wait for reply Answered, but the user did not reply.
Projects
None yet
Development

No branches or pull requests

2 participants