Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#3055 closed bug (Fixed)

not connecting to daemon

Reported by: renato Owned by: Calum
Priority: critical Milestone: 2.0.0
Component: GTK UI Version: develop
Keywords: Cc:

Description (last modified by Calum)

renato@firefox-server:~$ deluge
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 420, in fireEvent
    DeferredList(beforeResults).addCallback(self._continueFiring)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 319, in addCallback
    callbackKeywords=kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 308, in addCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 651, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 433, in _continueFiring
    callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py", line 295, in _on_reactor_start
    return self._start_thinclient()
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py", line 343, in _start_thinclient
    if host_config[1] in self.connectionmanager.LOCALHOST:
exceptions.AttributeError: 'ConnectionManager' object has no attribute 'LOCALHOST'

07:01:02.358 [CRITICAL][twisted                            :154 ] Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 420, in fireEvent
    DeferredList(beforeResults).addCallback(self._continueFiring)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 319, in addCallback
    callbackKeywords=kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 308, in addCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 651, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 433, in _continueFiring
    callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py", line 295, in _on_reactor_start
    return self._start_thinclient()
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py", line 343, in _start_thinclient
    if host_config[1] in self.connectionmanager.LOCALHOST:
exceptions.AttributeError: 'ConnectionManager' object has no attribute 'LOCALHOST'

07:01:02.358 [CRITICAL][twisted                            :154 ] Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 420, in fireEvent
    DeferredList(beforeResults).addCallback(self._continueFiring)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 319, in addCallback
    callbackKeywords=kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 308, in addCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 651, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 433, in _continueFiring
    callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py", line 295, in _on_reactor_start
    return self._start_thinclient()
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py", line 343, in _start_thinclient
    if host_config[1] in self.connectionmanager.LOCALHOST:
exceptions.AttributeError: 'ConnectionManager' object has no attribute 'LOCALHOST'

Change History (18)

comment:1 by Calum, 7 years ago

Description: modified (diff)
Milestone: needs verified2.0
Owner: set to Calum
Status: newassigned
Version: other (please specify)develop (git)

comment:2 by Calum, 7 years ago

Resolution: WorksForMe
Status: assignedclosed

This is not the latest develop code.

comment:3 by renato, 7 years ago

broken since Deluge 2.0.0.dev7027 .. that version is ok, further is broken, on thin mode you cant either add users from gtk and only one daemon is shown even if in the config there is two. i tested on a clean configuration so it's not the config, and also downgrading works fine. Maybe your config is different but if you test on a clean one on thin mode you will see errors... i am using the ppa btw. thanks

comment:4 by Calum, 7 years ago

I have tested with latest code with fresh and old configs.

Are you still seeing the same errors?

comment:5 by renato, 7 years ago

Yes

comment:6 by renato, 7 years ago

Formatted the drive and installed a fresh Ubuntu 17.04 then added ppa for deluge... That was really fresh.

comment:7 by Calum, 7 years ago

Ok I have made a mistake with which filename... I shall see if I can replicate

comment:8 by renato, 7 years ago

If u need more info just ask. Maybe u need my config ?

comment:9 by Calum, 7 years ago

It's ok I see the issue now. You have autostart daemon ticked and there is a bug in that code.

If you start the daemon or disable the autostart option is should work.

comment:10 by renato, 7 years ago

If u start manually works yes

comment:11 by renato, 7 years ago

In thin mode it's impossible to add users too

comment:12 by Calum, 7 years ago

Resolution: WorksForMe
Status: closedreopened

Fixed daemon issue: [d372be9b658e]

In thin mode it's impossible to add users too

That's a different bug, please open a new ticket for that, otherwise I can't keep track of them. You should be able to still manually add them to auth file.

comment:13 by Calum, 7 years ago

Resolution: Fixed
Status: reopenedclosed

comment:14 by renato, 7 years ago

Ok will test it later. Thanks

comment:15 by renato, 7 years ago

version 7053 still not working.

renato@firefox-server:/media/disk/deluge$ deluge
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 420, in fireEvent
    DeferredList(beforeResults).addCallback(self._continueFiring)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 319, in addCallback
    callbackKeywords=kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 308, in addCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 651, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 433, in _continueFiring
    callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py", line 295, in _on_reactor_start
    return self._start_thinclient()
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py", line 343, in _start_thinclient
    if host_config[1] in self.connectionmanager.LOCALHOST:
exceptions.AttributeError: 'ConnectionManager' object has no attribute 'LOCALHOST'

08:14:08.845 [CRITICAL][twisted                            :154 ] Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 420, in fireEvent
    DeferredList(beforeResults).addCallback(self._continueFiring)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 319, in addCallback
    callbackKeywords=kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 308, in addCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 651, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 433, in _continueFiring
    callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py", line 295, in _on_reactor_start
    return self._start_thinclient()
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py", line 343, in _start_thinclient
    if host_config[1] in self.connectionmanager.LOCALHOST:
exceptions.AttributeError: 'ConnectionManager' object has no attribute 'LOCALHOST'

08:14:08.846 [CRITICAL][twisted                            :154 ] Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 420, in fireEvent
    DeferredList(beforeResults).addCallback(self._continueFiring)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 319, in addCallback
    callbackKeywords=kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 308, in addCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 651, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 433, in _continueFiring
    callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py", line 295, in _on_reactor_start
    return self._start_thinclient()
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py", line 343, in _start_thinclient
    if host_config[1] in self.connectionmanager.LOCALHOST:
exceptions.AttributeError: 'ConnectionManager' object has no attribute 'LOCALHOST'

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/connectionmanager.py", line 481, in on_button_startdaemon_clicked
    self.start_daemon(port, get_config_dir()).addCallback(on_daemon_status_change)
AttributeError: 'bool' object has no attribute 'addCallback'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/connectionmanager.py", line 481, in on_button_startdaemon_clicked
    self.start_daemon(port, get_config_dir()).addCallback(on_daemon_status_change)
AttributeError: 'bool' object has no attribute 'addCallback'
Cannot run multiple daemons with same config directory.
If you believe this is an error, force starting by deleting: /home/renato/.config/deluge/deluged.pid
renato@firefox-server:/media/disk/deluge$ 

comment:16 by Calum, 7 years ago

The ppa has not been updated yet with new code. It's built daily and should be available this evening.

comment:17 by renato, 7 years ago

Ok thanks

comment:18 by Calum, 6 years ago

Milestone: 2.02.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.