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

Deluge not supporting https trackers. #5420

Closed
mhertz opened this issue Sep 8, 2022 · 12 comments · Fixed by #5422
Closed

Deluge not supporting https trackers. #5420

mhertz opened this issue Sep 8, 2022 · 12 comments · Fixed by #5422
Assignees

Comments

@mhertz
Copy link

mhertz commented Sep 8, 2022

I'm relaying an issue with the deluge 2.1.1-15 package reported by 2 synology DSM 7 users on the deluge forum here: https://forum.deluge-torrent.org/viewtopic.php?f=7&t=56270

I'm thinking if there is certificates available under /etc/ssl or not, since everything else seems in check i.e. openssl built with --openssldir=/etc/ssl and libtorrent with crypto=openssl I believe from looks of it, unless mistaken.

Tracker status error from https trackers in deluge are reported as "Unspecified system error" or "Certificate verify failed", which I can reproduce upon non DSM package whenever not having certificates available or not having built openssl with correct path to them or not supplying env-var pointing to them(SSL_CERT_FILE/DIR)

First responses from me in above linked forum thread I misunderstood the situation and thought you used a libtorrent wheel from pypi as there is well known issue with such(has static openssl where need set env-var yourself to find certificates), but after finding this repo here, then could tell otherwise, sorry.

Thanks alot in advance!

@th0ma7 th0ma7 self-assigned this Sep 9, 2022
@th0ma7
Copy link
Contributor

th0ma7 commented Sep 9, 2022

Can you please provide an example I can test out on my various platforms to reproduce the issue?
Also, can you confirm whether this was a new install or if you tried updating from a previous installation?

@mhertz
Copy link
Author

mhertz commented Sep 9, 2022

I really appreiate your help firstly! :)

It's all https trackers, so easy test is to log into deluge web-UI and add a popular linux iso like latest arch-linux iso, so copy/paste this magnet into deluge: magnet:?xt=urn:btih:c4769d7000244e4cae9c054a83e38f168bf4f69f&dn=archlinux-2022.09.03-x86_64.iso

Then rightclick it and select 'Edit trackers' > 'Add' > 'https://tracker.nanoha.org/announce' (fixed typo in edit). Then with the torrent selected, the bottom status-tab states under 'Tracker status' : 'Unspecified system error'.

Do you see the certificates in place under '/etc/ssl/certs' when ssh'ing into the NAS?

Sorry i'm forwarding this report from 2 others from deluge forum, and so will edit in the answer to your other question(new or updated install) when getting back from them.

Thanks again!

Edit: There where 4 users reporting this actually, and of those, 2 from new installs and one from update(waiting for 4'th user's feedback).

Edit2: Sorry typo in tracker url, fixed now. Also updated previous edit.

@th0ma7
Copy link
Contributor

th0ma7 commented Sep 10, 2022

I'll give that a shot later on over the week-end. In the meantime, can you please provide the exact DSM7 build number you're running on? Could it be 7.1.1-42951?

EDIT: I gave it a shot and was able to reproduce. The error I got is Tracker Status: Error: certificate verify failed

@mhertz
Copy link
Author

mhertz commented Sep 10, 2022

I'll ask and edit in when get answer, as i'm not DSM user. Thanks alot, no rush, when time and motivation permits of-course, and very much appreciated!

I just saw your edit, yes that was one of the error messages, and other is as said 'Unspecified system error'.

As said, i'm suspecting the /etc/openssl/certs dir is missing ca-certificates.crt or other file there - On my distro(arch), then openssl provides that dir empty and then it is ca-certificates-utils that provides ca-certificates.crt and ca-bundle.crt etc under /etc/ssl/certs. I also unrelated read a DSM 6.1 user stating ca-certificates package not included by DSM, but as said was DSM 6.1 so probably not same here, but just checking.

Edit: Since you can reproduce then I don't need ask DSM version from affected users I presume, unless you tell me otherwise.

@th0ma7
Copy link
Contributor

th0ma7 commented Sep 10, 2022

Found a working fix for this, package update upcoming.

@th0ma7
Copy link
Contributor

th0ma7 commented Sep 10, 2022

Package now published. Should show up within the next 24-48h or you can download manually from here: https://synocommunity.com/package/deluge

@mhertz
Copy link
Author

mhertz commented Sep 10, 2022

Thank you so much th0ma7, appreciate you!

@th0ma7
Copy link
Contributor

th0ma7 commented Sep 10, 2022

And please confirm that it does solve your issue :)

@JSWolf
Copy link

JSWolf commented Sep 12, 2022

Package now published. Should show up within the next 24-48h or you can download manually from here: https://synocommunity.com/package/deluge

Can you please create a Windows version?

@hgy59
Copy link
Contributor

hgy59 commented Sep 12, 2022

Can you please create a Windows version?

Sorry, SynoCommunity is providing packages for Synology Diskstation Devices. Those run a custom Linux by Synology.
Windows is out of scope here.

@mhertz
Copy link
Author

mhertz commented Sep 12, 2022

@th0ma7 I can confirm now after getting requested feedback and at the risk of repeating myself then i'm really gratefull for your help and I say thank you so much! :)

@th0ma7
Copy link
Contributor

th0ma7 commented Sep 13, 2022

A pleasure and glad it works out! cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants