-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Torrents not resuming after vpn connection loss/restore #9195
Comments
I am also having the same issue on Win 10x64 running v4.1.1. I can attest that I am getting the same result as @mostlyhuman. After VPN failure, torrents are displayed as running, but transfer does not continue. |
I have the same problem. I must completely restart the program in order for downloading to resume. |
Same problem here. Restarting the program resumes operation. |
I did some research on this in the meantime, and it looks like it may not be fixable. If you view Reply #6 (sledgehammer_999's comment) on this forum, this is probably due to your VPN virtual network adapter assigning a new local IP address when re-connecting to a server. I just wanted to provide this in case it gives you all any insight. |
I can think of only one workaround that doesn't require human intervention... write a Windows app that detects the drop, waits for the VPN connection to return, then restarts qBittorent. |
This should be solvable within Qbitorrent, if it detects this state after a timeout period it just needs to reinitialize in the same way it does when the program first starts (the equivalent of restarting) since that is what fixes it. there may be other more elegant ways as well. |
I wrote an app anyway... https://github.com/dynamichael/qConnectionSitter |
cool, cheers. are you going to post binaries? I could use Win64. |
That's awesome. Thank you for writing this. I ended up writing a wrapper script in bash (implemented with Git bash on Windows) to monitor the VPN address and restart qBittorrent on dis/connect. Then I eventually moved my qBittorrent setup to Linux and used the same script. If any of you want to use it let me know, and I will push it and paste the link. |
I signed up just to post a reply to this. I was having the same issue because I force my router to restart every night due to connection issues that plague it. After assigning a local port (I used 53) to PIA, Qbittorent now resumes within 5 minutes after I reconnect PIA. However this does not resolve my problem of forcing PIA to reconnect on its own after losing connection. argh |
Could you push it? I'd like to try it out. |
You want the Ubuntu version or the Windows 10 version? |
Windows 10, Please!
…On Wed, Dec 19, 2018 at 6:11 PM jesse ***@***.***> wrote:
Could you push it? I'd like to try it out.
You want the Ubuntu version or the Windows 10 version?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9195 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYaBIxnLz2yIwubAOuLHwGQoNlUhdW9wks5u6uO7gaJpZM4VQc3f>
.
|
Awesome, thank you so much!
…On Wed, Dec 19, 2018, 7:06 PM jesse ***@***.***> wrote:
Okay.
Windows 10 watch script
<https://github.com/barkdoll/scripts/blob/master/bt_watchers/bt_watch.sh>.
Ubuntu watch script
<https://github.com/barkdoll/scripts/blob/master/bt_watchers/bt_watch.sh>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9195 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYaBIxz6FIjk-p-UBV2rrRZ1EnVDjOwqks5u6vCkgaJpZM4VQc3f>
.
|
Seems to still be an issue as of 11/27/19. |
This comment has been minimized.
This comment has been minimized.
I'm still having this issue on Windows 10 with qbit 4.3.5. In my case, the VPN local IP does not usually change between down-ups. The public IP can change. The VPN is WireGuard, which implements a virtual network adapter, rather than using Windows VPN service. It seems to me that a solution could be to use some kind of regular connectivity check to detect when the Public IP endpoint changes. qBittorrent already checks this during initial boot, so why not do it every 10 minutes (or by config option)? Here is a snippet showing that I lost connection after dropping and starting wireguard at
|
Still an issue. I have qBittorrent network interface set to VPN connection. Router restarts every night at 3 AM. VPN connection restarts after. qBittorrent drops and doesn't recover. |
@sakkamade Thanks. Tried to reproduce Tobias's solution but it doesn't work for me. After VPN restart qBitorrent still doesn't reconnect unless I restart it or switch between "All addresses" and "All IPv4 addresses". |
closing as duplicate of #12925 |
I am sorry if it's not OK to resurrect this, but I want to share a way I found that is working great for me for over a week. The other solutions also shared here don't work, for me, because:
Now I run a script that detects if the "dht_nodes" drop to zero and if it stays at zero for a bit then it fully stops qBitTorrent and starts it again.
You need to install |
Please provide the following information
qBittorrent version and Operating System
Windows 10 x64 Qbit version 4.1.1
What is the problem
Sometime the VPN connection will drop and then automatically reconnect and when it does any torrents that were added during the downtime will not resume, they stay stuck in Downloading... at 0%
What is the expected behavior
that the torrents will automatically resume when it detects the connection has been restored
Steps to reproduce
change the ethernet adapter in qbittorent to a vpn adapter, stop the vpn, add a torrent, restart the vpn connection
The text was updated successfully, but these errors were encountered: