Page MenuHomeSolus

qomui has a missing dependency: geoiplookup
Open, NormalPublic

Description

Qomui uses a background service qol-assist-migration.service
This crashes upon import of a VPN configuration (wireguard to be precise, which I built myself)
In the service log the following error is present.

python3[18613]: Traceback (most recent call last):
                                             File "/usr/lib/python3.6/site-packages/qomui/update.py", line 76, in run
                                               self.add_folder()
                                             File "/usr/lib/python3.6/site-packages/qomui/update.py", line 899, in add_folder
                                               self.import_configs()
                                             File "/usr/lib/python3.6/site-packages/qomui/update.py", line 994, in import_configs
                                               country_check = check_output(["geoiplookup", "{}".format(ip)]).decode("utf-8")
                                             File "/usr/lib/python3.6/subprocess.py", line 356, in check_output
                                               **kwargs).stdout
                                             File "/usr/lib/python3.6/subprocess.py", line 423, in run
                                               with Popen(*popenargs, **kwargs) as process:
                                             File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
                                               restore_signals, start_new_session)
                                             File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
                                               raise child_exception_type(errno_num, err_msg, err_filename)
                                           FileNotFoundError: [Errno 2] No such file or directory: 'geoiplookup': 'geoiplookup'

I have not seen which package would provide the binary geoiplookup.

Event Timeline

joebonrichie added a subscriber: joebonrichie.

Try installing python-geoip first

Yeah python-geoip was already installed. It does not provide the geoiplookup program.

Try doing this, maybe this helps:

sudo eopkg check | grep Broken | awk '{print $4}' | xargs sudo eopkg it --reinstall

Alright, looks like we need to package geoip, geoip-database and maybe geoip-database-extra from http://www.maxmind.com/app/c

edit: So you'll want to package https://github.com/maxmind/geoip-api-c/ and download the databases from https://geolite.maxmind.com/download/geoip/database/ and pop them in /usr/share/GeoIP

Are these required as part of qomui itself or only the WireGuard component of it?

DataDrake triaged this task as Normal priority.Oct 2 2019, 5:50 PM
DataDrake moved this task from Backlog to Package Fixes on the Software board.

@joebonrichie I stumbled upon this while running into the same error so I just wanted to add the additional info you asked, I was testing with some OpenVPN config files and running into the same error so I believe these are required as a part of qomui itself rather than just the wireguard component