Opened 21 months ago

Last modified 21 months ago

#3547 new bug

deluge-web error related to GeoIP

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


Currently preparing a PR on github to publish an updated version of deluge for Synology NAS for version DSM6 and DSM7

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/ -d
Traceback (most recent call last):
  File "/volume1/@appstore/deluge/env/bin/deluge-web", line 8, in <module>
  File "/volume1/@appstore/deluge/env/lib/python3.10/site-packages/deluge/ui/web/", line 6, in start
  File "/volume1/@appstore/deluge/env/lib/python3.10/site-packages/deluge/ui/web/", line 71, in start
    self.__server = server.DelugeWeb(options=self.options)
  File "/volume1/@appstore/deluge/env/lib/python3.10/site-packages/deluge/ui/web/", line 692, in __init__
    self.web_api = WebApi()
  File "/volume1/@appstore/deluge/env/lib/python3.10/site-packages/deluge/ui/web/", line 380, in __init__
    self.hostlist = HostList()
  File "/volume1/@appstore/deluge/env/lib/python3.10/site-packages/deluge/ui/", line 102, in __init__
  File "/volume1/@appstore/deluge/env/lib/python3.10/site-packages/deluge/ui/", 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 Changed 21 months ago by th0ma7

Seems similar to:

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.