Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#3068 closed bug (Fixed)

webui

Reported by: renato Owned by:
Priority: minor Milestone: 2.0.0
Component: Web UI Version: develop
Keywords: Cc:

Description

the webui does not connect automatic to daemon, when logging on from remote still asks for what daemon to connect

Change History (10)

comment:1 by renato, 55 years ago

Status: pendingnew

comment:1 by Calum, 7 years ago

Status: newpending

The web config likely needs updating with new daemon hostlist id:

http://dev.deluge-torrent.org/wiki/Faq#HowdoIauto-connecttoaspecificdaemon

However a recent commit I made to migrate the old hostlist config might fix this by recovering the old id. [eeccc47dded9f]

comment:2 by Calum, 7 years ago

Do you have an entry in web.conf for that config value?

Perhaps I broke auto-connecting to localhost daemon? I shall check...

comment:4 by renato, 7 years ago

22:28:08.850 [ERROR   ][deluge.pluginmanagerbase      :183 ] Failed to start plugin: WebUi
Traceback: <type 'exceptions.TypeError'>: _connect_daemon() takes exactly 2 arguments (4 given)
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:150:maybeDeferred
/usr/lib/python2.7/dist-packages/deluge/plugins/init.py:27:enable
/usr/lib/python2.7/dist-packages/deluge/plugins/WebUi-0.1.egg/deluge/plugins/webui/core.py:46:enable
/usr/lib/python2.7/dist-packages/deluge/plugins/WebUi-0.1.egg/deluge/plugins/webui/core.py:83:start_server
/usr/lib/python2.7/dist-packages/deluge/ui/web/server.py:644:start
/usr/lib/python2.7/dist-packages/deluge/ui/web/json_api.py:391:enable

comment:5 by renato, 7 years ago

found the error !

[#3064|WebUI] Fix server not sending TLS intermediate certs
-        options.getContext().set_options(SSL.OP_NO_SSLv2 | SSL.OP_NO_SSLv3)
+        ctx = options.getContext()
+        ctx.set_options(SSL.OP_NO_SSLv2 | SSL.OP_NO_SSLv3)
+        ctx.use_certificate_chain_file(configmanager.get_config_dir(self.cert))

commit 06dfeed7505dc84daa90cd8dbaf468bf6d50ea9e (patch)

using server.py and server.pyc of previous version works fine. just installed latest version from ppa and copied /usr/lib/python2.7/dist-packages/deluge/ui/web/server.py and /usr/lib/python2.7/dist-packages/deluge/ui/web/server.pyc from dev 7027.

tested even from transdroid. works!

Ops, worked just one time....after closing and reopen didint connect to web interface. confirm. it's not that.

Last edited 7 years ago by renato (previous) (diff)

comment:6 by Calum, 7 years ago

Yeah it wouldn't be that ssl change. But your previous trace looks like it might be relevant. I shall look into that...

comment:7 by renato, 7 years ago

And btw if you copy the daemon Id from the host config to the web config the web doesn't connect .

comment:8 by Calum, 7 years ago

Milestone: needs verified2.0
Resolution: Fixed
Status: newclosed

Fixed: [fb71d049b1]

Last edited 7 years ago by Calum (previous) (diff)

comment:9 by Calum, 6 years ago

Milestone: 2.02.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.