Opened 8 years ago

Closed 7 years ago

Last modified 6 years ago

#2801 closed bug (Fixed)

[Plugin][AutoAdd] Error adding torrents

Reported by: Doadin Owned by:
Priority: major Milestone: 2.0.0
Component: Plugin Version: develop
Keywords: Cc:

Description

Here is what im seeing.

Torrents get added to watch folder. Only one torrent gets added to the session. Even with copy torrent to folder none of the torrent files get moved. After some time the watch folder will get disabled then if you re-enable it it does the same thing one gets added no files moved disables itself after some time. Torrents are fine as they can be manually added.

Change History (7)

comment:1 Changed 8 years ago by Doadin

  • Milestone changed from 1.3.x to 2.0

comment:2 Changed 8 years ago by Doadin

Just wanted to clarify a little more the same thing happens when you re-enable the watch folder when its empty. Toggleing the watch folder active wont add one torrent at a time its just stuck.

comment:3 Changed 8 years ago by firefox

Yes verified, this is a traceback, maybe will help

[ERROR   ][deluge.plugins.autoadd.core     :327 ] Disabling '/home/renato/Dropbox/serial', error during update: [Failure instance: Traceback: <type 'exceptions.Exception'>: Torrent Sconosciuto
build/bdist.linux-i686/egg/deluge/plugins/autoadd/core.py:104:enable_looping
build/bdist.linux-i686/egg/deluge/plugins/autoadd/core.py:335:enable_watchdir
/usr/lib/python2.7/dist-packages/twisted/internet/task.py:194:start
/usr/lib/python2.7/dist-packages/twisted/internet/task.py:239:__call__
--- <exception caught here> ---
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:150:maybeDeferred
build/bdist.linux-i686/egg/deluge/plugins/autoadd/core.py:295:update_watchdir
build/bdist.linux-i686/egg/deluge/plugins/label/core.py:297:set_torrent
build/bdist.linux-i686/egg/deluge/plugins/label/core.py:67:check_input
]
[ERROR   ][deluge.plugins.autoadd.core     :327 ] Disabling '/home/renato/Dropbox/serial', error during update: [Failure instance: Traceback: <type 'exceptions.Exception'>: Torrent Sconosciuto
build/bdist.linux-i686/egg/deluge/plugins/autoadd/core.py:104:enable_looping
build/bdist.linux-i686/egg/deluge/plugins/autoadd/core.py:335:enable_watchdir
/usr/lib/python2.7/dist-packages/twisted/internet/task.py:194:start
/usr/lib/python2.7/dist-packages/twisted/internet/task.py:239:__call__
--- <exception caught here> ---
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:150:maybeDeferred
build/bdist.linux-i686/egg/deluge/plugins/autoadd/core.py:295:update_watchdir
build/bdist.linux-i686/egg/deluge/plugins/label/core.py:297:set_torrent
build/bdist.linux-i686/egg/deluge/plugins/label/core.py:67:check_input
]

Last edited 7 years ago by Cas (previous) (diff)

comment:4 Changed 8 years ago by Doadin

23:28:59.537 [ERROR   ][deluge.plugins.autoadd.core   :74  ] Disabling 'E:\torrents\New', error during update: [Failure instance: Traceback: <type 'exceptions.KeyError'>: <Deferred at 0x4619288>
twisted/internet/base.py:1194:run
twisted/internet/base.py:1203:mainLoop
twisted/internet/base.py:825:runUntilCurrent
twisted/internet/task.py:213:__call__
--- <exception caught here> ---
twisted/internet/defer.py:150:maybeDeferred
build\bdist.win32\egg\deluge\plugins\autoadd\core.py:298:update_watchdir
deluge\core\torrentmanager.py:849:queue_top
]

Also maybe this is something for another ticket but appears it doesnt handle already added torrents very well. If you remove the torrent from session then re-enable the watch dir i get. Also seems to be a delay after adding/removing torrents and it actually getting removed? Because as i said if you remove the torrent then re-enable watch right away its different.

23:32:19.065 [ERROR   ][deluge.plugins.autoadd.core   :74  ] Disabling 'E:\torrents\New', error during update: [Failure instance: Traceback: <class 'deluge.error.AddTorrentError'>: Torrent already in session (e2fcf1bff407f0e416950ed04eebe771a24ed20e).
build\bdist.win32\egg\deluge\plugins\autoadd\core.py:145:set_options
build\bdist.win32\egg\deluge\plugins\autoadd\core.py:335:enable_watchdir
twisted/internet/task.py:168:start
twisted/internet/task.py:213:__call__
--- <exception caught here> ---
twisted/internet/defer.py:150:maybeDeferred
build\bdist.win32\egg\deluge\plugins\autoadd\core.py:286:update_watchdir
deluge\core\core.py:237:add_torrent_file
deluge\core\core.py:215:_add_torrent_file
deluge\core\torrentmanager.py:338:add
]

little different.. was just gonna post this now that logging actually works on windows :)

comment:5 Changed 8 years ago by Doadin

It appears to be a issue with setting torrent options like labels que to top. Adding a watch dir with no extra settings it works fine.

comment:6 Changed 7 years ago by Cas

  • Resolution set to Fixed
  • Status changed from new to closed

This should be fixed by [26720ca4c2]

comment:7 Changed 6 years ago by Cas

  • Milestone changed from 2.0 to 2.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.