codefresh-io/cli

panic: runtime error: invalid memory address or nil pointer dereference when upgrading runner from venona

Opened this issue · 0 comments

jocco commented

Hey

I am attempting to upgrade from the venona installer to the new codefresh runner, but running codefresh runner upgrade I get the wizard, selecting my runtime to upgrade. After the downloading runtime installer step codefresh-cli crashes with this exception:

Error reading file
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x8 pc=0x11e6f2d]

goroutine 1 [running]:
github.com/codefresh-io/venona/venonactl/pkg/store.(*Values).BuildValues(0xc0002ca000, 0xc0002b0180)
/codefresh/volume/venona/venonactl/pkg/store/store.go:105 +0x1bd
github.com/codefresh-io/venona/venonactl/cmd.glob..func5(0x21ad100, 0xc0002b2180, 0x0, 0x4)
/codefresh/volume/venona/venonactl/cmd/migrate.go:49 +0x3e7
github.com/spf13/cobra.(*Command).execute(0x21ad100, 0xc0002b20c0, 0x4, 0x4, 0x21ad100, 0xc0002b20c0)
/go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:844 +0x2b1
github.com/spf13/cobra.(*Command).ExecuteC(0x21ad3a0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:945 +0x31e
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:885
github.com/codefresh-io/venona/venonactl/cmd.Execute()
/codefresh/volume/venona/venonactl/cmd/root.go:32 +0x34
main.main()
/codefresh/volume/venona/venonactl/main.go:20 +0x27
Error: Migration failed: migration script exited with code 2

I am not sure if this is relevant but I am running this on a Windows. My kubeconfig is set via a env. variable. The cluster is a EKS cluster.