I recently updated my distro from jessie to bullseye and reinstalled deluged and deluge-web.
Since then, deluge no longer remove the torrents upon reaching a share ratio of 2.
Before the update, with this exact configuration, deluge correctly removed torrents when reaching the share ratio. Am I missing something?
deluged 2.0.3
deluge-web 2.0.3
libtorrent: 1.2.9.0
Python: 3.9.2
OS: Linux Raspbian GNU/Linux 11 bullseye
Remove torrent at share ratio not working
-
- New User
- Posts: 4
- Joined: Fri Jan 26, 2024 6:36 pm
Remove torrent at share ratio not working
- Attachments
-
- Screenshot 2024-02-05 alle 09.33.00.png (308.12 KiB) Viewed 1710 times
-
- Screenshot 2024-02-05 alle 09.04.50.png (48.44 KiB) Viewed 1714 times
-
- New User
- Posts: 4
- Joined: Fri Jan 26, 2024 6:36 pm
Re: Remove torrent at share ratio not working
I also tried to manually remove the torrents with share ratio >= 2, uncheck and check again the remove at share ratio option.
The issue persist: newly added torrents have reached the target share ratio but were not removed.
The issue persist: newly added torrents have reached the target share ratio but were not removed.
Last edited by avalloneandrea on Wed Feb 07, 2024 4:58 pm, edited 2 times in total.
Re: Remove torrent at share ratio not working
Hi,
Do you maybe have a plugin installed or something. A plugin as far as i have come to understand take priority over the general settings of Deluge. So even IF you have configured it differently, the plugin settings are being used.
Do you maybe have a plugin installed or something. A plugin as far as i have come to understand take priority over the general settings of Deluge. So even IF you have configured it differently, the plugin settings are being used.
===============================================================
Server: Rock 5B 8 Cores (ARM), 16 GB RAM, 2 TB 970 Evo +
OS: Linux Ubuntu 22.04 LTS
Deluge: v2.1.1
Plugins: Blocklist, LabelPlus, ItConfig, MyScheduler, Stats, Notifications, YaRSS2
Server: Rock 5B 8 Cores (ARM), 16 GB RAM, 2 TB 970 Evo +
OS: Linux Ubuntu 22.04 LTS
Deluge: v2.1.1
Plugins: Blocklist, LabelPlus, ItConfig, MyScheduler, Stats, Notifications, YaRSS2
-
- New User
- Posts: 4
- Joined: Fri Jan 26, 2024 6:36 pm
Re: Remove torrent at share ratio not working
No extra plugin installed, only the default plugins, which are disabled anyway.
Re: Remove torrent at share ratio not working
I cannot reproduce this i'm affraid, and sorry ment write before(did ran some tests at your first postage etc), but got sidetracked honestly, and then forgot, thanks shinger for reminding us I just re-tested deluge 2.0.3 in a venv with libtorrent 2.0.9 in my used distro, but did work fine here. I would try fresh deluge profile and otherwise enable debug-logging and check if any notes of issues/errors, though with that old deluge and newer libtorrent, then you will have a bunch of errors regardless, and I don't believe that debian package is patched for most of these issues still, atleast last I checked, but regardless, and as said, clean profile i'd highly suggest, atleast temporarilly for quick testing, e.g. rename deluge-profile to end in "-bak"(or just start new instance with 'deluged -c deluge-test') and then set share-ratio in web-UI or core.conf to 0.01(though gtk-UI reverts to min 0.5 whenever opening it's preferences dialog, so need change core.conf again afterwards), and as you inferred, have to add torrents after changing these settings, as they don't apply to current items.
Good luck.
Good luck.
-
- New User
- Posts: 4
- Joined: Fri Jan 26, 2024 6:36 pm
Re: Remove torrent at share ratio not working
I've conducted some more tests. My bad, the "remove torrent when share ratio reached" feature works, more or less.
The issue here, if we can call it so, is that the removal happens "late". Let me explain.
Let's say I added a bunch of torrents yesterday (through deluge-web), and closed the web page after that. During the night, all the torrents reached the target share ratio. Today I open deluge-web.
How it worked (as far as I know) in the past:
The torrents were immediately removed when they reached the target share ratio, during the night. Today deluge-web shows me an empty list of torrents - as expected.
How It works now:
The torrents were not immediately removed when they reached the target share ratio during the night. Today deluge-web shows me all the torrents, with a share ratio way bigger than 2. However it's almost like the opening of deluge-web triggered a check of the share ratios. After a while (seconds, sometimes minutes) all the torrents are removed, one by one.
The issue here, if we can call it so, is that the removal happens "late". Let me explain.
Let's say I added a bunch of torrents yesterday (through deluge-web), and closed the web page after that. During the night, all the torrents reached the target share ratio. Today I open deluge-web.
How it worked (as far as I know) in the past:
The torrents were immediately removed when they reached the target share ratio, during the night. Today deluge-web shows me an empty list of torrents - as expected.
How It works now:
The torrents were not immediately removed when they reached the target share ratio during the night. Today deluge-web shows me all the torrents, with a share ratio way bigger than 2. However it's almost like the opening of deluge-web triggered a check of the share ratios. After a while (seconds, sometimes minutes) all the torrents are removed, one by one.
Re: Remove torrent at share ratio not working
Sorry, I completelly forgot this indeed being an issue, and later gracefully fixed by the good gazpachoking, and included in deluge v2.10+.avalloneandrea wrote: ↑Thu Feb 22, 2024 2:24 pm [...] However it's almost like the opening of deluge-web triggered a check of the share ratios. After a while (seconds, sometimes minutes) all the torrents are removed, one by one.
Here's a command-line for deluge 2.0.3 users if wanted. Note if instead applying patch manually from above linked commit, then need make several code/patch changes firstly, as else will fail apply since the commit is made after deluge 2.0.5 released, so not compatible with deluge 2.0.3, and which I fixed in my automated command-line.
Code: Select all
sudo find /usr -path "*/deluge/core/" -exec sh -c "curl https://github.com/deluge-torrent/deluge/commit/8ff4683780921111f26fe051e0274aac8afe8bf3.patch | grep -v -e urllib -e flag | sed 's/6 +16,8/5 +16,7/' | sed 's/7 +711,7/4 +711,4/' | sed '/tests/d' | patch -F3 --no-backup-if-mismatch -d {}" \;
Edit2: Revised line, just for heck of it, small as possible so dismiss the missing file notion in success message, as just forced it('-f') here:
Code: Select all
sudo find /usr -path "*/deluge/core/" -exec sh -c "curl https://github.com/deluge-torrent/deluge/commit/8ff4683780921111f26fe051e0274aac8afe8bf3.patch | patch -f -F3 --no-backup-if-mismatch -d {}" \;
-
- New User
- Posts: 4
- Joined: Fri Jan 26, 2024 6:36 pm
Re: Remove torrent at share ratio not working
It worked, thank you!
Re: Remove torrent at share ratio not working
Be happy if your torrents don't upload beyond the ratio limit, because in a little percentage mine do... so I obliged myself to limit the upload bandwith to limit that overcoming.