Opened 3 years ago

Last modified 14 months ago

#3088 new bug

deluged pauses torrents randomly

Reported by: krichter Owned by:
Priority: trivial Milestone: 2.1.x
Component: libtorrent Version: develop
Keywords: Cc:


After adding a few hundred torrents (now ca. 6500) deluged pauses a few thousands of them randomly.

experienced with 2.0.0.dev7097+e3f5377+201707051516~ubuntu17.04.1 on Ubuntu 17.04

Change History (7)

comment:1 Changed 3 years ago by krichter

deluged.log is available at which can't be provided here because of restricted upload size limit which I think I reported before, but can't verify because of #3089.

comment:3 Changed 3 years ago by krichter

Maybe this will help: ​

I changed active_dht_limit, active_tracker_limit and active_lsd_limit to values 10 times higher than in the initial one which didn't bring any changes, i.e. torrents can be resumed, but then are paused randomly.

comment:4 Changed 3 years ago by Cas

  • Component changed from Unknown to libtorrent
  • Milestone changed from needs verified to 2.0
  • Priority changed from minor to trivial
  • Version changed from other (please specify) to develop (git)

I have extracted these details below from the log. The only slight issue is that we do not log status.paused or status.auto_managed.

The torrent options when adding:

  • 'auto_managed': True
  • 'add_paused': False
  • 'stop_at_ratio': False

Log from update_state:

State from lt was: seeding | Session is paused: False
Torrent state set from "None" to "Paused"

Strangely that outcome contradicts the code:

        elif not session_paused and status.paused and status.auto_managed:
            self.state = 'Queued'
        elif session_paused or status.paused:
            self.state = 'Paused'

Just to note that the actual torrent state is not being changed by Deluge it is simply visual contradiction.

I am thinking there is an issue with libtorrent (1.1.x) and/or with how we update the state of torrents for those with auto-managed flag:

If the torrent is auto-managed (flag_auto_managed), the torrent may be resumed at any point, regardless of how it paused. If it's important to manually control when the torrent is paused and resumed, don't make it auto managed.

If flag_auto_managed is set, the torrent will be queued, started and seeded automatically by libtorrent. When this is set, the torrent should also be started as paused. The default queue order is the order the torrents were added. They are all downloaded in that order. For more details, see queuing.

So to summarise when we show Paused it actually means Queued for auto_managed torrents.

comment:5 Changed 3 years ago by krichter

Just to note that the actual torrent state is not being changed by Deluge it is simply visual contradiction.

I can confirm that since downloading torrents in the active section are marked as paused (based on GTK client view).

comment:6 Changed 23 months ago by Cas

  • Milestone changed from 2.0 to 2.0.0

Milestone renamed

comment:7 Changed 14 months ago by Cas

  • Milestone changed from 2.0.0 to 2.1.x

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.