FastAPI-boilerplate icon indicating copy to clipboard operation
FastAPI-boilerplate copied to clipboard

Web application not starting : Name or service not known : socket.gaierror

Open guitarzero opened this issue 4 months ago • 1 comments

Describe the bug or question Web application does not start after a fresh install.

To Reproduce Just follow quick start guide here : https://benavlabs.github.io/FastAPI-boilerplate/getting-started/

Description After a compose up, i got :

web-1     |   File "/app/.venv/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 1075, in _connect
web-1     |     raise last_error or exceptions.TargetServerAttributeNotMatched(
web-1     |   File "/app/.venv/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 1049, in _connect
web-1     |     conn = await _connect_addr(
web-1     |            ^^^^^^^^^^^^^^^^^^^^
web-1     |   File "/app/.venv/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 886, in _connect_addr
web-1     |     return await __connect_addr(params, True, *args)
web-1     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
web-1     |   File "/app/.venv/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 931, in __connect_addr
web-1     |     tr, pr = await connector
web-1     |              ^^^^^^^^^^^^^^^
web-1     |   File "/app/.venv/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 802, in _create_ssl_connection
web-1     |     tr, pr = await loop.create_connection(
web-1     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
web-1     |   File "uvloop/loop.pyx", line 1982, in create_connection
web-1     | socket.gaierror: [Errno -2] Name or service not known

** Context ** Ubuntu 22

Thanks

guitarzero avatar Sep 07 '25 08:09 guitarzero

@LucasQR please check when possible

igorbenav avatar Nov 04 '25 00:11 igorbenav