goauthentik / goauthentik/authentik
Failed to start Authentik server
- Dominant language
- Python
- Stars
- 25.6k
- Forks
- 2k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 659
Description
**Describe the bug**
Authentik server is failing to start.
**To Reproduce**
Steps to reproduce the behavior:
1. Follow the steps on https://docs.goauthentik.io/install-config/install/docker-compose/ for Mac
2. Check logs for worker or server container.
**Expected behavior**
The server was suppose to start successfully for the initial setup.
**Screenshots**
**Logs**
```
{"domain_url": null, "event": "releasing database lock", "level": "info", "logger": "lifecycle.migrate", "pid": 7, "schema_name": "public", "timestamp": "2025-10-07T04:38:21.752437"}
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/manage.py", line 24, in
run_migrations()
~~~~~~~~~~~~~~^^
File "/lifecycle/migrate.py", line 115, in run_migrations
execute_from_command_line(["", "migrate_schemas"])
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ak-root/.venv/lib/python3.13/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
~~~~~~~~~~~~~~~^^
File "/ak-root/.venv/lib/python3.13/site-packages/django/core/management/__init__.py", line 416, in execute
django.setup()
~~~~~~~~~~~~^^
File "/ak-root/.venv/lib/python3.13/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ak-root/.venv/lib/python3.13/site-packages/django/apps/registry.py", line 116, in populate
app_config.import_models()
~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/ak-root/.venv/lib/python3.13/site-packages/django/apps/config.py", line 269, in import_models
self.models_module = import_module(models_module_name)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 1026, in exec_module
File "", line 488, in _call_with_frames_removed
File "/authentik/tasks/models.py", line 10, in
from authentik.events.logs import LogEvent
File "/authentik/events/logs.py", line 15, in
from authentik.events.utils import sanitize_dict
File "/authentik/events/utils.py", line 27, in
from authentik.events.context_processors.asn import ASN_CONTEXT_PROCESSOR
File "/authentik/events/context_processors/asn.py", line 82, in
ASN_CONTEXT_PROCESSOR = ASNContextProcessor()
File "/authentik/events/context_processors/mmdb.py", line 18, in __init__
self.load()
~~~~~~~~~^^
File "/authentik/events/context_processors/mmdb.py", line 30, in load
self.reader = Reader(path)
~~~~~~^^^^^^
File "/ak-root/.venv/lib/python3.13/site-packages/geoip2/database.py", line 116, in __init__
self._db_reader = maxminddb.open_database(fileish, mode)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/ak-root/.venv/lib/python3.13/site-packages/maxminddb/__init__.py", line 87, in open_database
return cast("Reader", _extension.Reader(database, mode))
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
maxminddb.errors.InvalidDatabaseError: Error opening database file (/geoip/GeoLite2-ASN.mmdb). Is this a valid MaxMind DB file?
```
**Version and Deployment (please complete the following information):**
- authentik version: 2025.8.4
- Deployment: docker-compose
Contributor guide
Assessment
This issue has not been assessed yet.