I set up the Seafile via Docker container on a home server. It appears to work. I can log into the web interface and upload files. In addition, I was able to set up the client on MacOS successfully. It is able to sync files with the server.
However, when I attempt to set up the client on Ubuntu 22.04, I get the following error when trying to add the account:
Network Error: SSL Handshake Failed
The version of the client installed is
Package: seafile-gui
Versions:
8.0.7 (/var/lib/apt/lists/linux-clients.seafile.com_seafile-deb_jammy_dists_stable_main_binary-amd64_Packages) (/var/lib/dpkg/status)
What could be the cause of this and how can I fix it?
Edit:
I have tried adding the universe repository and downgrading to the version it suggests, which is 8.0.5-1 instead of the current 8.0.7. That didn’t help.
Also, the SSL certificate of the URL seems to be valid, when I check it in Firefox.
In addition, I have the following versions of packages and system
(base) ➜ ~ openssl version
OpenSSL 1.1.1n 15 Mar 2022
(base) ➜ ~ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
In the seafile client logs, I see the following entries:
[12/05/2022 03:55:02 PM]Network Error:
SSL handshake failed
[12/05/2022 03:55:04 PM]QSslSocket: cannot call unresolved function SSL_get1_peer_certificate
[12/05/2022 03:55:04 PM]QSslSocket: cannot call unresolved function SSL_get1_peer_certificate
[12/05/2022 03:55:04 PM]the certificate for https://seafile.some_server_here.org/api2/auth-token/ is null
[12/05/2022 03:55:04 PM]ServerStatusService: ignore request for host "seafile.some_server_here.org"
[12/05/2022 03:55:04 PM][api] network error for https://seafile.some_server_here.org/api2/auth-token/: SSL handshake failed
[12/05/2022 03:55:06 PM]Network Error:
SSL handshake failed
[12/05/2022 04:06:04 PM]QSslSocket: cannot call unresolved function SSL_CTX_load_verify_dir
[12/05/2022 04:06:04 PM]An error encountered while to set root certificates location: ""
[12/05/2022 04:06:04 PM]QSslSocket: cannot call unresolved function SSL_get1_peer_certificate
[12/05/2022 04:06:04 PM]QSslSocket: cannot call unresolved function SSL_get1_peer_certificate
[12/05/2022 04:06:04 PM]the certificate for https://seafile.some_server_here.org/api2/auth-token/ is null
[12/05/2022 04:06:04 PM]ServerStatusService: ignore request for host "seafile.some_server_here.org"
[12/05/2022 04:06:04 PM][api] network error for https://seafile.some_server_here.org/api2/auth-token/: SSL handshake failed
[12/05/2022 04:06:05 PM]Network Error:
SSL handshake failed
[12/05/2022 04:06:07 PM][Rpc Client] connected to daemon