Page 1 of 1

Country flags not showing

Posted: Wed Aug 11, 2021 12:53 pm
by zone4444
Hello,

Happy to join the forum.
Long time Deluge user. Unfortunately, I recently installed Deluge 2.0.3 / Libtorrent 1.1.13.0 on an Ubuntu 20.04 server and I cannot see the country flags when I click on the "peers" tab for any active torrent.
Any help would be appreciated.
Thank you in advance.

Re: Country flags not showing

Posted: Wed Aug 11, 2021 2:59 pm
by mhertz
Hi and welcome :)

I'm suspecting you need install python3-geoip, or do you have it already? Otherwise you might need geoip-database, for the actual IP list, and both are optional deps to deluge if I'm not mistaken, atleast listed as such. Last, there's a path to the database file somewhere in preferences of gtkui, I think under 'Other' if remember right, but it by default should list a default location used by most distro's already, but just mentioning for completeness.

If not helping then try enable debug-logging(check FAQ on website, under logging) and see if any clues about why fails, or post here.

Re: Country flags not showing

Posted: Wed Aug 11, 2021 4:37 pm
by zone4444
ty for the reply.
I am rather new to Linux but I have checked for both "python3-geoip" and "geoip-database" with the dkpg -l <package_name> command and here is the output of each:

********:~$ dpkg -l python3-geoip
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-=============-============-=============================================================
ii python3-geoip 1.3.2-3build1 amd64 Python3 bindings for the GeoIP IP-to-country resolver library

********:~$ dpkg -l geoip-database
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-==========================================================================
ii geoip-database 20191224-2 all IP lookup command line tools that use the GeoIP library (country database)

Re: Country flags not showing

Posted: Wed Aug 11, 2021 6:30 pm
by mhertz
Okay so that's ruled out then, as already installed I see. I'm affraid I have no clue then. I had an ubuntu 20.10 VM laying around which I then tested it in with deluge 2.0.3 and libtorrent 1.2.x and that worked fine with the flags, and I then downgraded to your libtorrent version 1.1.13 and same.

You haven't changed away from default path given to the GeoIP.dat file right? In preferences under 'Other', or in core.conf of profile under 'geoip_db_location'.

I would check debug-logging and see if some glarring error reported related, e.g. just for testing you could open a terminal and run 'deluge -L debug -l deluge.log' and quit it again and post the log here, in code tags i.e. [code]Pasted-data-here[/code], or just paste, mark pasted text with mouse and select 5'th option from left of top of post(shows '</>' on it, and if not already, select 'Full Editor & Preview' at bottom of your post to the left, to get that code-tag option appear).

Re: Country flags not showing

Posted: Wed Aug 11, 2021 7:53 pm
by zone4444
No, I haven't changed away from default path given to the GeoIP.dat file or in core.conf.

Ty, your replies helped me, although not in a direct way, to remember to check the GeoIP.dat file version that I downloaded (IPv4 vs IPv6, etc...)
I had the wrong version. Upon updating it, everything works fine.

On a lighter note, are there some detailed guides on how to upgrade to libtorrent 1.2.x and/or downgrade back to 1.1.13 later ?
Any benefit in upgrading to 1.2.x ?

Re: Country flags not showing

Posted: Wed Aug 11, 2021 10:17 pm
by mhertz
Glad you fixed it :) The geoip-database package should have the needed file in place already, without you needing download anything yourself i.e:

Code: Select all

 
File list of package geoip-database in focal of architecture all
/usr/share/GeoIP/GeoIP.dat
/usr/share/GeoIP/GeoIPv6.dat
/usr/share/doc/geoip-database/changelog.Debian.gz
/usr/share/doc/geoip-database/copyright
/usr/share/lintian/overrides/geoip-database

(Source: https://packages.ubuntu.com/focal/all/g ... e/filelist)

- but main thing of-course is it works for you regardless, so irrelevant.

I don't honestly know if you will benefit from upgrading libtorrent to 1.2.x or not, besides it being a newer release, so up to you, but I guess easiest way, if wanted, is use the 'libtorrent 1.2 daily builds' PPA, so I think something along:

Code: Select all

sudo add-apt-repository ppa:libtorrent.org/1.2-daily
sudo apt-get update
sudo apt install python3-libtorrent 
To revert, I'd guess:

Code: Select all

sudo apt remove python3-libtorrent 
sudo add-apt-repository -r ppa:libtorrent.org/1.2-daily
sudo apt-get update
sudo apt install python3-libtorrent 
I presume python3-libtorrent pulls libtorrent-rasterbar itself down with it. Please correct me here if I'm wrong in my command suggestions above, other ubuntu users thanks, as not one myself, and not at my computer now neither to check in my ubuntu VM.

Re: Country flags not showing

Posted: Thu Aug 12, 2021 6:11 am
by zone4444
Yeah, I just wanted a more up-to-date version of the GeoIP file I guess.
Thank you for all your replies and your time.
God bless.

Re: Country flags not showing

Posted: Thu Aug 12, 2021 8:39 am
by mhertz
Thanks brother, you're very welcome and god bless yourself :) BTW, latest ubuntu 21.04 features libtorrent 1.2.9, and the PPA I posted before features currently 1.2.12, so just slightly outdated from very newest official release 1.2.14, forgot wrote before so just adding now. Also, don't know if you already did, but I'd personally use GeoIP database from here, as e.g my used distro also uses in there geoip-database package, to get newest database available - also script available for updating there, e.g can be set to auto update through systemd-timer/chron etc. or just ran manually when wanted. Take care.

Re: Country flags not showing

Posted: Sun Aug 15, 2021 12:07 pm
by zone4444
Ty for the links. I usually update the GeoIP database from here.

Re: Country flags not showing

Posted: Sun Aug 15, 2021 12:29 pm
by mhertz
Yeah that's fine too, they're both new and up-to-date. I used that too originally but then link was seemingly down at a time and my update script gotten a 0byte file from there which I didn't notice at first, so changed to the other one as seemed more stable, also seeing as my used distro also gotten it from there, but as said, don't have to change then, and probably not an issue anymore(I now see a mention of downloads sometimes only available over IPv6, so probably that issue I encountered back then). Anyway, you're welcome :)

Edit: Not very important, but the mailfud.org database is more frequent updated(weekly like the maxmind-GeoLite2 database it's coming from VS every 2 months), also like the other provider from miyuru.lk once posted when brought up the alternative: "+1 for mailfud.org, seems to have more updated files than mine". Source: https://github.com/transmission-remote- ... ssues/1362

Last, the miyuru.lk source additionally include databases from db-ip.com, though e.g the webserver-analytics app matomo, supporting selecting between maxmind and db-ip.com sources in UI, states a notice about the maxmind database is more accurate, especially at city level, as also reported by a couple users at there github.

Just adding also for if others maybe interested :)