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

qBittorrent not connect to internet #12443

Closed
dacorsa opened this issue Apr 7, 2020 · 23 comments · Fixed by #12484
Closed

qBittorrent not connect to internet #12443

dacorsa opened this issue Apr 7, 2020 · 23 comments · Fixed by #12484
Labels
Network Issues related to network connectivity

Comments

@dacorsa
Copy link

dacorsa commented Apr 7, 2020

Please provide the following information

qBittorrent version and Operating System

latest from github compiled in ubuntu 18.04

If on linux, libtorrent-rasterbar and Qt version

latest from github compiled in ubuntu 18.04

What is the problem

qBittorrent starts well, but not connect to internet, the icon in orange instead green...why?

What is the expected behavior

icon green

Steps to reproduce

compile latest code

Extra info(if any)

(type here)

@thalieht thalieht added the Network Issues related to network connectivity label Apr 7, 2020
@maestroprog
Copy link

I confirm this issue. The latest version of qBittorrent - 4.3.0-alpha was installed from http://ppa.launchpad.net/qbittorrent-team/qbittorrent-unstable/ubuntu on my PC with Ubuntu 19.10 and it does not work. However qBittorrent 4.2.1 is works. It successfully (possibly) connects to the tracker servers, but doesn't connect with peers.

@chchia
Copy link

chchia commented Apr 10, 2020

possible same issue here
#12358

@FranciscoPombal
Copy link
Member

Please provide more information:

  • post the logs if there are errors
  • are you using proxy/VPN
  • does the problem occur only with UDP trackers, HTTP trackers, or both?
  • does the problem only occur when using proxy/VPN?
  • etc.

@gggirlgeek
Copy link

gggirlgeek commented Apr 10, 2020

I am having no connection either.

My error message: 4/10/20 12:05 AM - Failed to listen on IP: 0.0.0.0, port: TCP/0. Reason: Resource temporarily unavailable.

But it does seem to connect to the Search indexes. Just no upload or download, and data never resolvs. 100% public trackers over udp. DHT is enabled. TCP and UDP are enabled. All connections are set to bind, tried 4 different ports. Tried with a fresh configuration. Trying to connect with 45 public well seeded torrents from 1337x, TPB and rarbg. Deluge connects to the same torrents fine.

My setup:
Qbittorrent v4.2.3
Ubuntu 18.04 remote seedbox server (I have no root.)
No Proxies/VPN.

@FranciscoPombal
Copy link
Member

@gggirlgeek please post your logs and settings files (make sure to redact any potentially sensitive data).

Also this:

My error message: 4/10/20 12:05 AM - Failed to listen on IP: 0.0.0.0, port: TCP/0. Reason: Resource temporarily unavailable.

suggests you either chose a port that was already in use or an invalid port number or IP address.

@gggirlgeek
Copy link

gggirlgeek commented Apr 10, 2020

Thank you. Yes. That is what I thought. So I deleted all configurations and restarted Qbittorrent. Made sure port was set to random and All Interfaces were enabled in Advanced options. Then restarted a few times. Same message.... Let me fiddle a bit more...

@gggirlgeek
Copy link

Here is my log (2 lines referring to specific torrents removed):

4/10/20 11:54 AM - Python detected, executable name: 'python3', version: 3.6.9
4/10/20 11:54 AM - Failed to listen on IP: 0.0.0.0, port: TCP/0. Reason: Resource temporarily unavailable
4/10/20 11:54 AM - Failed to listen on IP: 0.0.0.0, port: TCP/0. Reason: Resource temporarily unavailable
4/10/20 11:54 AM - Options were saved successfully.
4/10/20 11:54 AM - IP geolocation database loaded. Type: DBIP-Country-Lite. Build time: Wed Apr 1 01:49:13 2020.
4/10/20 11:54 AM - UPnP / NAT-PMP support [ON]
4/10/20 11:54 AM - Encryption support [ON]
4/10/20 11:54 AM - Anonymous mode [OFF]
4/10/20 11:54 AM - PeX support [ON]
4/10/20 11:54 AM - Local Peer Discovery support [ON]
4/10/20 11:54 AM - DHT support [ON]
4/10/20 11:54 AM - HTTP User-Agent is 'qBittorrent/4.2.3'
4/10/20 11:54 AM - Peer ID: -qB4230-
4/10/20 11:54 AM - Trying to listen on: 0.0.0.0:47535,[::]:47535
4/10/20 11:54 AM - Using config directory: /home/hd5/myserver/.config/qBittorrent/
4/10/20 11:54 AM - qBittorrent v4.2.3 started


Here's my config file:

[AddNewTorrentDialog]
DialogSize=@SiZe(900 620)
RememberLastSavePath=false
SplitterState=@bytearray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\x1\x9a\0\0\x1\0\0\xff\xff\xff\xff\x1\0\0\0\x1\0)

[Application]
FileLogger\Age=1
FileLogger\AgeType=1
FileLogger\Backup=true
FileLogger\DeleteOld=true
FileLogger\Enabled=true
FileLogger\MaxSizeBytes=66560
FileLogger\Path=/home/hd5/myserver/.local/share/data/qBittorrent/logs

[AutoRun]
enabled=false
program=

[GUI]
DownloadTrackerFavicon=false
Log\Enabled=true
Log\Types=-1
Notifications\Enabled=true
Notifications\TorrentAdded=false

[LegalNotice]
Accepted=true

[MainWindow]
geometry=@bytearray(\x1\xd9\xd0\xcb\0\x2\0\0\0\0\0\x15\0\0\0\x36\0\0\x4\xb0\0\0\x2\x81\0\0\0\x16\0\0\0N\0\0\x4\xaf\0\0\x2\x80\0\0\0\0\0\0\0\0\x5\0)
qt5\vsplitterState=@bytearray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\0x\0\0\x2\x19\x1\xff\xff\xff\xff\x1\0\0\0\x1\0)

[Network]
Cookies="__cfduid=df83902ab611de5194d9b5cf6be7fa8881586508487; HttpOnly; expires=Sun, 10-May-2020 08:48:07 GMT; domain=.db-ip.com; path=/", "__cfduid=d50c77be98a275d9deccd7c8ac00336ee1586508835; secure; HttpOnly; expires=Sun, 10-May-2020 08:53:55 GMT; domain=.eztv.io; path=/", "__cfduid=db5b5ebe5f690fa173e1d0477c87b69741586508836; secure; HttpOnly; expires=Sun, 10-May-2020 08:53:56 GMT; domain=.1337x.to; path=/", "__cfduid=db4fae5c3dc429750d656b97330025acf1586508836; secure; HttpOnly; expires=Sun, 10-May-2020 08:53:56 GMT; domain=.limetor.com; path=/", "__cfduid=d82f28e74f70001fd962eb40f49b67e781586508836; secure; HttpOnly; expires=Sun, 10-May-2020 08:53:56 GMT; domain=.pirateproxy.live; path=/", "__cfduid=db473005f4ba53ff54990ad52a74f08fe1586508836; secure; HttpOnly; expires=Sun, 10-May-2020 08:53:56 GMT; domain=.torlock.com; path=/", "__cfduid=d6b669031e8974b6867da7bf9af920e301586508836; HttpOnly; expires=Sun, 10-May-2020 08:53:56 GMT; domain=.zooqle.com; path=/"

[Preferences]
Advanced\DisableRecursiveDownload=false
Advanced\RecheckOnCompletion=false
Advanced\TrayIconStyle=0
Advanced\confirmRemoveAllTags=true
Advanced\confirmTorrentDeletion=true
Advanced\confirmTorrentRecheck=true
Advanced\trackerPort=9000
Advanced\useSystemIconTheme=true
Connection\PortRangeMin=47535
Connection\ResolvePeerCountries=true
Connection\ResolvePeerHostNames=false
Downloads\DblClOnTorDl=0
Downloads\DblClOnTorFn=1
Downloads\NewAdditionDialog=true
Downloads\NewAdditionDialogFront=true
Downloads\PreAllocation=true
Downloads\SavePath=/home/hd5/myserver/torrents/data/
Downloads\ScanDirsV2=@variant(\0\0\0\x1c\0\0\0\0)
Downloads\TempPathEnabled=true
General\AlternatingRowColors=true
General\CloseToTray=true
General\CloseToTrayNotified=true
General\CustomUIThemePath=
General\ExitConfirm=true
General\HideZeroComboValues=0
General\HideZeroValues=false
General\Locale=en
General\MinimizeToTray=false
General\NoSplashScreen=true
General\PreventFromSuspendWhenDownloading=false
General\PreventFromSuspendWhenSeeding=false
General\StartMinimized=false
General\SystrayEnabled=true
General\UseCustomUITheme=false
MailNotification\email=
MailNotification\enabled=false
MailNotification\password=
MailNotification\req_auth=false
MailNotification\req_ssl=false
MailNotification\sender=qBittorrent_notification@example.com
MailNotification\smtp_server=smtp.changeme.com
MailNotification\username=
Queueing\QueueingEnabled=false
Scheduler\days=0
Scheduler\end_time=@variant(\0\0\0\xf\x4J\xa2\0)
Scheduler\start_time=@variant(\0\0\0\xf\x1\xb7t\0)
Search\SearchEnabled=true
State\hSplitterSizes=125, 628
State\size=@SiZe(779 591)
WebUI\Enabled=false

[RSS]
AutoDownloader\DownloadRepacks=true
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})"

[SearchEngines]
disabledEngines=jackett, legittorrents, limetorrents, torlock

[SearchTab]
qt5\HeaderState=@bytearray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\x1\0\0\0\x2\x1\0\0\0\0\0\0\0\0\0\0\0\a`\0\0\0\x2\0\0\0\x6\0\0\0h\0\0\0\x5\0\0\0h\0\0\x3\x5\0\0\0\a\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0h\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\a\0\0\x1\x65\0\0\0\x1\0\0\0\0\0\0\0h\0\0\0\x1\0\0\0\0\0\0\0h\0\0\0\x1\0\0\0\0\0\0\0h\0\0\0\x1\0\0\0\0\0\0\0h\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\xff\xff\xff\xff)

[ShutdownConfirmDlg]
DontConfirmAutoExit=false

[SpeedWidget]
Enabled=false
graph_enable_0=true
graph_enable_1=true
graph_enable_2=false
graph_enable_3=false
graph_enable_4=false
graph_enable_5=false
graph_enable_6=false
graph_enable_7=false
graph_enable_8=false
graph_enable_9=false
period=1

[TorrentAdditionDlg]
save_path_history=/home/hd5/myserver/Downloads

[TorrentProperties]
CurrentTab=-1
Peers\qt5\PeerListState=@bytearray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\x1\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\xe\0 \0\0\0\x1\0\0\0\r\0\0\0h\0\0\x5H\0\0\0\xe\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0h\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\xe\0\0\0h\0\0\0\x1\0\0\0\0\0\0\0h\0\0\0\x1\0\0\0\0\0\0\0h\0\0\0\x1\0\0\0\0\0\0\0h\0\0\0\x1\0\0\0\0\0\0\0h\0\0\0\x1\0\0\0\0\0\0\0h\0\0\0\x1\0\0\0\0\0\0\0h\0\0\0\x1\0\0\0\0\0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0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0h\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\0\0\0h)

[TransferListFilters]
selectedFilterIndex=0

@gggirlgeek
Copy link

I've fixed my problem. The Advanced option to bind to a specific address had to be set to the External IP (The one you'd see if you went to "http://WhatIsMyIP.com"). I've never had to set this before v4.2.3. I double checked my previous settings for v4.2.0 and v4.0.3 on this machine and the configurations are set to All Addresses.

Config file line said:
Connection/InterfaceName=

Now it says:
Connection/InterfaceName=123.456.789.12

I wonder what changed?

@FranciscoPombal
Copy link
Member

@gggirlgeek
Not sure, I can't reproduce this on 4.2.3. What versions of qBittorrent/libtorrent are you using?

@maestroprog
Copy link

изображение

The same solution helped me. By default an "Any interface" option is set in "network interface" settings. I have a multiple network interfaces on my motherboard, and if I choose the real network interface with a cable connected (eno1), then qBittorrent is works.
I think the “Any interface” option has broken.

@maestroprog
Copy link

maestroprog commented Apr 10, 2020

qbittorrent/eoan,now 4.3.0~202004091103-6928-43e5e24~ubuntu19.10.1 amd64 is installed in my pc.

@FranciscoPombal
Copy link
Member

Pending additional confirmation from @gggirlgeek, it seems everyone is using a version more recent than f58f425 (PR #12430), which is the only recent network connection-related commit, so it could be the cause.

If anyone could test without this commit and post the results, that would be great.

In the meantime, @rwasef1830 Can you lend a hand helping to diagnose this please?

@FranciscoPombal
Copy link
Member

I must say that I was not able to reproduce with or without that commit, so ymmv.

@rwasef1830
Copy link
Contributor

Everyone here: there's an important piece of info missing: QT version.

@FranciscoPombal
Copy link
Member

@rwasef1830

Everyone here: there's an important piece of info missing: QT version.

Good point. For me it was Qt 5.9.5, the default on Ubuntu 18.04

@gggirlgeek
Copy link

gggirlgeek commented Apr 11, 2020

@gggirlgeek
Not sure, I can't reproduce this on 4.2.3. What versions of qBittorrent/libtorrent are you using?

Qbittorrent 4.2.3 x64, QT 5.9.5, Libtorrent 1.2.5.0, Ubuntu v18.04 x64

I cannot try any other verion. I don't have root on that seedbox. All was good in v4.2.0.

@rwasef1830
Copy link
Contributor

rwasef1830 commented Apr 11, 2020

@FranciscoPombal
I tested qbittorrent 4.2.3.99~202004021627-6962-29e9594 with libtorrent-rasterbar 1.2.5+git20200401.dcf3c83d29 on ubuntu 18.04 and 19.10 with distro-supplied QT5 and it seemed to work fine, I guess you can make a special debug build which logs more info when discovering interfaces and addresses and send it to them, especially when making outgoing connections.

@swejuggalo
Copy link

Libtorrent-rasterbar rc_1_2 from the 10th april.
Qbittorrent 4.2.3 works. Qbittorrent from Master, somewhere around 10 april and onwards fails.
QT 5.14.2, Manjaro 19.02.
I build with the help of AUR scripts. I havn't used git manually (maybe ages a go).
Of interest perhaps arvidn/libtorrent#4412 (comment) (so recent master builds is not broken with all libtorrent-rasterbar builds apperently)

@WolfganP
Copy link

qBt latest from master on raspbian, libtorrent-rasterbar rc_1_2 from april 4th; same issue of no connectivity detected after rebuild/update. Simply changing the network interface to eth0 solved the issue.

@zywo
Copy link
Contributor

zywo commented Apr 12, 2020

Running git bisect and here's the commit causing this issue:

bf1c9e34d7a7361fec844a4412a0bdd4b8b12d4c is the first bad commit
commit bf1c9e34d7a7361fec844a4412a0bdd4b8b12d4c
Author: Raif Atef <beliskner.github.3psil0N@neverbox.com>
Date:   Sun Apr 5 19:39:55 2020 +0200

    Fix outgoing interface is not getting assigned
    
    Assignment was missing in main branch of condition statement.
    Closes https://github.com/qbittorrent/qBittorrent/issues/12421

 src/base/bittorrent/session.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

@FranciscoPombal
Copy link
Member

Being worked on here: #12484

@gggirlgeek
Copy link

What do I do now to get up and running? I am still getting the error messages even though my network interface and address are spedified. Torrents are stalling and not connecting to many peers.

4/13/20 9:27 PM - Couldn't load Web UI translation for selected locale (en).
4/13/20 9:27 PM - Unable to resume torrent '{hash}'.
4/13/20 9:27 PM - Unable to resume torrent '{hash}'.
4/13/20 9:27 PM - Unable to resume torrent '{hash}'.
4/13/20 9:27 PM - Unable to resume torrent '{hash}'.
4/13/20 9:27 PM - Failed to listen on IP: 0.0.0.0, port: TCP/0. Reason: Resource temporarily unavailable
4/13/20 9:27 PM - Failed to listen on IP: 0.0.0.0, port: TCP/0. Reason: Resource temporarily unavailable

@FranciscoPombal
Copy link
Member

@gggirlgeek compile qBittorrent from source with this commit or newer: 5d10724

However, most people here were using versions compiled from source that included this problematic change: #12430. This was what #12484 fixed, but you say you were using 4.2.3, which did not include #12430 anyway; this means your problem could be elsewhere. Regardless the new patch is worth a try.

@qbittorrent qbittorrent locked and limited conversation to collaborators Feb 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Network Issues related to network connectivity
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants