qbittorrent / qBittorrent

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

Failure to move completed torrents #21402

Open greenfedora opened 1 month ago

greenfedora commented 1 month ago

qBittorrent & operating system versions

qBittorrent v4.6.3 (64-bit) Ubuntu 24.04.1 LTS Qt: 6.4.2 Libtorrent: 2.0.10.0 Boost: 1.83.0 OpenSSL: 3.0.13 zlib: 1.3

What is the problem?

Fails to move torrents on completion. The first one moved correctly, there are now 478 torrents with status Moving but none have moved since yesterday.

Steps to reproduce

Moved to using a new USB drive. Uninstalled qbittorrent Deleted settings set "Default Path" and "use another path for incomplete torrents" copied old downloads (partial and complete) to the incomplete downloads path copied old torrent files to watched folder Waited while files were checked Noticed first file completed was moved and is now seeding All files are now checked and 478 files of 562 have the status Moving. turned off watched folder - no effect.

Additional context

All torrent directories are on a usb drive set up in fstab and auto mounted. All permissions are set to allow the qbittorrent user to have full control.

Log(s) & preferences file(s)

qBittorrent.conf.txt

greenfedora commented 1 month ago

The log file is snowed with "9/28/24 12:23 PM - Unexpected data detected. Torrent: XXX. Data: total_wanted=22456521 total_wanted_done=22462464." I've put the offending torrents on hold. I will see if anything else turns up.

qBittUser commented 1 month ago

Can you reproduce using latest stable official AppImage qBittorrent v4.6.7 with libtorrent 1.2.19+ from the download page?

greenfedora commented 1 month ago

I found I was using the unstable ppa (not sure why it isn't as up to date as the stable?). Switched to the Stable: qbittorrent 4.6.7 Qt: 6.4.2 Libtorrent: 2.0.11.0 Boost: 1.83.0 OpenSSL: 3.0.13 zlib: 1.3

But are you suggesting using Libtorrent 1.2 rather than 2.0?

qBittUser commented 1 month ago

@greenfedora

But are you suggesting using Libtorrent 1.2 rather than 2.0?

Both behave differently and have something good or bad.

If updating qBittorrent didn't help, then try with libtorrent 1.2+, it might work better with external drives. Afterwards I would update used dependencies to latest and try using AppImage instead of PPA.

If you try doing basic tests yourself, then others might not need to guess what is or isn't causing issues.

greenfedora commented 1 month ago

The Appimage with libtorrent 1.2+ works! That means it is libtorrent 2.0 that's the problem, right? I don't know how to get the ppa to use an earlier version of libtorrent so I'll just keep using the Appimage.

Are there other tests I can do to narrow down the bug? Keen to provide as much help to you guys as I can!

greenfedora commented 1 month ago

Not sure it's related but the AppImage keeps closing down: kerry@sprint:~/Downloads$ ./qbittorrent-4.6.7_x86_64.AppImage Killed Nothing in the logs, it just closes with no message.

I'm also getting the log filling up with these two file related errors: 10/1/24 5:26 PM - Unexpected data detected. Torrent: [XXXXX] Data: total_wanted=4686318 total_wanted_done=4702208. And 10/1/24 5:27 PM - File error alert. Torrent: [XXXXX] File: ["/XXXXXX]. Reason: error: No such file or directory"

qBittUser commented 1 month ago

Try qBit v5.0.0 with libtorrent 1.2+ and force recheck torrents.

Currently there's only 1 more open and 1 closed issue that mention both the Unexpected data detected & total_wanted_done you saw in your log.

https://github.com/qbittorrent/qBittorrent/issues?q=Unexpected+data+detected+total_wanted_done

Maybe your internal drive and external USB drive can't handle the read and write load with your high settings. Maybe drives have errors and needs replacement. Maybe you have multiple torrents that share same folder and filenames. Maybe torrents you have issues with have something in common, such as some files are unchecked from being downloaded or folder or filenames or your OS isn't fully compatible with external USB drives filesystem.