Page 1 of 1

webui busted: ubuntu 8.10, 1.1.6+dfsg

Posted: Tue Apr 14, 2009 7:46 am
by mnp5
As soon as I log in to the webui I get

--Deluge Error--
Fault : <Fault 1: "<type 'exceptions.KeyError'>:'label'">
path : /index
file : /var/lib/python-support/python2.5/deluge/xmlrpclib.py in close, line 786

--Input--
<Storage {}>

--Versions--
WebUi : 1.1.6r
Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49)
[GCC 4.3.2]:

--Traceback--
File "/var/lib/python-support/python2.5/deluge/ui/webui/lib/webpy022/webapi.py", line 310, in wsgifunc
result = func()
File "/var/lib/python-support/python2.5/deluge/ui/webui/lib/webpy022/request.py", line 131, in <lambda>
func = lambda: handle(inp, fvars)
File "/var/lib/python-support/python2.5/deluge/ui/webui/lib/webpy022/request.py", line 61, in handle
return tocall(*([x and urllib.unquote(x) for x in args] + fna))
File "/var/lib/python-support/python2.5/deluge/ui/webui/page_decorators.py", line 87, in deco
return func(self, name) #check_session:ok
File "/var/lib/python-support/python2.5/deluge/ui/webui/page_decorators.py", line 105, in deco
return func(self, name) #check_connected:ok
File "/var/lib/python-support/python2.5/deluge/ui/webui/page_decorators.py", line 60, in deco
res = func(self, name) #deluge_page_noauth
File "/var/lib/python-support/python2.5/deluge/ui/webui/page_decorators.py", line 156, in deco
return func(self, name) #auto_refreshed
File "/var/lib/python-support/python2.5/deluge/ui/webui/pages.py", line 116, in GET
torrents = proxy.get_torrents_status(filter_dict, TORRENT_KEYS)
File "/var/lib/python-support/python2.5/deluge/xmlrpclib.py", line 1150, in __call__
return self.__send(self.__name, args)
File "/var/lib/python-support/python2.5/deluge/xmlrpclib.py", line 1440, in __request
verbose=self.__verbose
File "/var/lib/python-support/python2.5/deluge/ui/client.py", line 93, in request
return self._parse_response(h.getfile(), sock)
File "/var/lib/python-support/python2.5/deluge/xmlrpclib.py", line 1343, in _parse_response
return u.close()
File "/var/lib/python-support/python2.5/deluge/xmlrpclib.py", line 787, in close
raise Fault(**self._stack[0])



blaka blaka!

help! everything worked fine until I updated packages against the repos last night...

Re: webui busted: ubuntu 8.10, 1.1.6+dfsg

Posted: Tue Apr 14, 2009 9:29 pm
by homolibere
same me

Re: webui busted: ubuntu 8.10, 1.1.6+dfsg

Posted: Tue Apr 14, 2009 9:38 pm
by lozbrown
launching the web ui from the console causes the following output:
loz@gravity:~$ deluge -u web &
[1] 29584
loz@gravity:~$ /var/lib/python-support/python2.6/deluge/ui/webui/lib/webpy022/utils.py:138: DeprecationWarning: the sets module is deprecated
from sets import Set
/var/lib/python-support/python2.6/deluge/ui/webui/utils.py:45: DeprecationWarning: the md5 module is deprecated; use hashlib instead
from md5 import md5
Traceback (most recent call last):
File "/var/lib/python-support/python2.6/deluge/ui/webui/lib/webpy022/webapi.py", line 310, in wsgifunc
result = func()
File "/var/lib/python-support/python2.6/deluge/ui/webui/lib/webpy022/request.py", line 131, in <lambda>
func = lambda: handle(inp, fvars)
File "/var/lib/python-support/python2.6/deluge/ui/webui/lib/webpy022/request.py", line 61, in handle
return tocall(*([x and urllib.unquote(x) for x in args] + fna))
File "/var/lib/python-support/python2.6/deluge/ui/webui/page_decorators.py", line 87, in deco
return func(self, name) #check_session:ok
File "/var/lib/python-support/python2.6/deluge/ui/webui/page_decorators.py", line 105, in deco
return func(self, name) #check_connected:ok
File "/var/lib/python-support/python2.6/deluge/ui/webui/page_decorators.py", line 60, in deco
res = func(self, name) #deluge_page_noauth
File "/var/lib/python-support/python2.6/deluge/ui/webui/page_decorators.py", line 156, in deco
return func(self, name) #auto_refreshed
File "/var/lib/python-support/python2.6/deluge/ui/webui/pages.py", line 116, in GET
torrents = proxy.get_torrents_status(filter_dict, TORRENT_KEYS)
File "/var/lib/python-support/python2.6/deluge/xmlrpclib.py", line 1150, in __call__
return self.__send(self.__name, args)
File "/var/lib/python-support/python2.6/deluge/xmlrpclib.py", line 1440, in __request
verbose=self.__verbose
File "/var/lib/python-support/python2.6/deluge/ui/client.py", line 93, in request
return self._parse_response(h.getfile(), sock)
File "/var/lib/python-support/python2.6/deluge/xmlrpclib.py", line 1343, in _parse_response
return u.close()
File "/var/lib/python-support/python2.6/deluge/xmlrpclib.py", line 787, in close
raise Fault(**self._stack[0])
Fault: <Fault 1: "<type 'exceptions.IndexError'>:address_v4 from unsigned long">

/var/lib/python-support/python2.6/deluge/ui/webui/debugerror.py:333: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
exception_message = exception_value.message
Traceback (most recent call last):
File "/var/lib/python-support/python2.6/deluge/ui/webui/lib/webpy022/webapi.py", line 310, in wsgifunc
result = func()
File "/var/lib/python-support/python2.6/deluge/ui/webui/lib/webpy022/request.py", line 131, in <lambda>
func = lambda: handle(inp, fvars)
File "/var/lib/python-support/python2.6/deluge/ui/webui/lib/webpy022/request.py", line 61, in handle
return tocall(*([x and urllib.unquote(x) for x in args] + fna))
File "/var/lib/python-support/python2.6/deluge/ui/webui/page_decorators.py", line 87, in deco
return func(self, name) #check_session:ok
File "/var/lib/python-support/python2.6/deluge/ui/webui/page_decorators.py", line 105, in deco
return func(self, name) #check_connected:ok
File "/var/lib/python-support/python2.6/deluge/ui/webui/page_decorators.py", line 60, in deco
res = func(self, name) #deluge_page_noauth
File "/var/lib/python-support/python2.6/deluge/ui/webui/page_decorators.py", line 156, in deco
return func(self, name) #auto_refreshed
File "/var/lib/python-support/python2.6/deluge/ui/webui/pages.py", line 116, in GET
torrents = proxy.get_torrents_status(filter_dict, TORRENT_KEYS)
File "/var/lib/python-support/python2.6/deluge/xmlrpclib.py", line 1150, in __call__
return self.__send(self.__name, args)
File "/var/lib/python-support/python2.6/deluge/xmlrpclib.py", line 1440, in __request
verbose=self.__verbose
File "/var/lib/python-support/python2.6/deluge/ui/client.py", line 93, in request
return self._parse_response(h.getfile(), sock)
File "/var/lib/python-support/python2.6/deluge/xmlrpclib.py", line 1343, in _parse_response
return u.close()
File "/var/lib/python-support/python2.6/deluge/xmlrpclib.py", line 787, in close
raise Fault(**self._stack[0])
Fault: <Fault 1: "<type 'exceptions.IndexError'>:address_v4 from unsigned long">
To say it's bugged is an understatement it seems.. no disrespect to the developers!!

I really like deluge, it shows the most promise as a torrent client for linux it's just unfortunate it's got a way to go..

One question:
What's the reason for using a custom webserver. Would it not be easier to create a web frontend, and then leave the serving to a pre-existing package such as light-httpd or apache

Re: webui busted: ubuntu 8.10, 1.1.6+dfsg

Posted: Wed Apr 15, 2009 1:25 pm
by johnnyg
lozbrown wrote:One question:
What's the reason for using a custom webserver. Would it not be easier to create a web frontend, and then leave the serving to a pre-existing package such as light-httpd or apache
the new web ui (in trunk) which is much nicer (and does work :p) uses twisted (like the rest of deluge in trunk) and there's no known way to use a pre-existing web server + twisted (if you know how please post).

Re: webui busted: ubuntu 8.10, 1.1.6+dfsg

Posted: Wed Apr 15, 2009 3:42 pm
by andar
Try removing your ~/.config/deluge/web06.conf

I can't reproduce this issue.

Re: webui busted: ubuntu 8.10, 1.1.6+dfsg

Posted: Wed Apr 15, 2009 7:05 pm
by lozbrown
That did give significant improvements, although i did still get the following output:
loz@gravity:~/.config/deluge$ deluge -u web &
[1] 8437
loz@gravity:~/.config/deluge$ /var/lib/python-support/python2.6/deluge/ui/webui/lib/webpy022/utils.py:138: DeprecationWarning: the sets module is deprecated
from sets import Set
/var/lib/python-support/python2.6/deluge/ui/webui/utils.py:45: DeprecationWarning: the md5 module is deprecated; use hashlib instead
from md5 import md5

Re: webui busted: ubuntu 8.10, 1.1.6+dfsg

Posted: Wed Apr 15, 2009 9:35 pm
by lozbrown
johnnyg wrote:
lozbrown wrote:One question:
What's the reason for using a custom webserver. Would it not be easier to create a web frontend, and then leave the serving to a pre-existing package such as light-httpd or apache
the new web ui (in trunk) which is much nicer (and does work :p) uses twisted (like the rest of deluge in trunk) and there's no known way to use a pre-existing web server + twisted (if you know how please post).
As a result of this post I decided to take the plunge and try compiling the SVN trunk from source.

The new Web Ui looks pretty cool but how does one set up the connection to the deamon?
in the old version I pretty much just ran deluged on the CLi, and that was it. what the user name and password bit about?

Certainly looks like an improvement so far

Re: webui busted: ubuntu 8.10, 1.1.6+dfsg

Posted: Wed Apr 15, 2009 9:37 pm
by damoxc
There should be a default connection to the local daemon. The connection manager is there so you can use it to connect to other daemons on other machines, just like the in GTK UI.