Project

General

Profile

Actions

Bug #7548

closed

mentat-enricher.py error in Vagrant box

Added by Rajmund Hruška over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
01/27/2022
Due date:
% Done:

100%

Estimated time:
To be discussed:
No

Description

When I executed mentat-controller.py --command start the following exception occurred.

Traceback (most recent call last):
  File "/var/mentat/venv/bin/mentat-enricher.py", line 7, in <module>
    exec(compile(f.read(), __file__, 'exec'))
  File "/vagrant/bin/mentat-enricher.py", line 66, in <module>
    mentat.module.enricher.MentatEnricherDaemon().run()
  File "/var/mentat/venv/lib/python3.7/site-packages/pyzenkit/baseapp.py", line 1553, in run
    self._stage_setup()
  File "/var/mentat/venv/lib/python3.7/site-packages/pyzenkit/baseapp.py", line 1409, in _stage_setup
    self._sub_stage_setup()
  File "/var/mentat/venv/lib/python3.7/site-packages/pyzenkit/zendaemon.py", line 743, in _sub_stage_setup
    component.setup(self)
  File "/vagrant/lib/mentat/daemon/component/enricher.py", line 182, in setup
    self._setup_plugins(daemon)
  File "/vagrant/lib/mentat/daemon/component/enricher.py", line 159, in _setup_plugins
    self._setup_plugin(daemon, plugin_conf)
  File "/vagrant/lib/mentat/daemon/component/enricher.py", line 147, in _setup_plugin
    plugin.setup(daemon, plugin_conf.get('config', None))
  File "/vagrant/lib/mentat/plugin/enricher/geoip.py", line 65, in setup
    self.geoip_service = geoip_manager.service()
  File "/vagrant/lib/mentat/services/geoip.py", line 235, in service
    self._service.setup()
  File "/vagrant/lib/mentat/services/geoip.py", line 91, in setup
    self.asndb = geoip2.database.Reader(self.fn_asndb)
  File "/var/mentat/venv/lib/python3.7/site-packages/geoip2/database.py", line 85, in __init__
    self._db_reader = maxminddb.open_database(fileish, mode)
  File "/var/mentat/venv/lib/python3.7/site-packages/maxminddb/__init__.py", line 41, in open_database
    return maxminddb.reader.Reader(database, mode)
  File "/var/mentat/venv/lib/python3.7/site-packages/maxminddb/reader.py", line 51, in __init__
    with open(database, 'rb') as db_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/GeoIP/GeoLite2-ASN.mmdb'


Related issues

Related to Mentat - Task #7041: Use Vagrant as alternative tool for local developmentClosedJan Mach02/12/2021

Actions
Actions

Also available in: Atom PDF