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

Config variable API_SERVER_PORT seems ignored #1891

Open
jucor opened this issue Jan 30, 2025 · 1 comment
Open

Config variable API_SERVER_PORT seems ignored #1891

jucor opened this issue Jan 30, 2025 · 1 comment

Comments

@jucor
Copy link
Contributor

jucor commented Jan 30, 2025

When setting up a local polis deployment, any modification to the API_SERVER_PORT in .env seems ignored: the server still tries to bind to port 5000.

I observed this when running on a mac machine where port 5000 is already occupied by Airplay Receiver: setting API_SERVER_PORT to 52000 didn't work, the server still kept complaining that port 5000 was already used and it couldn't bind to it. In the end I gave up and stopped Airplay Receiver, which allowed me to free up port 5000 and get going with my main task, but documenting it here as we might eventually want to fix that.

I tried a few things to no avail, including:

  • Modifying the server service in docker-compose.dev.yml by adding:
environment:
- API_SERVER_PORT
@jucor
Copy link
Contributor Author

jucor commented Jan 30, 2025

Citing @colinmegill today: yup, that's expected at the moment, with the port number being peppered in a few different places in the code. There are plans to fix that, but towards end of 2025.

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

1 participant