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

none: "The none driver requires conntrack to be installed" - but it's installed! #7301

Closed
vlganev opened this issue Mar 28, 2020 · 8 comments · Fixed by #7305
Closed

none: "The none driver requires conntrack to be installed" - but it's installed! #7301

vlganev opened this issue Mar 28, 2020 · 8 comments · Fixed by #7305
Labels
co/none-driver kind/support Categorizes issue or PR as a support question.

Comments

@vlganev
Copy link

vlganev commented Mar 28, 2020

Hello,
I get an error The none driver requires conntrack to be installed for kubernetes version
I the same time I have:

vg@frozensoul:~$ conntrack --version
conntrack v1.4.5 (conntrack-tools)

I guess the issue is here

		if version.GTE(semver.MustParse("1.18.0-beta.1")) {
			err := exec.Command("conntrack").Run()
			if err != nil {
				exit.WithCodeT(exit.Config, "The none driver requires conntrack to be installed for kubernetes version {{.k8sVersion}}", out.V{"k8sVersion": version.String()})
			}
		}

After commenting the code above it seems fine.

@tstromberg
Copy link
Contributor

It may be in your path as vg, but I suspect it is not in roots path. Can you confirm:

sudo su -
conntrack --version

@tstromberg
Copy link
Contributor

If nothing else, this error message is misleading and unhelpful.

If you don't mind, can you also share the output of:

whereis conntrack

and:

sudo su -
echo $PATH

I think a better error message here would be:

conntrack not found in root users $PATH

@tstromberg tstromberg added co/none-driver needs-solution-message Issues where where offering a solution for an error would be helpful kind/support Categorizes issue or PR as a support question. labels Mar 28, 2020
@tstromberg
Copy link
Contributor

tstromberg commented Mar 28, 2020

Also, this should be calling exec.LookPath instead of running conntrack, or at least running conntrack --version. Thank you for raising this to our attention.

@vlganev
Copy link
Author

vlganev commented Mar 28, 2020

Hi, this is the output

root@frozensoul:~# conntrack --version
conntrack v1.4.5 (conntrack-tools)
root@frozensoul:~# whereis conntrack
conntrack: /usr/sbin/conntrack /usr/share/man/man8/conntrack.8.gz
root@frozensoul:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Thank you for the quick response!

@tstromberg
Copy link
Contributor

OK. I think this check is bad, but can you confirm one last thing for me? I'd like to see the output of:

sudo conntrack; echo $?

Thank you for your speedy replies. =)

@tstromberg tstromberg changed the title The none driver requires conntrack to be installed for kubernetes none: "The none driver requires conntrack to be installed" - but it's installed! Mar 28, 2020
@vlganev
Copy link
Author

vlganev commented Mar 28, 2020

The output is interesting:

vg@frozensoul~$ sudo conntrack; echo $?
conntrack v1.4.5 (conntrack-tools): you have to specify `--src' and `--dst'
Try `conntrack -h' or 'conntrack --help' for more information.
2

@tstromberg
Copy link
Contributor

@vlganev - any chance you could confirm that the binary produced by #7305 fixes your issue?

https://storage.googleapis.com/minikube-builds/7305/minikube-linux-amd64

Thank you!

@vlganev
Copy link
Author

vlganev commented Mar 29, 2020

@tstromberg I've just tested it and it's working.
Thank you!

@tstromberg tstromberg removed the needs-solution-message Issues where where offering a solution for an error would be helpful label Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/none-driver kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants