-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug?]: Tagging torrents for cleanup after the criteria is met doesn't delete the files. #625
Comments
Not a bug; nothing indicates this is a bug...docs clearly indicate it's not a bug
|
Alright, what about this case? |
The only time files will not be deleted if multiple torrents are referencing the same movie. If Movie A[Tracker 1] Meets the share limits, only the torrent will be deleted and not the files (Because the Movie A [Tracker 2] is still referencing the files) |
I'm aware of that but that’s not what’s happening. Each and every one of my torrents reference only one movie. It’s about when is the torrent tagged. I’ve tested it a couple times and that’s my conclusion at least. |
Hi bobokun, have you had the chance to check this? I've run some tests today as well and I am pretty sure that's what's happening. |
Try setting the remote_dir to be the same as root_dir instead of leaving it '' |
What are you tagging the torrent in order to trigger the rule to delete? |
I did it and downloaded something. Same behavior. |========= Cleaning up torrents that have reached ratio/seed limit for default. Priority 2 ==========|
I'm afraid I don't understand the question. |
Hi bobokun, have you been able to test this? |
I seem to have the same issue. My torrents files don't get deleted even though I don't reference the same files in other torrents.
This happens for all my torrents. |
@Dark3clipse Sharing logs that show a torrent is removed but not content itself is completely and utterly useless.... as stated earlier - content is only deleted if no other torrents are referring to that data....that proof has not been provided |
@bakerboy448 I don't understand why other torrents could be refering to the same data. I'm not using cross seed, it's from a private tracker, and it has its own content folder. I've looked at the source code and I noticed there are multiple locations where this line is printed. I will try to make these prints unique and build a custom image, to see which of the print lines is triggering for me. |
I changed the source code as follows:
Now my tracing is as follows:
Which is indeed not a correct path from the perspective of the running container. So this appears to be a configuration problem on my end, sorry for bumping the issue. Unsetting remote_dir solved it for me. |
PRing that logging tweak likely won't hurt :) |
@daviddanko can you pull develop with the enhanced logging and re-run see if easier to debug now |
bakerboy448, thanks for still looking into this. I tried and I am getting the same error as Dark3clipse.
I used the following rule:
I downloaded that torrent, run qbit_manage 1.5 mins AFTER finishing the torrent and it showed the above error. The torrent was deleted, but not the files. However, that being said, I deleted the files and redownloaded THE SAME TORRENT, tagged it qbit_manage IMMEDIATELY after adding it to qbittorrent and when the 1 minute passed the files were now gone. So the path does in fact exist and I can see it in the container:
I have no idea why, but for me it's the time of the torrent tagging which has the impact on whether the files will be deleted or not. Tried it with remote_dir and without. Here's my config:
Also adding the compose in case something is iffy there:
|
Simply speaking, if I want everything (torrent + files) to be deleted, I have to tag the torrent before the conditions are met. So in this case I want to delete the torrent + files after 1 minute of seeding. If qbit_manage tags it before the seed time reaches 1 minute, everything is fine. But if I tag it after 2 mins of seed time, the files will stay on the disk. Dark3clipse, would you mind testing this, please? |
In case someone has the same issue in the future, you should use the |
using a different image would not materially change the underlying qbitmanage code |
No one said it would, but that was the recommendation from the dev (bobokun) on the discord channel, and I can confirm, after thorough testing, that it fixed my issue. |
Describe the Bug
Tagging a torrent with a criteria for cleanup which is already met (for example max_seeding_time=1m, ratio=0.01,... ) doesn't remove the files from the disk, only the .torrent from the client.
So when I start downloading something and I plan to delete it after let's say it reaches ratio 2.0, but I have the scheduler run only every 24 hour, if I already reached a ratio 2+, and THEN scheduler tags it with that rule, the torrent is deleted, however the file stays on the disk.
Not sure if that's intended though.
Config
Logs
https://gist.github.com/daviddanko/44093e58e9bcef8ef65e830d4ba92a54
Screenshots
No response
Installation
Docker
Version Number
4.1.7
What branch are you on?
master
The text was updated successfully, but these errors were encountered: