Opened 2 years ago

Last modified 2 years ago

#3547 new bug

deluge-web error related to GeoIP

Reported by: Vincent Fortier Owned by:
Priority: minor Milestone: needs verified
Component: Unknown Version: 2.1.0
Keywords: Cc:

Description

Currently preparing a PR on github to publish an updated version of deluge for Synology NAS for version DSM6 and DSM7 https://github.com/SynoCommunity/spksrc/pull/5398

Client and server are version 2.1.1

I noticed at deluged startup that it was complaining related to GeoIP:

deluged.log:23:26:53 [WARNING ][deluge.core.preferencesmanager:465 ] GeoIP Unavailable: 'NoneType' object is not callable

Did a bit a search and noticed that while the C library was properly included within the deluge package file, that the python wheel was missing.

Right after I've included the GeoIP wheel in deluge package, the deluge-web daemon failed to start with the following error:

Starting deluge command /volume1/@appstore/deluge/env/bin/deluge-web -c /volume1/@appdata/deluge  -l /volume1/@appdata/deluge/logs/deluge-web.log -L info --logrotate -P /volume1/@appdata/deluge/logs/deluge-web.pid -d
Traceback (most recent call last):
  File "/volume1/@appstore/deluge/env/bin/deluge-web", line 8, in <module>
    sys.exit(start())
  File "/volume1/@appstore/deluge/env/lib/python3.10/site-packages/deluge/ui/web/__init__.py", line 6, in start
    web.start()
  File "/volume1/@appstore/deluge/env/lib/python3.10/site-packages/deluge/ui/web/web.py", line 71, in start
    self.__server = server.DelugeWeb(options=self.options)
  File "/volume1/@appstore/deluge/env/lib/python3.10/site-packages/deluge/ui/web/server.py", line 692, in __init__
    self.web_api = WebApi()
  File "/volume1/@appstore/deluge/env/lib/python3.10/site-packages/deluge/ui/web/json_api.py", line 380, in __init__
    self.hostlist = HostList()
  File "/volume1/@appstore/deluge/env/lib/python3.10/site-packages/deluge/ui/hostlist.py", line 102, in __init__
    default_hostlist(),
  File "/volume1/@appstore/deluge/env/lib/python3.10/site-packages/deluge/ui/hostlist.py", line 31, in default_hostlist
    username, password = get_localhost_auth()
TypeError: cannot unpack non-iterable NoneType object

It's not a blocker per say as I'll simply comment out GeoIP for now but wondered if there isn't an isse elsewhere?

Thnx in advance.

Change History (1)

comment:1 by Vincent Fortier, 2 years ago

Seems similar to: https://dev.deluge-torrent.org/ticket/2926

After starting fresh with a default core.conf file and importing my changes from my previous version all is now good :) Problem now resolved.

Note: See TracTickets for help on using tickets.