abiosoft / colima

Container runtimes on macOS (and Linux) with minimal setup
MIT License
17.73k stars 364 forks source link

error provisioning kubernetes: error at 'downloading and installing' #1012

Open conorsheehan-ow opened 3 months ago

conorsheehan-ow commented 3 months ago

Description

I get the following error trying to run colima start --kubernetes

colima start --kubernetes
INFO[0000] starting colima
INFO[0000] runtime: docker+k3s
INFO[0001] starting ...                                  context=vm
INFO[0025] provisioning ...                              context=docker
INFO[0026] starting ...                                  context=docker
INFO[0027] provisioning ...                              context=kubernetes
INFO[0028] downloading and installing ...                context=kubernetes
> shasum: standard input: no properly formatted SHA checksum lines found
FATA[0029] error provisioning kubernetes: error at 'downloading and installing': error downloading 'https://github.com/k3s-io/k3s/releases/download//k3s': error validating SHA sum for 'k3s': exit status 1

Looks like it should get this default version https://github.com/abiosoft/colima/blob/281757a478ba3e0f063ab3d04017754b5e62e494/environment/container/kubernetes/kubernetes.go#L21

but it's missing somehow, can see the url is malformed at releases/download//k3s. is there a config I can set explicitly to set the version and work around this quickly?

Version

colima version 0.6.8 git commit: 9b0809d0ed9ad3ff1e57c405f27324e6298ca04f

runtime: docker arch: x86_64 client: v20.10.8 server: v24.0.9 limactl version 0.21.0 qemu-img version 8.2.1 Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers

Operating System

Output of colima status

INFO[0000] colima is running using QEMU INFO[0000] arch: x86_64 INFO[0000] runtime: docker INFO[0000] mountType: sshfs INFO[0000] address: INFO[0000] socket: unix:///Users/$me/.colima/default/docker.sock

Reproduction Steps

  1. colima start --kubernetes

Expected behaviour

colima downloads k3s from github

Additional context

No response

conorsheehan-ow commented 3 months ago

Looks like this workaround works https://github.com/abiosoft/colima/issues/677#issuecomment-1493474982 colima start --kubernetes --kubernetes-version="v1.24.3+k3s1"

Might still be worth figuring out why the default version isn't getting passed through though