Running `cortex cluster export` throws a panic error
RobertLucian opened this issue · 0 comments
RobertLucian commented
Version
0.41
Description
Running cortex cluster export
throws a panic error. As reported by Dipen Chawla in https://cortex-dot-dev.slack.com/archives/C01KHQRUWNT/p1641561660007800.
Stack traces
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x30d9e1b]
goroutine 1 [running]:
github.com/cortexlabs/cortex/pkg/lib/exit.Panic(0x3c94620, 0xc000477d10, 0x0, 0x0, 0x0)
/home/circleci/project/pkg/lib/exit/exit.go:60 +0x1b5
github.com/cortexlabs/cortex/pkg/lib/exit.RecoverAndExit(0x0, 0x0, 0x0)
/home/circleci/project/pkg/lib/exit/exit.go:66 +0xa5
panic(0x345dba0, 0x5093590)
/usr/local/go/src/runtime/panic.go:965 +0x1b9
github.com/cortexlabs/cortex/cli/cmd.glob..func5(0x50b1140, 0xc0003f9b80, 0x0, 0x4)
/home/circleci/project/cli/cmd/cluster.go:767 +0x59b
github.com/spf13/cobra.(*Command).execute(0x50b1140, 0xc0003f9b40, 0x4, 0x4, 0x50b1140, 0xc0003f9b40)
/home/circleci/go/pkg/mod/github.com/spf13/cobra@v1.2.0/command.go:863 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0x50b2b80, 0xc0007bff40, 0x1, 0x1)
/home/circleci/go/pkg/mod/github.com/spf13/cobra@v1.2.0/command.go:977 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
/home/circleci/go/pkg/mod/github.com/spf13/cobra@v1.2.0/command.go:905
github.com/cortexlabs/cortex/cli/cmd.Execute()
/home/circleci/project/cli/cmd/root.go:171 +0x305
main.main()
/home/circleci/project/cli/main.go:24 +0x25