Web Interface doesn't start

General support for problems installing or using Deluge
Post Reply
RDonovan
New User
New User
Posts: 9
Joined: Fri Apr 15, 2016 2:42 pm

Web Interface doesn't start

Post by RDonovan »

Hi, With the latest beta (more or less since dev160 of 2.0 b2) I'm unable to correctly launch the Deluge Webpage.

The Webui is on and reachable from e.g. Medusa or Sickrage which are correctly able to add torrents but I can't open the page into a browser.

Below a couple of portions of the debug log:

When I start the web daemon without trying to open the page:

Code: Select all

16:29:36.746 [CRITICAL][deluge.log                    :93  ] twisted.internet.defer
[Failure instance: Traceback (failure with no frames): <type 'exceptions.Exception'>: Bad host id
]
When I try to open the webpage:

Code: Select all

16:30:01.348 [CRITICAL][deluge.log                    :93  ] twisted.web.server.Request
[Failure instance: Traceback: <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
/usr/local/lib/python2.7/dist-packages/twisted/protocols/basic.py:572:dataReceived
/usr/local/lib/python2.7/dist-packages/twisted/web/http.py:2099:lineReceived
/usr/local/lib/python2.7/dist-packages/twisted/web/http.py:2190:allContentReceived
/usr/local/lib/python2.7/dist-packages/twisted/web/http.py:917:requestReceived
--- <exception caught here> ---
/usr/local/lib/python2.7/dist-packages/twisted/web/server.py:198:process
/usr/local/lib/python2.7/dist-packages/twisted/web/server.py:258:render
/usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev172-py2.7.egg/deluge/ui/web/server.py:83:render
/usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev172-py2.7.egg/deluge/ui/web/common.py:58:render
/usr/local/lib/python2.7/dist-packages/mako/template.py:471:render_unicode
/usr/local/lib/python2.7/dist-packages/mako/runtime.py:838:_render
/usr/local/lib/python2.7/dist-packages/mako/runtime.py:873:_render_context
/usr/local/lib/python2.7/dist-packages/mako/runtime.py:899:_exec_template
_usr_local_lib_python2_7_dist_packages_deluge_2_0_0b2_dev172_py2_7_egg_deluge_ui_web_js_gettext_js:163:render_body
/usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev172-py2.7.egg/deluge/ui/web/common.py:27:escape
Any guess about how to solve the issue?

Thanks!
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Web Interface doesn't start

Post by Cas »

The 'Bad host id' means that a host id is not in the hostlist entry. Do you have a host id set in web.conf? Double-check it is correct.

The other issue seems to be decoding with ascii for translations and while fixing the code for Python 3 appears I have inadvertently broken Python 2. I'll push a fix soon: https://github.com/deluge-torrent/deluge/pull/219
RDonovan
New User
New User
Posts: 9
Joined: Fri Apr 15, 2016 2:42 pm

Re: Web Interface doesn't start

Post by RDonovan »

Thanks Cas, Dev175 solved the ASCII decoding issue and now the error is gone from te log.
I also managed to remove the bad host id error by deleting my web.conf and my hostlist.conf files. Launching deluge-web again created new ones and there are no errors into the log.

Anyway, I'm still unable to get the webpage showing up. I've tried from 3 different browsers, cleaned the cache and everything but I still see just the page title in the tab and a blank content.

Here's the full log of the launch and one attempt of loading the page, is there anything I can change to get the page showing up?

Code: Select all

14:08:48.754 [INFO    ][deluge.configmanager:52  ] Setting config directory to: /var/lib/deluge/.config
14:08:48.758 [INFO    ][deluge.ui.ui:70  ] Deluge ui 2.0.0b2.dev175
14:08:48.759 [DEBUG   ][deluge.ui.ui:71  ] options: Namespace(base=None, config=u'/var/lib/deluge/.config', donotdaemonize=True, group=None, interface=None, logfile=u'/var/log/deluge/deluge-web.log', loglevel=u'debug', logrotate=None, no_ssl=False, pidfile=None, port=None, profile=False, quiet=False, remaining=[], ssl=False, user=None)
14:08:48.760 [INFO    ][deluge.ui.ui:72  ] Starting web ui..
14:08:49.819 [DEBUG   ][deluge.configmanager          :94  ] Getting config: web.conf
14:08:49.820 [DEBUG   ][deluge.config                 :183 ] Setting key "sidebar_show_zero" to: False (of type: <type 'bool'>)
14:08:49.820 [DEBUG   ][deluge.config                 :183 ] Setting key "show_session_speed" to: False (of type: <type 'bool'>)
14:08:49.820 [DEBUG   ][deluge.config                 :183 ] Setting key "first_login" to: True (of type: <type 'bool'>)
14:08:49.820 [DEBUG   ][deluge.config                 :183 ] Setting key "https" to: False (of type: <type 'bool'>)
14:08:49.821 [DEBUG   ][deluge.config                 :183 ] Setting key "language" to:  (of type: <type 'unicode'>)
14:08:49.821 [DEBUG   ][deluge.config                 :183 ] Setting key "sessions" to: {} (of type: <type 'dict'>)
14:08:49.821 [DEBUG   ][deluge.config                 :183 ] Setting key "enabled_plugins" to: [] (of type: <type 'list'>)
14:08:49.821 [DEBUG   ][deluge.config                 :183 ] Setting key "pwd_sha1" to: 2ce1a410bcdcc53064129b6d950f2e9fee4edc1e (of type: <type 'unicode'>)
14:08:49.821 [DEBUG   ][deluge.config                 :183 ] Setting key "cert" to: ssl/daemon.cert (of type: <type 'unicode'>)
14:08:49.821 [DEBUG   ][deluge.config                 :183 ] Setting key "pkey" to: ssl/daemon.pkey (of type: <type 'unicode'>)
14:08:49.822 [DEBUG   ][deluge.config                 :183 ] Setting key "port" to: 8112 (of type: <type 'int'>)
14:08:49.822 [DEBUG   ][deluge.config                 :183 ] Setting key "interface" to: 0.0.0.0 (of type: <type 'unicode'>)
14:08:49.822 [DEBUG   ][deluge.config                 :183 ] Setting key "theme" to: gray (of type: <type 'unicode'>)
14:08:49.822 [DEBUG   ][deluge.config                 :183 ] Setting key "session_timeout" to: 3600 (of type: <type 'int'>)
14:08:49.822 [DEBUG   ][deluge.config                 :183 ] Setting key "show_sidebar" to: True (of type: <type 'bool'>)
14:08:49.822 [DEBUG   ][deluge.config                 :183 ] Setting key "default_daemon" to:  (of type: <type 'unicode'>)
14:08:49.823 [DEBUG   ][deluge.config                 :183 ] Setting key "sidebar_multiple_filters" to: True (of type: <type 'bool'>)
14:08:49.823 [DEBUG   ][deluge.config                 :183 ] Setting key "pwd_salt" to: c26ab3bbd8b137f99cd83c2c1c0963bcc1a35cad (of type: <type 'unicode'>)
14:08:49.823 [DEBUG   ][deluge.config                 :183 ] Setting key "base" to: / (of type: <type 'unicode'>)
14:08:49.824 [DEBUG   ][deluge.config                 :443 ] Config /var/lib/deluge/.config/web.conf version: 1.2 loaded: {u'port': 8112, u'enabled_plugins': [], u'pwd_sha1': u'2ce1a410bcdcc53064129b6d950f2e9fee4edc1e', u'theme': u'gray', u'show_sidebar': True, u'sidebar_show_zero': False, u'pkey': u'ssl/daemon.pkey', u'https': False, u'sessions': {}, u'base': u'/', u'interface': u'0.0.0.0', u'pwd_salt': u'c26ab3bbd8b137f99cd83c2c1c0963bcc1a35cad', u'show_session_speed': False, u'language': u'', u'first_login': True, u'cert': u'ssl/daemon.cert', u'session_timeout': 3600, u'default_daemon': u'', u'sidebar_multiple_filters': True}
14:08:49.824 [DEBUG   ][deluge.config                 :529 ] File version 2 is not in input_range (0, 1), ignoring converter function..
14:08:49.824 [DEBUG   ][deluge.config                 :354 ] Registering function for language key..
14:08:49.824 [DEBUG   ][deluge.ui.web.server          :670 ] Setting UI language 
14:08:49.829 [WARNING ][deluge.ui.translations_util   :90  ] IOError when loading translations: [Errno 2] No translation file found for domain: u'deluge'
14:08:49.843 [DEBUG   ][deluge.ui.web.server          :232 ] Adding directory `/usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/ui/web/css` with path ``
14:08:49.859 [DEBUG   ][deluge.ui.web.server          :232 ] Adding directory `/usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/ui/web/icons` with path ``
14:08:49.867 [DEBUG   ][deluge.ui.web.server          :232 ] Adding directory `/usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/ui/web/images` with path ``
14:08:49.985 [INFO    ][deluge.ui.translations_util   :97  ] Setting up translations from /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/i18n
14:08:49.987 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.add_host
14:08:49.988 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.add_torrents
14:08:49.988 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.connect
14:08:49.989 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.connected
14:08:49.990 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.deregister_event_listener
14:08:49.990 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.disconnect
14:08:49.991 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.download_torrent_from_url
14:08:49.991 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.edit_host
14:08:49.992 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.get_config
14:08:49.992 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.get_events
14:08:49.993 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.get_host_status
14:08:49.994 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.get_hosts
14:08:49.994 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.get_magnet_info
14:08:49.995 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.get_plugin_info
14:08:49.995 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.get_plugin_resources
14:08:49.996 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.get_plugins
14:08:49.997 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.get_torrent_files
14:08:49.997 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.get_torrent_info
14:08:49.998 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.get_torrent_status
14:08:49.998 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.register_event_listener
14:08:49.999 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.remove_host
14:08:49.999 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.set_config
14:08:50.000 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.start_daemon
14:08:50.001 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.stop_daemon
14:08:50.001 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.update_ui
14:08:50.002 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: web.upload_plugin
14:08:50.003 [DEBUG   ][deluge.config                 :183 ] Setting key "hosts" to: [('09858649d0604151bed025f0e0310660', u'127.0.0.1', 58846, u'localclient', u'117d6b9a3136483fe2dbe0f96528d400ab5711c6')] (of type: <type 'list'>)
14:08:50.004 [DEBUG   ][deluge.config                 :443 ] Config /var/lib/deluge/.config/hostlist.conf version: 1.3 loaded: {u'hosts': [[u'bd7bb099053342079435d71c45c49062', u'127.0.0.1', 58846, u'localclient', u'117d6b9a3136483fe2dbe0f96528d400ab5711c6']]}
14:08:50.005 [DEBUG   ][deluge.config                 :529 ] File version 3 is not in input_range (1, 2), ignoring converter function..
14:08:50.006 [DEBUG   ][deluge.ui.coreconfig          :22  ] CoreConfig init..
14:08:50.007 [DEBUG   ][deluge.ui.sessionproxy        :33  ] SessionProxy init..
14:08:50.008 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: webutils.get_languages
14:08:50.009 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: auth.change_password
14:08:50.009 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: auth.check_session
14:08:50.010 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: auth.delete_session
14:08:50.011 [DEBUG   ][deluge.ui.web.json_api        :272 ] Registering method: auth.login
14:08:50.011 [DEBUG   ][deluge.configmanager          :94  ] Getting config: web.conf
14:08:50.012 [DEBUG   ][deluge.pluginmanagerbase      :54  ] Plugin manager init..
14:08:50.012 [DEBUG   ][deluge.configmanager          :94  ] Getting config: web.conf
14:08:50.119 [DEBUG   ][deluge.pluginmanagerbase      :117 ] Found plugin: Extractor 0.6 at /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/plugins/Extractor-0.6-py2.7.egg
14:08:50.120 [DEBUG   ][deluge.pluginmanagerbase      :117 ] Found plugin: Execute 1.2 at /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/plugins/Execute-1.2-py2.7.egg
14:08:50.120 [DEBUG   ][deluge.pluginmanagerbase      :117 ] Found plugin: Stats 0.3.2 at /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/plugins/Stats-0.3.2-py2.7.egg
14:08:50.121 [DEBUG   ][deluge.pluginmanagerbase      :117 ] Found plugin: Blocklist 1.3 at /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/plugins/Blocklist-1.3-py2.7.egg
14:08:50.122 [DEBUG   ][deluge.pluginmanagerbase      :117 ] Found plugin: AutoAdd 1.6 at /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/plugins/AutoAdd-1.6-py2.7.egg
14:08:50.122 [DEBUG   ][deluge.pluginmanagerbase      :117 ] Found plugin: Label 0.2 at /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/plugins/Label-0.2-py2.7.egg
14:08:50.123 [DEBUG   ][deluge.pluginmanagerbase      :117 ] Found plugin: Notifications 0.2 at /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/plugins/Notifications-0.2-py2.7.egg
14:08:50.124 [DEBUG   ][deluge.pluginmanagerbase      :117 ] Found plugin: Toggle 0.3 at /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/plugins/Toggle-0.3-py2.7.egg
14:08:50.124 [DEBUG   ][deluge.pluginmanagerbase      :117 ] Found plugin: WebUi 0.1 at /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/plugins/WebUi-0.1-py2.7.egg
14:08:50.125 [DEBUG   ][deluge.pluginmanagerbase      :117 ] Found plugin: Scheduler 0.2 at /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/plugins/Scheduler-0.2-py2.7.egg
14:08:50.125 [INFO    ][deluge.ui.web.server          :700 ] Starting webui server at PID 19894
14:08:50.129 [INFO    ][twisted                       :154 ] Site starting on 8112
14:08:50.132 [INFO    ][twisted                       :154 ] Starting factory <twisted.web.server.Site instance at 0x7fbed29a6a28>
14:08:50.134 [INFO    ][deluge.ui.web.server          :715 ] Serving at http://0.0.0.0:8112/
14:09:13.173 [INFO    ][twisted                       :154 ] "82.60.197.2" - - [14/Oct/2018:12:09:12 +0000] "GET / HTTP/1.1" 200 2301 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
14:09:13.235 [DEBUG   ][deluge.ui.web.server          :248 ] Requested path: ext-all-notheme.css
14:09:13.237 [DEBUG   ][deluge.ui.web.server          :256 ] Serving path: /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/ui/web/css/ext-all-notheme.css
14:09:13.253 [INFO    ][twisted                       :154 ] "82.60.197.2" - - [14/Oct/2018:12:09:13 +0000] "GET /css/ext-all-notheme.css HTTP/1.1" 200 16803 "http://MYADDRESS:8112/" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
14:09:13.263 [INFO    ][twisted                       :154 ] "82.60.197.2" - - [14/Oct/2018:12:09:13 +0000] "GET /themes/css/xtheme-gray.css HTTP/1.1" 200 39688 "http://MYADDRESS:8112/" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
14:09:13.266 [DEBUG   ][deluge.ui.web.server          :248 ] Requested path: deluge.css
14:09:13.267 [DEBUG   ][deluge.ui.web.server          :256 ] Serving path: /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/ui/web/css/deluge.css
14:09:13.270 [INFO    ][twisted                       :154 ] "82.60.197.2" - - [14/Oct/2018:12:09:13 +0000] "GET /css/deluge.css HTTP/1.1" 200 2283 "http://MYADDRESS:8112/" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
14:09:13.272 [DEBUG   ][deluge.ui.web.server          :248 ] Requested path: ext-extensions.css
14:09:13.273 [DEBUG   ][deluge.ui.web.server          :256 ] Serving path: /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/ui/web/css/ext-extensions.css
14:09:13.276 [INFO    ][twisted                       :154 ] "82.60.197.2" - - [14/Oct/2018:12:09:13 +0000] "GET /css/ext-extensions.css HTTP/1.1" 200 1041 "http://MYADDRESS:8112/" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
14:09:13.879 [INFO    ][twisted                       :154 ] "82.60.197.2" - - [14/Oct/2018:12:09:13 +0000] "GET /gettext.js HTTP/1.1" 200 2976 "http://MYADDRESS:8112/" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
14:09:13.885 [DEBUG   ][deluge.ui.web.server          :410 ] Requested path: ext-base.js
14:09:13.886 [DEBUG   ][deluge.ui.web.server          :427 ] Serving path: /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/ui/web/js/extjs/ext-base.js
14:09:13.892 [INFO    ][twisted                       :154 ] "82.60.197.2" - - [14/Oct/2018:12:09:13 +0000] "GET /js/ext-base.js HTTP/1.1" 200 11827 "http://MYADDRESS:8112/" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
14:09:13.944 [DEBUG   ][deluge.ui.web.server          :410 ] Requested path: ext-extensions.js
14:09:13.946 [DEBUG   ][deluge.ui.web.server          :427 ] Serving path: /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/ui/web/js/extjs/ext-extensions.js
14:09:13.956 [INFO    ][twisted                       :154 ] "82.60.197.2" - - [14/Oct/2018:12:09:13 +0000] "GET /js/ext-extensions.js HTTP/1.1" 200 11977 "http://MYADDRESS:8112/" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
14:09:13.959 [DEBUG   ][deluge.ui.web.server          :410 ] Requested path: ext-all.js
14:09:13.960 [DEBUG   ][deluge.ui.web.server          :427 ] Serving path: /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/ui/web/js/extjs/ext-all.js
14:09:14.078 [INFO    ][twisted                       :154 ] "82.60.197.2" - - [14/Oct/2018:12:09:13 +0000] "GET /js/ext-all.js HTTP/1.1" 200 199307 "http://MYADDRESS:8112/" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
14:09:14.080 [DEBUG   ][deluge.ui.web.server          :410 ] Requested path: deluge-all.js
14:09:14.081 [DEBUG   ][deluge.ui.web.server          :427 ] Serving path: /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/ui/web/js/deluge-all.js
14:09:14.101 [INFO    ][twisted                       :154 ] "82.60.197.2" - - [14/Oct/2018:12:09:13 +0000] "GET /js/deluge-all.js HTTP/1.1" 200 31678 "http://MYADDRESS:8112/" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
14:09:14.235 [INFO    ][twisted                       :154 ] "82.60.197.2" - - [14/Oct/2018:12:09:14 +0000] "GET /themes/images/default/tree/loading.gif HTTP/1.1" 200 771 "http://MYADDRESS:8112/" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
14:09:14.239 [DEBUG   ][deluge.ui.web.server          :248 ] Requested path: ok.png
14:09:14.240 [DEBUG   ][deluge.ui.web.server          :256 ] Serving path: /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/ui/web/icons/ok.png
14:09:14.242 [INFO    ][twisted                       :154 ] "82.60.197.2" - - [14/Oct/2018:12:09:14 +0000] "GET /icons/ok.png HTTP/1.1" 200 789 "http://MYADDRESS:8112/" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
14:09:14.312 [DEBUG   ][deluge.ui.web.server          :248 ] Requested path: deluge-32.png
14:09:14.313 [DEBUG   ][deluge.ui.web.server          :256 ] Serving path: /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/ui/web/icons/deluge-32.png
14:09:14.316 [INFO    ][twisted                       :154 ] "82.60.197.2" - - [14/Oct/2018:12:09:14 +0000] "GET /icons/deluge-32.png HTTP/1.1" 200 1149 "http://MYADDRESS:8112/" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
14:09:14.322 [DEBUG   ][deluge.ui.web.server          :248 ] Requested path: deluge-512.png
14:09:14.323 [DEBUG   ][deluge.ui.web.server          :256 ] Serving path: /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/ui/web/icons/deluge-512.png
14:09:14.327 [INFO    ][twisted                       :154 ] "82.60.197.2" - - [14/Oct/2018:12:09:14 +0000] "GET /icons/deluge-512.png HTTP/1.1" 200 19697 "http://MYADDRESS:8112/" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
14:09:14.330 [DEBUG   ][deluge.ui.web.server          :248 ] Requested path: deluge-192.png
14:09:14.331 [DEBUG   ][deluge.ui.web.server          :256 ] Serving path: /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/ui/web/icons/deluge-192.png
14:09:14.334 [INFO    ][twisted                       :154 ] "82.60.197.2" - - [14/Oct/2018:12:09:14 +0000] "GET /icons/deluge-192.png HTTP/1.1" 200 6627 "http://MYADDRESS:8112/" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
14:09:14.336 [DEBUG   ][deluge.ui.web.server          :248 ] Requested path: deluge.png
14:09:14.337 [DEBUG   ][deluge.ui.web.server          :256 ] Serving path: /usr/local/lib/python2.7/dist-packages/deluge-2.0.0b2.dev175-py2.7.egg/deluge/ui/web/icons/deluge.png
14:09:14.339 [INFO    ][twisted                       :154 ] "82.60.197.2" - - [14/Oct/2018:12:09:14 +0000] "GET /icons/deluge.png HTTP/1.1" 200 574 "http://MYADDRESS:8112/" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"

Thanks again for your efforts.

Bye
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Web Interface doesn't start

Post by Cas »

Can you enable browser console and check for errors.

Oh are you using a reverse proxy? Can you check local access.
RDonovan
New User
New User
Posts: 9
Joined: Fri Apr 15, 2016 2:42 pm

Re: Web Interface doesn't start

Post by RDonovan »

No reverse proxy.

Here the error in the chrome console:

Code: Select all

- Uncaught ReferenceError: Invalid left-hand side expression in postfix operation		deluge-all.js:1
- (index):41 Uncaught ReferenceError: Deluge is not defined						(index):41
    at (index):41
(anonymous) @ (index):41
let me know if you need more.

thanks!
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Web Interface doesn't start

Post by Cas »

Hmm it could be an issue with slimit minifying. Let me push an update to better allow debugging because deluge-all.js is minified code... In the meantime you could try removing deluge-all.js to force it to fallback to deluge-all-debug.js.

Edit: Found the issue and will fix it soon. A workaround for you is to rename deluge-all-debug.js to deluge-all.js
RDonovan
New User
New User
Posts: 9
Joined: Fri Apr 15, 2016 2:42 pm

Re: Web Interface doesn't start

Post by RDonovan »

Thanks a lot!

Can’t try it right now but I’ll do ASAP.

Edit: workaround works fine!

Thanks again!
defaria
New User
New User
Posts: 4
Joined: Sat Jun 12, 2021 6:43 pm

Re: Web Interface doesn't start

Post by defaria »

Workaround doesn't work for me. deluge-all.js was not in my docker container. Tried copying deluge-all-debug.js and no difference. deluge-web.log has:

Code: Select all

11:37:53.699 [INFO    ][deluge.configmanager:52  ] Setting config directory to: /config
11:37:53.709 [INFO    ][deluge.ui.ui:70  ] Deluge ui 2.0.4.dev56
11:37:53.709 [INFO    ][deluge.ui.ui:72  ] Starting web ui..
11:37:54.638 [WARNING ][deluge.i18n.util           :83  ] IOError when loading translations: [Errno 2] No translation file found for domain: 'deluge'
11:37:54.660 [INFO    ][deluge.i18n.util           :102 ] Setting up translations from /usr/lib/python3.9/site-packages/deluge/i18n
11:37:54.690 [INFO    ][deluge.ui.web.server       :735 ] Starting webui server at PID 754
11:37:54.691 [INFO    ][twisted                    :147 ] Site starting on 8112
11:37:54.691 [INFO    ][twisted                    :147 ] Starting factory <twisted.web.server.Site object at 0x7fc7492adc70>
11:37:54.692 [INFO    ][deluge.ui.web.server       :750 ] Serving at http://0.0.0.0:8112/
11:37:54.744 [INFO    ][deluge.pluginmanagerbase   :189 ] Plugin AutoRemovePlus enabled...
But I still cannot browse to 192.168.0.251:8112 (that's the IP address of my Synology NAS where the docker container is running). Note that I was working with the deluge container trying to address the problem where torrents were not being removed by AddRemovePlus and saw that the mapping for the volume was not the same between deluge and sonarr so I changed it and now I can't get deluge to come up enough to access via the webui.
Post Reply