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

Can only connect to trackers and detect external IPv4 address when I2P "mixed mode" is enabled #20032

Open
RedSnt opened this issue Nov 27, 2023 · 7 comments
Labels

Comments

@RedSnt
Copy link

RedSnt commented Nov 27, 2023

qBittorrent & operating system versions

qBittorent: v4.6.1 x64
Qt: 6.4.3
OS: Windows 10 22H2 (10.0.19045) build 19045.3693
Libtorrent: 2.0.9.0
Boost: 1.83.0
OpenSSL: 1.1.1w
zlib: 1.3

What is the problem?

I played around with I2P and Proxy settings this weekend, and actually got I2P in mixed mode and SOCKS5 working together.
But then I decided I'd rather connect directly, but now I've found out that trackers are indefinitely stuck in "Not Contacted Yet". And since external IP is detected through contacting trackers, I'm stuck with no connections at all despite DHT working fine.
qBittorrent do detect my IPv6 address, just not my IPv4 address.

Steps to reproduce

  1. Turn on I2P and Mixed Mode
  2. Enable SOCKS5 proxy with everything checked
  3. Turn all of those settings off again

I did a lot of changing settings around, so might be more required than this.

Additional context

vivaldi_6a5mCJHISz.mp4

Log(s) & preferences file(s)

qbittorrent.log
qBittorrent_ini.zip

@RedSnt
Copy link
Author

RedSnt commented Nov 28, 2023

Problem persists in 4.6.2. What's more is that I've noticed that qbittorrent uses 4 times the CPU power (from roughly 2.5% to ~10%) when I2P and mixed mode is disabled and I sometimes get the "28/11/2023 11.29 - x.x.x.x was blocked. Reason: I2P mixed mode restrictions." msg's. I guess it's trying really hard to not let anyone connect.

EDIT: Downgrading to v4.6.2 libtorrent v1.2.19.0 "obviously" fixed this as it doesn't have I2P support at all.

@OvercookedBeef
Copy link

The CPU issue might be related to arvidn/libtorrent#7535

@RedSnt
Copy link
Author

RedSnt commented Dec 2, 2023

Ahh, yeah, that's probably related then. I didn't show it in the clip, but I did have i2p addresses in the tracker list.

@RedSnt
Copy link
Author

RedSnt commented Dec 3, 2023

Just did some additional tests by adding http://tracker2.postman.i2p/announce as a tracker for all my torrents, and nothing happens in v4.6.2 libtorrent v1.2.19.0 ('cause i2p isn't supported).
Removed http://tracker2.postman.i2p/announce from the trackerlist of all the torrents then upgraded (sidegraded?) to v4.6.2 libtorrent v2.0.9.0, and true enough, no problems.
Then added http://tracker2.postman.i2p/announce to the trackerlist of all my torrents and as expected original problem appears, qBittorrent just stuck not being able to connect to anything.

Here's where it gets weird: Removing http://tracker2.postman.i2p/announce from the trackerlist of all my torrents doesn't fix the problem, still unable to connect. Even after restarting it persists. Which is making me think there's a setting somewhere that gets flipped because there shouldn't be anything persisting upon restarting otherwise, right?

When I then "sidegrade" back to v4.6.2 libtorrent v1.2.19.0 version and back to v4.6.2 libtorrent v2.0.9.0 without doing anything the problem is "fixed". Is something added and removed in the database or config between the versions? Because adding I2P trackers in this version somehow bricks something when I2P isn't enabled in the settings.

@k4r4b3y
Copy link

k4r4b3y commented Dec 4, 2023

there is a problem with any tracker URL ending with .php: #19794 (comment)

When I then "sidegrade" back to v4.6.2 libtorrent v1.2.19.0 version and back to v4.6.2 libtorrent v2.0.9.0 without doing anything the problem is "fixed".

Do you mean you are able to connect to peers from postman's tracker now?

@RedSnt
Copy link
Author

RedSnt commented Dec 4, 2023

Do you mean you are able to connect to peers from postman's tracker now?

No. Removing the I2P trackers like postman's, then switching back and forth between the versions fixes the problem of not being able to start uploading and downloading again as was my original problem and reason to create this thread/report.

Maybe I2P addresses take priority in the code, and them being unreachable due to how it's disabled in the settings means libtorrent or qbittorrent is stuck in a loop unable to move on and parse other addresses?

@glassez glassez changed the title [Bug] Can only connect to trackers and detect external IPv4 address when I2P "mixed mode" is enabled Can only connect to trackers and detect external IPv4 address when I2P "mixed mode" is enabled Dec 4, 2023
@glassez glassez added the I2P label Dec 4, 2023
@Neustradamus
Copy link

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

No branches or pull requests

5 participants