qbittorrent / qBittorrent

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

Completed torrents not being relocated properly if set to automatic management #21341

Open TheDcoder opened 1 month ago

TheDcoder commented 1 month ago

qBittorrent & operating system versions

qBittorrent: 4.6.6 x64 Operating system: Linux Qt: 6.7.2 libtorrent-rasterbar: 2.0.10.0

What is the problem?

Completed torrents not being relocated properly if set to automatic management after the fact, the "save path" does update in the UI but the actual files are not moved to the automatic location.

If I attempt to move them to the correct location manually after the fact I get the "Missing files" error even though the file is present at the exact location as shown in the UI.

The cause of the issue is that the location is not updated properly in the $CONFIG/BT_backup/*.fastresume files, I checked the save location inside them using a Hex editor and they still had the old pre-automatic save path inside them.

I was able to fix the "Missing files" error by toggling the "automatic management" for the affected torrents (I moved them to the right location manually first).

Steps to reproduce

  1. Import a torrent with the files already on disk (100% completed)
  2. Force recheck the torrent
  3. Resume the torrent for seeding
  4. Set the category
  5. Enable automatic management
  6. Observe that the files are not actually relocated on the disk, but only in the UI.

It seems qBT does make an attempt to perform the relocation, it created skeleton directories in the correct location but without any of the files inside them.

Additional context

No response

Log(s) & preferences file(s)

No response

glassez commented 1 month ago

6. Observe that the files are not actually relocated on the disk, but only in the UI.

It seems qBT does make an attempt to perform the relocation, it created skeleton directories in the correct location but without any of the files inside them.

At the very least, you should have provided qBittorrent log. It would also be useful to know all the information and settings related to paths, i.e., the original location of files, the category save path and "incomplete" save path, etc.

TheDcoder commented 1 month ago

I apologize for not providing the log, but it contains too much sensitive information. I did take a look and found nothing worthwhile in there... besides, this issue should be easily reproducible given the exact steps.

All of the locations were sub-directories of a "Downloads" directory.

thalieht commented 1 month ago

this issue should be easily reproducible given the exact steps.

And yet it isn't. Can't reproduce with sqlite nor .fastresume.

luzpaz commented 1 month ago

@TheDcoder can you redact any sensitive info ?