Page 1 of 1

deluge 0.5.7.1 crashes after enabling WebUi plugin

Posted: Sun Dec 09, 2007 11:20 pm
by ichernev
Hi!

I updated to Deluge 0.5.7.1 and enabled the WebUi plugin to see what it was. After clicking on the preferences button under WebUi deluge crashed. I restarted it several times and it crashed with the same msg:

Code: Select all

$ deluge
no existing Deluge session
Starting new Deluge session...
deluge_core; using libtorrent 0.13.0.0. Compiled with NDEBUG.
Applying preferences
Pickling state...
Scanning plugin dir /usr/share/deluge/plugins
Initialising plugin WebUi
Initialising plugin TorrentFiles
Initialising plugin DesiredRatio
Initialising plugin NetworkHealth
Initialising plugin TorrentSearch
Initialising plugin TorrentNotification
Initialising plugin WebSeed
Initialising plugin NetworkGraph
Initialising plugin SpeedLimiter
Initialising plugin ExtraStats
Initialising plugin TorrentCreator
Initialising plugin Scheduler
Initialising plugin EventLogging
Initialising plugin BlocklistImport
Initialising plugin TorrentPeers
Initialising plugin MoveTorrent
Initialising plugin FlexRSS
Applying preferences
Starting DHT...
Start Webui(in process)..
Loading TorrentFiles plugin...
Loading TorrentPeers plugin...
Loading Move Torrent plugin...
python: Objects/stringobject.c:105: PyString_FromString: Assertion `str != ((void *)0)' failed.
Traceback (most recent call last):
  File "/usr/share/deluge/plugins/WebUi/run_webserver", line 2, in ?
    import deluge_webserver
  File "/usr/share/deluge/plugins/WebUi/deluge_webserver.py", line 302, in ?
    class config:
  File "/usr/share/deluge/plugins/WebUi/deluge_webserver.py", line 309, in config
    post='%s Kib/sec' % ws.proxy.get_config_value('max_download_speed')
  File "/usr/lib64/python2.4/site-packages/dbus/proxies.py", line 25, in __call__
    ret = self._proxy_method (*args, **keywords)
  File "/usr/lib64/python2.4/site-packages/dbus/proxies.py", line 102, in __call__
    reply_message = self._connection.send_with_reply_and_block(message, timeout)
  File "dbus_bindings.pyx", line 455, in dbus_bindings.Connection.send_with_reply_and_block
dbus_bindings.DBusException: Message did not receive a reply (timeout by message bus)
I'm using Fedora Core 6 (I'll update to 8 as soon as I have enough time).
I wanted to disable this plugin and deleted the webui.conf file in ~/.config/deluge/ but it didn't work. Then I had no other choice but to edit the __init__.py script in /usr/share/deluge/plugins/WebUi to do nothing (I backed it up and then left __init__.py empty). Now deluge (at least) starts and works :).

How can I disable plugins from the console without having to start the deluge itself in cases like this? Any idea what can be done with the crashing of the WebUi?

Re: deluge 0.5.7.1 crashes after enabling WebUi plugin

Posted: Sun Dec 09, 2007 11:36 pm
by markybob
ichernev wrote:Hi!

I updated to Deluge 0.5.7.1 and enabled the WebUi plugin to see what it was. After clicking on the preferences button under WebUi deluge crashed. I restarted it several times and it crashed with the same msg:

Code: Select all

$ deluge
no existing Deluge session
Starting new Deluge session...
deluge_core; using libtorrent 0.13.0.0. Compiled with NDEBUG.
Applying preferences
Pickling state...
Scanning plugin dir /usr/share/deluge/plugins
Initialising plugin WebUi
Initialising plugin TorrentFiles
Initialising plugin DesiredRatio
Initialising plugin NetworkHealth
Initialising plugin TorrentSearch
Initialising plugin TorrentNotification
Initialising plugin WebSeed
Initialising plugin NetworkGraph
Initialising plugin SpeedLimiter
Initialising plugin ExtraStats
Initialising plugin TorrentCreator
Initialising plugin Scheduler
Initialising plugin EventLogging
Initialising plugin BlocklistImport
Initialising plugin TorrentPeers
Initialising plugin MoveTorrent
Initialising plugin FlexRSS
Applying preferences
Starting DHT...
Start Webui(in process)..
Loading TorrentFiles plugin...
Loading TorrentPeers plugin...
Loading Move Torrent plugin...
python: Objects/stringobject.c:105: PyString_FromString: Assertion `str != ((void *)0)' failed.
Traceback (most recent call last):
  File "/usr/share/deluge/plugins/WebUi/run_webserver", line 2, in ?
    import deluge_webserver
  File "/usr/share/deluge/plugins/WebUi/deluge_webserver.py", line 302, in ?
    class config:
  File "/usr/share/deluge/plugins/WebUi/deluge_webserver.py", line 309, in config
    post='%s Kib/sec' % ws.proxy.get_config_value('max_download_speed')
  File "/usr/lib64/python2.4/site-packages/dbus/proxies.py", line 25, in __call__
    ret = self._proxy_method (*args, **keywords)
  File "/usr/lib64/python2.4/site-packages/dbus/proxies.py", line 102, in __call__
    reply_message = self._connection.send_with_reply_and_block(message, timeout)
  File "dbus_bindings.pyx", line 455, in dbus_bindings.Connection.send_with_reply_and_block
dbus_bindings.DBusException: Message did not receive a reply (timeout by message bus)
I'm using Fedora Core 6 (I'll update to 8 as soon as I have enough time).
I wanted to disable this plugin and deleted the webui.conf file in ~/.config/deluge/ but it didn't work. Then I had no other choice but to edit the __init__.py script in /usr/share/deluge/plugins/WebUi to do nothing (I backed it up and then left __init__.py empty). Now deluge (at least) starts and works :).

How can I disable plugins from the console without having to start the deluge itself in cases like this? Any idea what can be done with the crashing of the WebUi?
you can edit ~/.config/deluge/prefs.state and change the list of "enabled_plugins"
not sure why it's doing crashing on you. try looking at the webui thread in the plugins forum

Re: deluge 0.5.7.1 crashes after enabling WebUi plugin

Posted: Mon Dec 10, 2007 5:20 am
by oshiri
You need newer version of python dbus.
Similar problem happen when I used webui in Debian Etch.
Solved by porting Sid's python-dbus to Etch.

Re: deluge 0.5.7.1 crashes after enabling WebUi plugin

Posted: Mon Dec 10, 2007 2:19 pm
by ichernev
@markybob
thank you I'll check there

@oshiri
As I stated above I'm using Fedora Core 6. My dbus-python package is version 0.70-6. I searched google and I couldn't find something suitable for fedora. And Sid's version was 0.83 while etch's was 0.71. What version do I need? Can you give me the real source packet that I need to manually install? And should I erase my dbus-python package or install the new one over the old one?

Re: deluge 0.5.7.1 crashes after enabling WebUi plugin

Posted: Tue Dec 11, 2007 1:10 am
by oshiri
I did not compile it from source as I'm to lazy. I did a shortcut.
If you want to compile from source, get it from:
wget http://dbus.freedesktop.org/releases/db ... 2.3.tar.gz
You need development files for libdbus-1 and libdbus-glib-1

I'm not familiar with fedora (RPM) packaging.
But in Debian you could easily modified the packaging (deb).
What I did was, I install Etch python-dbus first so that it will install all the dependencies.
Then I downloaded python-dbus from Sid and remove all the dependencies from the packaging and install it.
Since no other application broken, I consider Sid's python-dbus is good to go in Etch.
Anyway, WebUi only has problem with proxies.py, you culd try replace that file with new one.