qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
25.96k stars 3.82k forks source link

Network issue: Persistent Input/Output errors even after reconnecting #20937

Open SiLenCe-WB opened 4 weeks ago

SiLenCe-WB commented 4 weeks ago

qBittorrent & operating system versions

qBittorrent: v4.6.5 (64-bit) Operating system: Windows 11 Pro 23H2 x64 Qt: 6.4.3 Libtorrent: 2.0.11.0 Boost: 1.85.0 OpenSSL: 1.1.1w zlib: 1.3.1

What is the problem?

This is my current setup: I store my downloads locally on a hard drive, and once they're completed, they get moved to my NAS automatically.

The issue I'm facing is that whenever there's a connection problem, or if I simulate one, I start getting continuous input/output (I/O) errors. These errors don't go away even after I fix the connection. They only stop if I close and reopen qBittorrent. Strangely enough, the client keeps uploading data, even though these errors won't stop showing.

Is it a known issue?

Thanks!

Steps to reproduce

  1. Open qBittorrent: Launch qBittorrent and start any data sharing activity (downloading or uploading).
  2. Simulate a connection issue:
    • Disable your network adapter to cut off the internet connection.
    • Re-enable your network adapter to restore the internet connection.
  3. Monitor for Errors: Check the qBittorrent log for input/output (I/O) errors. These errors usually start appearing within a minute. Sometimes even immediately after restoring the connection.
  4. Once the I/O errors begin, they will continue to show up until you close and reopen qBittorrent.

Additional context

No response

Log(s) & preferences file(s)

No response

SiLenCe-WB commented 2 weeks ago

Has anyone been able to reproduce this bug? Or is it just me?

HanabishiRecca commented 2 weeks ago

It's unclear what are you talking about. Do errors appear during a regular download to a local hard drive? If so, what your NAS setup has to do with it?

Or do errors appear during the move process to the NAS? If so, how do the files get moved? You store them locally via Keep incomplete torrents in option or what?

SiLenCe-WB commented 2 weeks ago

It's unclear what are you talking about. Do errors appear during a regular download to a local hard drive? If so, what your NAS setup has to do with it?

Or do errors appear during the move process to the NAS? If so, how do the files get moved? You store them locally via Keep incomplete torrents in option or what?

In order to deal with this issue, I had to create a script that monitors the logfile for I/O errors. It basically restarts qbittorrent as soon as I get the first I/O error.

HanabishiRecca commented 2 weeks ago
  • The NAS can't be the problem because these errors show up during the download process, which means that those files are still located in the local drive.

If it has nothing to do with NAS, probably remove that part from the report to avoid confusion.

  • The I/O erros appear when my connection fails, which is normal. The problem is that they keep showing up after the connection is restored.

Posting the actual logs would be a good start.

SiLenCe-WB commented 2 weeks ago

I've replicated the same situation on a different computer and it didn't give me I/O errors, so it must be something related to the computer. If I end up figuring it out, I'll report back.