Page 1 of 1

The scheduler is unreliable

Posted: Tue May 10, 2016 1:56 pm
by sg1379
Hello,

I use Deluge as a daemon on my Debian server and I use the scheduler to download at night during my unlimited bandwidth time (2 to 8 AM).

Recently the scheduler stopped allowing downloads at night, so I checked my settings and I updated to 1.3.12 (from1.3.10) and the problem is not corrected.

See my config:

Image

Image

Image

I changed the scheduler manually to see if deluge would react and start downloading, but the only way I can kickstart the downloading is when the schedule is green at that time and when I change "total active downloading" to any other value and apply. I originally used -1 in "total active downloading" for unlimited ant it did not make it work.

I believe my config is ok, do you see anything wrong?
Thank you.

Re: The scheduler is unreliable

Posted: Wed May 11, 2016 2:30 pm
by sg1379
Here is a video of how the problem happens:
(codec:VP9, play in browser, or download and use in VLC)
http://expirebox.com/download/da69743ec ... 4847b.html

Your help would be appreciated.

Re: The scheduler is unreliable

Posted: Thu May 12, 2016 10:38 am
by Cas
Did you check the logs? It might be you are seeing this issue: http://dev.deluge-torrent.org/ticket/2829

I have attached the latest version for you to test.

Re: The scheduler is unreliable

Posted: Thu May 12, 2016 12:22 pm
by sg1379
Yes, it looks like that:

Deluge Daemon log:

Code: Select all

[ERROR   ] 09:21:36 rpcserver:304 Exception calling RPC request: 'PreferencesManager' object has no attribute 'do_config_set_func'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 176, in set_config
    self.do_schedule(False)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 144, in do_schedule
    self.__apply_set_functions()
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 130, in __apply_set_functions
    component.get("PreferencesManager").do_config_set_func(setting, core_config[setting])
AttributeError: 'PreferencesManager' object has no attribute 'do_config_set_func'
[ERROR   ] 09:22:06 eventmanager:59 Event handler ConfigValueChangedEvent failed in <bound method Core.on_config_value_changed of <scheduler.core.Core object at 0xb5c6630c>> with exception 'PreferencesManager' object has no attribute 'do_config_set_func'
[ERROR   ] 09:22:06 rpcserver:304 Exception calling RPC request: 'PreferencesManager' object has no attribute 'do_config_set_func'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 176, in set_config
    self.do_schedule(False)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 144, in do_schedule
    self.__apply_set_functions()
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 130, in __apply_set_functions
    component.get("PreferencesManager").do_config_set_func(setting, core_config[setting])
AttributeError: 'PreferencesManager' object has no attribute 'do_config_set_func'
[ERROR   ] 09:22:09 rpcserver:304 Exception calling RPC request: 'PreferencesManager' object has no attribute 'do_config_set_func'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 176, in set_config
    self.do_schedule(False)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 144, in do_schedule
    self.__apply_set_functions()
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 130, in __apply_set_functions
    component.get("PreferencesManager").do_config_set_func(setting, core_config[setting])
AttributeError: 'PreferencesManager' object has no attribute 'do_config_set_func'
[ERROR   ] 09:22:09 eventmanager:59 Event handler ConfigValueChangedEvent failed in <bound method Core.on_config_value_changed of <scheduler.core.Core object at 0xb5c6630c>> with exception 'PreferencesManager' object has no attribute 'do_config_set_func'
[ERROR   ] 09:22:27 rpcserver:304 Exception calling RPC request: 'PreferencesManager' object has no attribute 'do_config_set_func'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 176, in set_config
    self.do_schedule(False)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 144, in do_schedule
    self.__apply_set_functions()
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 130, in __apply_set_functions
    component.get("PreferencesManager").do_config_set_func(setting, core_config[setting])
AttributeError: 'PreferencesManager' object has no attribute 'do_config_set_func'
[ERROR   ] 09:24:00 rpcserver:304 Exception calling RPC request: 'PreferencesManager' object has no attribute 'do_config_set_func'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 176, in set_config
    self.do_schedule(False)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 144, in do_schedule
    self.__apply_set_functions()
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 130, in __apply_set_functions
    component.get("PreferencesManager").do_config_set_func(setting, core_config[setting])
AttributeError: 'PreferencesManager' object has no attribute 'do_config_set_func'
[ERROR   ] 09:24:17 eventmanager:59 Event handler ConfigValueChangedEvent failed in <bound method Core.on_config_value_changed of <scheduler.core.Core object at 0xb5c6630c>> with exception 'PreferencesManager' object has no attribute 'do_config_set_func'
[ERROR   ] 09:24:17 rpcserver:304 Exception calling RPC request: 'PreferencesManager' object has no attribute 'do_config_set_func'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 176, in set_config
    self.do_schedule(False)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 144, in do_schedule
    self.__apply_set_functions()
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 130, in __apply_set_functions
    component.get("PreferencesManager").do_config_set_func(setting, core_config[setting])
AttributeError: 'PreferencesManager' object has no attribute 'do_config_set_func'
Deluge-web log:

Code: Select all

[WARNING ] 09:20:50 config:361 Unable to open config file /var/lib/deluge/.config/deluge/hostlist.conf.1.2: [Errno 2] No such file or directory: '/var/lib/deluge/.config/deluge/hostlist.conf.1.2'
[ERROR   ] 09:21:36 client:391 RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: scheduler.set_config({u'low_active_up': -1, u'low_up': -1, u'low_active_down': 0, u'low_active': -1, u'low_down': 0, u'button_state': [[1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 0, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1]]})
--------------------------------------------------------------------------------
  File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 176, in set_config
    self.do_schedule(False)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 144, in do_schedule
    self.__apply_set_functions()
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 130, in __apply_set_functions
    component.get("PreferencesManager").do_config_set_func(setting, core_config[setting])

AttributeError: 'PreferencesManager' object has no attribute 'do_config_set_func'
--------------------------------------------------------------------------------
[ERROR   ] 09:22:06 client:391 RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: scheduler.set_config({u'low_active_up': -1, u'low_up': -1, u'low_active_down': 0, u'low_active': -1, u'low_down': 0, u'button_state': [[1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 0, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1]]})
--------------------------------------------------------------------------------
  File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 176, in set_config
    self.do_schedule(False)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 144, in do_schedule
    self.__apply_set_functions()
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 130, in __apply_set_functions
    component.get("PreferencesManager").do_config_set_func(setting, core_config[setting])

AttributeError: 'PreferencesManager' object has no attribute 'do_config_set_func'
--------------------------------------------------------------------------------
[ERROR   ] 09:22:09 client:391 RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: scheduler.set_config({u'low_active_up': -1, u'low_up': -1, u'low_active_down': 0, u'low_active': -1, u'low_down': 0, u'button_state': [[1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 0, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1]]})
--------------------------------------------------------------------------------
  File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 176, in set_config
    self.do_schedule(False)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 144, in do_schedule
    self.__apply_set_functions()
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 130, in __apply_set_functions
    component.get("PreferencesManager").do_config_set_func(setting, core_config[setting])

AttributeError: 'PreferencesManager' object has no attribute 'do_config_set_func'
--------------------------------------------------------------------------------
[ERROR   ] 09:22:27 client:391 RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: scheduler.set_config({u'low_active_up': -1, u'low_up': -1, u'low_active_down': 0, u'low_active': -1, u'low_down': 0, u'button_state': [[1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 0, 1, 1, 1], [1, 1, 1, 0, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1]]})
--------------------------------------------------------------------------------
  File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 176, in set_config
    self.do_schedule(False)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 144, in do_schedule
    self.__apply_set_functions()
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 130, in __apply_set_functions
    component.get("PreferencesManager").do_config_set_func(setting, core_config[setting])

AttributeError: 'PreferencesManager' object has no attribute 'do_config_set_func'
--------------------------------------------------------------------------------
[ERROR   ] 09:24:00 client:391 RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: scheduler.set_config({u'low_active_up': -1, u'low_up': -1, u'low_active_down': 0, u'low_active': -1, u'low_down': 0, u'button_state': [[1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 0, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1]]})
--------------------------------------------------------------------------------
  File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 176, in set_config
    self.do_schedule(False)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 144, in do_schedule
    self.__apply_set_functions()
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 130, in __apply_set_functions
    component.get("PreferencesManager").do_config_set_func(setting, core_config[setting])

AttributeError: 'PreferencesManager' object has no attribute 'do_config_set_func'
--------------------------------------------------------------------------------
[ERROR   ] 09:24:17 client:391 RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: scheduler.set_config({u'low_active_up': -1, u'low_up': -1, u'low_active_down': 0, u'low_active': -1, u'low_down': 0, u'button_state': [[1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 0, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1]]})
--------------------------------------------------------------------------------
  File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 176, in set_config
    self.do_schedule(False)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 144, in do_schedule
    self.__apply_set_functions()
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.2.egg/scheduler/core.py", line 130, in __apply_set_functions
    component.get("PreferencesManager").do_config_set_func(setting, core_config[setting])

AttributeError: 'PreferencesManager' object has no attribute 'do_config_set_func'
--------------------------------------------------------------------------------
Unfortunately, the log does not show the date, but it looks like the bug you showed me.

I updated the scheduler from 0.2 to 0.3 as you suggested, for now I cannot get it to trigger even after a reload (does not seem to resolve the issue) but I will let it run for the night and confirm tomorrow.

Image

Re: The scheduler is unreliable

Posted: Fri May 13, 2016 12:04 pm
by sg1379
Unfortunately, the scheduler update did not resolve the issue, when the schedule is green, the scheduler does nor resume the torrents, the torrents only resume if I change the Total Active Downloading.

Can you see some clues in the logs I posted previously? Thank you

Re: The scheduler is unreliable

Posted: Wed May 18, 2016 12:09 pm
by sg1379
For reference, I had to purge/reinstall deluged deluge-web deluge-common to get the scheduler back.
This is not a solution, but a workaround.