Advice:"Right-click the PowerShell icon and select Run as Administrator to open PowerShell in elevated mode.",
Issues:[]int{7347},
GOOS:[]string{"windows"},
},
"HYPERV_FILE_DELETE_FAILURE":{
Regexp:re(`Unable to remove machine directory`),
Advice:"You may need to stop the Hyper-V Manager and run `minikube delete` again.",
Issues:[]int{6804},
GOOS:[]string{"windows"},
},
// KVM
"KVM2_NOT_FOUND":{
Regexp:re(`Driver "kvm2" not found. Do you have the plugin binary .* accessible in your PATH`),
...
...
@@ -136,12 +175,12 @@ var vmProblems = map[string]match{
GOOS:[]string{"linux"},
},
"KVM2_RESTART_NO_IP":{
Regexp:re(`Error starting stopped host: Machine didn't return an IP after 120 seconds`),
Regexp:re(`Error starting stopped host: Machine didn't return an IP after \d+ seconds`),
Advice:"The KVM driver is unable to resurrect this old VM. Please run `minikube delete` to delete it and try again.",
Issues:[]int{3901,3434},
},
"KVM2_START_NO_IP":{
Regexp:re(`Error in driver during machine creation: Machine didn't return an IP after 120 seconds`),
Regexp:re(`Error in driver during machine creation: Machine didn't return an IP after \d+ seconds`),
Advice:"Check your firewall rules for interference, and run 'virt-host-validate' to check for KVM configuration issues. If you are running minikube within a VM, consider using --driver=none",
@@ -179,7 +218,12 @@ var vmProblems = map[string]match{
GOOS:[]string{"linux"},
Issues:[]int{5950},
},
"KVM_OOM":{
Regexp:re(`cannot set up guest memory.*Cannot allocate memory`),
Advice:"Choose a smaller value for --memory, such as 2000",
GOOS:[]string{"linux"},
Issues:[]int{6366},
},
// None
"NONE_APISERVER_MISSING":{
Regexp:re(`apiserver process never appeared`),
...
...
@@ -226,7 +270,6 @@ var vmProblems = map[string]match{
Issues:[]int{6083,5636},
GOOS:[]string{"linux"},
},
// VirtualBox
"VBOX_BLOCKED":{
Regexp:re(`NS_ERROR_FAILURE.*0x80004005`),
...
...
@@ -293,19 +336,24 @@ var vmProblems = map[string]match{
},
"VBOX_VTX_DISABLED":{
Regexp:re(`This computer doesn't have VT-X/AMD-v enabled`),
Advice:"Virtualization support is disabled on your computer. If you are running minikube within a VM, try '--driver=none'. Otherwise, consult your systems BIOS manual for how to enable virtualization.",
Advice:"Virtualization support is disabled on your computer. If you are running minikube within a VM, try '--driver=docker'. Otherwise, consult your systems BIOS manual for how to enable virtualization.",
Issues:[]int{3900,4730},
},
"VERR_VERR_VMX_DISABLED":{
Regexp:re(`VT-x is disabled.*VERR_VMX_MSR_ALL_VMX_DISABLED`),
Advice:"Virtualization support is disabled on your computer. If you are running minikube within a VM, try '--driver=none'. Otherwise, consult your systems BIOS manual for how to enable virtualization.",
Advice:"Virtualization support is disabled on your computer. If you are running minikube within a VM, try '--driver=docker'. Otherwise, consult your systems BIOS manual for how to enable virtualization.",
Issues:[]int{5282,5456},
},
"VBOX_VERR_VMX_NO_VMX":{
Regexp:re(`VT-x is not available.*VERR_VMX_NO_VMX`),
Advice:"Your host does not support virtualization. If you are running minikube within a VM, try '--driver=none'. Otherwise, enable virtualization in your BIOS",
Advice:"Your host does not support virtualization. If you are running minikube within a VM, try '--driver=docker'. Otherwise, enable virtualization in your BIOS",
Issues:[]int{1994,5326},
},
"VERR_SVM_DISABLED":{
Regexp:re(`VERR_SVM_DISABLED`),
Advice:"Your host does not support virtualization. If you are running minikube within a VM, try '--driver=docker'. Otherwise, enable virtualization in your BIOS",
Issues:[]int{7074},
},
"VBOX_HOST_NETWORK":{
Regexp:re(`Error setting up host only network on machine start.*Unspecified error`),
Advice:"VirtualBox cannot create a network, probably because it conflicts with an existing network that minikube no longer knows about. Try running 'minikube delete'",
...
...
@@ -355,10 +403,10 @@ var netProblems = map[string]match{
Issues:[]int{3922,6109,6123},
},
"PULL_TIMEOUT_EXCEEDED":{
Regexp:re(`failed to pull image.*Client.Timeout exceeded while awaiting headers`),
Advice:"A firewall is blocking Docker the minikube VM from reaching the internet. You may need to configure it to use a proxy.",
Regexp:re(`ImagePull.*Timeout exceeded while awaiting headers`),
Advice:"A firewall is blocking Docker the minikube VM from reaching the image repository. You may need to select --image-repository, or use a proxy.",
URL:proxyDoc,
Issues:[]int{3898},
Issues:[]int{3898,6070},
},
"SSH_AUTH_FAILURE":{
Regexp:re(`ssh: handshake failed: ssh: unable to authenticate.*, no supported methods remain`),
...
...
@@ -388,6 +436,12 @@ var netProblems = map[string]match{
Issues:[]int{6107},
URL:proxyDoc,
},
"NOT_A_TLS_HANDSHAKE":{
Regexp:re(`tls: first record does not look like a TLS handshake`),
Advice:"Ensure that your value for HTTPS_PROXY points to an HTTPS proxy rather than an HTTP proxy",
Issues:[]int{7286},
URL:proxyDoc,
},
}
// deployProblems are Kubernetes deployment problems.
...
...
@@ -407,7 +461,7 @@ var deployProblems = map[string]match{
},
"APISERVER_MISSING":{
Regexp:re(`apiserver process never appeared`),
Advice:"Check that the provided apiserver flags are valid",
Advice:"Check that the provided apiserver flags are valid, and that SELinux is disabled",
Issues:[]int{4536,6014},
},
"APISERVER_TIMEOUT":{
...
...
@@ -446,6 +500,21 @@ var deployProblems = map[string]match{
Advice:"Confirm that you have a working internet connection and that your VM has not run out of resources by using: 'minikube logs'",
Issues:[]int{4749},
},
"CERT_NOT_SIGNED_BY_CA":{
Regexp:re(`not signed by CA certificate ca: crypto/rsa: verification error`),
Advice:"Try 'minikube delete' to force new SSL certificates to be installed",
Issues:[]int{6596},
},
"DOCKER_RESTART_FAILED":{
Regexp:re(`systemctl -f restart docker`),
Advice:"Remove the incompatible --docker-opt flag if one was provided",
Issues:[]int{7070},
},
"WAITING_FOR_SSH":{
Regexp:re(`waiting for SSH to be available`),
Advice:"Try 'minikube delete', and disable any conflicting VPN or firewall software",
Issues:[]int{4617},
},
}
// osProblems are operating-system specific issues
...
...
@@ -472,6 +541,12 @@ var osProblems = map[string]match{
GOOS:[]string{"darwin","linux"},
Issues:[]int{5714},
},
"JUJU_LOCK_DENIED":{
Regexp:re(`unable to open /tmp/juju.*: permission denied`),
Advice:"Run 'sudo sysctl fs.protected_regular=1', or try a driver which does not require root, such as '--driver=docker'",
GOOS:[]string{"linux"},
Issues:[]int{6391},
},
}
// stateProblems are issues relating to local state
...
...
@@ -491,4 +566,9 @@ var stateProblems = map[string]match{
Advice:"The minikube VM is offline. Please run 'minikube start' to start it again.",