WebUI problems

General support for problems installing or using Deluge
Se7en
Member
Member
Posts: 16
Joined: Thu Apr 21, 2011 9:30 am

WebUI problems

Post by Se7en »

I'm having the same problem with Deluge + WebUI 1.3.2, I recently updated Deluge via apt-get install and at first WebUI worked fine but now I'm just receiving this error-message:

Code: Select all

web.Server Traceback (most recent call last): 

<type 'exceptions.IOError'>: [Errno 2] No such file or directory: '/usr/lib/pymodules/python2.7/deluge/ui/web/index.html'
/usr/lib/python2.7/dist-packages/twisted/web/server.py, line 125 in process
123    try:
124      resrc = self.site.getResourceFor(self)
125      self.render(resrc)
126    except:
Selfsite	twisted.web.server.Site instance @ 0x1974ab8
<twisted.web.server.Site instance at 0x1974ab8>

Localsresrc	deluge.ui.web.server.TopLevel instance @ 0x1974638
<deluge.ui.web.server.TopLevel instance at 0x1974638>
self	twisted.web.server.Request instance @ 0x18fabd8
<GET / HTTP/1.1>

/usr/lib/python2.7/dist-packages/twisted/web/server.py, line 132 in render
130  def render(self, resrc):
131    try:
132      body = resrc.render(self)
133    except UnsupportedMethod, e:
Localsresrc	deluge.ui.web.server.TopLevel instance @ 0x1974638
<deluge.ui.web.server.TopLevel instance at 0x1974638>
self	twisted.web.server.Request instance @ 0x18fabd8
<GET / HTTP/1.1>

GlobalsUnsupportedMethod	<class 'twisted.web.error.UnsupportedMethod'>

/usr/lib/pymodules/python2.7/deluge/ui/web/server.py, line 555 in render
553
554
555
556
/usr/lib/python2.7/dist-packages/mako/template.py, line 205 in __init__
203        path = None
204
205      module = self._compile_from_file(path, filename)
206    else:
Localspath	None
self	<deluge.ui.web.common.Template object at 0x1afd490>
filename	'/usr/lib/pymodules/python2.7/deluge/ui/web/index.html'

/usr/lib/python2.7/dist-packages/mako/template.py, line 248 in _compile_from_file
246      code, module = _compile_text(
247                self,
248                open(filename, 'rb').read(),
249                filename)
Localsself	<deluge.ui.web.common.Template object at 0x1afd490>
filename	'/usr/lib/pymodules/python2.7/deluge/ui/web/index.html'

Globals_compile_text	function _compile_text in file /usr/lib/python2.7/dist-packages/mako/template.py at line 445


<type 'exceptions.IOError'>: [Errno 2] No such file or directory: '/usr/lib/pymodules/python2.7/deluge/ui/web/index.html'
I'm running Deluge on Ubuntu (Server) 11.04 and as mentioned before I installed Deluge via apt-get.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: WebUI problems

Post by Cas »

Please do not resurrect zombie threads. Create a new thread and reference the old one if you feel it necessary.

Have you tried reinstalling deluge?
Se7en
Member
Member
Posts: 16
Joined: Thu Apr 21, 2011 9:30 am

Re: WebUI problems

Post by Se7en »

Cas wrote:Please do not resurrect zombie threads. Create a new thread and reference the old one if you feel it necessary.

Have you tried reinstalling deluge?
What's the easiest way to reinstall? Apt-get remove and the just apt-get install? Which files do I need to make a backup of?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: WebUI problems

Post by Cas »

apt-get purge of all the deluge packages you have installed.

You do not need to backup anything as your settings which are stored in ~/.config/deluge will be unaffected.
Se7en
Member
Member
Posts: 16
Joined: Thu Apr 21, 2011 9:30 am

Re: WebUI problems

Post by Se7en »

Cas wrote:apt-get purge of all the deluge packages you have installed.

You do not need to backup anything as your settings which are stored in ~/.config/deluge will be unaffected.
I tried apt-get purge deluge, but the error-message remains :(
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: WebUI problems

Post by Cas »

Did you purge ALL packages? i.e deluged, deluge-web etc...
Se7en
Member
Member
Posts: 16
Joined: Thu Apr 21, 2011 9:30 am

Re: WebUI problems

Post by Se7en »

A complete reinstall did the trick, works fine now. But I have another problem (had it with 1.3.1 as well), I can't upload torrents via WebUI. After I have selected my torrent-file and pushed 'Add' it just keeps on loading forever and ever. Any ideas?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: WebUI problems

Post by Cas »

Not aware of any issues with Add dialog in webui. Which point in the process does it stall, actually adding the torrent to deluge or uploading the torrent file?

Can you turn on debug logging for deluge-web and see if there are any errors?
Se7en
Member
Member
Posts: 16
Joined: Thu Apr 21, 2011 9:30 am

Re: WebUI problems

Post by Se7en »

Cas wrote:Not aware of any issues with Add dialog in webui. Which point in the process does it stall, actually adding the torrent to deluge or uploading the torrent file?

Can you turn on debug logging for deluge-web and see if there are any errors?
It gets stuck at this point:

Image

The status-bar just keeps going and going. I tried to start deluge-web with debug logging activated, there's no errors listed in the log-file, all I get is this:

Code: Select all

[DEBUG   ] 21:03:20 server:280 Serving path: '/usr/lib/python2.7/dist-packages/deluge/ui/web/icons/start.png'
[DEBUG   ] 21:03:20 json_api:253 json-request: {"method":"system.listMethods","params":[],"id":0}
[DEBUG   ] 21:03:20 server:269 Requested path: 'logout.png'
[DEBUG   ] 21:03:20 server:280 Serving path: '/usr/lib/python2.7/dist-packages/deluge/ui/web/icons/logout.png'
[DEBUG   ] 21:03:20 json_api:253 json-request: {"method":"auth.check_session","params":[],"id":1}
[DEBUG   ] 21:03:20 json_api:253 json-request: {"method":"web.register_event_listener","params":["PluginEnabledEvent"],"id":3}
[DEBUG   ] 21:03:20 json_api:253 json-request: {"method":"web.register_event_listener","params":["PluginDisabledEvent"],"id":4}
[DEBUG   ] 21:03:20 json_api:253 json-request: {"method":"web.get_events","params":[],"id":6}
[DEBUG   ] 21:03:20 json_api:253 json-request: {"method":"web.register_event_listener","params":["PluginDisabledEvent"],"id":2}
[DEBUG   ] 21:03:20 json_api:253 json-request: {"method":"web.register_event_listener","params":["PluginEnabledEvent"],"id":5}
[DEBUG   ] 21:03:20 json_api:253 json-request: {"method":"web.connected","params":[],"id":7}
[DEBUG   ] 21:03:20 server:269 Requested path: 'connections.png'
[DEBUG   ] 21:03:20 server:280 Serving path: '/usr/lib/python2.7/dist-packages/deluge/ui/web/icons/connections.png'
[DEBUG   ] 21:03:20 server:269 Requested path: 'downloading.png'
[DEBUG   ] 21:03:20 server:280 Serving path: '/usr/lib/python2.7/dist-packages/deluge/ui/web/icons/downloading.png'
[DEBUG   ] 21:03:20 server:269 Requested path: 'traffic.png'
[DEBUG   ] 21:03:20 server:280 Serving path: '/usr/lib/python2.7/dist-packages/deluge/ui/web/icons/traffic.png'
[DEBUG   ] 21:03:20 server:269 Requested path: 'seeding.png'
[DEBUG   ] 21:03:20 server:280 Serving path: '/usr/lib/python2.7/dist-packages/deluge/ui/web/icons/seeding.png'
[DEBUG   ] 21:03:20 server:269 Requested path: 'dht.png'
[DEBUG   ] 21:03:20 server:280 Serving path: '/usr/lib/python2.7/dist-packages/deluge/ui/web/icons/dht.png'
[DEBUG   ] 21:03:20 json_api:253 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num$
[DEBUG   ] 21:03:20 json_api:253 json-request: {"method":"web.get_plugins","params":[],"id":9}
[DEBUG   ] 21:03:20 server:269 Requested path: 'drive.png'
[DEBUG   ] 21:03:20 server:280 Serving path: '/usr/lib/python2.7/dist-packages/deluge/ui/web/icons/drive.png'
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: WebUI problems

Post by Cas »

Does this occur with all torrent files? Could you PM me the file?
Post Reply