Skip to content

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

@guitarzero

Description

@guitarzero

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

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