lost all torrents

General support for problems installing or using Deluge
Post Reply
pjlbyrne
Leecher
Leecher
Posts: 71
Joined: Thu May 22, 2014 9:28 am

lost all torrents

Post by pjlbyrne »

I seem to have lost all my torrents. I guess it's possible its due to something I did, but is anyone aware of recent changes that might cause this.

1400 torrents to find and re-add! Should have taken a backup....
pjlbyrne
Leecher
Leecher
Posts: 71
Joined: Thu May 22, 2014 9:28 am

Re: lost all torrents

Post by pjlbyrne »

Argh I can still see 1362 torrents in the 'state' directory but they didn't resume. Why isn't the torrents.state file text-readable dammit!
mhertz
Moderator
Moderator
Posts: 2220
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: lost all torrents

Post by mhertz »

Sorry to hear. You could try the python code posted by tobbez, but keep backups first obviously, somewhere in this thread: viewtopic.php?p=235085#p235085

Otherwise have to script it with deluge-console, or autoadd plugin alternatively.
User avatar
ambipro
Moderator
Moderator
Posts: 452
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: lost all torrents

Post by ambipro »

autotorrent2 can add the torrents automatically. It's not a super simple configuration process, but I used to use it.
pjlbyrne
Leecher
Leecher
Posts: 71
Joined: Thu May 22, 2014 9:28 am

Re: lost all torrents

Post by pjlbyrne »

Thank guys - I was able to restore to a backup from last October, which covers 95% of the state. I will take the opportunity to (a) backup deluge/.config/deluge dir nigthly and (b) go through all torrents and consolidate the file paths.

Wish I had the time to work on my own t____t software. I think a structure where the torrent manager was a totally separate process from the GUI would be much nicer. I haven't looked at it much but that 'twisted' python framework looks like a nightmare. I would store all the state in YAML too so it's human-readable.
mhertz
Moderator
Moderator
Posts: 2220
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: lost all torrents

Post by mhertz »

Good job and nice to hear you recovered :)

Yes, keep backups, and if not haden't, then first time seeing issue, then backup immediately, to experiment safely, e.g the posted python code etc as if continually restarting to see if somehow comes back, will then clear saved state I would guess(torrents.state file). Would be nice to figure out what issue actually is, well seemingly a char issue in a torrent, but why Latin should work instead utf I don't get(former subset of latter), but whatever. Hmm, should try force such a scenario if possible, so could test that workaround(latin VS utf8 - Also there's an ignore param if remember right though not looked at it for years). I did make a ticket atleast, in previous linked thread.

The ui and core is seperate though, and there's been talk for years, and some effort done already, to eventually migrate away from twisted, as overkill for this, if remember right.

Prefer plaintext myself also, but the disadvantages outwhey the advantages often, is main consideration.

Anyway, glad you got it fixed.
Post Reply