Skip to content

This a valid MaxMind DB file ? #59

@Rushaway

Description

@Rushaway
2024-06-26T09:15:06+0200 | ERROR | Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/torchlight/CommandHandler.py", line 49, in Setup
    command = subklass(
  File "/usr/local/lib/python3.10/site-packages/torchlight/Commands.py", line 430, in __init__
    self.geo_ip = geoip2.database.Reader(
  File "/usr/local/lib/python3.10/site-packages/geoip2/database.py", line 119, in __init__
    self._db_reader = maxminddb.open_database(fileish, mode)
  File "/usr/local/lib/python3.10/site-packages/maxminddb/__init__.py", line 80, in open_database
    return cast(Reader, _extension.Reader(database, mode))
maxminddb.errors.InvalidDatabaseError: Error opening database file (/usr/share/GeoIP/GeoLite2-City.mmdb). Is this a valid MaxMind DB file?

A good QOL improvement will be to automaticly grab the last version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions