Discussion:
[Deluge] #3180: Terminating deluge leaves it in an inconsistent state
Deluge
2018-05-31 06:54:44 UTC
Permalink
#3180: Terminating deluge leaves it in an inconsistent state
----------------------+----------------------------
Reporter: NavinF | Owner:
Type: bug | Status: new
Priority: critical | Milestone: needs verified
Component: Core | Version: 1.3.15
Keywords: |
----------------------+----------------------------
If I start deluged, terminate it (SIGTERM or SIGKILL) before it has a
chance to load all the torrents, and then start deluged again, half my
torrents are in the error state:

{{{
[ERROR ] 02:27:01 torrentmanager:1147 on_alert_fastresume_rejected:
video.mkv fast resume rejected. check resume(): missing or invalid 'file
sizes' entry
}}}


Resuming or rechecking the torrents that are in an error state doesn't
work, but that might be a separate bug:


{{{
[ERROR ] 06:28:19 torrent:468 Restart deluge to clear this torrent error
}}}

This bug is easiest to reproduce if you terminate deluged during startup,
but I'm pretty sure I've ran into this bug even when it was just seeding.

I'm guessing that changes to ~/.config/deluge are not done atomically?

I've seen some related tickets such as #3011 which acknowledges that
terminating deluged doesn't work. I don't think that registering a
shutdown callback like WM_ENDSESSION fixes this bug because processes OOM,
VMs get terminated, and servers lose power IRL. A torrent's state should
never change to "error" unless there was an IO error involving that
specific torrent.

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3180>
Deluge <http://deluge-torrent.org/>
Deluge Project
--
You received this message because you are subscribed to the Google Groups "Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deluge-dev+***@googlegroups.com.
To post to this group, send email to deluge-***@googlegroups.com.
Visit this group at https://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.
Loading...