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

Port 5000, already in use - not able to use different port #112

Open
1 of 2 tasks
bigbansal opened this issue Nov 10, 2024 · 1 comment
Open
1 of 2 tasks

Port 5000, already in use - not able to use different port #112

bigbansal opened this issue Nov 10, 2024 · 1 comment
Labels

Comments

@bigbansal
Copy link

System Info

  1. MacBook Pro 1 - Apple Silicon
  2. PyCharm
  3. Python 3.12

Information

  • The official example scripts
  • My own modified scripts

🐛 Describe the bug

Hi,

I am trying to run LlamaStack - But Facing Port 5000 already in use.

  1. llama-stack/llama-stack/distributions/ollama % docker compose up

Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:5000 -> 0.0.0.0:0: listen tcp4 0.0.0.0:5000: bind: address already in use

  1. I tried to change port like below in ollama compose file.
image

It is also able to run like below

image

2.1 Now when I try to hit api like below -

I get blank response - for Port 5000

image

I get Failed to connect error - for New Port 6000

image

Can you kindly guide ?

Error logs

Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:5000 -> 0.0.0.0:0: listen tcp4 0.0.0.0:5000: bind: address already in use

Expected behavior

I should be able to get response for api call.

@heyjustinai
Copy link
Member

hi @bigbansal, this is most probably your mac AirPlay is using 5000 by default, you could change the port used:

  1. if using docker run --port $LLAMA_STACK_PORT \ or refer here: https://llama-stack.readthedocs.io/en/latest/getting_started/index.html#start-the-llama-stack-server

  2. if using llama stack run add flag --port=5001

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

No branches or pull requests

2 participants