<#4591 [BUG] Flytectl slow on Mac OS> Issue create...
# flyte-github
c
#4591 [BUG] Flytectl slow on Mac OS Issue created by givanovexpe I have been using flytectl for quite some time on Mac OS X and I've noticed that every single time we invoke it is very slow. What I mean is that even a simple "flytectl get projects" can take between 2-4 minutes to execute. Out of curiosity I dockerized flytectl and it ran much faster - in around 3-4 seconds. The issue with the Darwin version is both with flytectl installed via Homebrew and via https://github.com/flyteorg/flytectl/releases $ flytectl get projects {"json":{"src":"viper.go:400"},"level":"debug","msg":"Config section [admin] updated. Firing updated event.","ts":"2023-12-13T140247Z"} {"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [storage] updated. No update handler registered.","ts":"2023-12-13T140247Z"} {"json":{"src":"client.go:63"},"level":"info","msg":"Initialized Admin client","ts":"2023-12-13T140247Z"} {"json":{"src":"auth_interceptor.go:86"},"level":"debug","msg":"Request failed due to [rpc error: code = Unauthenticated desc = token parse error [JWT_VERIFICATION_FAILED] Could not retrieve id token from metadata, caused by: rpc error: code = Unauthenticated desc = Request unauthenticated with IDToken]. If it's an unauthenticated error, we will attempt to establish an authenticated context.","ts":"2023-12-13T140436Z"} {"json":{"src":"auth_interceptor.go:91"},"level":"debug","msg":"Request failed due to [Unauthenticated]. Attempting to establish an authenticated connection and trying again.","ts":"2023-12-13T140436Z"} {"json":{"src":"token_source_provider.go:233"},"level":"info","msg":"retrieved token with expiry 2023-12-13 143624.532855 +0000 GMT m=+2017.141144085","ts":"2023-12-13T140625Z"} {"json":{"src":"project.go:102"},"level":"debug","msg":"Retrieved 1 project","ts":"2023-12-13T140625Z"} --- | ID | NAME | DESCRIPTION | --- | flytesnacks | flytesnacks | flytesnacks description | --- 1 rows Once the admin client is initialized it takes 2 mins until the next call and 2 mins until the next. However running flytectl from Docker did not how this docker run -v $HOME/.flyte:/root/.flyte --env=FLYTECTL_CONFIG=/root/.flyte/docker.config.yaml -it flytectl:latest get projects {"json":{"src":"viper.go:400"},"level":"debug","msg":"Config section [admin] updated. Firing updated event.","ts":"2023-12-13T142148Z"} {"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [storage] updated. No update handler registered.","ts":"2023-12-13T142148Z"} {"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [root] updated. No update handler registered.","ts":"2023-12-13T142148Z"} {"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [files] updated. No update handler registered.","ts":"2023-12-13T142148Z"} {"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [console] updated. No update handler registered.","ts":"2023-12-13T142148Z"} {"json":{"src":"client.go:63"},"level":"info","msg":"Initialized Admin client","ts":"2023-12-13T142148Z"} {"json":{"src":"auth_interceptor.go:86"},"level":"debug","msg":"Request failed due to [rpc error: code = Unauthenticated desc = token parse error [JWT_VERIFICATION_FAILED] Could not retrieve id token from metadata, caused by: rpc error: code = Unauthenticated desc = Request unauthenticated with IDToken]. If it's an unauthenticated error, we will attempt to establish an authenticated context.","ts":"2023-12-13T142151Z"} {"json":{"src":"auth_interceptor.go:91"},"level":"debug","msg":"Request failed due to [Unauthenticated]. Attempting to establish an authenticated connection and trying again.","ts":"2023-12-13T142151Z"} {"json":{"src":"token_source_provider.go:233"},"level":"info","msg":"retrieved token with expiry 2023-12-13 145152.947038086 +0000 UTC m=+1805.303830171","ts":"2023-12-13T142153Z"} {"json":{"src":"token_source_provider.go:237"},"level":"warning","msg":"failed to cache token: %!w(*fmt.wrapError=\u0026{unable to save token. Error: exec: "dbus-launch": executable file not found in $PATH 0xc0009b0440})","ts":"2023-12-13T142153Z"} {"json":{"src":"project.go:102"},"level":"debug","msg":"Retrieved 1 project","ts":"2023-12-13T142154Z"} --- | ID | NAME | DESCRIPTION | --- | flytesnacks | flytesnacks | flytesnacks description | --- 1 rows Is there some way to verify why this is? flyteorg/flyte