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 - Stalled (troubleshooting included) #1220

Closed
war4peace opened this issue Dec 31, 2013 · 36 comments
Closed

Qbittorrent - Stalled (troubleshooting included) #1220

war4peace opened this issue Dec 31, 2013 · 36 comments

Comments

@war4peace
Copy link

@war4peace war4peace commented Dec 31, 2013

Hello,

I have been using qbittorrent for a while and I hit the "Stalled" issue recently.
After investigating on the forums and troubleshooting for a while, I hope I am able to shed some light on this.

Backstory: I recently upgraded my broadband and getting trus 1 Gbps speed in the metropolitan area, and up to 500 Mbps outside the city limits, with speeds as high as 200 Mbps outside the country as well. Since then, utorrent (which I was using at the time) started to act weird. For example, after adding a few large torrents (usually over 10 GB in size) and starting to download, the client uses HDD continously and doesn't download. First I thought it's all about preallocating space, but it sits still even after 24h and after HDD stops churning.

I moved to Qbittorrent and it was better, but a couple days ago I added some really large torrents (8 of them, around 80 GB each - it's a TV series that I already own in Bluray format but I want to stream it to my mobile devices using PLEX media Server). Qbittorrent started behaving exactly like uTorrent.

What happens:

  1. Qbittorrent attempts to download;
  2. Download works for a few seconds (up to 30 seconds) at Ok speeds (even up to 20 MBps)
  3. Download speed goes gradually down to zero;
  4. HDD light is always ON;
  5. Qbittorrent shows all torrents as "Stalled";
  6. Closing Qbittorrent leaves "qbittorrent.exe" process alive in processes list;
  7. trying to end process yields no results, I have to restart the OS to get it out of the way.
  8. If I don't restart and try to open Qbittorrent again, it starts and creates another process in the process list which actually can be killed.

My guess is that Qbittorrent tries to preallocate files (although I told it not to) OR it has issues trying to download at high speeds and somehow craps out. I have gone as low as allowing only 2 torrents to download at the same time, which maked Qbittorrent set all but 2 torrents as "Queued" but the two remaining ones are... yes, you guessed right: "Stalled".

Same behavior is visible for 3.1.2 and 3.1.4.

Smaller torrents (e.g. DVD-sized) work fine. usually I am getting single-torrent download speed of 60-70 MBps, which probably is capped by HDD transfer capabilities.

@sledgehammer999

This comment has been minimized.

Copy link
Contributor

@sledgehammer999 sledgehammer999 commented Jan 1, 2014

Tools->Options...->Downloads->pre-allocate bla bla

Is it disabled? If not, disable it and try again.

Also is the HDD internal or external? What is the connection type with the pc?

@war4peace

This comment has been minimized.

Copy link
Author

@war4peace war4peace commented Jan 1, 2014

Pre-allocate is disabled, always was.
Internal HDD, WD20EARX, 2 TB, about 1 TB free space. I have another eSATA HDD, WD20EARX as well, same behavior there.
Connection is wired, Gigabit LAN to a TP-Link 3600 and from there a CAT6 cable goes into an optic fiber box.

For smaller torrents Qbittorrent works fine, for large torrents (e.g. a torrent 133 GB large) this behavior appears. I can consistently replicate it.
Maybe the logs would tell a story?

@sledgehammer999

This comment has been minimized.

Copy link
Contributor

@sledgehammer999 sledgehammer999 commented Jan 1, 2014

Maybe the logs would tell a story?

I don't know, do you see anything interesting in there? (view->execution log)

This is probably a libtorrent issue.

EDIT:

Connection is wired, Gigabit LAN to a TP-Link 3600 and from there a CAT6 cable goes into an optic fiber box.

I meant how to you connect the HDD. Probably SATA 2/3 (oops you say eSATA)

@war4peace

This comment has been minimized.

Copy link
Author

@war4peace war4peace commented Jan 1, 2014

One HDD is SATA3, the other is eSATA which is also SATA3.

logs:

01/01/2014 01:01:50 - qBittorrent is successfully listening on interface fe80::b8c0:47ad:4c1d:8327%11 port: TCP/60101
01/01/2014 01:01:51 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: 60101
01/01/2014 01:01:50 - UPnP/NAT-PMP: Port mapping failure, message: could not map port using UPnP: Invalid Arguments
01/01/2014 01:01:50 - UPnP/NAT-PMP: Port mapping successful, message: successfully mapped port using UPnP. external port: 60101
01/01/2014 01:01:50 - External IP: 84.232.211.167
01/01/2014 01:01:50 - Reason: [torrent name] fast resume rejected: missing or invalid 'file sizes' entry
01/01/2014 01:01:50 - Fast resume data was rejected for torrent [torrent name], checking again...
01/01/2014 01:01:50 - Reason: [torrent name] fast resume rejected: missing or invalid 'file sizes' entry
01/01/2014 01:01:50 - Fast resume data was rejected for torrent [torrent name], checking again...
01/01/2014 01:01:50 - qBittorrent failed listening on interface fe80::b8c0:47ad:4c1d:8327%11 port: TCP/60101. Reason: An attempt was made to access a socket in a way forbidden by its access permissions

This last line is weird.

@war4peace

This comment has been minimized.

Copy link
Author

@war4peace war4peace commented Jan 1, 2014

ok, after a reinstall I am now getting this:

01/01/2014 04:40:19 - UPnP/NAT-PMP: Port mapping failure, message: could not map port using UPnP: Invalid Arguments

And Qbittorrent doesn't do anything. All downloads are now "Stalled", nothing goes in, nothing goes out.
Trackers are shown as "not working".

I fired up Vuze, with the same torrent, from same tracker, it works perfectly.

@JFE55

This comment has been minimized.

Copy link

@JFE55 JFE55 commented Feb 2, 2014

2/2/14

Exact same problem. Every time.

Win 7, SP1
AMD A6-3500
8GB RAM
128GB SSDD primary drive
1 TB & 2.5 TB SATA internal storage
2TB eSATA external storage

utorrent works with no problem.

@splitlenz

This comment has been minimized.

Copy link

@splitlenz splitlenz commented Jun 15, 2014

I also have stalled issue. I ran utorrent first, downloaded the file, then closed it. Started up qbittorent, and tried to dl the file, but it's in a stalled state for like 1 hour already. Nothing changing. Trying to use an external hard drive. I've tried this many times and qbittorrent always stalls. I've googled it and there are definitely people experiencing this.

Port forwarding is disabled on router, but ports were opened manually.

The exceution log just shows this
15/06/2014 14:24:19 - qBittorrent is successfully listening on interface xx::xxx port: TCP/15823
15/06/2014 14:24:18 - 'C:\xxxx.torrent' resumed. (fast resume)
15/06/2014 14:24:18 - 'C:\xxxx.torrent' resumed. (fast resume)
15/06/2014 14:24:18 - 'C:\xxxx.torrent' resumed. (fast resume)
15/06/2014 14:24:18 - 'C:\xxxx.torrent' resumed. (fast resume)
15/06/2014 14:24:18 - 'C:\xxxx.torrent' resumed. (fast resume)
15/06/2014 14:24:18 - 'C:\xxxx.torrent' resumed. (fast resume)
15/06/2014 14:24:18 - Options were saved successfully.
15/06/2014 14:24:18 - Embedded Tracker [OFF]
15/06/2014 14:24:18 - Encryption support [ON]
15/06/2014 14:24:18 - Local Peer Discovery support [ON]
15/06/2014 14:24:18 - PeX support [ON]
15/06/2014 14:24:18 - DHT support [ON], port: UDP/15823
15/06/2014 14:24:18 - Anonymous mode [OFF]
15/06/2014 14:24:18 - HTTP user agent is qBittorrent v3.1.9.2
15/06/2014 14:24:18 - UPnP / NAT-PMP support [OFF]
15/06/2014 14:24:18 - qBittorrent is trying to listen on interface xx::xxx port: TCP/15823
15/06/2014 14:24:18 - Peer ID: -qB3192-

@Zer0t3ch

This comment has been minimized.

Copy link

@Zer0t3ch Zer0t3ch commented Dec 3, 2014

Has anyone found a fix for this yet? I still seem to be getting this problem, on both Linux as well as Windows.

@sledgehammer999

This comment has been minimized.

Copy link
Contributor

@sledgehammer999 sledgehammer999 commented Dec 3, 2014

@Zer0t3ch Don't spam every thread you find. I imagine your problem is just a settings/network problem. Go to our forum and describe what is your settings and what you are seeing in the log. Forum: http://forum.qbittorrent.org/

@war4peace

This comment has been minimized.

Copy link
Author

@war4peace war4peace commented Dec 3, 2014

No, it's not a network/settings problem.
It's a libtorrent issue which remained unresolved for years, I'd wager.
It only happens when multiple torrents are started on a very high speed internet connection (I personally have a Gigabit connection).
If only ONE torrent is started, the issue doesn't manifest. When 2 torrents are started, it rarely manifests, but when 3 or more torrents are started at the same time, almost invariably I end up with Stalled, a continuously working HDD and process which can't be closed, even forcefully. I have to fully restart my machine to get things in order again.

@sledgehammer999

This comment has been minimized.

Copy link
Contributor

@sledgehammer999 sledgehammer999 commented Dec 3, 2014

a continuously working HDD and process which can't be closed

Do you have preallocation enabled?

@war4peace

This comment has been minimized.

Copy link
Author

@war4peace war4peace commented Dec 3, 2014

It doesn't matter if I have it or not, the same behavior is the same. The HDD doesn't do any actual writing, I checked using Sysinternals' Process Explorer and Process Monitor, as well as Windows' perfmon. I saw huge amounts of reading data, looks like it's a process hook which reads stuff over and over from somewhere.

The process hook remains hanging when attempting to close the process forcefully. HDD keeps churning forever.

@sledgehammer999

This comment has been minimized.

Copy link
Contributor

@sledgehammer999 sledgehammer999 commented Dec 3, 2014

I re-read your first post.
Obviously I cannot test your circumstances because a) I don't such a fast internet connection and b)I don't have readily available torrent that big.

However, when using v3.1.11 and it shows as stalled and the HDD working can you post a screen of what is going on in Tools->Statistics ?

@war4peace

This comment has been minimized.

Copy link
Author

@war4peace war4peace commented Dec 3, 2014

Interestingly, after updating my qbittorrent to 3.1.11 (had 3.1.5) I can't seem to replicate. I'll keep trying and come back with a screenshot if this happens again. Fingers crossed!

@buinsky

This comment has been minimized.

Copy link
Contributor

@buinsky buinsky commented Dec 4, 2014

Try to turn off OS Cache in advanced preferences.

@sledgehammer999

This comment has been minimized.

Copy link
Contributor

@sledgehammer999 sledgehammer999 commented Dec 4, 2014

I am closing. If it still stalls, comment here and I'll reopen.

@imadaman

This comment has been minimized.

Copy link

@imadaman imadaman commented Dec 4, 2014

I have the same problem, running on Windows 8.1, qBittorrent 3.1.9.2
The ports are open, while the connection is a 100/100 Mbps due to router it is limited to 56/56 Mbps.
Execution log shows that the torrent has been added to the list and after a minute gives a [UPnP/NAT-PMP: Port mapping failure, message: could not map port using UPnP: no router found]
I have tested with pre-allocation on and off, both give the same result.
Funnily, two of the torrents (20.3 GB and 9.2 GB) started working after the 17th time I think it was, while the four others (15.0 GB, 1.3 GB, 5.4 GB and 23.5 GB) are still giving stalled.
When the two started working, I had pre-allocation on, along with [Options > Connection > Listening Port > Use UPnP / NAT-PMP port forwarding from my router]

I apologise for not posting direct logs, with what posting from phone.
Also apologies if I was not supposed to comment, but the thread fit from what I saw.

@Zer0t3ch

This comment has been minimized.

Copy link

@Zer0t3ch Zer0t3ch commented Dec 5, 2014

@imadaman Try turning UPNP off. I did that and limited the total connection limit and everything works now.

@sledgehammer999

This comment has been minimized.

Copy link
Contributor

@sledgehammer999 sledgehammer999 commented Dec 5, 2014

@imadaman

This comment has been minimized.

Copy link

@imadaman imadaman commented Dec 10, 2014

With UPNP off, global connection maximum of 20, maximum connection per torrent of 4, global upload slots of 10 and upload slots per torrent of 4, the same four torrents still Stall on resuming and after removing and adding again.
Tried reinstalling qBT, which didn't help either.

@dezza

This comment has been minimized.

Copy link

@dezza dezza commented Feb 19, 2015

Same problem here. I can't get it to continue with any settings. Stalled.

@nomadturk

This comment has been minimized.

Copy link

@nomadturk nomadturk commented Apr 21, 2015

It stalls...
Still does.
It seems random. I tried it on different connections. With or without disk allocation and upnp. They didn't affect nothing.

Right now, I don't know if it's a coincidence or not but when I disabled Anonymous mode and Local Peer Discovery my stalled torrents started to run again. But on the other hand, before disabling these, I have added other torrents from various trackers, some worked some stalled...

@chrishirst

This comment has been minimized.

Copy link
Contributor

@chrishirst chrishirst commented Apr 21, 2015

when I disabled Anonymous mode ...

Which indicates that "Anonymous Mode" is making your client unable to communicate with other peers.

@nomadturk

This comment has been minimized.

Copy link

@nomadturk nomadturk commented Apr 21, 2015

I have added other torrents from various trackers, some worked some stalled...

@sapioit

This comment has been minimized.

Copy link

@sapioit sapioit commented May 28, 2015

Try changing the port. Tools > Options > Connections > "Random" button from the top.
That fixed it for me...

@mderazon

This comment has been minimized.

Copy link

@mderazon mderazon commented Jun 21, 2015

Same happens to me. Tried disabling os cache and play with the cache settings.
Download just oscillates between stalled to ~ 15MB/s

When it stops, it stalls for around 5 minutes and then starts again

@lily090

This comment has been minimized.

Copy link

@lily090 lily090 commented Oct 9, 2015

Had the same problem (v3.2.3) - solved by disabling OS Cache in advance settings.

@TFcuse

This comment has been minimized.

Copy link

@TFcuse TFcuse commented Aug 26, 2016

Same Issue (v3.3.6) - solved by disabling OS Cache in advance settings

@WillCowan

This comment has been minimized.

Copy link

@WillCowan WillCowan commented Sep 30, 2016

I had the same issue, and I cleared my log files and it worked.
Just unchecked the log tick box, hit apply then rechecked it and hit ok.

@fi3nds

This comment has been minimized.

Copy link

@fi3nds fi3nds commented Oct 2, 2016

tried everything above, every cache increment imaginable.

NEW SOLUTION:
Upgrade your network card driver. I have an asus board and was using the built-in windows driver, went to asus's website, downloaded and installed it and now my downloads no longer stall, turned OS cache back on and still no stall. Not only that but I am now getting even better torrent speeds :)

To upgrade your driver, if it's onboard network, you'll need the motherboard model, easiest way is on the receipt for your computer, or motherboard box but if youre like me, I had to pop the case open and read it off the board. So glad I finally figured this out .

screenie for fun: https://puu.sh/ruWDw/ecd419c75c.png

EDIT: had same issue on pc a second pc, asus network driver solved it, never trusting ms gigabit drivers again.

@ryannathans

This comment has been minimized.

Copy link

@ryannathans ryannathans commented Oct 18, 2016

Just encountered the same problem after first time install. ~80GB torrent and 1MiB/s download speeds (seems to be limited by seeders available, not relevant to the problem). Disabling OS cache fixed it for me.

@Ultroman

This comment has been minimized.

Copy link

@Ultroman Ultroman commented Jan 16, 2017

My server had the same symptoms. Ended up being the SATA port which had broken, making the HDD go to 100% activity, but not reading or writing anything, whenever the HDD wrote to itself (the temp- and finished-folders are on the same drive).

I solved it, by simply moving the SATA cable for the affected harddrive to another port.

@Ultroman

This comment has been minimized.

Copy link

@Ultroman Ultroman commented Jan 16, 2017

It did NOT only happen when a download finished. It happened as soon as the initially cached downloaded data was attempted written to disk. So it downloaded about 1-5 megabytes, then died.

@ryannathans

This comment has been minimized.

Copy link

@ryannathans ryannathans commented Jan 16, 2017

@Ultroman you'll probably find it was the controller IC, not specially the port itself. A lot of motherboards have two different controllers hooked up to different sata ports. Maybe the true issue lies with some controllers

@WilliamArmstrong

This comment has been minimized.

Copy link

@WilliamArmstrong WilliamArmstrong commented Apr 14, 2017

Had the same problem with torrents stalling. When I paused them they would Error.

Found out that the entire process was being blocked by BitDefender's Ransomware protection. Disabled that and everything was working fine again.

@Github3r

This comment has been minimized.

Copy link

@Github3r Github3r commented Sep 1, 2019

Had the same problem with torrents stalling. When I paused them they would Error.

Found out that the entire process was being blocked by BitDefender's Ransomware protection. Disabled that and everything was working fine again.

Into the many options I changed on windows new update installation 1903 I modified the RANSOMEWARE having it disabled worked like charm :$

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

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.