qbittorrent / qBittorrent

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

some torrent set category and auto management can't finish moving when targert has same name file #18385

Closed ted423 closed 1 year ago

ted423 commented 1 year ago

qBittorrent & operating system versions

qBittorrent: 4.5.0 x64 Operating system: Ubuntu 22.04.1 LTS Qt: 5.15.3 libtorrent-rasterbar: 2.0.8.0

What is the problem?

I used subcategories the torrent show they are all in new place ,but the log said they are not and show I/O wrong. when restart qb, some of torrent will show wrong stats, and can't recheck. If you try recheck . it will show moving and get error again

some are pt torrent and hash same file,it seems if the file has multi torrent will get this problem

Steps to reproduce

No response

Additional context

No response

Log(s) & preferences file(s)

No response

ted423 commented 1 year ago

I tried sub categories, change some location like "/share/TV&Movie/健听女孩[CODA]/" to "/share/TV&Movie/CODA[健听女孩]2021/"

image image

2023/1/11 上午12:26 - Failed to restore torrent. Files were probably moved or storage isn't accessible. Torrent: "CODA.2021.UHD.BluRay.2160p.x265.DV.HDR.DTS-HD.MA.5.1.REPACK.mUHD-FRDS.mkv". Reason: "健听女孩.CODA.2021.UHD.BluRay.REPACK.mUHD-FRDS fast resume rejected. file_stat(/share/TV&Movie/健听女孩[CODA]/CODA.2021.UHD.BluRay.2160p.x265.DV.HDR.DTS-HD.MA.5.1.REPACK.mUHD-FRDS.mkv): mismatching file size"

ted423 commented 1 year ago

In other way ,I think if you found the torrent can't find the file. you should pause the task and move this torrent in error state immediatly

ted423 commented 1 year ago

image image

ted423 commented 1 year ago

it's same on windows , I move the file and reset location to a new place and recheck again. but this computer show everthing ok but now I had 100 error task and seems I need recheck 5T data image

ted423 commented 1 year ago

It happened on targert has file with the same name. like you touch a 0b file with same name, the auto management can't finish move(though the torrent is add with pause and 0%)

ted423 commented 1 year ago

the windows 's version is qt6 lib 1.2.18.0

ted423 commented 1 year ago

it seem fix in 4.5.0.99~202302050950-7863-532c985b5~ubuntu22.04.1

ted423 commented 1 year ago

https://github.com/qbittorrent/qBittorrent/commit/7227d2b2b253b395f8cf51b64e282b3f49fc7ca2