Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mhn install fails on linux ubuntu 18.04.6:No such file or directory: '/opt/mhn/server/../../GeoLite2-City.mmdb' #848

Open
yunzhongzhilong opened this issue Aug 27, 2022 · 1 comment

Comments

@yunzhongzhilong
Copy link

Hello
i am trying install mhn on fresh install of ubuntu 18.04.6
Get an error.

Initializing database, please be patient. This can take several minutes

  • python initdatabase.py
    Traceback (most recent call last):
    File "initdatabase.py", line 1, in
    from mhn import create_clean_db
    File "/opt/mhn/server/mhn/init.py", line 42, in
    from mhn.ui.views import ui
    File "/opt/mhn/server/mhn/ui/views.py", line 10, in
    from mhn.ui.utils import get_flag_ip, get_sensor_name
    File "/opt/mhn/server/mhn/ui/utils.py", line 15, in
    geoip2_reader = geoip2.database.Reader(MHN_SERVER_HOME+'/../../GeoLite2-City.mmdb')
    File "/opt/mhn/env/lib/python2.7/site-packages/geoip2/database.py", line 86, in init
    self._db_reader = maxminddb.open_database(fileish, mode)
    File "/opt/mhn/env/lib/python2.7/site-packages/maxminddb/init.py", line 46, in open_database
    return maxminddb.reader.Reader(database, mode)
    File "/opt/mhn/env/lib/python2.7/site-packages/maxminddb/reader.py", line 51, in init
    with open(database, "rb") as db_file:
    IOError: [Errno 2] No such file or directory: '/opt/mhn/server/../../GeoLite2-City.mmdb'
@d1str0
Copy link
Collaborator

d1str0 commented Aug 27, 2022

I recommend commenting out that step of installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants