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

macos port 5000 already in use by Airplay Receiver #379

Open
BennyDeeDev opened this issue Aug 21, 2022 · 3 comments · Fixed by #419
Open

macos port 5000 already in use by Airplay Receiver #379

BennyDeeDev opened this issue Aug 21, 2022 · 3 comments · Fixed by #419
Labels
area/user-experiences Developer experience and suggestions on how to use thundernetes, installation, getting up & running

Comments

@BennyDeeDev
Copy link

BennyDeeDev commented Aug 21, 2022

Describe the bug

ERROR: failed to create cluster: command "docker run --name kind-worker --hostname kind-worker --label io.x-k8s.kind.role=worker --privileged --security-opt seccomp=unconfined --security-opt apparmor=unconfined --tmpfs /tmp --tmpfs /run --volume /var --volume /lib/modules:/lib/modules:ro -e KIND_EXPERIMENTAL_CONTAINERD_SNAPSHOTTER --detach --tty --label io.x-k8s.kind.cluster=kind --net kind --restart=on-failure:1 --init=false --publish=0.0.0.0:5000:5000/TCP --publish=0.0.0.0:10000:10000/TCP --publish=0.0.0.0:10001:10001/TCP kindest/node:v1.24.0@sha256:0866296e693efe1fed79d5e6c7af8df71fc73ae45e3679af05342239cdc5bc8e" failed with error: exit status 125
Command Output: 28ef95724a4daf43b462efdb8076fff0b7b28c3a0d6f0a22064a031634cc6ff3
docker: Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:5000 -> 0.0.0.0:0: listen tcp 0.0.0.0:5000: bind: address already in use.

I don't know if its really a bug, but when installing a thundernetes cluster with kind on macos I encountered that the port 5000 is already used by airplay.

For now I disabled airplay receiver like this:
https://developer.apple.com/forums/thread/682332

To Reproduce
Steps to reproduce the behavior:
kind create cluster --config /path/to/kind-config.yaml

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
  extraPortMappings:
  - containerPort: 5000
    hostPort: 5000
    listenAddress: "0.0.0.0"
    protocol: tcp
  - containerPort: 10000
    hostPort: 10000
    listenAddress: "0.0.0.0"
    protocol: tcp
  - containerPort: 10001
    hostPort: 10001
    listenAddress: "0.0.0.0"
    protocol: tcp

Desktop:

  • OS: macOS Monterey
  • Version: 12.5
@dgkanatsios
Copy link
Collaborator

Thanks for reporting this! We should definitely document how to change the port, apologies for the inconvenience! Keeping this issue open so we can work on this.

@dgkanatsios dgkanatsios added the area/user-experiences Developer experience and suggestions on how to use thundernetes, installation, getting up & running label Aug 22, 2022
@dgkanatsios dgkanatsios added this to the 0.6.0 milestone Aug 22, 2022
@snobu
Copy link
Contributor

snobu commented Sep 19, 2022

I can confirm 5000/TCP is in use on my Monterey as well.
Maybe we should pick a different port by default?
Something that's not on this list would have a good chance at being available -
https://www.liquisearch.com/list_of_tcp_and_udp_port_numbers/registered_ports

@dgkanatsios
Copy link
Collaborator

this was partially fixed in #419. It would be great if we could customize the port via Makefile though, so leaving this open

@dgkanatsios dgkanatsios reopened this Oct 10, 2022
@dgkanatsios dgkanatsios removed this from the 0.7.0 milestone Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/user-experiences Developer experience and suggestions on how to use thundernetes, installation, getting up & running
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants