All removed torrents get re-added after deamon restart

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
Opperpanter
Posts: 18
Joined: Sun Jul 03, 2011 6:30 pm

All removed torrents get re-added after deamon restart

Post by Opperpanter »

Hello,

I am using transmission daemon 2.03-2 on Debian Squeeze.

I am using a watch folder.

Torrents remain in the watch folder after Transmission added them, the files are renamed to <name>.torrent.added

A lot of torrents are already completed and I have removed them from transmission.

Just now I restarted Transmission, and I noticed that all torrent files in the watch folder were added to Transmission again.

Since the data was moved to other disks, Transmission started to re-download the data for each torrent.

How to prevent this?

I restarted transmission using:

Code: Select all

service transmission-daemon stop
service transmission-daemon start
Thanks!
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: All removed torrents get re-added after deamon restart

Post by rb07 »

Opperpanter wrote:How to prevent this?
Use the daemon option to delete added files:

Code: Select all

$ transmission-remote -si
VERSION
  Daemon version: 2.32 (12526)
...
MISC
  Autostart added torrents: Yes
  Delete automatically added torrents: Yes           <------------------

$ transmission-remote -h | grep -i delete
...
      --trash-torrent                      Delete torrents after adding
or you can edit settings.json, the line is

Code: Select all

    "trash-original-torrent-files": true, 
Opperpanter
Posts: 18
Joined: Sun Jul 03, 2011 6:30 pm

Re: All removed torrents get re-added after deamon restart

Post by Opperpanter »

rb07 wrote:
Opperpanter wrote:How to prevent this?
Use the daemon option to delete added files:

Code: Select all

$ transmission-remote -si
VERSION
  Daemon version: 2.32 (12526)
...
MISC
  Autostart added torrents: Yes
  Delete automatically added torrents: Yes           <------------------

$ transmission-remote -h | grep -i delete
...
      --trash-torrent                      Delete torrents after adding
or you can edit settings.json, the line is

Code: Select all

    "trash-original-torrent-files": true, 
Thanks, but I knew this option existed.
But in my previous install of transmission I never had to set this option to prevent this behaviour.

I also do not understand why the torrents are re-added. The files aren't torrent files anymore, there are .added files.
Is transmission watching for .torrent files or for all files?
blacke4dawn
Posts: 552
Joined: Sun Dec 13, 2009 10:44 pm

Re: All removed torrents get re-added after deamon restart

Post by blacke4dawn »

I'm guessing it looks at the data inside the file to see if it's really a torrent-file or not, so renaming them won't work in that case. I think they do this since there is no guaranty that torrent-file will always end in a .torrent extension.
Opperpanter
Posts: 18
Joined: Sun Jul 03, 2011 6:30 pm

Re: All removed torrents get re-added after deamon restart

Post by Opperpanter »

Well, then why does transmission rename the files after adding them?

And with my previous install (older, I believe 1.97) I had a cronjob that restarted transmission every night and never saw any torrents being reloaded.

Most pragmatic for now is to see whether the suggested

Code: Select all

     "trash-original-torrent-files": true, 
is workable for me.
blacke4dawn
Posts: 552
Joined: Sun Dec 13, 2009 10:44 pm

Re: All removed torrents get re-added after deamon restart

Post by blacke4dawn »

Huh, my installation has never renamed auto added .torrent-files, thought I'm not sure when I turned on to delete those files since it became annoying for it to reload those files since I dual boot with Windows.

If you don't need the original files for something then I would highly recommend turning that on.
Post Reply