acoustic-carpenter-78188
04/02/2026, 6:09 AMflyte-sdk)
flyte start demo --dev
1. Run single binary (in this repo)
make -C manager run
1. Submit a container task: https://github.com/flyteorg/flyte-sdk/blob/main/examples/advanced/container_task.py, you will see errors like following
{"json":{"src":"copilot.go:176"},"level":"info","msg":"Enabling CoPilot on main container [rqg9fbvmmtq5bvqqns5k-er7k8qfviuwrdjhvzvajhkecf-0]","ts":"2026-04-02T132808+08:00"}
{"json":{"src":"copilot.go:217"},"level":"info","msg":"CoPilot Enabled for task []","ts":"2026-04-02T132808+08:00"}
2026-04-02T132808+08:00 INFO Observed a panic in reconciler: runtime error: invalid memory address or nil pointer dereference {"controller": "taskaction", "controllerGroup": "flyte.org", "controllerKind": "TaskAction", "TaskAction": {"name":"rqg9fbvmmtq5bvqqns5k-er7k8qfviuwrdjhvzvajhkecf","namespace":"flytesnacks-development"}, "namespace": "flytesnacks-development", "name": "rqg9fbvmmtq5bvqqns5k-er7k8qfviuwrdjhvzvajhkecf", "reconcileID": "0128b9bc-93f5-4b38-bb80-90a337c9a3c9"}
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=0x2 addr=0x50 pc=0x106c4e3b0]
goroutine 534 [running]:
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile.func1()
/Users/nary/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:116 +0x19c
panic({0x1081c2560?, 0x10aed62e0?})
/opt/homebrew/Cellar/go@1.24/1.24.7/libexec/src/runtime/panic.go:792 +0x124
github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/flytek8s.AddCoPilotToPod({0x1089fd0e8, 0x14007227b90}, {{0x10765d690, 0xe}, {0x1076d69a1, 0x2a}, {0x1076671af, 0x11}, {0x10766a900, 0x12}, ...}, ...)
/Users/nary/workData/open-source/flyte-v2/flyteplugins/go/tasks/pluginmachinery/flytek8s/copilot.go:227 +0x440
github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/pluginmachinery/flytek8s.ApplyFlytePodConfiguration({0x1089fd0e8, 0x14007227b90}, {0x108a1d610, 0x14005fe9b80}, 0x14007206488, 0x14006031950, {0x14005fdf350, 0x30})
/Users/nary/workData/open-source/flyte-v2/flyteplugins/go/tasks/pluginmachinery/flytek8s/pod_helper.go:584 +0x9c0
github.com/flyteorg/flyte/v2/flyteplugins/go/tasks/plugins/k8s/pod.plugin.BuildResource({}, {0x1089fd0e8, 0x14007227b90}, {0x108a1d610, 0x14005fe9b80})
/Users/nary/workData/open-source/flyte-v2/flyteplugins/go/tasks/plugins/k8s/pod/plugin.go:121 +0x7dc
github.com/flyteorg/flyte/v2/executor/pkg/plugin/k8s.(*PluginManager).launchResource(0x1400197ec60, {0x1089fd0e8, 0x14007227b90}, {0x108a1d610, 0x14005fe9b80})
/Users/nary/workData/open-source/flyte-v2/executor/pkg/plugin/k8s/plugin_manager.go:100 +0x54
github.com/flyteorg/flyte/v2/executor/pkg/plugin/k8s.(*PluginManager).Handle(0x1400197ec60, {0x1089fd0e8, 0x14007227b90}, {0x108a1d610, 0x14005fe9b80})
/Users/nary/workData/open-source/flyte-v2/executor/pkg/plugin/k8s/plugin_manager.go:222 +0x31c
github.com/flyteorg/flyte/v2/executor/pkg/controller.(*TaskActionReconciler).Reconcile(0x14001a100a0, {0x1089fd0e8, 0x14007227b90}, {{{0x14001ce1ba8?, 0x5?}, {0x14006673470?, 0x140060bbd08?}}})
/Users/nary/workData/open-source/flyte-v2/executor/pkg/controller/taskaction_controller.go:202 +0x7d4
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile(0x108a0c130?, {0x1089fd0e8?, 0x14007227b90?}, {{{0x14001ce1ba8?, 0xb?}, {0x14006673470?, 0x0?}}})
/Users/nary/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:119 +0x80
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0x14001a10140, {0x1089fd120, 0x14000217e50}, {0x1084586e0, 0x140002fda20})
/Users/nary/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:316 +0x2c8
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0x14001a10140, {0x1089fd120, 0x14000217e50})
/Users/nary/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:266 +0x150
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
/Users/nary/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:227 +0x70
created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2 in goroutine 491
/Users/nary/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:223 +0x3fc
make: * [run] Error 2
Expectation
Should be able to run container task without error
flyteorg/flyte