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

Torrent stalled with I/O error about an invalid handle #9038

Closed
Zcehtro opened this issue Jun 2, 2018 · 18 comments
Closed

Torrent stalled with I/O error about an invalid handle #9038

Zcehtro opened this issue Jun 2, 2018 · 18 comments

Comments

@Zcehtro
Copy link

Zcehtro commented Jun 2, 2018

Please provide the following information

qBittorrent version and Operating System

v4.1.1
Windows 10 v1709

What is the problem

In the contents tab of the selected torrent selected manually a few files to download, and renamed the main folder.
After that, the folder was renamed but then a second folder appeared with the old name and a few of th selected files were in it.
So I then had the new folder with the new name, and the older folder with the previous name.
I wanted to merge both folders (to get rid of the previous one and move the files to the new folder) but couldn't find a way to make it happen.
I tried renaming the older folder same as the new folder, hoping it would merge both and solve my issue.
Nope, didn't work.

And then no matter what happens, the torrent is always stalled because of an I/O error with invalid handle.
I've tried many times to force recheck and resume downloading, but it always throws out an I/O error with invalid handle.

Initially I was reporting both problems in the same Issue, but I've separated them to make discussing them a bit tidier. So this is the link to the multiple folders issue: #9032

What is the expected behavior

There shouldn't be an I/O error.

Steps to reproduce

To reproduce the I/O error, I downloaded the torrent, selected the same files to download from the torrent, and then just let it start downloading.
After a few seconds, about 20-50MiBs in, the I/O error pops up and the torrent stops.
Execution log lines attached:

2018-06-01 Fri 08:12 PM - An I/O error occurred, 'OC ReMix - 1 to 3000 [v20170528]' paused. OC ReMix - 1 to 3000 [v20170528] partfile read (D:\My Music Unsorted\OC ReMix 1 to 3000\.unwanted\Super_Metroid_One_Girl_in_All_the_World_OC_ReMix.mp3.!qB) error: The handle is invalid
2018-06-01 Fri 08:08 PM - An I/O error occurred, 'OC ReMix - 1 to 3000 [v20170528]' paused. OC ReMix - 1 to 3000 [v20170528] partfile read (D:\My Music Unsorted\OC ReMix 1 to 3000\.unwanted\Final_Fantasy_7_Valse_Aeris_OC_ReMix.mp3.!qB) error: The handle is invalid
2018-06-01 Fri 07:59 PM - An I/O error occurred, 'OC ReMix - 1 to 3000 [v20170528]' paused. OC ReMix - 1 to 3000 [v20170528] partfile read (D:\My Music Unsorted\OC ReMix - 1 to 3000 [v20170528]\.unwanted\Super_Metroid_Into_the_Green_World_OC_ReMix.mp3.!qB) error: The handle is invalid
2018-06-01 Fri 07:57 PM - Fast resume data was rejected for torrent 'OC ReMix - 1 to 3000 [v20170528]'. Reason: OC ReMix - 1 to 3000 [v20170528] fast resume rejected. stat(D:\My Music Unsorted\OC ReMix - 1 to 3000 [v20170528]\Bionic_Commando_Advance_with_Caution_OC_ReMix.mp3.!qB): mismatching file timestamp. Checking again...

Please tell me if there's anything else you need to help me out.

Extra info(if any)

Torrent: http://bt.ocremix.org/torrents/OC_ReMix_-_1_to_3000_%5Bv20170528%5D.torrent

Advanced settings just in case:
image image

Progress from other Issue copied here

I tried adding the torrent from scratch all over again, but I renamed the folder in the new torrent dialog pop-up. No new folder was created, just one folder is present.

However, I got the same I/O error.

2018-06-02 Sat 09:45 AM - 'OC ReMix 1 to 3000' added to download list.
2018-06-02 Sat 10:22 AM - An I/O error occurred, 'OC ReMix 1 to 3000' paused. OC ReMix - 1 to 3000 [v20170528] partfile read (D:\My Music Unsorted\OC ReMix 1 to 3000\.unwanted\Baldur's_Gate_Hero_of_the_Heartlands_OC_ReMix.mp3.!qB) error: The handle is invalid
@Zcehtro
Copy link
Author

Zcehtro commented Jun 2, 2018

I then tried again without the .!qb temporary extension to see if it made a difference.
Same I/O problem. Here's what I did:

  1. In options, I removed unchecked the checkbox "Append .!qB extension to incomplete files"
  2. Closed qBittorrent
  3. Deleted the .parts file, deleted all the downloaded files so the torrent starts downloading from 0% again
  4. Opened qBittorrent
  5. Forced recheck the torrent
  6. Started the torrent

Same files are selected to download, nothing added or removed.
Still got the I/O error.

After that, I thought about just forcing the torrent to continue downloading, and see how far it would go.
So I started with repeating steps 2 through 6, and when I got the I/O error I paused the the torrent, and then started it again, without rechecking.

I keep getting the I/O error every few seconds, so I pause it and resume it. But apparently it's making progress.

Here's the execution log lines regarding this new process:

2018-06-02 Sat 10:57 AM - An I/O error occurred, 'OC ReMix 1 to 3000' paused. OC ReMix - 1 to 3000 [v20170528] partfile read (D:\My Music Unsorted\OC ReMix 1 to 3000\.unwanted\Final_Fantasy_7_Valse_Aeris_OC_ReMix.mp3) error: The handle is invalid
2018-06-02 Sat 11:00 AM - An I/O error occurred, 'OC ReMix 1 to 3000' paused. OC ReMix - 1 to 3000 [v20170528] partfile read (D:\My Music Unsorted\OC ReMix 1 to 3000\.unwanted\Final_Fantasy_4_Treason_OC_ReMix.mp3) error: The handle is invalid
2018-06-02 Sat 10:59 AM - An I/O error occurred, 'OC ReMix 1 to 3000' paused. OC ReMix - 1 to 3000 [v20170528] partfile write (D:\My Music Unsorted\OC ReMix 1 to 3000\.unwanted\Chrono_Trigger_Memories_from_the_Wind_Scene_OC_ReMix.mp3) error: The handle is invalid
2018-06-02 Sat 10:59 AM - An I/O error occurred, 'OC ReMix 1 to 3000' paused. OC ReMix - 1 to 3000 [v20170528] partfile write (D:\My Music Unsorted\OC ReMix 1 to 3000\.unwanted\Tyrian_Data_Flux_OC_ReMix.mp3) error: The handle is invalid
2018-06-02 Sat 10:58 AM - An I/O error occurred, 'OC ReMix 1 to 3000' paused. OC ReMix - 1 to 3000 [v20170528] partfile write (D:\My Music Unsorted\OC ReMix 1 to 3000\.unwanted\Final_Fantasy_4_Fighting_for_Tomorrow_OC_ReMix.mp3) error: The handle is invalid
2018-06-02 Sat 10:58 AM - An I/O error occurred, 'OC ReMix 1 to 3000' paused. OC ReMix - 1 to 3000 [v20170528] partfile write (D:\My Music Unsorted\OC ReMix 1 to 3000\.unwanted\Gunstar_Heroes_Pursued_by_the_Subordinate_of_Ignorant_Sin_OC_ReMix.mp3) error: The handle is invalid
2018-06-02 Sat 10:57 AM - 'OC ReMix 1 to 3000' resumed. (fast resume)

@Zcehtro
Copy link
Author

Zcehtro commented Jun 2, 2018

Here's a video I recorded demonstrating the issue.

https://www.dropbox.com/s/b6txj9bwjmcpz8y/FFsplit-180602-115148.mp4

Odly enough, I just realized there's no .unwanted folder in the torrent. The folder doesn't exist, and yet the error in the execution log are pointing to files that aren't there.

Could this be the cause of the issue? Please have a look at the video and tell me if I'm wrong, or if I hit the nail on the spot.

@Bloodcore
Copy link

I have the same issue.
This is also reported here #9028

@Vagmer
Copy link

Vagmer commented Jun 4, 2018

I also have this issue, though all I need to do for it to happen is simply select to partly download a multifile torrent. Frankly this is unfortunately very buggy in qBT and I've been experiencing various I/O errors due to this for many versions. There's another awful bug where sometimes throughout the downloading of a torrent (possibly when I add and/or remove the checkboxes for files to download mid-download) qBT will change the torrents Contents list to have every file I don't already have moved to its own standalone folder (that was never part of the original .torrent) such as that "filename.ext" becomes "filename.ext\filename.ext"! This causes a mess of folders in the torrent's folder as well as more I/O errors (as qBT subsequently tries to access the files in these new nonexistent "paths"). It's a ridiculous one. Much juggling of re-adding a torrent until it works right (as well as fixing folder structures manually, as necessary) ensues, which right now I'm having trouble with even doing successfully with one certain torrent...

I'm in a dilemma since qBT is otherwise pretty stable and great for me, but this deal is awfully frustrating since my torrenting often involves partly downloading large torrents (though everything is smooth when I download a whole torrent or a singlefile torrent), so I'm considering another client to spare me this bullcrap. It had seemed to be even worse when the ".!qB" feature was on so in my desperation I've had to turn it off, but it's no fix.

@hethhhhh
Copy link

hethhhhh commented Jun 6, 2018

I've got the same issue happens erraticly

@hethhhhh
Copy link

has anyone found a workaround for this? It's stopping my torrent seeding and I have to constantly recheck what's happening to be sure everything is working

@klepp0906
Copy link

same thing, glad i just found this thread. Was trying to figure out what was going on as I didnt test w/ another torrent client etc and the others I had were "full" and thus no issue.

@Bijiont
Copy link

Bijiont commented Jun 19, 2018

Same issue since updating to the latest version. Occurs on both active downloads and already completed.

@norbythegeek
Copy link

4.1.0 does not exhibit this issue. Downgrading resolved the problem for me.

@Vagmer
Copy link

Vagmer commented Jun 20, 2018

^Unfortunately I'd had I/O errors and issues with partial downloads for many versions now, however (according to rather hazy memory by now) now that you mention it it's likely that it wasn't quite as easy to get them as now (in this version). Right now it's basically enough to just start a download to get it consistently right away, which previously wasn't always the case.

@hethhhhh
Copy link

#9028 (comment)

@bobsage123
Copy link

Never seen this many bugs in a torrent client. For all the crap utorrent gets, it ran error\bug free for me for years. Had a lot of I\O errors from partial torrents copied over from utorrent, which I guess is not qibittorrent's problem. But now, starting even fresh brand new downloads, and selecting only a few out of the files in the torrent, immediately gives this error.

@hethhhhh
Copy link

@bobsage123 revert to 4.1.0 until upstream libtorrent releases 1.1.8

@dabugen
Copy link

dabugen commented Aug 7, 2018

Same problem here with 4.1.1:

07.08.2018 02:29 - An I/O error occurred, 'Deep Forest & Projects' paused. Deep Forest & Projects partfile write (D:\Torrentz\Deep Forest & Projects\Deep Forest (Albums & Singles)\Singles\Deep Forest 1995 - Boheme (Limited Australian Tour Edition - Bonus CD)\Deep Forest - Boheme (Limited Australian Tour Edition - Bonus CD).ape.!qB) error: The handle is invalid

Forcing to continue works, but it may "break" anytime again and I have to "force" to continue once again... That sucks :-(

@Vagmer
Copy link

Vagmer commented Aug 8, 2018

^My exact experience as well.

@Bloodcore
Copy link

I believe this was fixed in Libtorrent 1.1.8, however it hasn't been added to qbt yet. (No releases for a while)
Libtorrent 1.1.9 released a week ago, maybe we'll see a qbt update if we are lucky.

@cheeznuts
Copy link

Even with the latest version of Libtorrent I'm still getting I/O errors for any kind of big torrent (15gb+) I try to download. Wouldn't have anything to do with me having two separate drives would it? My OS drive is very small and even tho I've gone thru every single option to make sure things are getting downloaded to my alternate (F) drive, still constant errors. Very frustrating and my gf won't leave me alone about watching all the Hobbit movies lol

@FranciscoPombal
Copy link
Member

Closing old issues related to "Stalled"/"Stalled at 99%" and similar.

If you can reproduce the problem in the newest version:

  • Make sure queuing is disabled and try again
  • Make sure your network/VPN/firewall/etc settings are correct

If the above does not help, please post a new issue with:

  • logs and settings in plain text (where are they? see here)
  • Relevant system networking configuration settings (e.g. if you're using a SOCKS5 proxy, VPN, etc)
  • detailed steps to reproduce the issue
  • screenshots to prove that the torrent has seeds and/or confirmation that the same torrent finishes using another client.
  • steps you took to mitigate the issue, if any (e.g. "after force recheck it worked", etc)

Thank you for your contributions.

@qbittorrent qbittorrent locked and limited conversation to collaborators Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests