Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres bind port forces 5432 - regression bug #2958

Open
seanmullane opened this issue Oct 29, 2024 · 1 comment
Open

Postgres bind port forces 5432 - regression bug #2958

seanmullane opened this issue Oct 29, 2024 · 1 comment

Comments

@seanmullane
Copy link

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

@wslulciuc
Copy link
Member

wslulciuc commented Oct 31, 2024

Thanks for reporting this @seanmullane! I've added arg --db-port to our docker/up.sh allowing you to override the postgres port if there's already an instance listening on 5432, see #2961

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants