Page 1 of 1

copying of .torrent files

Posted: Fri Dec 28, 2012 11:01 pm
by unfknreal
Hey folks. I recently discovered Deluge and thought I'd give it a try on my NAS box. It works great and I like it a lot so far, but there's an annoyance with handling .torrent files that I can't seem to get around.

I'm running Deluged 1.3.5 (running as user "Deluge") on FreeBSD 9, libtorrent version is 0.15.9.0. I'm using the Deluge client on my Windows machine to connect to the Deluged on my FBSD box.

I like to keep the .torrent file for everything I have currently seeding or downloading. I notice Deluge keeps it's own copy of the .torrent in /home/deluge/config/state and that would be fine with me if it didn't rename it to some random string. I've enabled the option "Copy .torrent files to" but it does not do this despite the fact the directory I chose is writeable by the user Deluge is running as. Is this a known issue? (I tried searching but did not come up with anything).

In addition, when adding .torrent files to the auto-add directory I specified, it adds them in Deluge fine but then it removes the .torrent files to config/state and renames those as well. If I try to change permissions on the "Auto" directory to stop this (read only), I get the following errors, and further .torrents are not loaded.

Code: Select all

Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/deluge-1.3.5-py2.7.egg/deluge/component.py", line 112, in on_start
    self._component_start_timer()
  File "/usr/local/lib/python2.7/site-packages/deluge-1.3.5-py2.7.egg/deluge/component.py", line 106, in _component_start_timer
    self._component_timer.start(self._component_interval)
  File "/usr/local/lib/python2.7/site-packages/twisted/internet/task.py", line 170, in start
    self()
  File "/usr/local/lib/python2.7/site-packages/twisted/internet/task.py", line 215, in __call__
    d = defer.maybeDeferred(self.f, *self.a, **self.kw)
--- <exception caught here> ---
  File "/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 134, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/local/lib/python2.7/site-packages/deluge-1.3.5-py2.7.egg/deluge/core/autoadd.py", line 104, in update
    os.remove(filepath)
exceptions.OSError: [Errno 13] Permission denied: '/storage/Torrent Files/Auto/name-of-torrent-file-here.torrent'
Is there a setting I can make in the conf file that might rectify this behavior, or should I just get used to letting it handle my .torrents?

Re: copying of .torrent files

Posted: Sat Dec 29, 2012 7:18 am
by abubin
i am not sure what you wanted but this is something similar to what I do with my deluge. Perhaps this can be a bit of help to you.

I have an auto-add folder set at torrent2. Whenever I put .torrent files here, it will automatically get picked up by deluge and the torrent added into queue. The .torrent file will then be moved to my default location for torrent files which is torrent folder. However, in my torrent folder, the original .torrent files remain intact. No renaming to some strange random hash numbers. I have been using this method since day 1 many years ago and the original files always remain intact in it's file name. However, I only uses the webui interface. The only annoyance I have is when I delete the torrent, the .torrent file doesn't get removed even when I specify to remove torrent only or with data. The data files does get removed fine. Only the .torrent file remain and I have to go into torrent once a while to do some housekeeping. No biggie here.

BTW, did you enable the function in deluge preference to "Copy of .torrent files to:" <your torrent folder>?