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

permanent connection loss after network reconnection #19580

Open
snakeeater98 opened this issue Sep 7, 2023 · 7 comments
Open

permanent connection loss after network reconnection #19580

snakeeater98 opened this issue Sep 7, 2023 · 7 comments
Labels
has workaround Proxy/VPN Issues related to the use of proxy/VPN Waiting diagnosis Issue needs troubleshooting

Comments

@snakeeater98
Copy link

snakeeater98 commented Sep 7, 2023

qBittorrent & operating system versions

qBittorrent: 4.5.5
Operating system: QTS 5.1.1.2491
Qt: 6.5.2
Libtorrent: 2.0.9.0

What is the problem?

Whenever my ISP reconnects and VPN therefore as well, qBittorrent does not pick up the new connection.
As Network interface I set my VPN nic and for addresses to bind i used all ipv4 addresses

Steps to reproduce

setup a VPN
configure qbittorrent to use the vpn interface
disconnect from network
connect to network
result -> connection in qbittorrent is permanetly lost

Additional context

No response

Log(s) & preferences file(s)

Edit: i took the logs before enabling the option "Reannounce to all trackers when IP or port changed", it changed nothing.
Also manual "force reannounce" does nothing as well.

@thalieht thalieht added the Proxy/VPN Issues related to the use of proxy/VPN label Sep 7, 2023
@DarkVoyage
Copy link

Maybe has connection to #16901, #16947, #18488

@DarkVoyage
Copy link

DarkVoyage commented Sep 12, 2023

There should be some kind of timeout and cyclical retouch of connection in case it was dead at time of first probe. In fact I've had a problem with Windows VPN (ikev2), but have no problem with SoftEther, qB connects right away, when connection on adapter is alive.

@DeathStalker77
Copy link

I have noticed this as well, after upgrading to v4.5x and now to v4.6.0RC2 - if you lose VPN connection, qB does NOT reconnect or re-announce upon re-connection - NOR does manually re-announcing. I have had to close the program and relaunch it.

--- DS

@luzpaz luzpaz added the Waiting diagnosis Issue needs troubleshooting label Sep 17, 2023
@snakeeater98
Copy link
Author

so, what can i do to help with the issue ? what does needs diagnosis mean ?

@luzpaz
Copy link
Contributor

luzpaz commented Oct 15, 2023

@snakeeater98 help debug the issue, or convince someone who has those skills to debug it?

@snakeeater98
Copy link
Author

snakeeater98 commented Nov 9, 2023

After following multiple paths to possible solutions i finally think i found out what works for me.
Its more like a workaround than a clean solution.
I just made a script that restarted the qBittorrent service and execute it via crontab every 20 min.
If anyone is interested, for qnap qts os the command is "nohup qpkg_service restart qbittorrent 1>>/dev/null 2>>/dev/null".
(not sure if nohup is required but if yes it comes with the entware-std app from the appstore repository myqnap)

EDIT: THIS IS NOT A SOLUTION, because when restarting the service qbittorrent does not save the downloaded progress...
EDIT2: ... set "Save resume data interval" in qbittorrent to a low value.

@luzpaz
Copy link
Contributor

luzpaz commented Nov 13, 2023

This is another ticket that is a good candidate for increasing log level for network info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has workaround Proxy/VPN Issues related to the use of proxy/VPN Waiting diagnosis Issue needs troubleshooting
Projects
None yet
Development

No branches or pull requests

5 participants