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

Ubuntu: kube-up.sh failed #39224

Closed
gyliu513 opened this issue Dec 25, 2016 · 18 comments
Closed

Ubuntu: kube-up.sh failed #39224

gyliu513 opened this issue Dec 25, 2016 · 18 comments

Comments

@gyliu513
Copy link
Contributor

Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):


Is this a BUG REPORT or FEATURE REQUEST? (choose one):

Kubernetes version (use kubectl version):

Environment:

  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

What happened:

root@k8s003:~/kubernetes/cluster# KUBERNETES_PROVIDER=ubuntu ./kube-up.sh
... Starting cluster using provider: ubuntu
... calling verify-prereqs
Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa)
... calling verify-kube-binaries
!!! kubectl appears to be broken or missing
!!! Cannot find kubernetes-server-linux-amd64.tar.gz
Required binaries appear to be missing. Do you wish to download them? [Y/n]
Y
Can't determine Kubernetes release.
/root/kubernetes/cluster/get-kube-binaries.sh should only be run from a prebuilt Kubernetes release.
Did you mean to use get-kube.sh instead?

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else do we need to know:

@RobinLe
Copy link

RobinLe commented Dec 26, 2016

I follow this page http://kubernetes.io/docs/getting-started-guides/ubuntu/manual/ install kubernetes on ubuntu. And got the same issue.

@padouch
Copy link

padouch commented Dec 27, 2016

I have same issue
export KUBE_VERSION=1.5.1
export FLANNEL_VERSION=0.6.2
export ETCD_VERSION=3.0.15

toor@vnnrh1104:~/kubernetes/cluster$ KUBERNETES_PROVIDER=ubuntu ./kube-up.sh
... Starting cluster using provider: ubuntu
... calling verify-prereqs
Identity added: /home/toor/.ssh/id_rsa (/home/toor/.ssh/id_rsa)
... calling verify-kube-binaries
!!! kubectl appears to be broken or missing
!!! Cannot find kubernetes-server-linux-amd64.tar.gz
Required binaries appear to be missing. Do you wish to download them? [Y/n]
y
Can't determine Kubernetes release.
/home/toor/kubernetes/cluster/get-kube-binaries.sh should only be run from a prebuilt Kubernetes release.
Did you mean to use get-kube.sh instead?

during investigation i use kubernetes/cluster/ubuntu$ ./download-release.sh
and binaries was downloaded.

~/kubernetes/cluster/ubuntu ~/kubernetes/cluster/ubuntu
Prepare flannel 0.6.2 release ...
Prepare etcd 3.0.15 release ...
Prepare kubernetes 1.5.1 release ...
Done! All your binaries locate in kubernetes/cluster/ubuntu/binaries directory
~/kubernetes/cluster/ubuntu

second try was find and result was

:~/kubernetes/cluster$ find / -name kubernetes-server-linux-amd64.tar.gz 2>/dev/null
/home/toor/kubernetes/cluster/kubernetes/server/kubernetes-server-linux-amd64.tar.gz

at the end i find function which try to read k8s version from file in KUBE_ROOT when i create this file download working

cat /home/toor/kubernetes/version
v1.5.1

@chaopengio
Copy link

chaopengio commented Jan 14, 2017

Same issue here. I'm using the v1.5.2 tag version.
OS: ubuntu 16.04.
First I meet the issue #38921
Then, I modified util.sh, and new issue come out.

$ export KUBE_VERSION=1.5.2
$ export FLANNEL_VERSION=0.7.0
$ export ETCD_VERSION=3.0.14
$ KUBERNETES_PROVIDER=ubuntu ./kube-up.sh
... Starting cluster using provider: ubuntu
... calling verify-prereqs
Identity added: /home/vip/.ssh/id_rsa (/home/vip/.ssh/id_rsa)
... calling verify-kube-binaries
!!! kubectl appears to be broken or missing
!!! Cannot find kubernetes-server-linux-amd64.tar.gz
Required binaries appear to be missing. Do you wish to download them? [Y/n]
Y
Can't determine Kubernetes release.
/home/vip/kubernetes-1.5.2/cluster/get-kube-binaries.sh should only be run from a prebuilt Kubernetes release.
Did you mean to use get-kube.sh instead?

@groundnuty
Copy link

localhost ubuntu 16.10
kubernetes nodes ubuntu 16.04
I managed to get a bit further but with each fix/hack new problem arises.

The tutorial in question
https://kubernetes.io/docs/getting-started-guides/ubuntu/manual/
is broken.

@gowrisankar22
Copy link

is there any workaround or fix is available for the same issue?

@MircoBlitz
Copy link

I have found a fix. Not pretty but works
edit the file
cluster/get-kube-binaries.sh in line 55 and edit it so it looks like this.

DOWNLOAD_URL_PREFIX="${KUBERNETES_RELEASE_URL}/v${KUBERNETES_RELEASE}"

there is a v missing in ${KUBERNETES_RELEASE}

@asifhj
Copy link

asifhj commented Mar 15, 2017

I have found that $KUBE_ROOT/version is missing. Added "v1.5.4" to version file then it worked.

This was referenced Mar 16, 2017
@asifhj
Copy link

asifhj commented Mar 17, 2017 via email

@ixdy
Copy link
Member

ixdy commented Apr 13, 2017

cc @resouer, @WIZARD-CXY

@ixdy ixdy changed the title kube-up.sh failed Ubuntu: kube-up.sh failed Apr 13, 2017
@ixdy
Copy link
Member

ixdy commented Apr 13, 2017

Ah, I think I know what's wrong here.

#38730 added a check (verify-kube-binaries) which is called before kube-up to make sure that all necessary binaries exist.

This works fine if you run kube-up.sh from a kubernetes.tar.gz release tarball, but not if you clone the repo and try running kube-up.sh, as the ubuntu docs suggest, since there's no version information available.

The ubuntu provider does try to download the necessary binaries, but it does so in kube-up.

I'm not sure what the proper fix is. The ubuntu provider seems to stage the binaries in a different way than other providers.

@WIZARD-CXY
Copy link
Contributor

@ixdy is correct.It is hard to say which approach is proper, but I recommend using the kubeadm to set up the cluster because I think it is easier.Although it's still in beta, with some modification you can still use it to set up a production-grade cluster @gyliu513

@gyliu513
Copy link
Contributor Author

gyliu513 commented Apr 14, 2017

Yes, I was already switched to kubeadm, also the kube-up.sh do not support running on ubuntu16.04, this is a big limitation, but seems no one is maintaining this.

Anyway, I can user kubeadm and customized ansible script to install a fresh cluster, and think this issue is low priority for now. ;-) @WIZARD-CXY

@ixdy
Copy link
Member

ixdy commented Apr 14, 2017

Maybe the correct fix is to update the docs to suggest using kubeadm instead of kube-up.sh?

@gyliu513
Copy link
Contributor Author

+1, an even more aggressive thinking is remove https://kubernetes.io/docs/getting-started-guides/ubuntu/manual/ , as this document was not maintained for a long time, the latest Kubernetes cannot work with this guidance. @ixdy

@ixdy
Copy link
Member

ixdy commented Apr 14, 2017

Fine with me, though I'll leave it to the maintainers of that doc to decide.

@ixdy
Copy link
Member

ixdy commented Apr 14, 2017

(Arguably if we delete that doc we should also delete the corresponding deprecated scripts in cluster/ubuntu.)

@resouer
Copy link
Contributor

resouer commented Apr 14, 2017

We already work out PR to deprecated all outdated scripts:

#44345
#44344
...

@gyliu513
Copy link
Contributor Author

close this one as we are planning to deprecate those scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests