Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Runtime error in docker container #155

@ElectroGloop

Description

@ElectroGloop

I can create the docker container and it starts ok.
When monitoring the logs and pausing a video in Materialious I get the following error:

[2026-02-21 12:52:18 +0000] [1] [INFO] Starting gunicorn 23.0.0
[2026-02-21 12:52:18 +0000] [1] [INFO] Listening at: http://0.0.0.0:80 (1)
[2026-02-21 12:52:18 +0000] [1] [INFO] Using worker: uvicorn.workers.UvicornWorker
[2026-02-21 12:52:18 +0000] [7] [INFO] Booting worker with pid: 7
[2026-02-21 12:52:19 +0000] [8] [INFO] Booting worker with pid: 8
[2026-02-21 12:52:19 +0000] [9] [INFO] Booting worker with pid: 9
[2026-02-21 12:52:19 +0000] [10] [INFO] Booting worker with pid: 10
[2026-02-21 12:52:19 +0000] [11] [INFO] Booting worker with pid: 11
[2026-02-21 12:52:19 +0000] [12] [INFO] Booting worker with pid: 12
[2026-02-21 12:52:19 +0000] [13] [INFO] Booting worker with pid: 13
[2026-02-21 12:52:19 +0000] [14] [INFO] Booting worker with pid: 14
[2026-02-21 12:52:22 +0000] [7] [INFO] Started server process [7]
[2026-02-21 12:52:22 +0000] [7] [INFO] Waiting for application startup.
[2026-02-21 12:52:22 +0000] [9] [INFO] Started server process [9]
[2026-02-21 12:52:22 +0000] [9] [INFO] Waiting for application startup.
[2026-02-21 12:52:22 +0000] [8] [INFO] Started server process [8]
[2026-02-21 12:52:22 +0000] [8] [INFO] Waiting for application startup.
[2026-02-21 12:52:23 +0000] [10] [INFO] Started server process [10]
[2026-02-21 12:52:23 +0000] [10] [INFO] Waiting for application startup.
[2026-02-21 12:52:23 +0000] [11] [INFO] Started server process [11]
[2026-02-21 12:52:23 +0000] [11] [INFO] Waiting for application startup.
[2026-02-21 12:52:23 +0000] [7] [INFO] Application startup complete.
[2026-02-21 12:52:23 +0000] [9] [INFO] Application startup complete.
[2026-02-21 12:52:23 +0000] [8] [INFO] Application startup complete.
[2026-02-21 12:52:23 +0000] [12] [INFO] Started server process [12]
[2026-02-21 12:52:23 +0000] [12] [INFO] Waiting for application startup.
[2026-02-21 12:52:23 +0000] [10] [INFO] Application startup complete.
[2026-02-21 12:52:23 +0000] [13] [INFO] Started server process [13]
[2026-02-21 12:52:23 +0000] [13] [INFO] Waiting for application startup.
[2026-02-21 12:52:23 +0000] [11] [INFO] Application startup complete.
[2026-02-21 12:52:23 +0000] [14] [INFO] Started server process [14]
[2026-02-21 12:52:23 +0000] [14] [INFO] Waiting for application startup.
[2026-02-21 12:52:23 +0000] [13] [INFO] Application startup complete.
[2026-02-21 12:52:23 +0000] [12] [INFO] Application startup complete.
[2026-02-21 12:52:23 +0000] [14] [INFO] Application startup complete.
172.28.0.1:60544 - "POST /video/dQw4w9WgXcQ HTTP/1.1" 500
ERROR - �h��y�,-2143134672 - litestar - middleware - Uncaught exception (connection_type=http, path='/video/dQw4w9WgXcQ'):
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/litestar/middleware/_internal/exceptions/middleware.py", line 158, in call
await self.app(scope, receive, capture_response_started)
File "/usr/local/lib/python3.11/site-packages/litestar/_asgi/asgi_router.py", line 100, in call
await asgi_app(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/litestar/middleware/authentication.py", line 87, in call
auth_result = await self.authenticate_request(ASGIConnection(scope))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/main.py", line 89, in authenticate_request
result = await connections.get("default").execute_query_dict(
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/tortoise/connection.py", line 283, in getattr
return getattr(self._get_handler(), name)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/tortoise/connection.py", line 279, in _get_handler
return require_context().connections
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/tortoise/context.py", line 111, in require_context
raise RuntimeError(
RuntimeError: No TortoiseContext is currently active. Use 'async with TortoiseContext() as ctx:' to create one, or call Tortoise.init() for global state.

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