Replies: 5 comments 11 replies
|
Hey! Don't worry, this error is actually more common than it looks — and it has nothing to do with your login credentials or the Bracket app itself. The real problem is happening before the app even starts. When the backend boots up, it tries to connect to your PostgreSQL database, and it simply can't find it. The line that gives it away is this one: That's a DNS resolution failure — meaning the backend container is looking for the database by hostname and coming up empty. Here are the most likely culprits:
A quick way to confirm the DNS issue: get a shell inside the backend container and try pinging the database hostname: If that fails, you've confirmed the network/DNS issue and one of the steps above should fix it. Hope this helps — let us know what you find! |
|
Thank you for your information. I do have not much experience with docker, to what ip-adress needs the backend linking to? |
|
I got the following error. I solved this by placing the data folder from postgres in the home folder
the postgres log gives the following. and the log from the backend is: File "/app/.venv/lib/python3.14/site-packages/alembic/util/pyfiles.py", line 136, in load_module_py |
|
When i type the following command: docker exec -it bracket-backend bash this is the response: OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH inside the database i got the following error: |
|
So I have it running on a raspberi pi under local host in the web browser. |
Uh oh!
There was an error while loading. Please reload this page.
I get an error wenn trying to login the famous: internal error.
In the log of the backend contoiner i got the following:
File "/usr/local/lib/python3.14/contextlib.py", line 214, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.14/site-packages/fastapi/routing.py", line 153, in merged_lifespan
async with original_context(app) as maybe_original_state:
~~~~~~~~~~~~~~~~^^^^^
File "/usr/local/lib/python3.14/contextlib.py", line 214, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.14/site-packages/fastapi/routing.py", line 153, in merged_lifespan
async with original_context(app) as maybe_original_state:
~~~~~~~~~~~~~~~~^^^^^
File "/usr/local/lib/python3.14/contextlib.py", line 214, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.14/site-packages/fastapi/routing.py", line 153, in merged_lifespan
async with original_context(app) as maybe_original_state:
~~~~~~~~~~~~~~~~^^^^^
File "/usr/local/lib/python3.14/contextlib.py", line 214, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/app/bracket/app.py", line 45, in lifespan
await database.connect()
File "/app/.venv/lib/python3.14/site-packages/databases/core.py", line 112, in connect
await self._backend.connect()
File "/app/.venv/lib/python3.14/site-packages/databases/backends/postgres.py", line 74, in connect
self.pool = await asyncpg.create_pool(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.14/site-packages/asyncpg/pool.py", line 439, in async__init
await self._initialize()
File "/app/.venv/lib/python3.14/site-packages/asyncpg/pool.py", line 466, in _initialize
await first_ch.connect()
File "/app/.venv/lib/python3.14/site-packages/asyncpg/pool.py", line 153, in connect
self._con = await self._pool._get_new_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.14/site-packages/asyncpg/pool.py", line 538, in _get_new_connection
con = await self._connect(
^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
)
^
File "/app/.venv/lib/python3.14/site-packages/asyncpg/connection.py", line 2443, in connect
return await connect_utils._connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<22 lines>...
)
^
File "/app/.venv/lib/python3.14/site-packages/asyncpg/connect_utils.py", line 1249, in _connect
raise last_error or exceptions.TargetServerAttributeNotMatched(
...<2 lines>...
)
File "/app/.venv/lib/python3.14/site-packages/asyncpg/connect_utils.py", line 1218, in _connect
conn = await _connect_addr(
^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
)
^
File "/app/.venv/lib/python3.14/site-packages/asyncpg/connect_utils.py", line 1054, in _connect_addr
return await __connect_addr(params, True, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.14/site-packages/asyncpg/connect_utils.py", line 1099, in __connect_addr
tr, pr = await connector
^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.14/site-packages/asyncpg/connect_utils.py", line 969, in _create_ssl_connection
tr, pr = await loop.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
host, port)
^^^^^^^^^^^
File "/usr/local/lib/python3.14/asyncio/base_events.py", line 1119, in create_connection
infos = await self._ensure_resolved(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(host, port), family=family,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
type=socket.SOCK_STREAM, proto=proto, flags=flags, loop=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/asyncio/base_events.py", line 1505, in _ensure_resolved
return await loop.getaddrinfo(host, port, family=family, type=type,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
proto=proto, flags=flags)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/asyncio/base_events.py", line 936, in getaddrinfo
return await self.run_in_executor(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
None, getaddr_func, host, port, family, type, proto, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 86, in run
result = ctx.run(self.task)
File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 73, in run
return fn(*args, **kwargs)
File "/usr/local/lib/python3.14/socket.py", line 983, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Try again
[2026-05-25 12:38:49 +0000] [10] [ERROR] Application startup failed. Exiting.
[2026-05-25 12:38:49 +0000] [10] [INFO] Worker exiting (pid: 10)
[2026-05-25 12:38:50 +0000] [9] [ERROR] Worker (pid:10) exited with code 3
[2026-05-25 12:38:50 +0000] [9] [ERROR] Shutting down: Master
[2026-05-25 12:38:50 +0000] [9] [ERROR] Reason: Worker failed to boot.
All reactions