[Solved] Webui not connecting

General support for problems installing or using Deluge
Madams9
Member
Member
Posts: 15
Joined: Wed Dec 19, 2012 8:29 pm

[Solved] Webui not connecting

Post by Madams9 »

Forgive me if this has been covered else where. I am not finding anything related to my specific issue here elsewhere or via Google.

Deluge 1.3.15
Linux 4.14.30-desktop-3.mga6 #1 SMP Sun Mar 25 22:17:31 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Firefox 59.0.2 64-bit and Chromium-browser Version 62.0.3202.94 (Developer Build) Mageia.Org 6 (64-bit)
webui plugin ver 0.1

Deluge itself works just fine.

I'm getting this when I attempt to start the daemon:

Code: Select all

$ deluged
[madams@spike bin]$ [ERROR   ] 16:12:38 init:50 Unable to enable plugin!
[ERROR   ] 16:12:38 init:51 attributes() got an unexpected keyword argument 'frozen'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/deluge/plugins/init.py", line 48, in enable
    self.plugin.enable()
  File "/usr/lib/python2.7/site-packages/deluge/plugins/WebUi-0.1-py2.7.egg/webui/core.py", line 59, in enable
    self.start()
  File "/usr/lib/python2.7/site-packages/deluge/plugins/WebUi-0.1-py2.7.egg/webui/core.py", line 89, in start
    from deluge.ui.web import server
  File "/usr/lib/python2.7/site-packages/deluge/ui/web/server.py", line 51, in <module>
    from twisted.application import service, internet
  File "/usr/lib64/python2.7/site-packages/twisted/application/internet.py", line 54, in <module>
    from automat import MethodicalMachine
  File "/usr/lib/python2.7/site-packages/automat/__init__.py", line 2, in <module>
    from ._methodical import MethodicalMachine
  File "/usr/lib/python2.7/site-packages/automat/_methodical.py", line 34, in <module>
    @attr.s(frozen=True)
TypeError: attributes() got an unexpected keyword argument 'frozen'
Despite this error, deluged appears to be running:

Code: Select all

$ ps aux|grep deluged
madams   15912 16.1  0.5 498208 44884 ?        Sl   16:12   0:02 /usr/bin/python /usr/bin/deluged
madams   15987  0.0  0.0 107652   876 pts/2    S+   16:12   0:00 grep --color deluged
The webui plugin is enabled. Port is default 8112.

Attempting to connect to the webui from a browser via "localhost:8112" yields an "unable to connect" error - Firefox can’t establish a connection to the server at localhost:8112. Chromium kicks a similar error - ERR_CONNECTION_REFUSED.

The firewall is disabled, but the port doesn't appear in an nmap scan.

I suspect it's related to the error I get when starting the daemon, but I'm at a loss to t/s it.

Help?

Thanks!

Mark
Last edited by Madams9 on Thu Jun 14, 2018 6:39 am, edited 1 time in total.
Madams9
Member
Member
Posts: 15
Joined: Wed Dec 19, 2012 8:29 pm

Re: Webui not connecting

Post by Madams9 »

Nope. Disregard this one. Still trying to figure out why Python doesn't like the "frozen" attribute.

Not succeeding.
Madams9
Member
Member
Posts: 15
Joined: Wed Dec 19, 2012 8:29 pm

Re: Webui not connecting

Post by Madams9 »

Additional information.

No luck with this issue. At this point, I have uninstalled deluge and renamed ~/.config/deluge, then reinstalled deluge.

Deluge itself runs just fine and I can start the daemon:

Code: Select all

[root@spike etc]# deluged -p 8112 &
[1] 30228
[root@spike etc]# 
[1]+  Done                    deluged -p 8112
[root@spike etc]# ps aux|grep deluged
root     30241  1.1  0.5 490380 41932 ?        Sl   15:00   0:00 /usr/bin/python /usr/bin/deluged -p 8112
root     30406  0.0  0.0 107652  1036 pts/1    S+   15:00   0:00 grep --color deluged
[root@spike etc]# netstat -l|grep 8112
tcp        0      0 localhost:8112          0.0.0.0:*               LISTEN 
Despite this, I can't enable the webui in preferences. I tick that box and the Apply and Okay buttons do nothing.

Update: The Apply and Okay buttons are not doing anything in preferences for any options.

I've checked the permissions and they look good:

Code: Select all

[madams@spike deluge]$ ll
total 72
-rw------- 1 madams madams   56 May 19 14:44 auth
-rw-rw-r-- 1 madams madams 2507 May 19 14:53 core.conf
-rw-rw-r-- 1 madams madams 2493 May 19 14:46 core.conf~
-rw-r--r-- 1 madams madams  237 May 19 14:57 deluged.log
-rw-r--r-- 1 root   root     11 May 19 15:00 deluged.pid
-rw-rw-r-- 1 madams madams   34 May 19 14:59 dht.state
-rw-rw-r-- 1 madams madams  232 May 19 14:53 files_tab.state
-rw-rw-r-- 1 madams madams 1709 May 19 14:48 gtkui.conf
-rw-rw-r-- 1 madams madams 1724 May 19 14:45 gtkui.conf~
drwxrwxr-x 2 madams madams 4096 May 19 14:56 icons/
drwxrwxr-x 2 madams madams 4096 May 19 14:53 ipc/
-rw-rw-r-- 1 madams madams  297 May 19 14:53 peers_tab.state
drwxrwxr-x 2 madams madams 4096 May 19 14:44 plugins/
-rw-rw-r-- 1 madams madams  379 May 19 14:59 session.state
drwxr-xr-x 2 madams madams 4096 May 19 14:57 ssl/
drwxrwxr-x 2 madams madams 4096 May 19 14:59 state/
-rw-rw-r-- 1 madams madams  109 May 19 14:53 tabs.state
-rw-rw-r-- 1 madams madams 2685 May 19 14:57 torrentview.state
Any clue?

Thanks much.

Mark
Madams9
Member
Member
Posts: 15
Joined: Wed Dec 19, 2012 8:29 pm

Re: Webui not connecting

Post by Madams9 »

Started deluge with "debug" log level and tried to enable the web ui. I got this:

Code: Select all

[DEBUG   ] 10:35:34 preferences:872 on_button_ok_clicked
[DEBUG   ] 10:35:34 pluginmanager:112 run_on_apply_prefs
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/preferences.py", line 873, in on_button_ok_clicked
    self.set_config(hide=True)
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/preferences.py", line 742, in set_config
    component.get("PluginManager").run_on_apply_prefs()
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/pluginmanager.py", line 114, in run_on_apply_prefs
    function()
  File "/usr/lib/python2.7/site-packages/deluge/plugins/WebUi-0.1-py2.7.egg/webui/gtkui.py", line 65, in on_apply_prefs
AttributeError: 'GtkUI' object has no attribute 'have_web'
The closest thing I can find is an 8-year-old bug, and it appears to have no relation. I don't code Python (or anything else), so I have no idea what this error is all about. My impression is that something in my Deluge installation is broken. Reinstalling obviously hasn't fixed it.

Any idea as to how I can fix this?

Thanks.

Edit: I've been meaning to add this: Python 2.7.13
Not sure how critical that piece of information is.

Further investigation yields that the directory /usr/lib/python2.7/site-packages/deluge/plugins contains this:

Code: Select all

$ ll
total 260
-rw-r--r-- 1 root root 30525 May 17  2017 AutoAdd-1.5-py2.7.egg
-rw-r--r-- 1 root root 37259 May 17  2017 Blocklist-1.3-py2.7.egg
-rw-r--r-- 1 root root 19437 May 17  2017 Execute-1.3-py2.7.egg
-rw-r--r-- 1 root root 17249 May 17  2017 Extractor-0.6-py2.7.egg
-rw-r--r-- 1 root root     0 May 12  2017 __init__.py
-rw-r--r-- 1 root root  2020 May 12  2017 init.py
-rw-r--r-- 2 root root   146 May 17  2017 __init__.pyc
-rw-r--r-- 2 root root  1375 May 17  2017 init.pyc
-rw-r--r-- 2 root root   146 May 17  2017 __init__.pyo
-rw-r--r-- 2 root root  1375 May 17  2017 init.pyo
-rw-r--r-- 1 root root 36347 May 17  2017 Label-0.2-py2.7.egg
-rw-r--r-- 1 root root 38241 May 17  2017 Notifications-0.2-py2.7.egg
-rw-r--r-- 1 root root  2833 May 12  2017 pluginbase.py
-rw-r--r-- 2 root root  3162 May 17  2017 pluginbase.pyc
-rw-r--r-- 2 root root  3162 May 17  2017 pluginbase.pyo
-rw-r--r-- 1 root root 26525 May 17  2017 Scheduler-0.3-py2.7.egg
-rw-r--r-- 1 root root 11303 May 17  2017 WebUi-0.1-py2.7.egg
There is no webui subdirectory much less a gtkui.py file.

And now I see that /usr/lib/python2.7/site-packages/deluge/plugins/WebUi-0.1-py2.7.egg isn't a directory, it's a file. Why does the error show a missing file within a file?

I have also found that gtkui.py exists in /usr/lib/python2.7/site-packages/deluge/ui/gtkui/gtkui.py.

Why is Deluge looking for it in the wrong place? I would normally just try to form a soft link to that file in the correct directory, but WebUi-0.1-py2.7.egg is not a directory.

Does anybody have even a vague idea what's up with this?

Anyone?
Madams9
Member
Member
Posts: 15
Joined: Wed Dec 19, 2012 8:29 pm

Re: Webui not connecting

Post by Madams9 »

Bump
Madams9
Member
Member
Posts: 15
Joined: Wed Dec 19, 2012 8:29 pm

Re: Webui not connecting

Post by Madams9 »

So, nobody?
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Webui not connecting

Post by shamael »

Hi,

is deluge-web installed?
Madams9
Member
Member
Posts: 15
Joined: Wed Dec 19, 2012 8:29 pm

Re: Webui not connecting

Post by Madams9 »

Deluge-web is installed. It won't start either:

Code: Select all

# deluge-web
Traceback (most recent call last):
  File "/usr/bin/deluge-web", line 9, in <module>
    load_entry_point('deluge==1.3.15', 'console_scripts', 'deluge-web')()
  File "/usr/lib/python2.7/site-packages/deluge/ui/web/web.py", line 144, in start
    web.start()
  File "/usr/lib/python2.7/site-packages/deluge/ui/web/web.py", line 110, in start
    import server
  File "/usr/lib/python2.7/site-packages/deluge/ui/web/server.py", line 51, in <module>
    from twisted.application import service, internet
  File "/usr/lib64/python2.7/site-packages/twisted/application/internet.py", line 54, in <module>
    from automat import MethodicalMachine
  File "/usr/lib/python2.7/site-packages/automat/__init__.py", line 2, in <module>
    from ._methodical import MethodicalMachine
  File "/usr/lib/python2.7/site-packages/automat/_methodical.py", line 34, in <module>
    @attr.s(frozen=True)
TypeError: attributes() got an unexpected keyword argument 'frozen'
That happens as root or as my regular user.

I do have a WebUI plugin installed. When I try to enable the WebUI plugin, I check the box next to "enable web interface". Clicking Apply does nothing. Clicking Okay does nothing. Clicking Cancel closes the preference dialog. The configuration is not saved. I've looked at the config files under ~/.config/deluge and can't find anything in core.conf, ui.conf or any other file in that directory that might enable the plugin.

Thanks for the reply. Still looking for answers.
Madams9
Member
Member
Posts: 15
Joined: Wed Dec 19, 2012 8:29 pm

Re: Webui not connecting

Post by Madams9 »

Quick update. After reinstalling a couple of times, I can get deluged started and I can connect to the daemon. That makes it impossible to access preferences at all. Is that normal?
Madams9
Member
Member
Posts: 15
Joined: Wed Dec 19, 2012 8:29 pm

Re: Webui not connecting

Post by Madams9 »

Okay. I fixed it. Stumbled onto this:

https://bugs.mageia.org/show_bug.cgi?id=23052
Advisory:
=============================

Since new python-twisted-17.5.0-1.mga6 update a regression was found with python-attrs.
So this update fixes this issue.
I had to manually install the update because the rpm manager in Mageia couldn't find it in the repos as advertised.

Much discomfort, but all good now.

Thanks!
Post Reply