Hello, When I run this command `flytectl update ta...
# ask-the-community
g
Hello, When I run this command
flytectl update task-resource-attribute --attrFile flyte-settings.yaml
I got the following error:
Copy code
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x1aeed82]

goroutine 1 [running]:
<http://github.com/flyteorg/flytectl/cmd/update.DecorateAndUpdateMatchableAttr({0x257b458|github.com/flyteorg/flytectl/cmd/update.DecorateAndUpdateMatchableAttr({0x257b458>, 0xc000192010}, {0xc000ba7bc0, 0xb}, {0xc000ba7bb0, 0xb}, {0x0, 0x0}, {0x0, 0x0}, ...)
        /home/runner/work/flytectl/flytectl/cmd/update/matchable_attribute_util.go:37 +0x2e2
<http://github.com/flyteorg/flytectl/cmd/update.updateTaskResourceAttributesFunc({0x257b458|github.com/flyteorg/flytectl/cmd/update.updateTaskResourceAttributesFunc({0x257b458>, 0xc000192010}, {0x0?, 0x100000049c5e5?, 0x257b100?}, {0x0, {0x0, 0x0}, {0x0, 0x0}, ...})
        /home/runner/work/flytectl/flytectl/cmd/update/matchable_task_resource_attribute.go:81 +0x206
<http://github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0xc000972a00|github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0xc000972a00>?, {0xc0008e9940, 0x0, 0x2})
        /home/runner/work/flytectl/flytectl/cmd/core/cmd.go:70 +0x93d
<http://github.com/spf13/cobra.(*Command).execute(0xc000972a00|github.com/spf13/cobra.(*Command).execute(0xc000972a00>, {0xc0008e9920, 0x2, 0x2})
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:856 +0x67c
<http://github.com/spf13/cobra.(*Command).ExecuteC(0xc000879180)|github.com/spf13/cobra.(*Command).ExecuteC(0xc000879180)>
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:974 +0x3bd
<http://github.com/spf13/cobra.(*Command).Execute(...)|github.com/spf13/cobra.(*Command).Execute(...)>
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:902
<http://github.com/flyteorg/flytectl/cmd.ExecuteCmd()|github.com/flyteorg/flytectl/cmd.ExecuteCmd()>
        /home/runner/work/flytectl/flytectl/cmd/root.go:137 +0x1e
main.main()
        /home/runner/work/flytectl/flytectl/main.go:12 +0x1d
The content of my file is come from Docs:
Copy code
domain: development
project: flytesnacks
defaults:
  cpu: "3"
  memory: "8Gi"
limits:
  cpu: "5"
  memory: "12Gi"
I use Flyte running on Linux Ubuntu 22.04 LTS with latest flytectl CLI
Copy code
{
  "App": "flytectl",
  "Build": "3590432",
  "Version": "0.6.42",
  "BuildTime": "2023-07-12 10:31:44.565016895 +0200 CEST m=+0.031530305"
}
Any ideas? Thx for your help Note: previously, I run this command:
flytectl demo start
y
i think this is just an error message that needs to be improved some. you shouldn’t need to, but the default config file from flytectl demo doesn’t appear to be getting picked up.
try
flytectl -c ~/.flyte/config-sandbox.yaml <your command>