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

Unable to download .torrent files from URL #18553

Closed
rayun56 opened this issue Feb 12, 2023 · 4 comments
Closed

Unable to download .torrent files from URL #18553

rayun56 opened this issue Feb 12, 2023 · 4 comments
Labels
Not an issue User error, problem unrelated to qBittorrent, feature already implemented, etc

Comments

@rayun56
Copy link

rayun56 commented Feb 12, 2023

qBittorrent & operating system versions

qBittorrent: 4.5.1 x64
Operating system: Ubuntu Server 22.04 x64
Qt: 5.15.3
libtorrent-rasterbar: 2.0.8.0

What is the problem?

Trying to download torrents from a remote HTTP link to the .torrent file (ex: https://nyaa.si/download/1635565.torrent) fails to download. No error message is given in the WebUI and even the WebUI API returns a 200 status code. Downloading the same torrent through a magnet link works, and I am able to download the .torrent file directly from the URL on the same machine.

Strangely, I am also able to download torrents from a URL that does not directly link to the .torrent file, such as https://archlinux.org/releng/releases/2023.02.01/torrent/

Steps to reproduce

  1. Find a remotely available .torrent file, such as https://nyaa.si/download/1635565.torrent
  2. Tell qBittorrent to download that URL through the WebUI's "Download from URLs" interface or the API
  3. Torrent is never downloaded

Additional context

Judging by some of my automated script logs this only became an issue starting on February 2nd. I know it has worked until at least January 29th. Issue persists across multiple reboots and an upgrade to 4.5.1

Log(s) & preferences file(s)

Relevant log file snippet:

(N) 2023-02-12T18:17:02 - Downloading torrent, please wait... Source: "https://nyaa.si/download/1635565.torrent"
(N) 2023-02-12T18:18:33 - Downloading torrent, please wait... Source: "http://nyaa.si/download/1635565.torrent"
(N) 2023-02-12T18:19:38 - Downloading torrent, please wait... Source: "https://nyaa.si/download/1635565.torrent"
(N) 2023-02-12T18:20:39 - Downloading torrent, please wait... Source: "http://rarbg.to/download.php?id=[redacted].torrent"
(N) 2023-02-12T18:24:37 - Downloading torrent, please wait... Source: "https://archlinux.org/releng/releases/2023.02.01/torrent/"
(N) 2023-02-12T18:24:39 - Added new torrent. Torrent: "archlinux-2023.02.01-x86_64"
(N) 2023-02-12T18:24:42 - Torrent paused. Torrent: "archlinux-2023.02.01-x86_64"
(N) 2023-02-12T18:25:13 - Removed torrent and deleted its content. Torrent: "archlinux-2023.02.01-x86_64"
(N) 2023-02-12T18:25:17 - Downloading torrent, please wait... Source: "https://nyaa.si/download/1635565.torrent"
(N) 2023-02-12T18:29:09 - Downloading torrent, please wait... Source: "https://nyaa.si/download/1636336.torrent"
(N) 2023-02-12T18:29:31 - Downloading torrent, please wait... Source: "https://nyaa.si/download/1636336.torrent"

Configuration:

MemoryWorkingSetLimit=2048

[AutoRun]
OnTorrentAdded\Enabled=false
OnTorrentAdded\Program=
enabled=true
program=/usr/bin/python3 /home/qbittorrent-nox/dsWebhook.py \"%I\"

[BitTorrent]
Session\AlternativeGlobalDLSpeedLimit=0
Session\AlternativeGlobalUPSpeedLimit=400
Session\BandwidthSchedulerEnabled=true
Session\Categories=[redacted]
Session\ChokingAlgorithm=RateBased
Session\CoalesceReadWrite=true
Session\DefaultSavePath=[redacted]
Session\DiskCacheSize=-1
Session\DiskCacheTTL=120
Session\ExcludedFileNames=
Session\GlobalMaxSeedingMinutes=43200
Session\GlobalUPSpeedLimit=0
Session\Interface=[redacted]
Session\InterfaceAddress=[redacted]
Session\InterfaceName=[redacted]
Session\MaxActiveCheckingTorrents=3
Session\MaxConnections=-1
Session\MaxConnectionsPerTorrent=-1
Session\MaxUploads=-1
Session\MaxUploadsPerTorrent=-1
Session\PieceExtentAffinity=true
Session\Port=33333
Session\QueueingSystemEnabled=false
Session\SuggestMode=true
Session\Tags=[redacted]
Session\TempPath=[redacted]
Session\TempPathEnabled=true
Session\TorrentContentLayout=Subfolder
Session\UseAlternativeGlobalSpeedLimit=false

[Core]
AutoDeleteAddedTorrentFile=Never

[LegalNotice]
Accepted=true

[Meta]
MigrationVersion=4

[Network]
Cookies="__ddg1_=9RgRjfBhzxa3Qzc2TSVG; HttpOnly; expires=Fri, 01-Dec-2023 17:30:21 GMT; domain=.nyaa.si; path=/"
PortForwardingEnabled=true
Proxy\OnlyForTorrents=false

[Preferences]
Advanced\RecheckOnCompletion=false
Advanced\trackerPort=9000
Advanced\trackerPortForwarding=false
Bittorrent\MaxConnecs=-1
Bittorrent\MaxConnecsPerTorrent=-1
Bittorrent\MaxUploads=-1
Bittorrent\MaxUploadsPerTorrent=-1
Connection\GlobalDLLimitAlt=0
Connection\GlobalUPLimitAlt=200
Connection\Interface=[redacted]
Connection\InterfaceAddress=[redacted]
Connection\InterfaceName=[redacted]
Connection\PortRangeMin=21846
Connection\ResolvePeerCountries=true
Connection\alt_speeds_on=false
Downloads\SavePath=[redacted]
DynDNS\DomainName=changeme.dyndns.org
DynDNS\Enabled=false
DynDNS\Password=
DynDNS\Service=DynDNS
DynDNS\Username=
General\Locale=en
General\UseRandomPort=true
MailNotification\email=
MailNotification\enabled=false
MailNotification\password=
MailNotification\req_auth=true
MailNotification\req_ssl=false
MailNotification\sender=qBittorrent_notification@example.com
MailNotification\smtp_server=smtp.changeme.com
MailNotification\username=
Queueing\QueueingEnabled=false
Scheduler\days=EveryDay
Scheduler\end_time=@Variant(\0\0\0\xf\x1\x17<`)
Scheduler\start_time=@Variant(\0\0\0\xf\x1\x12\xa8\x80)
WebUI\Address=*
WebUI\AlternativeUIEnabled=false
WebUI\AuthSubnetWhitelist=@Invalid()
WebUI\AuthSubnetWhitelistEnabled=false
WebUI\BanDuration=3600
WebUI\CSRFProtection=true
WebUI\ClickjackingProtection=true
WebUI\CustomHTTPHeaders=
WebUI\CustomHTTPHeadersEnabled=false
WebUI\HTTPS\CertificatePath=
WebUI\HTTPS\Enabled=false
WebUI\HTTPS\KeyPath=
WebUI\HostHeaderValidation=false
WebUI\LocalHostAuth=true
WebUI\MaxAuthenticationFailCount=2
WebUI\Password_PBKDF2="[redacted]"
WebUI\Port=59745
WebUI\ReverseProxySupportEnabled=false
WebUI\RootFolder=
WebUI\SecureCookie=false
WebUI\ServerDomains=127.0.0.1
WebUI\SessionTimeout=3600
WebUI\TrustedReverseProxiesList=
WebUI\UseUPnP=false
WebUI\Username=[redacted]

[RSS]
AutoDownloader\DownloadRepacks=true
AutoDownloader\EnableProcessing=false
AutoDownloader\SmartEpisodeFilter=s(\\d+)e(\\d+), (\\d+)x(\\d+), "(\\d{4}[.\\-]\\d{1,2}[.\\-]\\d{1,2})", "(\\d{1,2}[.\\-]\\d{1,2}[.\\-]\\d{4})"
Session\EnableProcessing=false
Session\MaxArticlesPerFeed=250
Session\RefreshInterval=5

[SearchEngines]
disabledEngines=eztv, jackett, legittorrents, limetorrents, piratebay, torlock, zooqle, torrentscsv```
@glassez
Copy link
Member

glassez commented Feb 13, 2023

this only became an issue starting on February 2nd. I know it has worked until at least January 29th.

Do you use some intermediate builds of qBittorrent? v4.5.1 was released yesterday, and v4.5.0 was released more than two months ago.

@glassez
Copy link
Member

glassez commented Feb 13, 2023

Trying to download torrents from a remote HTTP link to the .torrent file (ex: https://nyaa.si/download/1635565.torrent) fails to download. No error message is given in the WebUI and even the WebUI API returns a 200 status code. Downloading the same torrent through a magnet link works, and I am able to download the .torrent file directly from the URL on the same machine.

Cannot test it since it returns 502 - Bad Gateway for me in any case.

even the WebUI API returns a 200 status code.

This is normal, since everything is OK with the request to the qBittorrent Web API itself, and the file download itself is started asynchronously.

@thalieht
Copy link
Contributor

  1. Find a remotely available .torrent file, such as https://nyaa.si/download/1635565.torrent
  2. Tell qBittorrent to download that URL through the WebUI's "Download from URLs" interface or the API

Works for me in 4.5.0 and 4.5.1, WebUI and GUI.

@rayun56
Copy link
Author

rayun56 commented Feb 13, 2023

Sorry for not digging further before submitting the issue! It seems that the issue resides in my VPN setup, not in qBittorrent. Closing the issue

@rayun56 rayun56 closed this as completed Feb 13, 2023
@thalieht thalieht added the Not an issue User error, problem unrelated to qBittorrent, feature already implemented, etc label Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Not an issue User error, problem unrelated to qBittorrent, feature already implemented, etc
Projects
None yet
Development

No branches or pull requests

3 participants