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

centos 7.9 安装失败 #2231

Open
molixiaoge opened this issue May 6, 2024 · 0 comments
Open

centos 7.9 安装失败 #2231

molixiaoge opened this issue May 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@molixiaoge
Copy link

What is version of KubeKey has the issue?

./kk create cluster --with-kubernetes v1.22.12 --with-kubesphere v3.4.1

What is your os environment?

centos 7.9

KubeKey config file

No response

A clear and concise description of what happend.

centos 7.9安装失败 ,提示

14:49:41 CST [ERRO] check remote file exist err: strconv.Atoi: parsing "/etc/profile.d/lang.sh: line 29: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8)\r\n1": invalid syntax
14:49:41 CST message: [local-server]
scp file /home/dy/test/kubekey/kubekey/local-server/initOS.sh to remote /usr/local/bin/kube-scripts/initOS.sh failed: validate md5sum failed 413f5dbc1189c90466d1e3d4a1f63d9f != /etc/profile.d/lang.sh: line 29: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8)

Relevant log output

[root@local-server kubekey]# ./kk create cluster --with-kubernetes v1.22.12 --with-kubesphere v3.4.1


 _   __      _          _   __           
| | / /     | |        | | / /           
| |/ / _   _| |__   ___| |/ /  ___ _   _ 
|    \| | | | '_ \ / _ \    \ / _ \ | | |
| |\  \ |_| | |_) |  __/ |\  \  __/ |_| |
\_| \_/\__,_|_.__/ \___\_| \_/\___|\__, |
                                    __/ |
                                   |___/

14:51:37 CST [GreetingsModule] Greetings
14:51:38 CST message: [local-server]
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
Greetings, KubeKey!
14:51:38 CST success: [local-server]
14:51:38 CST [NodePreCheckModule] A pre-check on nodes
14:51:38 CST success: [local-server]
14:51:38 CST [ConfirmModule] Display confirmation form
+--------------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
| name         | sudo | curl | openssl | ebtables | socat | ipset | ipvsadm | conntrack | chrony | docker | containerd | nfs client | ceph client | glusterfs client | time                                                                                                                                                        |
+--------------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
| local-server | y    | y    | y       | y        | y     | y     |         | y         | y      | y      | y          |            |             |                  | bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
CST 14:51:38 |
+--------------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+

This is a simple check of your environment.
Before installation, ensure that your machines meet all requirements specified at
https://github.com/kubesphere/kubekey#requirements-and-recommendations

Continue this installation? [yes/no]: yes
14:51:39 CST success: [LocalHost]
14:51:39 CST [NodeBinariesModule] Download installation binaries
14:51:39 CST message: [localhost]
downloading amd64 kubeadm v1.22.12 ...
14:51:39 CST message: [localhost]
kubeadm is existed
14:51:39 CST message: [localhost]
downloading amd64 kubelet v1.22.12 ...
14:51:40 CST message: [localhost]
kubelet is existed
14:51:40 CST message: [localhost]
downloading amd64 kubectl v1.22.12 ...
14:51:41 CST message: [localhost]
kubectl is existed
14:51:41 CST message: [localhost]
downloading amd64 helm v3.9.0 ...
14:51:41 CST message: [localhost]
helm is existed
14:51:41 CST message: [localhost]
downloading amd64 kubecni v1.2.0 ...
14:51:41 CST message: [localhost]
kubecni is existed
14:51:41 CST message: [localhost]
downloading amd64 crictl v1.24.0 ...
14:51:41 CST message: [localhost]
crictl is existed
14:51:41 CST message: [localhost]
downloading amd64 etcd v3.4.13 ...
14:51:41 CST message: [localhost]
etcd is existed
14:51:41 CST message: [localhost]
downloading amd64 docker 24.0.6 ...
14:51:42 CST message: [localhost]
docker is existed
14:51:42 CST message: [localhost]
downloading amd64 calicoctl v3.26.1 ...
14:51:42 CST message: [localhost]
calicoctl is existed
14:51:42 CST success: [LocalHost]
14:51:42 CST [ConfigureOSModule] Get OS release
14:51:42 CST success: [local-server]
14:51:42 CST [ConfigureOSModule] Prepare to init OS
14:51:43 CST success: [local-server]
14:51:43 CST [ConfigureOSModule] Generate init os script
14:51:43 CST [ERRO] check remote file exist err: strconv.Atoi: parsing "bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)\r\n/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)\r\n/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)\r\n0": invalid syntax
14:51:43 CST message: [local-server]
scp file /home/dy/test/kubekey/kubekey/local-server/initOS.sh to remote /usr/local/bin/kube-scripts/initOS.sh failed: validate md5sum failed 413f5dbc1189c90466d1e3d4a1f63d9f != bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
413f5dbc1189c90466d1e3d4a1f63d9f
14:51:43 CST retry: [local-server]
14:51:48 CST [ERRO] check remote file exist err: strconv.Atoi: parsing "bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)\r\n/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)\r\n/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)\r\n1": invalid syntax
14:51:48 CST message: [local-server]
scp file /home/dy/test/kubekey/kubekey/local-server/initOS.sh to remote /usr/local/bin/kube-scripts/initOS.sh failed: validate md5sum failed 413f5dbc1189c90466d1e3d4a1f63d9f != bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
413f5dbc1189c90466d1e3d4a1f63d9f
14:51:48 CST retry: [local-server]
14:51:53 CST [ERRO] check remote file exist err: strconv.Atoi: parsing "bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)\r\n/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)\r\n/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)\r\n1": invalid syntax
14:51:53 CST message: [local-server]
scp file /home/dy/test/kubekey/kubekey/local-server/initOS.sh to remote /usr/local/bin/kube-scripts/initOS.sh failed: validate md5sum failed 413f5dbc1189c90466d1e3d4a1f63d9f != bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
413f5dbc1189c90466d1e3d4a1f63d9f
14:51:53 CST failed: [local-server]
error: Pipeline[CreateClusterPipeline] execute failed: Module[ConfigureOSModule] exec failed: 
failed: [local-server] [GenerateScript] exec failed after 3 retries: scp file /home/dy/test/kubekey/kubekey/local-server/initOS.sh to remote /usr/local/bin/kube-scripts/initOS.sh failed: validate md5sum failed 413f5dbc1189c90466d1e3d4a1f63d9f != bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
413f5dbc1189c90466d1e3d4a1f63d9f

Additional information

No response

@molixiaoge molixiaoge added the bug Something isn't working label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant