NoCoreError

General support for problems installing or using Deluge
Post Reply
hymerman
Member
Member
Posts: 15
Joined: Thu Feb 21, 2008 8:57 pm

NoCoreError

Post by hymerman »

Hi, I've just installed Deluge 0.6 (2831), ran deluge --ui web, and logged in. I was greeted with 'NoCoreError at /index, and was told to paste this:

Code: Select all

--Deluge Error--
NoCoreError : 'The core proxy is invalid.'
path : /index
file : /var/lib/python-support/python2.5/deluge/ui/client.py in call, line 65

--Input--
<Storage {}>

--Versions--
WebUi : rev.185
Python : 2.5.1 (r251:54863, Oct  5 2007, 13:36:32) 
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)]
dbus:0.82.0

--Traceback--
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/lib/webpy022/webapi.py", line 304, in wsgifunc
    result = func()
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/lib/webpy022/request.py", line 131, in <lambda>
    func = lambda: handle(inp, fvars)
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/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/webui_plugin/page_decorators.py", line 38, in deco
    return func(self, name) #ok, continue..
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/page_decorators.py", line 22, in deco
    res = func(self, name)
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/page_decorators.py", line 90, in deco
    return func(self, name)
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/pages.py", line 128, in GET
    torrent_list = get_torrent_list()
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/utils.py", line 237, in get_torrent_list
    torrent_ids  = proxy.get_session_state() #Syc-api.
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/webserver_common.py", line 123, in __call__
    func(self.callback ,*args, **kwargs)
  File "/var/lib/python-support/python2.5/deluge/ui/client.py", line 298, in get_session_state
    get_core().call("get_session_state", callback)
  File "/var/lib/python-support/python2.5/deluge/ui/client.py", line 66, in call
    raise deluge.error.NoCoreError("The core proxy is invalid.")
Any idea what the trouble is?
hymerman
Member
Member
Posts: 15
Joined: Thu Feb 21, 2008 8:57 pm

Re: NoCoreError

Post by hymerman »

After apt-get --purge remove deluge-torrent, a restart, and an install of the newest nightly build (2848) I now get this:

Code: Select all

--Deluge Error--
error : (111, 'Connection refused')
path : /index
file : httplib.py in connect, line 678

--Input--
<Storage {}>

--Versions--
WebUi : rev.185
Python : 2.5.1 (r251:54863, Oct  5 2007, 13:36:32) 
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)]
dbus:0.82.0

--Traceback--
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/lib/webpy022/webapi.py", line 304, in wsgifunc
    result = func()
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/lib/webpy022/request.py", line 131, in <lambda>
    func = lambda: handle(inp, fvars)
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/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/webui_plugin/page_decorators.py", line 38, in deco
    return func(self, name) #ok, continue..
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/page_decorators.py", line 22, in deco
    res = func(self, name)
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/page_decorators.py", line 90, in deco
    return func(self, name)
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/pages.py", line 128, in GET
    torrent_list = get_torrent_list()
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/utils.py", line 237, in get_torrent_list
    torrent_ids  = proxy.get_session_state() #Syc-api.
  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/xmlrpclib.py", line 1186, in request
    self.send_content(h, request_body)
  File "/var/lib/python-support/python2.5/deluge/xmlrpclib.py", line 1300, in send_content
    connection.endheaders()
  File "httplib.py", line 856, in endheaders
    self._send_output()
  File "httplib.py", line 728, in _send_output
    self.send(msg)
  File "httplib.py", line 695, in send
    self.connect()
  File "httplib.py", line 679, in connect
    raise socket.error, msg


I tried starting up deluge without setting the ui to see if i need to have started it up once without it (for initial config) to get the web ui to work, but it seems to be using the web ui by default now. I guess uninstalling it didn't remove the config files. Where can i find them so I can go and change them myself? I'm not too experienced in linux so I don't know where that kind of thing usually gets stored...
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: NoCoreError

Post by andar »

hymerman wrote:After apt-get --purge remove deluge-torrent, a restart, and an install of the newest nightly build (2848) I now get this:

Code: Select all

--Deluge Error--
error : (111, 'Connection refused')
path : /index
file : httplib.py in connect, line 678

--Input--
<Storage {}>

--Versions--
WebUi : rev.185
Python : 2.5.1 (r251:54863, Oct  5 2007, 13:36:32) 
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)]
dbus:0.82.0

--Traceback--
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/lib/webpy022/webapi.py", line 304, in wsgifunc
    result = func()
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/lib/webpy022/request.py", line 131, in <lambda>
    func = lambda: handle(inp, fvars)
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/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/webui_plugin/page_decorators.py", line 38, in deco
    return func(self, name) #ok, continue..
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/page_decorators.py", line 22, in deco
    res = func(self, name)
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/page_decorators.py", line 90, in deco
    return func(self, name)
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/pages.py", line 128, in GET
    torrent_list = get_torrent_list()
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui_plugin/utils.py", line 237, in get_torrent_list
    torrent_ids  = proxy.get_session_state() #Syc-api.
  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/xmlrpclib.py", line 1186, in request
    self.send_content(h, request_body)
  File "/var/lib/python-support/python2.5/deluge/xmlrpclib.py", line 1300, in send_content
    connection.endheaders()
  File "httplib.py", line 856, in endheaders
    self._send_output()
  File "httplib.py", line 728, in _send_output
    self.send(msg)
  File "httplib.py", line 695, in send
    self.connect()
  File "httplib.py", line 679, in connect
    raise socket.error, msg


I tried starting up deluge without setting the ui to see if i need to have started it up once without it (for initial config) to get the web ui to work, but it seems to be using the web ui by default now. I guess uninstalling it didn't remove the config files. Where can i find them so I can go and change them myself? I'm not too experienced in linux so I don't know where that kind of thing usually gets stored...
For the default gtkui do this:

Code: Select all

$ deluge --ui gtk
Also, make sure you have the deluged started prior to starting the webui.
mvoncken
Developer
Developer
Posts: 225
Joined: Mon Sep 03, 2007 9:38 pm

Re: NoCoreError

Post by mvoncken »

webui was running without a daemon.

I improved error-handling for a non-connected daemon.
And i added a connect page to webui.
dev: webui, core, labels | irc:vonck7 |
hymerman
Member
Member
Posts: 15
Joined: Thu Feb 21, 2008 8:57 pm

Re: NoCoreError

Post by hymerman »

Thanks, got it :)
Post Reply