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

velad install fails. #833

Closed
zwtcici opened this issue May 29, 2023 · 4 comments
Closed

velad install fails. #833

zwtcici opened this issue May 29, 2023 · 4 comments
Labels
kind/bug Something isn't working

Comments

@zwtcici
Copy link

zwtcici commented May 29, 2023

How about installation failure?
If the installation succeeds in Step 2 and fails in Step 3, how to solve the problem?? urgent
image

How to solve the following error?
image

Error message:

time="2023-05-29T14:56:13+08:00" level=info msg="portmapping '8090:80' targets the loadbalancer: defaulting to [servers:*:proxy agents:*:proxy]"
Preparing K3s images...
Saving k3s image airgap install tarball to C:\Users\wtzhouq\.vela\velad\k3s\k3s-airgap-images.tgz
Successfully prepare k3s image:  C:\Users\wtzhouq\.vela\velad\k3s\k3s-airgap-images.tgz
Successfully prepare k3d images
Loading k3d images...
error during connect: this error may indicate that the docker daemon is not running: Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/load?quiet=1": open //./pipe/docker_engine: The system cannot find the file specified.

Error: Fail to set up cluster: failed to setup k3d: failed to extract k3d images: exit status 1
Usage:
  velad install [flags]

Examples:

# Simply install a control plane
velad install

# Install a high-availability control plane with external database.
# Requires at least 2 nodes.

# 1. Setup first master node
velad install --token=<TOKEN> --database-endpoint="mysql://<USER>:@tcp(<HOST>:<PORT>)/velad_ha" --bind-ip=<LB_IP> --node-ip=<FIRST_NODE_IP>

# 2. Join other master nodes
velad install --token=<TOKEN> --database-endpoint="mysql://<USER>:@tcp(<HOST>:<PORT>)/velad_ha" --bind-ip=<LB_IP> --node-ip=<SECOND_NODE_IP>

# 3. On any master node, start wizard to get command to setup load balancer. Or you can use a load balancer service provided by cloud vendor.
velad load-balancer wizard

# 4. On another node, setup load balancer
<Run command from step 3>


Flags:
      --bind-ip velad kubeconfig --external   Bind additional hostname or IP to the cluster (e.g. IP of load balancer for multi-nodes VelaD cluster). This is used to generate kubeconfig access from remote (velad kubeconfig --external). If not set, will use node-ip
      --cluster-only                          If set, start cluster without installing vela-core, typically used when restart a control plane where vela-core has been installed
      --database-endpoint string              Use an external database to store control plane metadata, please ref https://rancher.com/docs/k3s/latest/en/installation/datastore/#datastore-endpoint-format-and-functionality for the format
  -d, --detail                                Show detail log of installation (default true)
      --dry-run                               Dry run the install process
  -h, --help                                  help for install
      --name string                           In Mac/Windows environment, use this to specify the name of the cluster. In Linux environment, use this to specify the name of node (default "default")
  -n, --namespace string                      Namespace scope for installing KubeVela Core (default "vela-system")
      --node-ip string                        Set the public IP of the node
  -r, --reuse                                 Will re-use the user's last supplied values. (default true)
      --set stringArray                       Set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)
      --token string                          Token for identify the cluster. Can be used to restart the control plane or register other node. If not set, random token will be generated

Fail to set up cluster: failed to setup k3d: failed to extract k3d images: exit status 1
@zwtcici zwtcici added the kind/bug Something isn't working label May 29, 2023
@chivalryq
Copy link
Member

Please check if your docker daemon (usually docker desktop) is set.

@zwtcici
Copy link
Author

zwtcici commented May 30, 2023

image

Run velad install to always report this error

@chivalryq
Copy link
Member

A helm install is in the progress. You can refer to: https://stackoverflow.com/questions/65006907/kubernetes-helm-stuck-with-an-update-in-progress to delete the secret which indicate the installation is in progress.

@dhiguero
Copy link

dhiguero commented Apr 3, 2024

Closing this issue as new documentation has been added to ensure that a valid container runtime is available before the install.

@dhiguero dhiguero closed this as completed Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants