Page 1 of 1

torrentmanager error adding/resuming state for one torrent: "metadata too large"

Posted: Mon Aug 12, 2024 10:06 pm
by nobody
Hello,

I have been using deluge without any apparent issues. I have added test torrents and they download, seed, and resume state correctly.

I recently added an extra large torrent which downloads in full, but does not appear/resume state correctly when reopening deluge, giving this error:

Code: Select all

22:07:07 [DEBUG   ][deluge.core.torrentmanager        :1622] Attempting to extract torrent_info from /home/user/.config/deluge/state/cba22ce1477cb207cd5c9374b796a362ae97a724.torrent
22:07:07 [WARNING ][deluge.core.torrentmanager        :1622] Unable to open torrent file /home/user/.config/deluge/state/cba22ce1477cb207cd5c9374b796a362ae97a724.torrent: metadata too large
22:07:07 [WARNING ][deluge.core.torrentmanager        :1622] Error when adding torrent "cba22ce1477cb207cd5c9374b796a362ae97a724" to session: You must specify a valid torrent_info, torrent state or magnet.
I can re-add the torrent manually and it checks to 100% and then resumes, but the same issue reoccurs after closing deluge. The torrent file is 14.8 MiB, the download is 3827 files and 1.5 TiB.

Using:

Code: Select all

deluge 2.1.1
libtorrent: 2.0.8.0
Python: 3.11.2
OS: Linux Debian GNU/Linux 12 bookworm
any help is greatly appreciated.

Re: torrentmanager error adding/resuming state for one torrent: "metadata too large"

Posted: Sat Jan 18, 2025 1:28 pm
by shinger
Hi,

I am not sure myself, but i did a quick search on chatGPT it self and it says this.

That if the torrent contains extreme amount of files.

Re: torrentmanager error adding/resuming state for one torrent: "metadata too large"

Posted: Thu May 29, 2025 5:47 am
by marcan
Same issue here. This seems to be a limitation of certain APIs in libtorrent: https://libtorrent-discuss.narkive.com/ ... rent-fails

Edit: PR submitted: https://github.com/deluge-torrent/deluge/pull/483