Page 1 of 1

problems with "torrent complete" status

Posted: Wed Nov 26, 2014 12:05 pm
by nagaram
Hello, I am trying to run a simple "copy completed" shell script on a headless server that copies completed files from a download folder to a sync'd folder across my network. I was trying to do this using the Execute plugin and a few simple bash scripts, but these are failing because the "Torrent Complete" status seems to only trigger if upload ratio has been finished and the torrent has stopped seeding, not if the file download has completed. I tested them with the "Torrent Added" trigger and they work, but obviously the torrent needs to be completed to copy correctly. This is a problem since I seed torrents for months, and have my max ratio set so they won't stop. From searching the forums here, this seems to be a recurring problem for people running seedboxes.

So, my question--is there any way around Deluge not marking completed downloading as a completed torrent? I wasn't able to test the "CopyCompleted" plugin, as it won't load at all on my webui version (1.3.10). Thanks in advance.

Re: problems with "torrent complete" status

Posted: Wed Nov 26, 2014 12:15 pm
by Cas
Torrent complete is triggered when the torrent finishes downloading data, nothing to do with seeding, so you are misinterpreting what you are seeing. Note you will have a problems copying completed torrents in 1.3 if 'move completed' is enabled for torrents.

For problems installing plugins, make sure you have read the plugin install instructions: http://dev.deluge-torrent.org/wiki/Plug ... ingPlugins

Re: problems with "torrent complete" status

Posted: Wed Nov 26, 2014 12:25 pm
by nagaram
Thanks for the reply--I've read the plugin install instructions, and have successfully installed multiple plugins, but not CopyCompleted. Is there a way to copy completed torrents with move completed enabled? That must be the issue, then.

Re: problems with "torrent complete" status

Posted: Wed Nov 26, 2014 12:43 pm
by nagaram
Right now I have deluge set up to apply label specific 'move completed' settings, so that's definitely a conflict.

Re: problems with "torrent complete" status

Posted: Wed Nov 26, 2014 3:14 pm
by Cas
Did you read the plugin install notes and see that CopyCompleted is a python 2.6 egg?

Re: problems with "torrent complete" status

Posted: Wed Nov 26, 2014 9:37 pm
by nagaram
yes, i did

Re: problems with "torrent complete" status

Posted: Wed Nov 26, 2014 11:47 pm
by Cas
If you enable logging you can see why it's not loading.

Re: problems with "torrent complete" status

Posted: Thu Nov 27, 2014 4:56 am
by nagaram
weirdly now with logging enabled i'm getting errors from the AutoAdd plugin, which has never given me problems before:

Code: Select all

web.Server Traceback (most recent call last):
exceptions.KeyError: 'autoadd/autoadd.js'
/usr/lib64/python2.7/site-packages/twisted/web/server.py:192 in process
191                    self._encoder = encoder
192            self.render(resrc)
193        except:
/usr/lib64/python2.7/site-packages/twisted/web/server.py:241 in render
240        try:
241            body = resrc.render(self)
242        except UnsupportedMethod as e:
/usr/lib64/python2.7/site-packages/deluge/ui/web/server.py:570 in render
569
570        scripts = component.get("Scripts").get_scripts(mode)
571        scripts.insert(0, "gettext.js")
/usr/lib64/python2.7/site-packages/deluge/ui/web/server.py:375 in get_scripts
374        for path in _order:
375            filepath = _scripts[path]
376
exceptions.KeyError: 'autoadd/autoadd.js'