1.0 WebUi

Suggestions and discussion of future versions
mvoncken
Developer
Developer
Posts: 225
Joined: Mon Sep 03, 2007 9:38 pm

Re: 1.0 WebUi

Post by mvoncken »

The install script is broken.

Open delugew2.cmd
Find:
"%CD%\deluge.exe -u web"
And replace with:
"%CD%\deluge.exe" -u web
dev: webui, core, labels | irc:vonck7 |
hordak
Leecher
Leecher
Posts: 59
Joined: Thu Apr 10, 2008 10:59 pm

Re: 1.0 WebUi

Post by hordak »

mvoncken,

The edit worked like a charm.

Thank you.
De-Munt

Re: 1.0 WebUi

Post by De-Munt »

Dear Mvoncken,

I am trying to run Deluge 1.0.5 behind Apache 2.2 with your deluge_apache_config.py approach on a Fedora Core 9.

Would this actually work with version 1.0.5? Where should deluge_apache_config.py be put? And regarding the line WSGIScriptAliasMatch ^/deluge/(.*) /home/martijn/prj/WebUi/scripts/deluge_apache_config.py/$1 , where should this point at, as I have no home/username/prj/WebUi/scripts/directory.

Thanks and kind regards,

Paul
noahhomsky
New User
New User
Posts: 3
Joined: Fri Jan 23, 2009 8:21 pm

Re: 1.0 WebUi

Post by noahhomsky »

How to change columns width in WebUI?
lenwar
New User
New User
Posts: 7
Joined: Sat Nov 22, 2008 11:00 am

Re: 1.0 WebUi

Post by lenwar »

Trying to start the client in the current svn (revision 4643):

Code: Select all

[INFO    ] 17:01:45 main:113 Deluge ui 1.2.0-dev
[DEBUG   ] 17:01:45 main:114 options: {'loglevel': 'debug', 'default_ui': None, 'args': None, 'quiet': False, 'ui': 'web', 'logfile': '/var/log/deluge/deluge', 'config': None}
[DEBUG   ] 17:01:45 main:115 args: []
[DEBUG   ] 17:01:45 main:116 ui_args: []
[INFO    ] 17:01:45 main:119 Starting ui..
[DEBUG   ] 17:01:45 ui:36 UI init..
[DEBUG   ] 17:01:45 configmanager:79 Getting config 'ui.conf'
[DEBUG   ] 17:01:45 config:245 Config /home/samba/normaal/torrent/.config/deluge/ui.conf loaded: {'default_ui': 'web', 'selected_ui': 'web'}
[INFO    ] 17:01:45 ui:57 Starting WebUI..
[ERROR   ] 17:01:45 ui:65 cannot import name sclient
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/deluge-1.2.0_dev-py2.5-linux-x86_64.egg/deluge/ui/ui.py", line 59, in __init__
    ui = WebUI(args)
  File "/usr/lib/python2.5/site-packages/deluge-1.2.0_dev-py2.5-linux-x86_64.egg/deluge/ui/webui/webui.py", line 28, in __init__
    import deluge_webserver
  File "/usr/lib/python2.5/site-packages/deluge-1.2.0_dev-py2.5-linux-x86_64.egg/deluge/ui/webui/deluge_webserver.py", line 29, in <module>
    from deluge.ui.client import sclient
ImportError: cannot import name sclient
[ERROR   ] 17:01:45 ui:66 Unable to find the requested UI: web.  Please select a different UI with the '-u' option or alternatively use the '-s' option to select a different default UI.
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: 1.0 WebUi

Post by johnnyg »

lenwar wrote:Trying to start the client in the current svn (revision 4643):

Code: Select all

[INFO    ] 17:01:45 main:113 Deluge ui 1.2.0-dev
[DEBUG   ] 17:01:45 main:114 options: {'loglevel': 'debug', 'default_ui': None, 'args': None, 'quiet': False, 'ui': 'web', 'logfile': '/var/log/deluge/deluge', 'config': None}
[DEBUG   ] 17:01:45 main:115 args: []
[DEBUG   ] 17:01:45 main:116 ui_args: []
[INFO    ] 17:01:45 main:119 Starting ui..
[DEBUG   ] 17:01:45 ui:36 UI init..
[DEBUG   ] 17:01:45 configmanager:79 Getting config 'ui.conf'
[DEBUG   ] 17:01:45 config:245 Config /home/samba/normaal/torrent/.config/deluge/ui.conf loaded: {'default_ui': 'web', 'selected_ui': 'web'}
[INFO    ] 17:01:45 ui:57 Starting WebUI..
[ERROR   ] 17:01:45 ui:65 cannot import name sclient
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/deluge-1.2.0_dev-py2.5-linux-x86_64.egg/deluge/ui/ui.py", line 59, in __init__
    ui = WebUI(args)
  File "/usr/lib/python2.5/site-packages/deluge-1.2.0_dev-py2.5-linux-x86_64.egg/deluge/ui/webui/webui.py", line 28, in __init__
    import deluge_webserver
  File "/usr/lib/python2.5/site-packages/deluge-1.2.0_dev-py2.5-linux-x86_64.egg/deluge/ui/webui/deluge_webserver.py", line 29, in <module>
    from deluge.ui.client import sclient
ImportError: cannot import name sclient
[ERROR   ] 17:01:45 ui:66 Unable to find the requested UI: web.  Please select a different UI with the '-u' option or alternatively use the '-s' option to select a different default UI.
trunk is using twisted now, I wouldn't recommend using it unless you are developing for it.
porszem
New User
New User
Posts: 3
Joined: Fri Mar 20, 2009 8:38 pm

Re: 1.0 WebUi

Post by porszem »

Hi

i'm using deluge-webui 1.1.5 under debian

i tried this http://forum.deluge-torrent.org/viewtop ... 075#p18985 with apache2 https
(i put the script here /usr/share/python-support/deluge-webui/deluge/ui/webui/deluge_apache.py)
("https://www.mywebserver.com/deluge/index")
evrything works fine expekt these 3 links: Home, Config and Logout refers to here: "https://www.mywebserver.com/deluge/home", "https://www.mywebserver.com/deluge/config/" and "https://www.mywebserver.com/deluge/logout"
but jumps here: "https://www.mywebserver.com/deluge/deluge/index" , "https://www.mywebserver.com/deluge/delu ... g/template" ,
"https://www.mywebserver.com/deluge/deluge/login"

Is it a .py scripr bug or what?
porszem
New User
New User
Posts: 3
Joined: Fri Mar 20, 2009 8:38 pm

Re: 0.6 WebUi

Post by porszem »

mvoncken wrote:Webserver integration.

By default deluge uses it's builtin webserver, but it's possible to use another webserver.
This setup depends on apache2 and mod_wsgi.
It serves the webui on the /deluge directory on your webserver.
Other wsgi-capable webservers should be able to run deluge too.

deluge_apache_config.py

Code: Select all

#!/usr/bin/env python

#config ; EDIT THIS
CONFIG_DIR =  '/home/martijn/.config/deluge' #No trailing slashes.
BASE_URL = '/deluge' #the apache url /No trailing slashes.
#/config

#Do not edit this:
from deluge.ui.webui import apache
application = apache.get_wsgi_application(BASE_URL, CONFIG_DIR)
/etc/apache2/apache2.conf

Code: Select all

### deluge
# WSGIRestrictStdout must be Off , this will be fixed, eventually...
# deluge only supports 1 process, but you are free to configure the number of threads.
# more info:
# http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives

WSGIRestrictStdout Off
WSGIProcessGroup deluge
WSGIDaemonProcess deluge processes=1 threads=25
Alias /deluge/static/ /usr/lib/python2.5/site-packages/deluge-0.6.0.0-py2.5-linux-i686.egg/deluge/ui/webui/static/
WSGIScriptAliasMatch ^/deluge/(.*) /home/martijn/prj/WebUi/scripts/deluge_apache_config.py/$1
Note: make sure that the config-dir is writable by the webserver-process (configuring the wsgi daemon user is left as an exersize to the reader)
tail /var/log/apache2/error.log when you're encountering problems.
Please try to put somewhere else other then "/deluge" it is very confusing.
Golork
New User
New User
Posts: 5
Joined: Tue May 12, 2009 8:17 pm

Re: 1.0 WebUi

Post by Golork »

Hi, I have a question :
When I was with µTorrent I can connect to the WebUI (from µTorrent) at any computer which be connected to internet.
With Deluge I can only connect with a computer on my local area network.

Is there a way to connect to Deluge WebUI by using my Public IP ?
damoxc
Top Bloke
Top Bloke
Posts: 117
Joined: Sat Jul 19, 2008 7:26 pm
Location: Hampshire, UK
Contact:

Re: 1.0 WebUi

Post by damoxc »

You can if you forward the port (8112 is the default) on your router to your pc.
Locked