Opened 12 months ago

Last modified 11 months ago

#2801 new bug

[Plugin][AutoAdd] Error adding torrents

Reported by: Doadin Owned by:
Priority: major Milestone: 2.0
Component: Plugin Version: develop (git)
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 (5)

comment:1 Changed 12 months ago by Doadin

  • Milestone changed from 1.3.x to 2.0

comment:2 Changed 12 months 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 11 months ago by firefox

Yes verified, this is a traceback, maybe will help

23:57:03.895 [ERROR ][deluge.pluginmanagerbase :144 ] Component already registered with name GtkPlugin?.AutoAdd? 23:57:03.895 [ERROR ][deluge.pluginmanagerbase :144 ] Component already registered with name GtkPlugin?.Stats 23:57:03.897 [ERROR ][deluge.pluginmanagerbase :144 ] Component already registered with name GtkPlugin?.WebUi? 23:57:03.898 [ERROR ][deluge.pluginmanagerbase :144 ] Component already registered with name GtkPlugin?.Blocklist 23:57:03.898 [ERROR ][deluge.pluginmanagerbase :144 ] Component already registered with name GtkPlugin?.Label 23:57:08.535 [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 ] 23:58:25.407 [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 ]

comment:4 Changed 11 months 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 11 months 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.

Note: See TracTickets for help on using tickets.