anyone else use flytectl with M1 chips? getting a ...
# flytekit
f
anyone else use flytectl with M1 chips? getting a segfault when running
f
Ohh can you please paste the problem
Cc @great-school-54368
m
@careful-airport-82985
g
@careful-airport-82985 can you please paste the problem
c
Sure
when running
flytectl demo start
- it ends up like this:
Copy code
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags. 
πŸ§‘β€πŸ­ Bootstrapping a brand new flyte cluster... πŸ”¨ πŸ”§
delete existing sandbox cluster [y/n]: y
cr.flyte.org/flyteorg/flyte-sandbox-lite:sha-2635cda85b24926632f0d7391975732ab221fe1b Fully Qualified image
πŸ‹ Running Flyte v1.1.0 release
πŸ‹ pulling docker image for release cr.flyte.org/flyteorg/flyte-sandbox-lite:sha-2635cda85b24926632f0d7391975732ab221fe1b
{"status":"Pulling from flyteorg/flyte-sandbox-lite","id":"sha-2635cda85b24926632f0d7391975732ab221fe1b"}
{"status":"Digest: sha256:b60955127757a9dd34f5ec3dea59982491a06fbb5430741da90dfe286505eb65"}
{"status":"Status: Image is up to date for cr.flyte.org/flyteorg/flyte-sandbox-lite:sha-2635cda85b24926632f0d7391975732ab221fe1b"}
πŸ§‘β€πŸ­ booting Flyte-sandbox container
92022-07-28T13:47:59.014826126Z Starting Docker daemon...
%2022-07-28T13:48:00.129797460Z Done.
72022-07-28T13:48:00.129842043Z Starting k3s cluster...
%2022-07-28T13:48:03.566679961Z Done.
unexpected fault address 0x360808085a175a75
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x2 addr=0x360808085a175a75 pc=0x1024fc560]

goroutine 1 [running]:
runtime.throw({0x10392f141?, 0x30?})
	/opt/hostedtoolcache/go/1.18.3/x64/src/runtime/panic.go:992 +0x50 fp=0x1400066dc20 sp=0x1400066dbf0 pc=0x1024cf590
runtime.sigpanic()
	/opt/hostedtoolcache/go/1.18.3/x64/src/runtime/signal_unix.go:825 +0x1a4 fp=0x1400066dc50 sp=0x1400066dc20 pc=0x1024e5704
aeshashbody()
	/opt/hostedtoolcache/go/1.18.3/x64/src/runtime/asm_arm64.s:878 +0x2d0 fp=0x1400066dc60 sp=0x1400066dc60 pc=0x1024fc560
runtime.mapiternext(0x140003af440)
	/opt/hostedtoolcache/go/1.18.3/x64/src/runtime/map.go:934 +0x2c4 fp=0x1400066dcd0 sp=0x1400066dc60 pc=0x1024aad94
runtime.mapiterinit(0x1400066dd28?, 0x7?, 0x100000002?)
	/opt/hostedtoolcache/go/1.18.3/x64/src/runtime/map.go:861 +0x2f0 fp=0x1400066dd00 sp=0x1400066dcd0 pc=0x1024aaa90
reflect.mapiterinit(0x1400007c900?, 0x0?, 0x0?)
	/opt/hostedtoolcache/go/1.18.3/x64/src/runtime/map.go:1373 +0x20 fp=0x1400066dd30 sp=0x1400066dd00 pc=0x1024f8ca0
github.com/modern-go/reflect2.(*UnsafeMapType).UnsafeIterate(...)
	/home/runner/go/pkg/mod/github.com/modern-go/reflect2@v1.0.1/unsafe_map.go:112
github.com/json-iterator/go.(*sortKeysMapEncoder).Encode(0x14000c2f4a0, 0x14000c0c748, 0x1400012b6e0)
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_map.go:291 +0x244 fp=0x1400066deb0 sp=0x1400066dd30 pc=0x103025384
github.com/json-iterator/go.(*placeholderEncoder).Encode(0x1400066df01?, 0x1400012b6f8?, 0x1400066df58?)
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:332 +0x2c fp=0x1400066dee0 sp=0x1400066deb0 pc=0x10301e42c
github.com/json-iterator/go.(*structFieldEncoder).Encode(0x14000c2f710, 0x103d22459?, 0x1400012b6e0)
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:110 +0x58 fp=0x1400066df60 sp=0x1400066dee0 pc=0x1030319f8
github.com/json-iterator/go.(*structEncoder).Encode(0x14000c2f770, 0x5e5?, 0x1400012b6e0)
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:158 +0x708 fp=0x1400066e050 sp=0x1400066df60 pc=0x103032378
github.com/json-iterator/go.(*OptionalEncoder).Encode(0x1400012b6e0?, 0x14000939d70?, 0x1400066e0f8?)
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_optional.go:70 +0xcc fp=0x1400066e0b0 sp=0x1400066e050 pc=0x10302a69c
github.com/json-iterator/go.(*placeholderEncoder).Encode(0x1400066e101?, 0x1400012b6f8?, 0x1400066e158?)
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:332 +0x2c fp=0x1400066e0e0 sp=0x1400066e0b0 pc=0x10301e42c
github.com/json-iterator/go.(*structFieldEncoder).Encode(0x14000c36ea0, 0x103d8c098?, 0x1400012b6e0)
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:110 +0x58 fp=0x1400066e160 sp=0x1400066e0e0 pc=0x1030319f8
github.com/json-iterator/go.(*structEncoder).Encode(0x14000c36f60, 0x14000bf6ff0?, 0x1400012b6e0)
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:158 +0x708 fp=0x1400066e250 sp=0x1400066e160 pc=0x103032378
github.com/json-iterator/go.(*placeholderEncoder).Encode(0x140001f7e01?, 0x1400012b6f8?, 0x1400066e2f8?)
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:332 +0x2c fp=0x1400066e280 sp=0x1400066e250 pc=0x10301e42c
github.com/json-iterator/go.(*structFieldEncoder).Encode(0x14000c371d0, 0x103d22369?, 0x1400012b6e0)
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:110 +0x58 fp=0x1400066e300 sp=0x1400066e280 pc=0x1030319f8
github.com/json-iterator/go.(*structEncoder).Encode(0x14000c37230, 0x1024a525c?, 0x1400012b6e0)
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:158 +0x708 fp=0x1400066e3f0 sp=0x1400066e300 pc=0x103032378
github.com/json-iterator/go.(*sliceEncoder).Encode(0x14000c0cc00, 0x1400032a738, 0x1400012b6e0)
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_slice.go:38 +0x2f4 fp=0x1400066e4b0 sp=0x1400066e3f0 pc=0x10302b104
github.com/json-iterator/go.(*structFieldEncoder).Encode(0x14000c37d40, 0x103d2c79d?, 0x1400012b6e0)
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:110 +0x58 fp=0x1400066e530 sp=0x1400066e4b0 pc=0x1030319f8
github.com/json-iterator/go.(*structEncoder).Encode(0x14000c37e30, 0x1400000f368?, 0x1400012b6e0)
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:158 +0x708 fp=0x1400066e620 sp=0x1400066e530 pc=0x103032378
github.com/json-iterator/go.(*OptionalEncoder).Encode(0x10404fb40?, 0x14000864e60?, 0x0?)
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_optional.go:70 +0xcc fp=0x1400066e680 sp=0x1400066e620 pc=0x10302a69c
github.com/json-iterator/go.(*onePtrEncoder).Encode(0x14000c3e2b0, 0x1400032a6e0, 0x14000b865a0?)
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:219 +0x8c fp=0x1400066e6c0 sp=0x1400066e680 pc=0x10301da3c
github.com/json-iterator/go.(*Stream).WriteVal(0x1400012b6e0, {0x10404fb40, 0x1400032a6e0})
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:98 +0x174 fp=0x1400066e740 sp=0x1400066e6c0 pc=0x10301ce04
github.com/json-iterator/go.(*frozenConfig).Marshal(0x14000864e60, {0x10404fb40, 0x1400032a6e0})
	/home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/config.go:299 +0x88 fp=0x1400066e7e0 sp=0x1400066e740 pc=0x103014348
k8s.io/apimachinery/pkg/runtime/serializer/json.(*Serializer).doEncode(0x103cf4088?, {0x10427b590?, 0x1400032a6e0?}, {0x10426dcc8, 0x14000c0b890})
	/home/runner/go/pkg/mod/k8s.io/apimachinery@v0.21.3/pkg/runtime/serializer/json/json.go:306 +0x54 fp=0x1400066e880 sp=0x1400066e7e0 pc=0x103393ac4
k8s.io/apimachinery/pkg/runtime/serializer/json.(*Serializer).Encode(0x1400005e5a0, {0x10427b590, 0x1400032a6e0}, {0x10426dcc8, 0x14000c0b890})
	/home/runner/go/pkg/mod/k8s.io/apimachinery@v0.21.3/pkg/runtime/serializer/json/json.go:301 +0xe4 fp=0x1400066e8e0 sp=0x1400066e880 pc=0x103393a24
k8s.io/apimachinery/pkg/runtime/serializer/versioning.(*codec).doEncode(0x14000424000, {0x10427b540?, 0x1400012b620}, {0x10426dcc8, 0x14000c0b890})
	/home/runner/go/pkg/mod/k8s.io/apimachinery@v0.21.3/pkg/runtime/serializer/versioning/versioning.go:244 +0x670 fp=0x1400066ec40 sp=0x1400066e8e0 pc=0x103397fd0
k8s.io/apimachinery/pkg/runtime/serializer/versioning.(*codec).Encode(0x14000424000, {0x10427b540, 0x1400012b620}, {0x10426dcc8, 0x14000c0b890})
	/home/runner/go/pkg/mod/k8s.io/apimachinery@v0.21.3/pkg/runtime/serializer/versioning/versioning.go:184 +0xe4 fp=0x1400066eca0 sp=0x1400066ec40 pc=0x103397914
k8s.io/apimachinery/pkg/runtime.Encode({0x12cb36e58, 0x14000424000}, {0x10427b540, 0x1400012b620})
	/home/runner/go/pkg/mod/k8s.io/apimachinery@v0.21.3/pkg/runtime/codec.go:50 +0x64 fp=0x1400066ece0 sp=0x1400066eca0 pc=0x103042924
k8s.io/client-go/tools/clientcmd.Write(...)
	/home/runner/go/pkg/mod/k8s.io/client-go@v0.21.3/tools/clientcmd/loader.go:466
k8s.io/client-go/tools/clientcmd.WriteToFile({{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x14000c0b020}, 0x14000c0b050, 0x14000c0b080, 0x14000c0b0b0, {0x1039413b8, ...}, ...}, ...)
	/home/runner/go/pkg/mod/k8s.io/client-go@v0.21.3/tools/clientcmd/loader.go:419 +0xe4 fp=0x1400066ed60 sp=0x1400066ece0 pc=0x10391d0b4
k8s.io/client-go/tools/clientcmd.writeCurrentContext({0x10428d718, 0x14000280640}, {0x1039413b8, 0xd})
	/home/runner/go/pkg/mod/k8s.io/client-go@v0.21.3/tools/clientcmd/config.go:415 +0x148 fp=0x1400066ef50 sp=0x1400066ed60 pc=0x10391a648
k8s.io/client-go/tools/clientcmd.ModifyConfig({0x10428d718, 0x14000280640}, {{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x14000be3860}, 0x14000be3890, 0x14000be38c0, ...}, ...)
	/home/runner/go/pkg/mod/k8s.io/client-go@v0.21.3/tools/clientcmd/config.go:197 +0x168 fp=0x1400066f680 sp=0x1400066ef50 pc=0x103919458
github.com/flyteorg/flytectl/pkg/k8s.(*ContextManager).CopyContext(0x14000b9b960, {0x10428d718, 0x140002805a0}, {0x10393305f, 0x7}, {0x1039413b8, 0xd})
	/home/runner/work/flytectl/flytectl/pkg/k8s/k8s.go:94 +0x474 fp=0x1400066f7e0 sp=0x1400066f680 pc=0x103921714
github.com/flyteorg/flytectl/pkg/sandbox.UpdateLocalKubeContext({0x10393305f, 0x7}, {0x1039413b8, 0xd})
Copy code
/home/runner/work/flytectl/flytectl/pkg/sandbox/start.go:149 +0x180 fp=0x1400066f840 sp=0x1400066f7e0 pc=0x1039225e0
github.com/flyteorg/flytectl/pkg/sandbox.StartCluster({0x10428bd08, 0x1400019a000}, {0x1400099f9d8?, 0x102e39880?, 0x1400099f9a8?}, 0x10269a48c?, 0x1, {0x10398651f, 0x28}, {0x10392c572, ...}, ...)
	/home/runner/work/flytectl/flytectl/pkg/sandbox/start.go:265 +0x180 fp=0x1400066f960 sp=0x1400066f840 pc=0x1039231e0
github.com/flyteorg/flytectl/pkg/sandbox.StartDemoCluster({0x10428bd08, 0x1400019a000}, {0x105273270, 0x0, 0x0}, 0x0?)
	/home/runner/work/flytectl/flytectl/pkg/sandbox/start.go:287 +0x80 fp=0x1400066f9f0 sp=0x1400066f960 pc=0x1039234c0
github.com/flyteorg/flytectl/cmd/demo.startDemoCluster({0x10428bd08?, 0x1400019a000?}, {0x105273270?, 0x0?, 0x103957e29?}, {0x0, {0x0, 0x0}, {0x0, 0x0}, ...})
	/home/runner/work/flytectl/flytectl/cmd/demo/start.go:79 +0x64 fp=0x1400066fa30 sp=0x1400066f9f0 pc=0x103923fa4
github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0x14000655680?, {0x105273270, 0x0, 0x0})
	/home/runner/work/flytectl/flytectl/cmd/core/cmd.go:65 +0x508 fp=0x1400066fd60 sp=0x1400066fa30 pc=0x102e41968
github.com/spf13/cobra.(*Command).execute(0x14000655680, {0x105273270, 0x0, 0x0})
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:852 +0x4c4 fp=0x1400066fe40 sp=0x1400066fd60 pc=0x102631514
github.com/spf13/cobra.(*Command).ExecuteC(0x14000193180)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x34c fp=0x1400066ff00 sp=0x1400066fe40 pc=0x102631a6c
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
github.com/flyteorg/flytectl/cmd.ExecuteCmd()
	/home/runner/work/flytectl/flytectl/cmd/root.go:137 +0x24 fp=0x1400066ff20 sp=0x1400066ff00 pc=0x10392aaf4
main.main()
	/home/runner/work/flytectl/flytectl/main.go:12 +0x20 fp=0x1400066ff70 sp=0x1400066ff20 pc=0x10392ac20
runtime.main()
	/opt/hostedtoolcache/go/1.18.3/x64/src/runtime/proc.go:250 +0x250 fp=0x1400066ffd0 sp=0x1400066ff70 pc=0x1024d1ad0
runtime.goexit()
	/opt/hostedtoolcache/go/1.18.3/x64/src/runtime/asm_arm64.s:1263 +0x4 fp=0x1400066ffd0 sp=0x1400066ffd0 pc=0x1024ff4c4

goroutine 19 [chan receive]:
k8s.io/klog/v2.(*loggingT).flushDaemon(0x0?)
	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.8.0/klog.go:1164 +0x60
created by k8s.io/klog/v2.init.0
	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.8.0/klog.go:418 +0x154

goroutine 9 [select]:
go.opencensus.io/stats/view.(*worker).start(0x14000394300)
	/home/runner/go/pkg/mod/go.opencensus.io@v0.22.6/stats/view/worker.go:276 +0x88
created by go.opencensus.io/stats/view.init.0
	/home/runner/go/pkg/mod/go.opencensus.io@v0.22.6/stats/view/worker.go:34 +0xa8

goroutine 14 [select]:
net/http.(*persistConn).readLoop(0x1400087d8c0)
	/opt/hostedtoolcache/go/1.18.3/x64/src/net/http/transport.go:2213 +0xc2c
created by net/http.(*Transport).dialConn
	/opt/hostedtoolcache/go/1.18.3/x64/src/net/http/transport.go:1750 +0x11f4

goroutine 15 [select]:
net/http.(*persistConn).writeLoop(0x1400087d8c0)
	/opt/hostedtoolcache/go/1.18.3/x64/src/net/http/transport.go:2392 +0xa4
created by net/http.(*Transport).dialConn
	/opt/hostedtoolcache/go/1.18.3/x64/src/net/http/transport.go:1751 +0x1240

goroutine 88 [IO wait]:
internal/poll.runtime_pollWait(0x12cccc128, 0x72)
	/opt/hostedtoolcache/go/1.18.3/x64/src/runtime/netpoll.go:302 +0xa4
internal/poll.(*pollDesc).wait(0x14000394d80?, 0x14000802000?, 0x0)
	/opt/hostedtoolcache/go/1.18.3/x64/src/internal/poll/fd_poll_runtime.go:83 +0x2c
internal/poll.(*pollDesc).waitRead(...)
	/opt/hostedtoolcache/go/1.18.3/x64/src/internal/poll/fd_poll_runtime.go:88
internal/poll.(*FD).Read(0x14000394d80, {0x14000802000, 0x20b1, 0x20b1})
	/opt/hostedtoolcache/go/1.18.3/x64/src/internal/poll/fd_unix.go:167 +0x1e4
net.(*netFD).Read(0x14000394d80, {0x14000802000?, 0x14000a74768?, 0x1024b01f8?})
	/opt/hostedtoolcache/go/1.18.3/x64/src/net/fd_posix.go:55 +0x2c
net.(*conn).Read(0x1400000e800, {0x14000802000?, 0x14000a747a8?, 0x1024b225c?})
	/opt/hostedtoolcache/go/1.18.3/x64/src/net/net.go:183 +0x38
crypto/tls.(*atLeastReader).Read(0x140008b9bc0, {0x14000802000?, 0x0?, 0x1024a6038?})
	/opt/hostedtoolcache/go/1.18.3/x64/src/crypto/tls/conn.go:785 +0x44
bytes.(*Buffer).ReadFrom(0x140007ab3f8, {0x10426de88, 0x140008b9bc0})
	/opt/hostedtoolcache/go/1.18.3/x64/src/bytes/buffer.go:204 +0x94
crypto/tls.(*Conn).readFromUntil(0x140007ab180, {0x12cb25ea0?, 0x1400000e800}, 0x1024a81ec?)
	/opt/hostedtoolcache/go/1.18.3/x64/src/crypto/tls/conn.go:807 +0xd8
crypto/tls.(*Conn).readRecordOrCCS(0x140007ab180, 0x0)
	/opt/hostedtoolcache/go/1.18.3/x64/src/crypto/tls/conn.go:614 +0xdc
crypto/tls.(*Conn).readRecord(...)
	/opt/hostedtoolcache/go/1.18.3/x64/src/crypto/tls/conn.go:582
crypto/tls.(*Conn).Read(0x140007ab180, {0x140000b6000, 0x1000, 0x1028c776c?})
	/opt/hostedtoolcache/go/1.18.3/x64/src/crypto/tls/conn.go:1285 +0x180
bufio.(*Reader).Read(0x1400009c480, {0x140002fc820, 0x9, 0x1028c70fc?})
	/opt/hostedtoolcache/go/1.18.3/x64/src/bufio/bufio.go:236 +0x1e4
io.ReadAtLeast({0x10426dc48, 0x1400009c480}, {0x140002fc820, 0x9, 0x9}, 0x9)
	/opt/hostedtoolcache/go/1.18.3/x64/src/io/io.go:331 +0xa4
io.ReadFull(...)
	/opt/hostedtoolcache/go/1.18.3/x64/src/io/io.go:350
net/http.http2readFrameHeader({0x140002fc820?, 0x9?, 0x14000a263c0?}, {0x10426dc48?, 0x1400009c480?})
	/opt/hostedtoolcache/go/1.18.3/x64/src/net/http/h2_bundle.go:1566 +0x5c
net/http.(*http2Framer).ReadFrame(0x140002fc7e0)
	/opt/hostedtoolcache/go/1.18.3/x64/src/net/http/h2_bundle.go:1830 +0x84
net/http.(*http2clientConnReadLoop).run(0x14000a74f88)
	/opt/hostedtoolcache/go/1.18.3/x64/src/net/http/h2_bundle.go:8815 +0x100
net/http.(*http2ClientConn).readLoop(0x1400085e600)
	/opt/hostedtoolcache/go/1.18.3/x64/src/net/http/h2_bundle.go:8711 +0x60
created by net/http.(*http2Transport).newClientConn
	/opt/hostedtoolcache/go/1.18.3/x64/src/net/http/h2_bundle.go:7439 +0x924
g
Do you have
~/.kube/config
file ? if not then can create a
~/.kube
directory
c
yes I do
previously created by my gcloud work though...
g
cc: @icy-agent-73298
i
@careful-airport-82985 Does it fail for only sandbox or other commands too. Can you try running
Copy code
flytectl version
Also do you mind compiling this locally using go 1.17 by checking out the flytectl repo
πŸ‘ 1
c
doesn’t work neither:
Copy code
arnaudmelin ~ $ flytectl version
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags. 

 A new release of flytectl is available: 0.6.4 β†’ v0.6.5 
To upgrade, run: brew update && brew upgrade flytectl 
https://github.com/flyteorg/flytectl/releases/tag/v0.6.5 

{
  "App": "flytectl",
  "Build": "89558c4",
  "Version": "0.6.4",
  "BuildTime": "2022-07-29 11:09:36.127503 +0200 CEST m=+0.057530751"
}
I’ll try compiling it myself, keep you posted
f
Apologies that would have been helpful but yea Arnauds problem
actually, mines during register. gets through packaging protos fine
Copy code
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x1032271d8]

goroutine 1 [running]:
github.com/flyteorg/flytectl/cmd/core.CommandContext.AdminClient(...)
        /home/runner/work/flytectl/flytectl/cmd/core/cmd_ctx.go:48
github.com/flyteorg/flytectl/cmd/register.register({0x104257d08, 0x14000118000}, {0x10424a5a8?, 0x140007259b0?}, {0x0, {0x0, 0x0}, {0x0, 0x0}, {0x0, ...}, ...}, ...)
        /home/runner/work/flytectl/flytectl/cmd/register/register_util.go:188 +0x2f8
github.com/flyteorg/flytectl/cmd/register.registerFile({0x104257d08, 0x14000118000}, {0x16d98e978, _}, {_, _, _}, {0x0, {0x0, 0x0}, ...}, ...)
        /home/runner/work/flytectl/flytectl/cmd/register/register_util.go:606 +0x694
github.com/flyteorg/flytectl/cmd/register.Register({0x104257d08, 0x14000118000}, {0x140007b2c00?, 0x14000a9fa08?, 0x0?}, 0x1051f9100, {0x0, {0x0, 0x0}, {0x0, ...}, ...})
        /home/runner/work/flytectl/flytectl/cmd/register/files.go:160 +0x528
github.com/flyteorg/flytectl/cmd/register.registerFromFilesFunc({0x104257d08, 0x14000118000}, {0x140007b2c00, 0x1a7, 0x1af}, {0x0, {0x0, 0x0}, {0x0, 0x0}, ...})
        /home/runner/work/flytectl/flytectl/cmd/register/files.go:118 +0xc0
github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0x1400088c500?, {0x140007b2c00, 0x1a7, 0x1af})
        /home/runner/work/flytectl/flytectl/cmd/core/cmd.go:65 +0x508
github.com/spf13/cobra.(*Command).execute(0x1400088c500, {0x140007b1100, 0x1af, 0x1b0})
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:852 +0x4c4
github.com/spf13/cobra.(*Command).ExecuteC(0x14000a40280)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x34c
github.com/spf13/cobra.(*Command).Execute(...)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
github.com/flyteorg/flytectl/cmd.ExecuteCmd()
        /home/runner/work/flytectl/flytectl/cmd/root.go:137 +0x24
main.main()
        /home/runner/work/flytectl/flytectl/main.go:12 +0x20
i
@famous-businessperson-24711 your case seems to be different . Can you check your config.yaml file exists and its contains a non-empty endpoint string value
f
Ohh man this should be an error and not panic
i
yeah this seems regression with a recent change that went in.
Dylan can you confirm thats the case and i will reopen that issue.
f
yea but i need to figure out what the right config yaml is πŸ™‚
i
you can run
flytectl config init --host <flytedns>
and if you running with insecure pass in
--insecure
flag
f
ah thanks!
we have special auth though so figuring that out real quick one sec
yea that worked!
πŸ†’ 1
i
hi new to flyte i seem to be running into this error on my m1 mbp. when i run
flytectl sandbox start
. Would be glad to provide more info if needed. thank you!
Copy code
92022-08-13T21:18:16.518344130Z Starting Docker daemon...
%2022-08-13T21:18:17.600869464Z Done.
72022-08-13T21:18:17.600981589Z Starting k3s cluster...
%2022-08-13T21:18:21.051723174Z Done.
unexpected fault address 0x360808085a175a75
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x2 addr=0x360808085a175a75 pc=0x10259c710]

goroutine 1 [running]:
runtime.throw({0x1039d1ce1?, 0x30?})
        /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/panic.go:992 +0x50 fp=0x14000d8fbf0 sp=0x14000d8fbc0 pc=0x10256f550
runtime.sigpanic()
        /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/signal_unix.go:825 +0x1a4 fp=0x14000d8fc20 sp=0x14000d8fbf0 pc=0x1025856a4
aeshashbody()
        /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/asm_arm64.s:878 +0x2d0 fp=0x14000d8fc30 sp=0x14000d8fc30 pc=0x10259c710
runtime.mapiternext(0x1400013de00)
        /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/map.go:934 +0x2c4 fp=0x14000d8fca0 sp=0x14000d8fc30 pc=0x10254ad74
runtime.mapiterinit(0x14000d8fcf8?, 0x7?, 0x14000d8fd28?)
        /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/map.go:861 +0x2f0 fp=0x14000d8fcd0 sp=0x14000d8fca0 pc=0x10254aa70
reflect.mapiterinit(0x12c8bffff?, 0x0?, 0x0?)
        /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/map.go:1373 +0x20 fp=0x14000d8fd00 sp=0x14000d8fcd0 pc=0x102598dd0
github.com/modern-go/reflect2.(*UnsafeMapType).UnsafeIterate(...)
        /home/runner/go/pkg/mod/github.com/modern-go/reflect2@v1.0.1/unsafe_map.go:112
github.com/json-iterator/go.(*sortKeysMapEncoder).Encode(0x14000d6bbc0, 0x140005ee3b8, 0x14000322420)
        /home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_map.go:291 +0x244 fp=0x14000d8fe80 sp=0x14000d8fd00 pc=0x1030c7f34
github.com/json-iterator/go.(*placeholderEncoder).Encode(0x12ca54f01?, 0x14000322438?, 0x14000d8ff28?)
        /home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:332 +0x2c fp=0x14000d8feb0 sp=0x14000d8fe80 pc=0x1030c0fdc
github.com/json-iterator/go.(*structFieldEncoder).Encode(0x14000d6be30, 0x103dc6459?, 0x14000322420)
        /home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:110 +0x58 fp=0x14000d8ff30 sp=0x14000d8feb0 pc=0x1
[f
f
@icy-stone-29999 any reason to use sandbox? Try flytectl demo start
i
@freezing-airport-6809 i get the same error with
Copy code
flytectl demo start
Copy code
❯  flytectl demo start                                                                                                                [226/3565]
πŸ§‘β€πŸ­ Bootstrapping a brand new flyte cluster... πŸ”¨ πŸ”§                      0      p                p                c
delete existing sandbox cluster [y/n]: y
cr.flyte.org/flyteorg/flyte-sandbox-lite:sha-2635cda85b24926632f0d7391975732ab221fe1b Fully Qualified image
πŸ‹ Running Flyte v1.1.0 release
πŸ‹ pulling docker image for release cr.flyte.org/flyteorg/flyte-sandbox-lite:sha-2635cda85b24926632f0d7391975732ab221fe1b
{"status":"Pulling from flyteorg/flyte-sandbox-lite","id":"sha-2635cda85b24926632f0d7391975732ab221fe1b"}
{"status":"Digest: sha256:b60955127757a9dd34f5ec3dea59982491a06fbb5430741da90dfe286505eb65"}
{"status":"Status: Image is up to date for cr.flyte.org/flyteorg/flyte-sandbox-lite:sha-2635cda85b24926632f0d7391975732ab221fe1b"}
πŸ§‘β€πŸ­ booting Flyte-sandbox eontainer                                0     p                p                c
92022-08-14T15:00:46.859657127Z Starting Docker daemon...
%2022-08-14T15:00:47.919675961Z Done.
72022-08-14T15:00:47.919712711Z Starting k3s cluster...
%2022-08-14T15:00:51.317517879Z Done.
unexpected fault address 0x360808085a175a75
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x2 addr=0x360808085a175a75 pc=0x101044710]

goroutine 1 [running]:
runtime.throw({0x102479ce1?, 0x30?})
        /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/panic.go:992 +0x50 fp=0x1400012fbf0 sp=0x1400012fbc0 pc=0x101017550
runtime.sigpanic()
        /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/signal_unix.go:825 +0x1a4 fp=0x1400012fc20 sp=0x1400012fbf0 pc=0x10102d6a4
aeshashbody()
        /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/asm_arm64.s:878 +0x2d0 fp=0x1400012fc30 sp=0x1400012fc30 pc=0x101044710
runtime.mapiternext(0x14000197d80)
        /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/map.go:934 +0x2c4 fp=0x1400012fca0 sp=0x1400012fc30 pc=0x100ff2d74
runtime.mapiterinit(0x1400012fcf8?, 0x7?, 0x1400012fd38?)
        /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/map.go:861 +0x2f0 fp=0x1400012fcd0 sp=0x1400012fca0 pc=0x100ff2a70
reflect.mapiterinit(0x1400012fd38?, 0x1010074c4?, 0x0?)
        /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/map.go:1373 +0x20 fp=0x1400012fd00 sp=0x1400012fcd0 pc=0x101040dd0
github.com/modern-go/reflect2.(*UnsafeMapType).UnsafeIterate(...)
        /home/runner/go/pkg/mod/github.com/modern-go/reflect2@v1.0.1/unsafe_map.go:112
github.com/json-iterator/go.(*sortKeysMapEncoder).Encode(0x14000d47e30, 0x14000c896a8, 0x1400030ec00)
        /home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_map.go:291 +0x244 fp=0x1400012fe80 sp=0x1400012fd00 pc=0x101b6ff34
github.com/json-iterator/go.(*placeholderEncoder).Encode(0x12b42da01?, 0x1400030ec18?, 0x1400012ff28?)
        /home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:332 +0x2c fp=0x1400012feb0 sp=0x1400012fe80 pc=0x101b68fdc
github.com/json-iterator/go.(*structFieldEncoder).Encode(0x140007be9c0, 0x10286e459?, 0x1400030ec00)
        /home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:110 +0x58 fp=0x1400012ff30 sp=0x1400012feb0 pc=0x1
01b7c5a8
github.com/json-iterator/go.(*structEncoder).Encode(0x140007bea20, 0x103dc1ae8?, 0x1400030ec00)
        /home/runner/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:158 +0x708 fp=0x14000130020 sp=0x1400012ff30 pc=0x
101b7cf28
t
cc: @icy-agent-73298
i
flytectl uses k8s apimachinery to copy the kubecontext of the sandbox into your local one and switch over to it once sandbox is up. JsonIterator which is used in api-machinery uses mapiterinit interface https://github.com/json-iterator/go/blob/v1.1.10/reflect_map.go#L291 https://github.com/modern-go/reflect2/blob/v1.0.1/unsafe_map.go#L112 which was changed in go1.18. This uses go:linkname and hence is not caught during compiltation and breaks at runtime if incompatible. https://github.com/golang/go/commit/1b2d794ca3ba60c2dbc958a271662784a7122739#diff-fb7a84f457b2d4466b5d32940ffc6095d12b649f88bd3e5e762a87631e7a917aR3247 Related issues : https://github.com/json-iterator/go/issues/608 https://github.com/golang/go/issues/48238 https://github.com/modern-go/reflect2/issues/24 Upgrading to 1.1.12 of json-iterator should fix this issue as the reflect package has been fixed to support this comptability issue https://github.com/modern-go/reflect2/pull/25/files Not sure why this is only an issue on M1 mac’s though.I have upgraded the json-iterator in this pr https://github.com/flyteorg/flytectl/pull/342 would mind compiling this locally using make compile and using the generated binary bin/flytectl from the repo to run the same command and see if you run into the same issue. cc : @careful-airport-82985 @icy-stone-29999
i
Thanks @icy-agent-73298. Compiling pr 342 and running
bin/flytectl
worked!! πŸŽ‰
❀️ 1
i
Thanks @icy-stone-29999 for checking this. we will get this merged soon
πŸŽ‰ 2
f
Thank you @icy-agent-73298
200 Views