Page 1 of 2

[SOLVED] webui not working

Posted: Tue Mar 23, 2010 12:57 am
by rflores2323
I am running deluge 1.2.0 on ubuntu 9.10 kernel 2.6.31-17-generic. I had 1.1.9 running fine and the webui was working however I upgraded and now I cannot connect to the webui anymore.

I try to run the command below and get this log

Code: Select all

xbmc@xbmc-desktop:~$ sudo deluged
xbmc@xbmc-desktop:~$ sudo deluge-web
Traceback (most recent call last):
  File "/usr/bin/deluge-web", line 8, in <module>
    load_entry_point('deluge==1.2.0', 'console_scripts', 'deluge-web')()
  File "/usr/lib/pymodules/python2.6/deluge/ui/web/web.py", line 115, in start
    web.start()
  File "/usr/lib/pymodules/python2.6/deluge/ui/web/web.py", line 101, in start
    import server
  File "/usr/lib/pymodules/python2.6/deluge/ui/web/server.py", line 58, in <module>
    from deluge.ui.web.auth import Auth
  File "/usr/lib/pymodules/python2.6/deluge/ui/web/auth.py", line 61, in <module>
    from deluge.ui.web.json_api import JSONComponent, export
  File "/usr/lib/pymodules/python2.6/deluge/ui/web/json_api.py", line 54, in <module>
    from deluge.ui.web.common import _
  File "/usr/lib/pymodules/python2.6/deluge/ui/web/common.py", line 37, in <module>
    from mako.template import Template as MakoTemplate
ImportError: No module named mako.template
xbmc@xbmc-desktop:~$ 
I had a script working under 1.1.9. is this script needed any longer?

can someone please advise how to get this working??

Re: webui not working

Posted: Tue Mar 23, 2010 1:02 am
by Cas
latest Ubuntu PPA version is 1.2.1 so i suggest upgrading first

Re: webui not working

Posted: Tue Mar 23, 2010 1:07 am
by johnnyg
You need to install python-mako.

Re: webui not working

Posted: Sat Mar 27, 2010 6:24 am
by rflores2323
ok so now I dont know what I did wrong as deluge is not working at all.

I installed the PPA using these instructions https://launchpad.net/~deluge-team/+archive/ppa

I think however it did not update to the latest PPA as I also have another PPA for getdeb. The current version that i still have installed is 1.2.0.

below are some screen shots

Image

Image

I now cannot connect at all to deluge.

I have tried to uninstall and get the PPA from the deluge PPA and it gives me an error saying that here are some files missing.

I then installed the getdeb deluge which is 1.2.0 and it installed however I cannot connect anymore.
my preferences wont even come up

Image

can anyone help me please.

Re: webui not working

Posted: Sat Mar 27, 2010 3:02 pm
by Cas
in synaptic manager:
  • untick (disable) geteb repository (under settings->repositories)
    click reload
    update deluge to latest version
    enable getdeb repo again
    click reload
    find the deluge packages getdeb is trying to update to 1.2.0
    select those packages and from the synaptic menu click package->lock version
This will prevent GetDeb from updating Deluge but every time a new version of PPA Deluge is released you will need to repeat this process, remembering to unlock those deluge packages.

Re: webui not working

Posted: Sat Mar 27, 2010 10:21 pm
by rflores2323
how do I just uninstall the previous version (start clean) and install the PPA version that is current 1.2.3

I rather not use the getdeb PPA as they will not be keeping the current versions updated so I might as well just use the deluge PPA.

Re: webui not working

Posted: Sat Mar 27, 2010 10:45 pm
by Cas
to remove deluge simple goto synaptic manger then find and remove all packages installed with deluge in the name

install deluge ppa:

Code: Select all

sudo add-apt-repository ppa:deluge-team/ppa
then reload synaptic manager and install deluge package

Re: webui not working

Posted: Sun Mar 28, 2010 11:58 pm
by rflores2323
ok finally got it installed

Core Version: 1.2.2
libtorrent version: 0.14.10.0

I cannot however get the webui working??? I try to go to my IP address http://localhost:8112/ however I get an error message 404 not found.

do I need a script to get it working?

I try to run deluge-web and nothing happens. Do i need to install a plugin??

Re: webui not working

Posted: Mon Mar 29, 2010 10:01 am
by Cas
Deluge is built around a client-server model so to run deluge-web (client) you will need to have deluged (server) running first

deluged <=> deluge-web <=> web browser

alternatively it is also possible to enable the webui plugin in the Deluge-GTK client and leave it running in the background(minimize to tray). this is essentially the same functionality as above.

deluge-gtk <=> deluged <=> deluge-web <=> web browser

Hope this makes sense to you

Re: webui not working

Posted: Mon Mar 29, 2010 3:58 pm
by johnnyg
Cas wrote:alternatively it is also possible to enable the webui plugin in the Deluge-GTK client and leave it running in the background(minimize to tray). this is essentially the same functionality as above.

deluge-gtk <=> deluged <=> deluge-web <=> web browser
The web ui plugin is just a front for starting deluge-web, so you can close deluge-gtk once you've started it.