Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 731664 - net-p2p/deluge-2.0.3-r5 fails to load state saved by version 1.3.15-r3
Summary: net-p2p/deluge-2.0.3-r5 fails to load state saved by version 1.3.15-r3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Paolo Pedroni
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-07-08 05:59 UTC by Pavel Goran
Modified: 2020-07-09 16:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix from upstream (utf8-pickle-load.patch,3.69 KB, patch)
2020-07-08 06:10 UTC, Pavel Goran
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Goran 2020-07-08 05:59:52 UTC
After upgrading deluge from 1.3.15-r3 to deluge-2.0.3-r5, all torrents disappeared from deluge's UI.

When running deluge from the console, I see error messages like this:

12:42:51 [CRITICAL][deluge.log                        :93  ] twisted.internet.defer 
[Failure instance: Traceback: <class 'UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xd0 in position 16: ordinal not in range(128)
/usr/lib/python3.7/site-packages/twisted/internet/_glibbase.py:333:_simulate
/usr/lib/python3.7/site-packages/twisted/internet/base.py:913:runUntilCurrent
/usr/lib/python3.7/site-packages/twisted/internet/defer.py:460:callback
/usr/lib/python3.7/site-packages/twisted/internet/defer.py:568:_startRunCallbacks
--- <exception caught here> ---
/usr/lib/python3.7/site-packages/twisted/internet/defer.py:654:_runCallbacks
/usr/lib/python3.7/site-packages/twisted/internet/task.py:866:<lambda>
/usr/lib/python3.7/site-packages/deluge/core/torrentmanager.py:239:start
/usr/lib/python3.7/site-packages/deluge/core/torrentmanager.py:832:load_state
/usr/lib/python3.7/site-packages/deluge/core/torrentmanager.py:812:open_state
]

I assume this is upstream bug https://dev.deluge-torrent.org/ticket/3285 , which is fixed in https://dev.deluge-torrent.org/changeset/23b3f144fce3424ae .


Reproducible: Always
Comment 1 Pavel Goran 2020-07-08 06:10:04 UTC
Created attachment 648292 [details, diff]
Fix from upstream

Attached patch (adapted from https://dev.deluge-torrent.org/changeset/23b3f144fce3424ae) fixes the issue.
Comment 2 Larry the Git Cow gentoo-dev 2020-07-09 16:39:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2cb8c69a7f234bf485399106ec2f565a3d402a0

commit a2cb8c69a7f234bf485399106ec2f565a3d402a0
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2020-07-09 16:38:35 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2020-07-09 16:39:09 +0000

    net-p2p/deluge: Fix fails to load state saved by version 1.3.15-r3
    
    Closes: https://bugs.gentoo.org/731664
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 net-p2p/deluge/deluge-2.0.3-r8.ebuild              | 142 ++++++++++++++++++++
 net-p2p/deluge/files/deluge-2.0.3-fix-pickle.patch | 143 +++++++++++++++++++++
 2 files changed, 285 insertions(+)