Opened 3 months ago

Last modified 7 weeks ago

#3469 new bug

Files can't be moved

Reported by: nop666 Owned by:
Priority: major Milestone: needs verified
Component: libtorrent Version: 2.0.3
Keywords: move_storage Cc:


Ubuntu 21.04, Deluge 2.0.3, libtorrent:

Files cannot be moved, either via the "move completed to" setting, or manually via the GUI "Move Download Folder" function. The problem seems to be in in the 'move_storage' function in LibTorrent? 1.2.9, per the fix in 1.2.10:

It seems to confirm bugs #3458 new bug "move completed to" doesn't work

#3457 new bug "Move Download Folder" does nothing

Note that this problem came up for me after upgrading Ubuntu from 20.10 to 21.04.

I don't want to be a whiner, but this bug is a show-stopper for me, as it means that I can't file any new torrents on my media server. This seems to be a matter of just updating the version of LibTorrent?. Any advice on how I can do that without building from source myself would be gratefully appreciated!

Debug log when attempting to "Move Download Folder": (Cut & paste from xterm, with the 'move_storage' lines highlighted, so any formatting problems are my fault): =============================================================================================== Unhandled error in Deferred: 21:08:04 [CRITICAL][twisted :154 ] Unhandled error in Deferred:

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/gi/overrides/", line 1649, in main

return _Gtk_main(*args, kwargs)

File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/", line 368, in on_dialog_response_event


File "/usr/lib/python3/dist-packages/deluge/ui/", line 551, in call

return, *args, kwargs)

File "/usr/lib/python3/dist-packages/deluge/ui/", line 500, in call

return defer.maybeDeferred(m, *copy.deepcopy(args), copy.deepcopy(kwargs))

--- <exception caught here> ---

File "/usr/lib/python3/dist-packages/twisted/internet/", line 151, in maybeDeferred

result = f(*args, kw)

* File "/usr/lib/python3/dist-packages/deluge/core/", line 691, in move_storage * if not self.torrentmanager[torrent_id].move_storage(dest): * File "/usr/lib/python3/dist-packages/deluge/core/", line 1248, in move_storage * self.handle.move_storage(dest, flags=2) Boost.Python.ArgumentError?: Python argument types in

torrent_handle.move_storage(torrent_handle, str)

did not match C++ signature:

move_storage(libtorrent::torrent_handle {lvalue}, std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > path, libtorrent::move_flags_t flags=libtorrent.move_flags_t.always_replace_files)

Temporarily disabling observer LegacyLogObserverWrapper?(<bound method TwistedLoggingObserver?.emit of <deluge.log.TwistedLoggingObserver? object at 0x7fb2264a1370>>) due to exception: [Failure instance: Traceback: <class 'TypeError?'>: findCaller() takes from 1 to 2 positional arguments but 3 were given /usr/lib/python3/dist-packages/deluge/ui/gtk3/ /usr/lib/python3/dist-packages/twisted/internet/ /usr/lib/python3/dist-packages/twisted/logger/ /usr/lib/python3/dist-packages/twisted/logger/ --- <exception caught here> --- /usr/lib/python3/dist-packages/twisted/logger/ /usr/lib/python3/dist-packages/twisted/logger/ /usr/lib/python3/dist-packages/deluge/ /usr/lib/python3.9/logging/ /usr/lib/python3.9/logging/ ] Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/", line 368, in on_dialog_response_event


File "/usr/lib/python3/dist-packages/twisted/internet/", line 962, in del


File "/usr/lib/python3/dist-packages/twisted/logger/", line 190, in failure

self.emit(level, format, log_failure=failure, kwargs)

File "/usr/lib/python3/dist-packages/twisted/logger/", line 144, in emit

--- <exception caught here> ---

File "/usr/lib/python3/dist-packages/twisted/logger/", line 131, in call


File "/usr/lib/python3/dist-packages/twisted/logger/", line 93, in call


File "/usr/lib/python3/dist-packages/deluge/", line 204, in emit

getattr(LoggingLoggerClass?, event_dictlog_level?.name)(

File "/usr/lib/python3.9/logging/", line 1493, in critical

self._log(CRITICAL, msg, args, kwargs)

File "/usr/lib/python3.9/logging/", line 1577, in _log

fn, lno, func, sinfo = self.findCaller(stack_info, stacklevel)

builtins.TypeError?: findCaller() takes from 1 to 2 positional arguments but 3 were given ===============================================================================================

Attachments (1)

DelugeError.log (3.6 KB) - added by nop666 3 months ago.

Download all attachments as: .zip

Change History (4)

Changed 3 months ago by nop666

comment:1 Changed 3 months ago by nop666

Definitely a libtorrent 1.2.9 problem. Updating to libtorrent: fixed the problem for me.

comment:2 Changed 7 weeks ago by fingers76

Same thing happened to me and it is a huge annoyance. Could you post instructions on how you updated libtorrent to

Aside from that, how would this ordinarily get fixed?

comment:3 Changed 7 weeks ago by nop666

I used a daily build from here: You'll need to add the PPA repo.

Note: See TracTickets for help on using tickets.