Skip to content

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

@bigbansal

Description

@bigbansal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions