Giter Site home page Giter Site logo

tar: kubernetes/server/bin/kube-scheduler.docker_tag: Cannot change ownership to uid 0, gid 0: about kubernetes-vagrant-centos-cluster HOT 10 CLOSED

rootsongjc avatar rootsongjc commented on May 22, 2024
tar: kubernetes/server/bin/kube-scheduler.docker_tag: Cannot change ownership to uid 0, gid 0:

from kubernetes-vagrant-centos-cluster.

Comments (10)

rootsongjc avatar rootsongjc commented on May 22, 2024

Can you paste the log output in details? Which steps did you see the errors?

from kubernetes-vagrant-centos-cluster.

ibit2 avatar ibit2 commented on May 22, 2024

@rootsongjc

    node1: Created symlink from /etc/systemd/system/multi-user.target.wants/flanneld.service to /usr/lib/systemd/system/flanneld.service.
    node1: Created symlink from /etc/systemd/system/docker.service.wants/flanneld.service to /usr/lib/systemd/system/flanneld.service.
    node1: enable docker
    node1: Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
    node1: copy pem, token files
    node1: kubernetes/
    node1: kubernetes/server/
    node1: kubernetes/server/bin/
    node1: kubernetes/server/bin/kube-scheduler.docker_tag
    node1: tar: kubernetes/server/bin/kube-scheduler.docker_tag: Cannot change ownership to uid 0, gid 0: Operation not permitted
    node1: kubernetes/server/bin/kube-controller-manager.docker_tag
    node1: tar: kubernetes/server/bin/kube-controller-manager.docker_tag: Cannot change ownership to uid 0, gid 0: Operation not permitted
    node1: kubernetes/server/bin/kube-apiserver.docker_tag
    node1: tar: kubernetes/server/bin/kube-apiserver.docker_tag: Cannot change ownership to uid 0, gid 0: Operation not permitted
    node1: kubernetes/server/bin/kube-scheduler.tar
    node1: tar: kubernetes/server/bin/kube-scheduler.tar: Cannot change ownership to uid 0, gid 0: Operation not permitted
    node1: kubernetes/server/bin/kubelet
    node1: tar: kubernetes/server/bin/kubelet: Cannot change ownership to uid 0, gid 0: Operation not permitted
    node1: kubernetes/server/bin/hyperkube
    node1: tar: kubernetes/server/bin/hyperkube: Cannot change ownership to uid 0, gid 0: Operation not permitted
    node1: kubernetes/server/bin/mounter
    node1: tar: kubernetes/server/bin/mounter: Cannot change ownership to uid 0, gid 0: Operation not permitted
    node1: kubernetes/server/bin/kube-apiserver.tar
    node1: tar: kubernetes/server/bin/kube-apiserver.tar: Cannot change ownership to uid 0, gid 0: Operation not permitted
    node1: kubernetes/server/bin/kube-scheduler
    node1: tar: kubernetes/server/bin/kube-scheduler: Cannot change ownership to uid 0, gid 0: Operation not permitted
    node1: kubernetes/server/bin/cloud-controller-manager.docker_tag
    node1: tar: kubernetes/server/bin/cloud-controller-manager.docker_tag: Cannot change ownership to uid 0, gid 0: Operation not permitted
    node1: kubernetes/server/bin/kube-controller-manager.tar
    node1: tar: kubernetes/server/bin/kube-controller-manager.tar: Cannot change ownership to uid 0, gid 0: Operation not permitted

from kubernetes-vagrant-centos-cluster.

rootsongjc avatar rootsongjc commented on May 22, 2024
Cannot change ownership to uid 0, gid 0: Operation not permitted

It seems that the tar execution failed.

from kubernetes-vagrant-centos-cluster.

ibit2 avatar ibit2 commented on May 22, 2024

@rootsongjc 那咋整啊

from kubernetes-vagrant-centos-cluster.

rootsongjc avatar rootsongjc commented on May 22, 2024

I can't reproduce the situation.

from kubernetes-vagrant-centos-cluster.

Cxywzx avatar Cxywzx commented on May 22, 2024

我也遇到这个问题了,和用户权限有关。
问题复现:
kubernetes-vagrant-centos-cluster 所属用户为普通用户,而用root用户执行vagrant up,过程中就会出现这个问题。
解决:
都用同一个用户,比如root用户执行,
chown -R root:root kubernetes-vagrant-centos-cluster
vagrant up
无此错误。

from kubernetes-vagrant-centos-cluster.

Cxywzx avatar Cxywzx commented on May 22, 2024

uid 0, gid 0 表示使用root用户执行的
而我新建的普通用户 uid=1000

from kubernetes-vagrant-centos-cluster.

samacs avatar samacs commented on May 22, 2024

Just in case anyone runs into the same problem, the issue is that when the untar happens it keeps the same ownership and permissions.

I fixed the problem thanks to this post changing the line 137:

tar -xzvf /vagrant/kubernetes-server-linux-amd64.tar.gz -C /vagrant

to:

tar -xzvf /vagrant/kubernetes-server-linux-amd64.tar.gz --no-same-owner -C /vagrant

Note the --no-same-owner switch before -C /vagrant.

@rootsongjc Thank you so much for putting this thing together. Awesome!

from kubernetes-vagrant-centos-cluster.

rootsongjc avatar rootsongjc commented on May 22, 2024

@samacs Can you file a PR to fix this problem, thank you.

from kubernetes-vagrant-centos-cluster.

samacs avatar samacs commented on May 22, 2024

@rootsongjc Sure! I'm just trying to figure out if this would happen on any platform. But I definitely will!

from kubernetes-vagrant-centos-cluster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.