Skip to content

Postgres bind port forces 5432 - regression bug #2958

@seanmullane

Description

@seanmullane

When trying to start Marquez 0.50.0 with the default Postgres port 5432 and another Postgres instance already running on 5432, Marquez fails to come up, citing this error:
ERROR: for marquez-db Cannot start service db: driver failed programming external connectivity on endpoint marquez-db (17965108eb9858b73cd22cad4a76ec003b239a40692ef0f32e03053f0022a365): Error starting userland proxy: listen tcp4 0.0.0.0:5432: bind: address already in use

It appears this is a regression related to #1956

docker-compose.yml contains the lines:
db: image: postgres:14 container_name: marquez-db ports: - "${POSTGRES_PORT}:${POSTGRES_PORT}"

Having port twice prevents the random assignment that was added in this PR: #2000

This looks like it was fixed in 0.23.0 and the regression appeared in 0.26.0 when 5432 was changed back to 5432:5432

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions