Torrents won't delete

General support for problems installing or using Deluge
Germanicus
New User
New User
Posts: 3
Joined: Fri Sep 27, 2019 4:32 pm

Torrents won't delete

Postby Germanicus » Fri Sep 27, 2019 4:59 pm

deluged 2.0.3-2-201906121747-ubuntu18.04.1
libtorrent: 1.1.5.0
Python: 3.6.8
OS: Ubuntu Server 10.04 Linux 5.3.1-19.09.22.13.59
Plugins: Label, Stats
Installation source: Package from Deluge Team PPA

Precise steps to recreate:
Torrent and Magnet's added manually through Deluge-GTK on remote client do not produce this result. I can delete them just fine. Torrents that are added automatically through Medusa however, I can not delete totally. The files delete (torrent files and the downloaded folder/files) just fine but the name of the torrent in the UI (both Deluge-GTK and Deluge-Console) turn into a hash and won't be removed. Restarting deluged removes the hash from the UI but replaces it with the original torrent name. It's as if it's getting stuck in the cache somewhere.

I think it's worth noting I'm not the only person that has had this problem. The following link is relevant, hopefully it doesn't set off any spam filters.
https://www.mail-archive.com/deluge-dev ... 09635.html

I've attached a log at level Debug and a screenshot for reference. Let me know what else you might need to help get this solved.
Attachments
deluge.log
(38.47 KiB) Downloaded 39 times
Screenshot from 2019-09-27 10-53-43.png
Screenshot from 2019-09-27 10-53-43.png (91.73 KiB) Viewed 2519 times

Germanicus
New User
New User
Posts: 3
Joined: Fri Sep 27, 2019 4:32 pm

Re: Torrents won't delete

Postby Germanicus » Fri Sep 27, 2019 7:27 pm

It would appear this only seems to be happening to torrent's that get added but get zero data, not even the file info (or header, whatever you call it). I was just able to delete a torrent that fully downloaded without a problem. It's just those ones that received nothing.

nSpectre
New User
New User
Posts: 6
Joined: Fri Sep 15, 2017 12:06 am

Re: Torrents won't delete

Postby nSpectre » Tue Oct 01, 2019 6:39 am

I am seeing the same issue here, both with the WebUI AND with the GTK thin client.

Client: 2.0.3-2-201906121747-ubuntu18.04.1
Server: 2.0.3-2-201906121747-ubuntu18.04.1
OS: Lubuntu 18.04.3 LTS

Problem is reproducible at will by simply adding a torrent with 0 seeds and peers. Attempting to delete it, even many days later, will fail and cause the torrent name to be changed to its hash and the Added Date to become 12/31/1969 16:00

Upon restarting the deluged process, all of the names will revert to their proper torrent names but the Added Date will become the CURRENT date and time.

As long as these torrents remain at 0 size, 0 files and 0 pieces they are unremovable.

Germanicus
New User
New User
Posts: 3
Joined: Fri Sep 27, 2019 4:32 pm

Re: Torrents won't delete

Postby Germanicus » Tue Oct 08, 2019 6:54 pm

Is any dev going to look into this? The net result is an unusable product for my current setup. I would really love to use deluge over qbittorrent but at the moment I'm hamstrung by this bug.

nSpectre
New User
New User
Posts: 6
Joined: Fri Sep 15, 2017 12:06 am

Re: Torrents won't delete

Postby nSpectre » Thu Oct 10, 2019 4:50 am

It may be a while.

Cas
Last active:
Tue Sep 10, 2019 11:58 pm

:)

Deluge appears to keep seed files in the deluge/state folder. But I have yet to back up my config and suss out how or if those are related to these "undeletables" and if so, determined if they can just be deleted manually.

These may have nothing to do with magnet links.

mhertz
Compulsive Poster
Compulsive Poster
Posts: 798
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Torrents won't delete

Postby mhertz » Thu Oct 10, 2019 1:00 pm

As stated, the development and presence of main dev is little slow currently, e.g here latest commit-log from git-develop branch:

Code: Select all

 
Age   Commit message   Author
2019-06-25   [Label] Fix Options/Add windows not reopeningHEADdevelop   DjLegolas
2019-06-25   [WebUI] Fix class-header for Deluge.EditTrackersWindow   DjLegolas
2019-06-25   [Notifications] Fix unhandled TypeErrors on Python 3   Calum Lind
2019-06-25   [Common] Fix creation of pidfile via command option   DjLegolas
2019-06-24   [Core] Fix for peer.client UnicodeDecodeError   Calum Lind
2019-06-24   [Common] Fix show_file unhandled dbus error   int3l
2019-06-21   [WebUI] Handle torrent add failures   DjLegolas
2019-06-18   [Docs] Fixes for spelling   Calum Lind
2019-06-18   [Docs] Add service how-tosdeluge-2.0.4.dev0   Calum Lind
2019-06-15   [Docs] Add spellchecking with pyenchant   Calum Lind
[...]

Please make a bug ticket with debug-logs, for best chance of getting this fixed eventually.

LowSky
New User
New User
Posts: 3
Joined: Tue Nov 05, 2019 6:48 pm

Re: Torrents won't delete

Postby LowSky » Tue Nov 05, 2019 6:50 pm

I can confirm I'm having the same issue. Super annoying.

granjerox
New User
New User
Posts: 3
Joined: Mon Aug 12, 2019 6:09 pm

Re: Torrents won't delete

Postby granjerox » Sat Nov 09, 2019 8:08 am

Same problem here.

granjerox
New User
New User
Posts: 3
Joined: Mon Aug 12, 2019 6:09 pm

Re: Torrents won't delete

Postby granjerox » Sat Nov 16, 2019 6:28 pm

I've reporded a bug in the ticket tracker

https://dev.deluge-torrent.org/ticket/3325

I think it would help if you add your comments there.

novamanus
New User
New User
Posts: 5
Joined: Wed Sep 03, 2014 2:53 pm

Re: Torrents won't delete

Postby novamanus » Tue May 19, 2020 6:14 am

If you're willing to do some brain surgery, then take a look at this workaround. I'm on Archlinux and deluge 2.0.4.

In my case the issue was that the torrent wasn't being deleted from 'torrents.state' but the actual files on disk were absent. To fix this I made a small python script that unpacks torrents.state, rips out any torrents that match the offending hash, and then re-saves to disk.

Before you begin you'll need to collect the torrent hashes that are to be removed. Open deluge, select the offending line item and go to "Details -> Hash" in the lower panel. I found that I could do this only after a fresh restart of Deluge, and after a while the program would stop pulling up torrent info for me, as it was spewing python errors in the console.

Next, stop deluge or deluged.

Find your .config/deluge/state directory and make sure that there is a 'torrents.state' and also 'torrents.state.bak' files present. Then create a file called "rmrf_hash.py" and give it the contents below. Run it from the state folder with "python3.8 rmrf_hash.py [hash-id]"

Code: Select all

#!/bin/python3.8

import os
import sys
import six.moves.cPickle as pickle

if len(sys.argv) != 2:
    print("Usage: python3.8 rmrf_hash.py [torrent_hash]")
    sys.exit(2)

with open('torrents.state', 'rb') as _file:
    state = pickle.load(_file, encoding='utf8')

state.torrents[:] = [x for x in state.torrents if x.torrent_id != sys.argv[1]]

with open('torrents.state', 'wb') as _file:
    pickle.dump(state, _file, protocol=2)
    _file.flush()
    os.fsync(_file.fileno())

print("Done!")


Return to “Support”

Who is online

Users browsing this forum: No registered users and 6 guests