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

k8s安装失败 #495

Open
liangyuanpeng opened this issue Nov 19, 2019 · 7 comments
Open

k8s安装失败 #495

liangyuanpeng opened this issue Nov 19, 2019 · 7 comments

Comments

@liangyuanpeng
Copy link
Member

报错信息如下

2019-11-19T02:15:12Z INFO     : Load hook config from '/hooks/kubesphere/installRunner.py'
Error loading shared library libpython2.7.so.1.0: Exec format error (needed by /usr/bin/python)
Error relocating /usr/bin/python: Py_Main: symbol not found
2019-11-19T02:15:12Z ERROR    : Hook '/hooks/kubesphere/installRunner.py --config' output:
Unable to initialize hook manager: cannot get config for hook '/hooks/kubesphere/installRunner.py': exit status 127
@pixiake
Copy link
Collaborator

pixiake commented Nov 19, 2019

怎么样安装的呢?

@liangyuanpeng
Copy link
Member Author

liangyuanpeng commented Nov 19, 2019

1.使用openebs作为默认sc
2.run command kubectl apply -f https://raw.githubusercontent.com/kubesphere/ks-installer/master/kubesphere-minimal.yaml
3.run command kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f

more detail

[root@localhost ~]# kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.3", GitCommit:"5e53fd6bc17c0dec8434817e69b04a25d8ae0ff0", GitTreeState:"clean", BuildDate:"2019-06-06T01:44:30Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.3", GitCommit:"5e53fd6bc17c0dec8434817e69b04a25d8ae0ff0", GitTreeState:"clean", BuildDate:"2019-06-06T01:36:19Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
[root@localhost ~]# helm version
Client: &version.Version{SemVer:"v2.12.1", GitCommit:"02a47c7249b1fc6d8fd3b94e6b4babf9d818144e", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.12.1", GitCommit:"02a47c7249b1fc6d8fd3b94e6b4babf9d818144e", GitTreeState:"clean"}

@duanmengkk
Copy link

我也出现了一样的问题和一样的报错日志,我是下载的3.21的代码,构建的镜像

@pixiake
Copy link
Collaborator

pixiake commented Mar 24, 2022

@duanmeng1992 You can add executable permission to installRunner.py before trying to build image.

chmod +x -R ./controller

@duanmengkk
Copy link

@duanmeng1992 You can add executable permission to installRunner.py before trying to build image.

chmod +x -R ./controller

thanks, i resolved it in other ways

@shookM
Copy link

shookM commented Jun 21, 2023

@duanmeng1992 You can add executable permission to installRunner.py before trying to build image.

chmod +x -R ./controller

thanks, i resolved it in other ways

你好,麻烦问下这个是如何解决的呢?

@yeqiugt
Copy link

yeqiugt commented Oct 8, 2024

@duanmeng1992 You can add executable permission to installRunner.py before trying to build image.

chmod +x -R ./controller

thanks, i resolved it in other ways

你好,麻烦问下这个是如何解决的呢?

It may be a problem with Unix line breaks. Try find . -type f -exec dos2unix {} \;

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

5 participants