failed to download files in ntfs-3g partition using windows_names mount option

Bug #727471 reported by mmbossoni
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
libtorrent-rasterbar
Unknown
Unknown
qBittorrent
Fix Released
High
Christophe Dumez

Bug Description

When I try to download some file using a partition mounted with ntfs-3g using the windows_names mount option qBittorrent pops up a balloon with the following message: I/O Error in torrent.... file (path) error: File or directory not found. (I'm translating from pt_BR to english so the message may not be exactly this one)

I'm using version 2.6.7 from qBittorrent ppa

Revision history for this message
George Alexandropoulos (galx12) wrote :

Hello greetings from Greece!
Same problem hear. Using ubuntu 10.10
Problem appeared right after the latest update from 2.6.6 to 2.6.7, downloads work great on my home folder(ext4) but gives me "I/O error...." when destination folder is in a ntfs partition.

keep up the good work my friends, qBittorrent totally ROCKS!!!!

Revision history for this message
Thaimite (thaimite) wrote :

I have this problem too.
I have found a work around by creating an empty file of the same name as the torrent I am downloading in the download folder, and then the torrent will start and download successfully

Revision history for this message
mmbossoni (mmbossoni-gmail) wrote :

Now you guys confirmed I tried to downgrade qBittorrent and fuse libs with no success. Some of the ubuntu updates really messed up everything.

Ktorrent worked pretty well.

I can confirm that creating the empty file (touch <file>) works.

Revision history for this message
Bob Grimm (bgrimm) wrote :

This bug is present on my system as well. Linux Mint 9 (lucid), Qbittorrent 2.6.7, when saving to an ntfs partitition
mounted with cifs. I receive I/O errors randomly and transfer(s) stall/pause and cannot continue.
Files do appear to be being created in the drive.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Just to be clear, this problem did not happen with v2.6.6?

If so, I thing I know what the issue is. If anybody is able to recompile qBittorrent, you can try to remove this two lines in src/qtlibtorrent/qbtsession.cpp:
  sessionSettings.disk_io_write_mode = session_settings::disable_os_cache_for_aligned_files;
  sessionSettings.disk_io_read_mode = session_settings::disable_os_cache_for_aligned_files;

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

I'm waiting for the libtorrent author feedback on this before I upload a fix.

My guess is that disabling the OS cache is not a good idea when writing on NTFS from Linux. This settings was added to solve memory problems on Windows so we don't really need this anyway. An easy fix would be to disable the OS cache only on Windows.

Changed in qbittorrent:
assignee: nobody → Christophe Dumez (hydr0g3n)
importance: Undecided → High
milestone: none → 2.6.8
status: New → Triaged
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Ok, I'm uploading qBittorrent v2.6.7+svn.r5268 to my PPA with the fix I mentioned above. Could you please update and confirm that it works? :)

Revision history for this message
Nikolai Bochev (n-bochev) wrote :

Seems that the new ppa version fixes it, at least my torrents on the ntfs partition are up and running again.

Revision history for this message
Andrey Denisov (maverick-zlofenix) wrote :

That dont work. I still have message "I/O Error in torrent.... file (path) error: File or directory not found."

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

You restarted qBittorrent after the update, right? This really should fix it.

Revision history for this message
Andrey Denisov (maverick-zlofenix) wrote :

sry it is my mistake. it work. thx

Revision history for this message
mmbossoni (mmbossoni-gmail) wrote :

Not working here... same problem.. I even reinstalled qbittorrent

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Ok, thank you.

Changed in qbittorrent:
status: Triaged → Fix Committed
Revision history for this message
Bob Grimm (bgrimm) wrote :

Latest rev appears to have fixed problem on my system, torrents are working normally when saving to NTFS.
Thank you,
-bg

Revision history for this message
George Alexandropoulos (galx12) wrote :

Well... i'm not sure i can say that it really is fixed. Let me explain why. I did the update and then fired up qbittorent. Tried to resume the torrent that was left from yesterday but the same problem occurred, a pop up came up saying "I/O...file not found.../directory/sub-directory/./sub-directory/filename.file (before the update this -->/./<--- looked like this --->/.unwanted/<---)
I gave it a couple of more tries but no luck! I deleted the torrent and its folder/files and downloaded another torrent, same ntfs partition same main folder for my new torrents. This time download initiated promptly and really fast but when it reached 72% it halted and the familiar pop-up with "I/O...file not found.../directory/sub-directory/./sub-directory/filename.file" came up! I exited qbittorent cut and pasted the folder containing my new torrent files into an ext3 partition on another HDD of my system. Fired up qt and changed the destination folder in to the new one i just made, resumed torrent and download resumed fine until 92% and then the same annoying pop-up came up!
 In the logs i found that some ip's were banned for sending corrupted packets. I exited qt and after 3 minutes fired it up again, download completed successful.
Downloaded two more torrents to my ext3 partition.... no problems this time.
Downloaded two more torrents(one at a time), this time to my ntfs partition. One torrent with three files and another with several files end folders! No problem they downloaded fine this time.

I don't know what conclusion to make. All i can say is that i don't feel confident that this bug has been fixed rather than it has been hidden some how.
I exclusively use qbittorent for my torrents so naturally i will be keeping an eye on this. If it happens again i will let you know!

regards,
George!

Revision history for this message
George Alexandropoulos (galx12) wrote :

Oh and one more thing. It's a small detail that might be useful to you. when this "I/O error..." happens and the destination folder is... lest say... /dir0/dir1/dir2/dir3/new_file_dir/
when finally resume occurs, the files that where supposed to be downloaded into the "/new_file_dir/" are being continued from where they where left, at one directory up! in our example at /dir3/

Now that i think of it this is not something new! I have experienced this some times before with qt but only rare times and with only a few versions of qt. No matter what sort of partition or file system even at my home(linux) partition.
I can only seam to remember this happening to me downloading in high speeds >1MBps or >2MBps

I am not sure if this info is helping you much!

George!

Revision history for this message
Boo Boozik (chaoss) wrote :

Purged old installation and installed qBittorrent v2.6.7+svn.r5268
Works good.
Thank you

Revision history for this message
mmbossoni (mmbossoni-gmail) wrote :

I think my machine needed a break

After enjoying the carnival holiday, I tried again rebooting my machine and everything worked fine.

Thanks a lot.

Changed in qbittorrent:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.