You're very welcome
Presumably libtorrent itself handles this for trackers through openssl, which then update-ca-certificates should work i'd guess, but regardless I had a slight hunch I wanted to check out first before letting you down a goose-chase, and it was correct actually, my speculation I mean.
So, in short, the libtorrent on pypi unfortunetly forgot, or decided against for whatever reason, to use crypto=openssl b2 building flag, which isn't default, or miss/wrongly-set the openssl-include option pointing to correct openssl lib path. This means that https trackers will never be announced to sadly. I tested by loading a linux iso and adding manually a known working https tracker to it, and it states 'unspecified system error' just like yours. Why deluge-console states otherwise i'm not sure, but regardless, this is the issue unfortuently, as otherwise pretty nice getting latest libtorrent from pypi, i'll see if I can report it to author if he has a github or something, as I know e.g. the awesome footleg job doadin making currently for providing a windows installer in feature, also uses this libtorrent from pypi also. Thanks for letting us know btw, from this, as pretty important info
I tested it worked through apt's regular python3-libtorrent package(libtorrent-rasterbar10), which was 1.2.9 on this ubuntu 20.10 VM I tested this in. I don't know if you have access to this from your repos, as old-stable seemingly is buster, so probably not there, though you also list sid, so dunno if you can get it through regular 'apt install', and otherwise as you cannot use libtorrent develop PPA on debian, then I guess your only bet is download the debian libtorrent deb packages and install, though you probably need several deps to go also, boost and whatnot, or lastly build yourself.
Sorry for initial wrong info given. Good luck.
Edit: I knew it was from a nice contributor alleesingeye or something along that, but I saw on pypi it was co-maintained by him and arvid himself, so I checked the official libtorrent git-repo, and it seems there is openssl-support, would also be strange otherwise coming from lead-dev, not knowing to do this. I'm looking through reports there, before making redundant one myself, and quickly found related one, though latest 2.x libtorrent but regardless, and with same error as us, and arvid stated to check root-certificates was available. Also was stated it worked on qbittorrent, and I believe deluge uses certifi python package to include a root-cert pem, or something, which probably is other solution on c++ vs python(qvittorrent vs deluge). I just don't understand why the 1.2.9 from apt works in deluge, but just not the 1.2.15 from pypi. I also remember same scenario, with libtorrent 1.1.13 or something, 2 years ago when I started the unofficial windows installer, and had to change to build libtorrent myself, because the 1.1.13 on pypi, from Cas I believe, had same issue(though error there was "unsupported protocol", but still https failing issue, I checked), despite I remember now seeing log on appvoyer or whatever called, from his build, where he clearly did define b2 cryprto-openssl etc, so don't really get what's this about. Sorry for long windedness, and will try to look more into it, when having time, as seemingly it's not just about a forgotten build-switch.
Edit2: Just wanted to add that untill finding out how fix this, hopefully, then can as a little bad workaround, disable https validation in libtorrent through ltconfig deluge plugin here:
https://github.com/ratanakvlun/deluge-ltconfig/releases. The option to disable is 'validate_https_trackers'. Here's the ltconfig.conf content, which you can copy/paste if wanted, into new 'ltconfig.conf' file in deluge profile dir,, and copy plugin into deluge's config dir into 'plugins' subfolder and enable through 'deluge-console plugin -e ltconfig'.
Code: Select all
{
"file": 1,
"format": 1
}{
"apply_on_start": true,
"settings": {
"validate_https_trackers": false
}
}