-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
Bug: QBittorrent loses internet connectivity after running for some time #1277
Comments
You're supposed to have a volume mapping to |
@bnhf the volumes are irrelevant to my issue. The default mappings from linuxserver are not good for my use case and they can be changed without issue. The volumes I have mapped are very intentional. Your response is irrelevant to my issue. |
My apologies then, I always thought those volume mappings mattered. :-) |
@bnhf no worries I can see why one would assume that. The /downloads part of the mapping is just a made up path that will be seen by whatever you are running in your container so you can change it to anything you want as long as whatever app you are using is configured with that same path. |
You're probably ahead of me on this one, but I see in the linuxserver/qbittorrent Github page that they have the "temp" directory set to /downloads in the qbittorrent configuration file. I don't see where that path is exposed in the WebUI, so is it possible you're using up whatever free space is available in the container and a restart clears it out? |
I'm also facing this issue. Looks like it might be a |
A (not nice) solution that I ended up using it adding this in the docker-compose for qbittorrent:
|
@SinTan1729 @bnhf thanks for your input 👍
So qbittorrent loses connectivity completely? Are you sure the whole gluetun container doesn't get restarted? If it does, then it makes sense qbittorrent loses connectivity, subscribe to #641 @jdoe29103 welcome to gluetun first 😉 Your problem might be related to #1273 and also maybe a new bug in qbittorrent? Have you tried a previous tagged image for qbittorrent? Maybe also have a try with another client like Deluge? 🤔 |
From the logs, doesn't look like gluetun is restarting. Instead, it's updating the VPN details (i.e. IP etc.). In some cases, I'm not even able to find such an event, so qBittorrent is losing internet seemingly randomly. |
@SinTan1729 I have been poking around with it the past week and I may have found a somewhat "better" fix. The other day I installed some updates on my OPNsense router which required a reboot. While the router rebooted I watched qBittorrent to see if it would recover once the router came back online and sure enough it did not and all torrents were stalled. However, after some trial and error it seems that binding the local IP address in qBittorrent's advanced settings resolved this issue. It can survive a router reboot and come back online after I changed this. It has been going strong for a few days now so we shall see. @qdm12 It could be. I have had this issue in the past with much older versions of qbittorrent in combination with OpenVPN. I have not tested an older version of qbittorrent with gluetun yet so that could also be a potential fix. I am going to poke around with it a bit more sometime this week and see what I can find.
@SinTan1729 does this cause qbittorrent to reboot if the gluetun container is restarted? |
Yes, it does. @jdoe29103 Although, it doesn't really solve the issue as I just noticed that qBittorrent isn't working (i.e. it can't connect to trackers, fails the ipleak torrent test etc.) but I manually checked that I can ping from inside the container. I'll try out the address binding method that you suggested. Update: I bound it to the network |
Glad it's working for you too. Your explanation makes perfect sense to me as well. |
Yeah I had a similar issue a year ago and went through the exact same process. |
So it seems the issue is not completely resolved. I noticed this morning that many torrents were unable to connect to trackers and adding new torrents just stalled. It seems the issue still persists sadly. |
I've also been running into this issue and I've been bound to the tun0 adapter from the beginning. |
I encounter this problem as well, qbittorrent "stalls" when gluetun restart I guess this should be fixed/configurable on qbittorrent side since it can happen for the network to go down |
Similar issue here; moved from a deprecated combo container to this plus linuxserver qbittorrent and qbittorrent works for a while, then loses connectivity until I restart the container. |
I've done some digging and it looks like the problem is with libtorrent |
Update: |
After a power outage last night Qbittorrent rebooted and was connected to trackers but my client was not connectable. It seems Qbittorrent is just generally unreliable and I might just look for another client as I have been suffering with issues with this software for the better part of a decade. |
This does not work for me, I can see the used libtorrent version is 1.x but the torrents still get stucks from time to time |
I never updated here, but I had also tried the 1.x libtorrent version of qbittorent with no positive changes. I've resorted to just restarting my container occasionally =( I may try the healthcheck item referenced above if I get a chance. |
Could you share your compose config? Just not sure how to bind it to tun0 |
@capsel22 No need for the config. It can be done in the settings. I believe it's right on top of the advanced/connections settings tab. |
This is working for me for several days so far. Thanks! |
Just wanted to say qBittorrent works absolutely fine when I bind it to "tun0" and IP address to "All IPv4". |
For me, just binding it to |
binding tun0 and ipv4 does not resolve for me on the latest gluetun (v3.33.0) and qb (lscr.io/linuxserver/qbittorrent) release |
I'm similar to ksurl Latest gluetun and linuxserver/qbittorrent, networked through gluetun using |
You've both said you're using linuxserver/qbittorrent, have you tried linuxserver/qbittorrent:libtorrentv1 with these settings? |
Thats what I need to do. Bind tun0 in qbit settings and use libtorrentv1 image. Works like a dream |
I haven't tried but next time it happens I will try that. |
problem is that is a really old image and doesn't get updated. i'm going to test the longer timeout first. |
That branch gets updated as regularly as the normal release. |
No issues for me since I went to qbittorrent with v1 libtorrent |
Oh, I'll give it a try if the timeout is insufficient |
Coming back to say that using a version of Thanks all. |
Is the ultimate solution to use the Seems pretty widespread from Googling. |
the workaround is using portcheck alongside qb if you don't want to switch to a different client like transmission. |
Sorry for needing some hand-holding, but could you link some docs to the portcheck you're referring to? Or are you referring to generally checking the port with a healthcheck in docker compose or something? |
I just want to share a solution I managed to get working, with qBitTorrent 4.6.4 on linux.
You need |
Can you please give a bit more context on how you got it working in qbittorrent container and What (name) did you save this code and where did you save this (inside/outside the container) and is this run inside the qb container or outside? |
I am very sorry, but when I posted here I did not realize this was specifically for a container solution... my bad. |
@genericapplesauce, I was also keen to know and I found the info here: #1407 (comment) |
There are a lot of hacks using script to monitor qbittorrent container. I thought maybe I can share mine which is much simpler than some of these other script:
You should replace |
Is this urgent?
None
Host OS
Latest version of OpenMediaVault
CPU arch
x86_64
VPN service provider
Mullvad
What are you using to run the container
docker-compose
What is the version of Gluetun
I don't see this line in my logs
What's the problem 🤔
I recently switched from using an old deprecated docker container for qBittorrent with OVPN support built in. I am now running the latest qBittorrent docker from linuxserver along with gluetun using Mullvad/Wireguard. My issue is that qBittorrent will connect to torrents and work just fine for awhile but it will eventually become unable to connect to any peers. I do not know if this is a qBittorrent issue or a gluetun issue. Restarting the qBittorrent container solves the issue temporarily.
Share your logs
Share your configuration
The text was updated successfully, but these errors were encountered: