I'm trying to register a packaged and serialized b...
# flyte-support
g
I'm trying to register a packaged and serialized bunch of workflows in Github Actions using the https://github.com/unionai-oss/flyte-register-action, but getting the following error. I'm using flytctl version 0.9.0 (which is an old version but locally I'm using an even older one 0.8.12 and that one seems fine and manages to register it to my deployment)
Copy code
flytectl command:  /opt/hostedtoolcache/flytectl/0.9.0/x64/flytectl register files flyte-package.tgz  -p flytesnacks -d development    --archive    --version [my-version]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1b1d49b]

goroutine 1 [running]:
<http://github.com/flyteorg/flyte/flytectl/cmd/register.Register({0x2a7d7d8|github.com/flyteorg/flyte/flytectl/cmd/register.Register({0x2a7d7d8>, 0x3ec80c0}, {0xc0008d9780?, 0x0?, 0x0?}, 0x3e84660, {0x0, {0x0, 0x0}, {0x0, ...}, ...})
	/home/runner/work/flyte/flyte/flytectl/cmd/register/files.go:147 +0x35b
<http://github.com/flyteorg/flyte/flytectl/cmd/register.registerFromFilesFunc(|github.com/flyteorg/flyte/flytectl/cmd/register.registerFromFilesFunc(>{0x2a7d7d8, 0x3ec80c0}, {0xc0008d9780, 0x1, 0x8}, {0x0, {0x0, 0x0}, {0x0, 0x0}, ...})
	/home/runner/work/flyte/flyte/flytectl/cmd/register/files.go:116 +0xc5
<http://github.com/flyteorg/flyte/flytectl/cmd/core.AddCommands.generateCommandFunc.func1(0xc00098e600|github.com/flyteorg/flyte/flytectl/cmd/core.AddCommands.generateCommandFunc.func1(0xc00098e600>?, {0xc0008d9780, 0x1, 0x8})
	/home/runner/work/flyte/flyte/flytectl/cmd/core/cmd.go:68 +0x525
<http://github.com/spf13/cobra.(*Command).execute(0xc00098e600|github.com/spf13/cobra.(*Command).execute(0xc00098e600>, {0xc0008d9700, 0x8, 0x8})
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:940 +0x87c
<http://github.com/spf13/cobra.(*Command).ExecuteC(0xc0008d4300)|github.com/spf13/cobra.(*Command).ExecuteC(0xc0008d4300)>
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5
<http://github.com/spf13/cobra.(*Command).Execute(...)|github.com/spf13/cobra.(*Command).Execute(...)>
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992
<http://github.com/flyteorg/flyte/flytectl/cmd.ExecuteCmd()|github.com/flyteorg/flyte/flytectl/cmd.ExecuteCmd()>
	/home/runner/work/flyte/flyte/flytectl/cmd/root.go:160 +0x18
main.main()
	/home/runner/work/flyte/flyte/flytectl/main.go:12 +0x17
a
it seems you're hitting this issue? It might be that the
flytectl-setup
action is missing a
flytectl config init
step?
g
Yes, I don't do flytectl config init. I do generate a config though. Maybe I should set the env var so that flytectl knows where to look for the config (also missing)
Thanks. Got a direction for solving it now