AlexandrePTJ / kemai

Kimai desktop client
MIT License
94 stars 25 forks source link

TLS initialization failed - Appimage on Debian 11 #65

Open canonex opened 2 years ago

canonex commented 2 years ago

Hi, the _Kemai-0.7.1-x8664.AppImage on Debian 11 shows me, for multiple instances of Kimai, on different servers: Error on request [version]: TLS initialization failed when testing the connection.

The server ssl certificate is valid and is not self signed.

Thank you, Riccardo

donaldsv commented 2 years ago

Same error here with the same version.

AlexandrePTJ commented 2 years ago

You got this error only with 0.7.1 and not with 0.7.0 or 0.6 ?

canonex commented 2 years ago

I receive the same using 0.7.0. With 0.6 the error is similar: Error on request [version]: SSL handshake failed

With this specific domain I'm using Let's Encrypt: browsers correctly shows the encrypted connection.

Thank you, Riccardo

noseshimself commented 2 years ago

It's not a certificate problem. The connection isn't opened at all.

qt.network.ssl: No TLS backend is available
qt.network.ssl: No functional TLS backend was found
qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed

[2022-11-18 20:59:03.606] [kemai] [error] Client error: Error on request [users/me]: TLS initialization failed

is quite clear about it.

This seems like a rather common problem on Debian. This happened a long time ago in Calibre, too, so looking there for a patch might help.

AlexandrePTJ commented 2 years ago

A continuous build is ready. Can be fetched at https://github.com/AlexandrePTJ/kemai/releases/tag/Continuous Please tell me if this bug is fixed. Thanks.

noseshimself commented 2 years ago

working. Would you mind summarizing the trick? This seems to be happening in a lot of AppImages that have not been compiled on Debian.

canonex commented 2 years ago

I still have the same problem using Kemai-0.8.0-x86_64.AppImage from continuous on Debian bookworm/sid... Thank you, Riccardo

AlexandrePTJ commented 2 years ago

working. Would you mind summarizing the trick? This seems to be happening in a lot of AppImages that have not been compiled on Debian.

Qt6 split several things in plugins, TLS is part of it. So in the appimage creation process, it is now necessary to add a requirement on tls plugin.

AlexandrePTJ commented 2 years ago

I still have the same problem using Kemai-0.8.0-x86_64.AppImage from continuous on Debian bookworm/sid... Thank you, Riccardo

Is it fixed on stable ?

canonex commented 2 years ago

Is it fixed on stable ?

Sorry I didn't understand, is there a stable after 0.7.1? Where can I find it?

...or do you mean Debian stable? I can't try this on the fly.

Thank you, Riccardo

AlexandrePTJ commented 2 years ago

Is it fixed on stable ?

Sorry I didn't understand, is there a stable after 0.7.1? Where can I find it?

...or do you mean Debian stable? I can't try this on the fly.

Thank you, Riccardo

I meant Debian stable.

thsfo commented 1 year ago

Bonjour ! Il n'y a Kemai qui m'aille !!! Hope i can use it ! But ... i still have the same problem using Kemai-0.8.0-x86_64.AppImage on Ubuntu Linux Mint 21 Cinnamon . I tried to connect to selfhosted Kimai (yunohost )

canonex commented 1 year ago

I confirm the same problem still exist using Appimage in Debian 12 bookworm (testing) and in Ubuntu 22.04.

Thank you, Riccardo

AlexandrePTJ commented 1 year ago

Last release looks to works with ubuntu 22, but not on debian 11...