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

[ENH] - Suggest starting docker-mac-net-connect when unable to connect load balancer #2863

Open
aktech opened this issue Nov 25, 2024 · 0 comments

Comments

@aktech
Copy link
Member

aktech commented Nov 25, 2024

Feature description

While deploying Nebari on Mac OSX at times it may happen that the deployment cli is unable to connect to the load balancer IP, there could potentially happen for several reasons for this, but the most common reason is the Docker container (load balancer IP) is not directly accessible from the host machine. This is an expected behaviour for docker on mac, this is why we recommend using: https://github.com/chipmk/docker-mac-net-connect

Now if a developer didn't start the above or it was stopped for some reason, they may see something like the following:

[terraform]: Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
[terraform]:
[terraform]: Outputs:
[terraform]:
[terraform]: load_balancer_address = {
[terraform]:   "hostname" = ""
[terraform]:   "ip" = "172.18.1.100"
[terraform]: }
Attempt 1 failed to connect to tcp tcp://172.18.1.100:80
Attempt 2 failed to connect to tcp tcp://172.18.1.100:80
Attempt 3 failed to connect to tcp tcp://172.18.1.100:80
Attempt 4 failed to connect to tcp tcp://172.18.1.100:80
Attempt 5 failed to connect to tcp tcp://172.18.1.100:80
Attempt 6 failed to connect to tcp tcp://172.18.1.100:80
Attempt 7 failed to connect to tcp tcp://172.18.1.100:80
Attempt 8 failed to connect to tcp tcp://172.18.1.100:80
Attempt 9 failed to connect to tcp tcp://172.18.1.100:80
Attempt 10 failed to connect to tcp tcp://172.18.1.100:80
ERROR: After stage=04-kubernetes-ingress unable to connect to ingress host=172.18.1.100 port=80

It could to hard to figure out why this is happening, a suggestion to print/log suggestion to check if docker-mac-net-connect is running or not (if the user is on Mac).

Value and/or benefit

This would make the reason of the failure very obvious for the user and will improve the developer experience, given most of the Nebari devs are using Mac.

Anything else?

Note that this is already documented in the official docs, this issue is only for suggesting the user (in the command line) potential solution while deploying Nebari, when they see the above-mentioned error.

No response

@aktech aktech changed the title [ENH] - Suggest starting docker-mac-net-connect when unable to connect load balancer [ENH] - Suggest starting docker-mac-net-connect when unable to connect load balancer Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New 🚦
Development

No branches or pull requests

1 participant