koderover / zadig

Zadig is a cloud native, distributed, developer-oriented DevOps platform
https://koderover.com
Other
2.75k stars 821 forks source link

can't install Zadig on CentOS #2970

Closed fananchong closed 1 year ago

fananchong commented 1 year ago

执行: curl -SsL https://github.com/koderover/zadig/releases/latest/download/all_in_one_install_quickstart.sh | bash 提示:

 Welcome to the Koderover Installer
[INFO] Checking system for requirements...
main: 第 175 行:[: release:需要整数表达式
[ERROR] Detected lsb: CentOS
[ERROR] Quitting...
 *****************************************
 *    Koderover installer exit report    *
 *****************************************
 ✔ ROOT PRIVILEGE CHECK SUCCESS
[ERROR] ⚙ SYSTEM CHECK FAILED
[ERROR] ⚙ DEPENDENCY INSTALLATION FAILED
[ERROR] ⚙ KUBERNETES CLUSTER INITIALIZATION FAILED
[ERROR] ⚙ ZADIG INSTALLATION FAILED
 *****************************************
 *            END OF REPORT              *
 *****************************************
fananchong commented 1 year ago
# cat /etc/centos-release
CentOS Stream release 9
fananchong commented 1 year ago

all_in_one_install_quickstart.sh:143 行,从

_version="$(cat /etc/centos-release | sed 's/Linux //' | cut -d" " -f3 | cut -d "." -f1-2)"

改为

_version="$(cat /etc/centos-release | sed 's/[Linux|Stream] //' | cut -d" " -f3 | cut -d "." -f1-2)"

后,再运行提示:

 Welcome to the Koderover Installer
[INFO] Checking system for requirements...
[ERROR] This installer does not support centos 9
 *****************************************
 *    Koderover installer exit report    *
 *****************************************
 ✔ ROOT PRIVILEGE CHECK SUCCESS
[ERROR] ⚙ SYSTEM CHECK FAILED
[ERROR] ⚙ DEPENDENCY INSTALLATION FAILED
[ERROR] ⚙ KUBERNETES CLUSTER INITIALIZATION FAILED
[ERROR] ⚙ ZADIG INSTALLATION FAILED
 *****************************************
 *            END OF REPORT              *
 *****************************************

提示不支持centos 9

fansi404 commented 1 year ago

@fananchong here is the compatibility list: compatibility list

PS: the title has been changed to can't install Zadig on CentOS, please be noted

fananchong commented 1 year ago

297行:

  ubuntu16.04 | ubuntu18.04 | ubuntu20.04 | centos7.4 | centos7.5 | centos7.6 | centos7.7 | centos7.8 | centos7.9 | centos8.0 | centos8.1 | centos8.2 | centos8.3) ;;

改为:

  ubuntu16.04 | ubuntu18.04 | ubuntu20.04 | centos7.4 | centos7.5 | centos7.6 | centos7.7 | centos7.8 | centos7.9 | centos8.0 | centos8.1 | centos8.2 | centos8.3 | centos9) ;;

可以使用了 但是第一提示 host 没找到

我设置了 /etc/hosts ,再执行提示:

[INFO] Installing kubelet, kubeadm, kubectl and cni host packages
 Kubernetes host packages already installed
Loaded image: k8s.gcr.io/kube-controller-manager:v1.19.3
Loaded image: k8s.gcr.io/kube-proxy:v1.19.3
Loaded image: k8s.gcr.io/pause:3.2
Loaded image: k8s.gcr.io/coredns:1.7.0
Loaded image: k8s.gcr.io/kube-scheduler:v1.19.3
Loaded image: k8s.gcr.io/kube-apiserver:v1.19.3
Loaded image: k8s.gcr.io/etcd:3.4.13-0

W0817 16:47:24.435069  213218 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[init] Using Kubernetes version: v1.19.3
[preflight] Running pre-flight checks
        [WARNING FileExisting-tc]: tc not found in system path
        [WARNING SystemVerification]: this Docker version is not on the list of validated versions: 24.0.5. Latest validated version: 19.03
error execution phase preflight: [preflight] Some fatal errors occurred:
        [ERROR Port-6443]: Port 6443 is in use
        [ERROR Port-10259]: Port 10259 is in use
        [ERROR Port-10257]: Port 10257 is in use
        [ERROR FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml]: /etc/kubernetes/manifests/kube-apiserver.yaml already exists
        [ERROR FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml]: /etc/kubernetes/manifests/kube-controller-manager.yaml already exists
        [ERROR FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml]: /etc/kubernetes/manifests/kube-scheduler.yaml already exists
        [ERROR FileAvailable--etc-kubernetes-manifests-etcd.yaml]: /etc/kubernetes/manifests/etcd.yaml already exists
        [ERROR Port-10250]: Port 10250 is in use
        [ERROR Port-2379]: Port 2379 is in use
        [ERROR Port-2380]: Port 2380 is in use
        [ERROR DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
cp:是否覆盖'/root/.kube/config'? y
error: taint "node-role.kubernetes.io/master" not found
serviceaccount/weave-net unchanged
clusterrole.rbac.authorization.k8s.io/weave-net unchanged
clusterrolebinding.rbac.authorization.k8s.io/weave-net unchanged
role.rbac.authorization.k8s.io/weave-net unchanged
rolebinding.rbac.authorization.k8s.io/weave-net unchanged
daemonset.apps/weave-net unchanged
 infrastructure installation completed in 5 minute(s) and 1 second(s)
Either IP+PORT or DOMAIN shoule be provided
 *****************************************
 *    Koderover installer exit report    *
 *****************************************
 ✔ ROOT PRIVILEGE CHECK SUCCESS
 ✔ SYSTEM CHECK SUCCESS
 ✔ DEPENDENCY INSTALLATION SUCCESS
 ✔ KUBERNETES CLUSTER INITIALIZATION SUCCESS
[ERROR] ⚙ ZADIG INSTALLATION FAILED
 *****************************************
 *            END OF REPORT              *
 *****************************************

all_in_one_install_quickstart.sh 脚本有提供反安装功能吗?现在安装到一半,没法继续安装了

fansi404 commented 1 year ago

卸载重装吧,安装时请参考安装文档:all-in-one 安装

fananchong commented 1 year ago
Using -iter or -pbkdf2 would be better.
NO ENCRYPTION KEY PROVIDED, ZADIG HAS GENERATED AN ENCRYPTION KEY
B7C79B4AC65CE97169BC9A9DC0074068
THIS KEY WILL BE USED FOR POSSIBLE FUTURE REINSTALLATION, PLEASE SAVE THIS KEY CAREFULLY
installing helm client...
succeed to install helm client: version.BuildInfo{Version:"v3.6.1", GitCommit:"61d8e8c4a6f95540c15c6a65f36a6dd0a45e7a2f", GitTreeState:"clean", GoVersion:"go1.16.5"}
installing zadig ...
"koderover-chart" already exists with the same configuration, skipping
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "koderover-chart" chart repository
Update Complete. ⎈Happy Helming!⎈

Error: UPGRADE FAILED: post-upgrade hooks failed: timed out waiting for the condition
 *****************************************
 *    Koderover installer exit report    *
 *****************************************
 ✔ ROOT PRIVILEGE CHECK SUCCESS
 ✔ SYSTEM CHECK SUCCESS
 ✔ DEPENDENCY INSTALLATION SUCCESS
 ✔ KUBERNETES CLUSTER INITIALIZATION SUCCESS
[ERROR] ⚙ ZADIG INSTALLATION FAILED
 *****************************************
 *            END OF REPORT              *
 *****************************************
fansi404 commented 1 year ago

FAQ for reference:FAQ

fananchong commented 1 year ago
zadig         warpdrive-5fcdd6b5cb-xs8lw         1/1     Running   0          3d3h   10.32.0.19      qa4    <none>           <none>
zadig         zadig-portal-86794b76d9-cpx2k      1/1     Running   0          3d3h   10.32.0.21      qa4    <none>           <none>
zadig         zadig-zadig-dex-644d7d67b8-lfqb7   1/1     Running   2          3d3h   10.32.0.4       qa4    <none>           <none>
zadig         zadig-zadig-post-upgrade-gqmlk     0/1     Error     0          3d3h   10.32.0.11      qa4    <none>           <none>
zadig         zadig-zadig-post-upgrade-hd77h     0/1     Error     0          3d2h   10.32.0.11      qa4    <none>           <none>
zadig         zadig-zadig-post-upgrade-hx4w8     0/1     Error     0          3d3h   10.32.0.11      qa4    <none>           <none>
zadig         zadig-zadig-post-upgrade-ngtqz     0/1     Error     0          3d2h   10.32.0.11      qa4    <none>           <none>
zadig         zadig-zadig-post-upgrade-tthd4     0/1     Error     0          3d2h   10.32.0.11      qa4    <none>           <none>
zadig         zadig-zadig-post-upgrade-v6fvk     0/1     Error     0          3d2h   10.32.0.11      qa4    <none>           <none>
zadig         zadig-zadig-post-upgrade-wxn7s     0/1     Error     0          3d2h   10.32.0.11      qa4    <none>           <none>
# sudo kubectl logs zadig-zadig-post-upgrade-gqmlk -n zadig 
2023-08-18T14:30:18.284+0800    INFO    Migrating from $(FROM_VERSION) to 1.18.0
2023-08-18T14:30:18.285+0800    FATAL   failed to parse version: $(FROM_VERSION), err: No Major.Minor.Patch elements found
github.com/koderover/zadig/pkg/cli/upgradeassistant/cmd.glob..func2
        /app/pkg/cli/upgradeassistant/cmd/migrate.go:56
github.com/spf13/cobra.(*Command).execute
        /go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:876
github.com/spf13/cobra.(*Command).ExecuteC
        /go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:990
github.com/spf13/cobra.(*Command).Execute
        /go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:918
github.com/koderover/zadig/pkg/cli/upgradeassistant/cmd.Execute
        /app/pkg/cli/upgradeassistant/cmd/root.go:35
github.com/koderover/zadig/pkg/cli/upgradeassistant/executor.Execute
        /app/pkg/cli/upgradeassistant/executor/executor.go:24
main.main
        /app/cmd/ua/main.go:26
runtime.main
        /usr/local/go/src/runtime/proc.go:250