<#4421 [BUG] Panic on pyflyte run --remote> Issue ...
# flytekit
a
#4421 [BUG] Panic on pyflyte run --remote Issue created by AmadiL Describe the bug Anytime I run
pyflyte run --remote
the flyte-binary crashes with:
Copy code
{
    "json": {
        "src": "base.go:55"
    },
    "level": "fatal",
    "msg": "panic-ed for request: [id:\u003cresource_type:TASK project:\"default\" domain:\"main\" name:\"flyte_example.workflows.slope\" version:\"80GZB-Kw1bLBbjYRj6fnmg==\" \u003e spec:\u003ctemplate:\u003cid:\u003cresource_type:TASK project:\"default\" domain:\"main\" name:\"flyte_example.workflows.slope\" version:\"80GZB-Kw1bLBbjYRj6fnmg==\" \u003e type:\"python-task\" metadata:\u003cruntime:\u003ctype:FLYTE_SDK version:\"1.10.0\" flavor:\"python\" \u003e retries:\u003c\u003e \u003e interface:\u003cinputs:\u003cvariables:\u003ckey:\"x\" value:\u003ctype:\u003ccollection_type:\u003csimple:INTEGER \u003e \u003e description:\"x\" \u003e \u003e variables:\u003ckey:\"y\" value:\u003ctype:\u003ccollection_type:\u003csimple:INTEGER \u003e \u003e description:\"y\" \u003e \u003e \u003e outputs:\u003cvariables:\u003ckey:\"o0\" value:\u003ctype:\u003csimple:FLOAT \u003e description:\"o0\" \u003e \u003e \u003e \u003e container:\u003cimage:\"<http://cr.flyte.org/flyteorg/flytekit:py3.11-1.10.0\|cr.flyte.org/flyteorg/flytekit:py3.11-1.10.0\>" args:\"pyflyte-fast-execute\" args:\"--additional-distribution\" args:\"<s3://flyte>-******/default/main/ZY2AUNVDSAU77PEEEXAYEOMJMM======/script_mode.tar.gz\" args:\"--dest-dir\" args:\"/root\" args:\"--\" args:\"pyflyte-execute\" args:\"--inputs\" args:\"{{.input}}\" args:\"--output-prefix\" args:\"{{.outputPrefix}}\" args:\"--raw-output-data-prefix\" args:\"{{.rawOutputDataPrefix}}\" args:\"--checkpoint-path\" args:\"{{.checkpointOutputPrefix}}\" args:\"--prev-checkpoint\" args:\"{{.prevCheckpointPrefix}}\" args:\"--resolver\" args:\"flytekit.core.python_auto_container.default_task_resolver\" args:\"--\" args:\"task-module\" args:\"flyte_example.workflows\" args:\"task-name\" args:\"slope\" resources:\u003c\u003e \u003e \u003e description:\u003clong_description:\u003cformat:DESCRIPTION_FORMAT_RST \u003e \u003e \u003e ] with err: runtime error: invalid memory address or nil pointer dereference with Stack: goroutine 4321 [running]:\nruntime/debug.Stack()\n\t/usr/local/go/src/runtime/debug/stack.go:24 +0x65\<http://ngithub.com/flyteorg/flyte/flyteadmin/pkg/rpc/adminservice.(*AdminService).interceptPanic|ngithub.com/flyteorg/flyte/flyteadmin/pkg/rpc/adminservice.(*AdminService).interceptPanic>(0xc010600000, {0x42bac40, 0xc018a267e0}, {0x42a79e0?, 0xc018a26810})\n\t/flyteorg/build/flyteadmin/pkg/rpc/adminservice/base.go:55 +0x85\npanic({0x2c21a60, 0x5b41910})\n\t/usr/local/go/src/runtime/panic.go:884 +0x212\<http://ngithub.com/flyteorg/flyte/flyteadmin/pkg/manager/impl/util.fromAdminProtoTaskResourceSpec(|ngithub.com/flyteorg/flyte/flyteadmin/pkg/manager/impl/util.fromAdminProtoTaskResourceSpec(>{_, _}, _)\n\t/flyteorg/build/flyteadmin/pkg/manager/impl/util/resources.go:60 +0x9b\<http://ngithub.com/flyteorg/flyte/flyteadmin/pkg/manager/impl/util.GetTaskResources(|ngithub.com/flyteorg/flyte/flyteadmin/pkg/manager/impl/util.GetTaskResources(>{_, _}, _, {_, _}, {_, _})\n\t/flyteorg/build/flyteadmin/pkg/manager/impl/util/resources.go:111 +0x37e\<http://ngithub.com/flyteorg/flyte/flyteadmin/pkg/manager/impl.(*TaskManager).CreateTask(0xc00fd8db90|ngithub.com/flyteorg/flyte/flyteadmin/pkg/manager/impl.(*TaskManager).CreateTask(0xc00fd8db90>, {0x42bac40, 0xc018a267e0}, {0xc018a5e1c0, 0xc018a68180, {}, {0x0, 0x0, 0x0}, 0x0})\n\t/flyteorg/build/flyteadmin/pkg/manager/impl/task_manager.go:64 +0xbb\<http://ngithub.com/flyteorg/flyte/flyteadmin/pkg/rpc/adminservice.(*AdminService).CreateTask.func1()|ngithub.com/flyteorg/flyte/flyteadmin/pkg/rpc/adminservice.(*AdminService).CreateTask.func1()>\n\t/flyteorg/build/flyteadmin/pkg/rpc/adminservice/task.go:25 +0x9b\<http://ngithub.com/flyteorg/flyte/flytestdlib/promutils.StopWatch.Time({{0x7fa5240a5140|ngithub.com/flyteorg/flyte/flytestdlib/promutils.StopWatch.Time({{0x7fa5240a5140>?, 0xc0101b5800?}, 0xca4e00?}, 0xc0186f3850)\n\t/flyteorg/build/flytestdlib/promutils/scope.go:58 +0xc2\<http://ngithub.com/flyteorg/flyte/flyteadmin/pkg/rpc/adminservice/util.(*RequestMetrics).Time(...)|ngithub.com/flyteorg/flyte/flyteadmin/pkg/rpc/adminservice/util.(*RequestMetrics).Time(...)>\n\t/flyteorg/build/flyteadmin/pkg/rpc/adminservice/util/metrics.go:33\ngithub.com/flyteorg/flyte/flyteadmin/pkg/rpc/adminservice.(*AdminService).CreateTask(0xc010600000, {0x42bac40?, 0xc018a267e0?}, 0xc018a798c0?)\n\t/flyteorg/build/flyteadmin/pkg/rpc/adminservice/task.go:24 +0x169\<http://ngithub.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service._AdminService_CreateTask_Handler.func1({0x42bac40|ngithub.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service._AdminService_CreateTask_Handler.func1({0x42bac40>, 0xc018a267e0}, {0x2f82c00?, 0xc018a26810})\n\t/flyteorg/build/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go:1077 +0x78\<http://ngithub.com/grpc-ecosystem/go-grpc-prometheus.(*ServerMetrics).UnaryServerInterceptor.func1({0x42bac40|ngithub.com/grpc-ecosystem/go-grpc-prometheus.(*ServerMetrics).UnaryServerInterceptor.func1({0x42bac40>, 0xc018a267e0}, {0x2f82c00, 0xc018a26810}, 0x7fa4fffe24d8?, 0xc0105d2f30)\n\t/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-prometheus@v1.2.0/server_metrics.go:107 +0x87\<http://ngithub.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x42bac40|ngithub.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x42bac40>?, 0xc018a267e0?}, {0x2f82c00?, 0xc018a26810?})\n\t/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.3.0/chain.go:25 +0x3a\<http://ngithub.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1({0x42bac40|ngithub.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1({0x42bac40>, 0xc018a267e0}, {0x2f82c00, 0xc018a26810}, 0xc011a4ca20?, 0x2c1fa80?)\n\t/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.3.0/chain.go:34 +0xbe\<http://ngithub.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service._AdminService_CreateTask_Handler({0x30eadc0|ngithub.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service._AdminService_CreateTask_Handler({0x30eadc0>?, 0xc010600000}, {0x42bac40, 0xc018a267e0}, 0xc0184d3dc0, 0xc0005dc8a0)\n\t/flyteorg/build/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go:1079 +0x138\<http://ngoogle.golang.org/grpc.(*Server).processUnaryRPC(0xc0005f2000|ngoogle.golang.org/grpc.(*Server).processUnaryRPC(0xc0005f2000>, {0x42c9be0, 0xc011689a00}, 0xc0184e0360, 0xc00f0c1c20, 0x5b64020, 0x0)\n\t/go/pkg/mod/google.golang.org/grpc@v1.56.1/server.go:1337 +0xdf0\<http://ngoogle.golang.org/grpc.(*Server).handleStream(0xc0005f2000|ngoogle.golang.org/grpc.(*Server).handleStream(0xc0005f2000>, {0x42c9be0, 0xc011689a00}, 0xc0184e0360, 0x0)\n\t/go/pkg/mod/google.golang.org/grpc@v1.56.1/server.go:1714 +0xa2f\<http://ngoogle.golang.org/grpc.(*Server).serveStreams.func1.1()|ngoogle.golang.org/grpc.(*Server).serveStreams.func1.1()>\n\t/go/pkg/mod/google.golang.org/grpc@v1.56.1/server.go:959 +0x98\ncreated by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1>\n\t/go/pkg/mod/google.golang.org/grpc@v1.56.1/server.go:957 +0x18c\n",
    "ts": "2023-11-14T15:12:17Z"
}
Expected behavior Remote execution of the workflow. Additional context to reproduce python 3.11.4 flytekit 1.10.0 flyte-binary 1.10.0 Screenshots No response Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte