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

The connection to the server localhost:8080 was refused - did you specify the right host or port? #14363

Closed
lucas-sw opened this issue Jun 20, 2022 · 6 comments
Labels
kind/support Categorizes issue or PR as a support question. triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@lucas-sw
Copy link

What Happened?

I am begginner to minikube, I'm learning to the chapter named getStart in minikube documen.
when I choose macOs, ARM64, Stable, Binary Download . And Installed succeeded.
however, i meet the problem as following.
image

it seems like the minikube fialed to start, but I don't know what's wrong

Attach the log file

minikube logs --file=log.txt
E0621 07:30:12.210317 44240 logs.go:256] failed to output audit logs: failed to create audit report: failed to set the log file: unable to open /Users/sunwang/.minikube/logs/audit.json: open /Users/sunwang/.minikube/logs/audit.json: permission denied
🤷 The control plane node "" does not exist.
👉 To start a cluster, run: "minikube start"

Operating System

macOS (Default)

Driver

No response

@kv5h
Copy link

kv5h commented Jun 21, 2022

Hi, some says below will resolve the problem:

mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

Ref: kubernetes/kubernetes#50295

@zhan9san
Copy link
Contributor

Hi @lucas-sw

I am glad to help you.

Could you plz provide more detailed information? e.g. the full console output of minikube start command.

And if you never add config in ~/.kube folder, you can try to remote this folder. and try the following command.

minikube delete
minikube start

@RA489
Copy link

RA489 commented Jun 22, 2022

@lucas-sw could you please check if api server is actually running and hasn’t crashed?

@RA489
Copy link

RA489 commented Jun 22, 2022

/kind support
/triage needs-information

@k8s-ci-robot k8s-ci-robot added kind/support Categorizes issue or PR as a support question. triage/needs-information Indicates an issue needs more information in order to work on it. labels Jun 22, 2022
@spowelljr
Copy link
Member

Hi @lucas-sw, we haven't heard back from you, do you still have this issue?
There isn't enough information in this issue to make it actionable, and a long enough duration has passed, so this issue is likely difficult to replicate.

I will close this issue for now but feel free to reopen when you feel ready to provide more information.

@Ramyavoora
Copy link

when im trying to install kubectl on ubuntu instance getting below error as The connection to the server localhost:8080 was refused - did you specify the right host or port?
Please help me out to get out of this error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

7 participants