https://flyte.org logo
#ask-the-community
Title
# ask-the-community
k

Kevin Schaich

02/08/2023, 5:13 PM
hey, all. no matter which commands I try my
flytectl
consistently fails to discover where config lives (
~/.flyte/config.yaml
). the only way i've gotten it to work is by supplying
--file
arg manually – but I thought that was the point of having a default location:
Copy code
> flytectl config init
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
Init flytectl config file at [/Users/kevinschaich/.flyte/config.yaml]
                                                                                                          
> flytectl config discover
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
just me or has anyone else encountered? did I forget to set an env variable somewhere? I'm on an M1 Mac – Ventura
13.2
,
flytectl v0.6.27
d

David Espejo (he/him)

02/08/2023, 5:49 PM
hi @Kevin Schaich Sorry for my naive approach. Could you share the output of
ls -ltr $HOME/.flyte/
I have the exact same environment as you, but I'm unable to reproduce the issue
k

Kevin Schaich

02/08/2023, 5:50 PM
Copy code
> ls -ltr $HOME/.flyte

total 16
drwxr-xr-x@ 3 kevinschaich  staff   96 Feb  8 12:25 state
-rw-r--r--@ 1 kevinschaich  staff  189 Feb  8 12:26 config.yaml
drwxr-xr-x@ 3 kevinschaich  staff   96 Feb  8 12:26 k3s
-rw-r--r--@ 1 kevinschaich  staff  223 Feb  8 12:26 config-sandbox.yaml
drwxr-xr-x@ 3 kevinschaich  staff   96 Feb  8 12:27 node
d

David Espejo (he/him)

02/08/2023, 5:52 PM
is this a sandbox environment?
k

Kevin Schaich

02/08/2023, 5:53 PM
Yep. I just did
flytectl config init
and then
flytectl sandbox start
with default args, although
sandbox start
also fails to find the default location
d

David Espejo (he/him)

02/08/2023, 5:55 PM
what about
flytectl demo start
k

Kevin Schaich

02/08/2023, 5:55 PM
that works, but my understanding was that that's a super minimal env where you probably don't even need a config file
i went through the tutorial now and I'm trying to get my sandbox setup so I can use custom python dependencies in my
requirements.txt
d

David Espejo (he/him)

02/08/2023, 6:01 PM
sandbox is indeed a minimalist deployment (single Docker container) with all Flyte's dependencies included. In the deployment guide, sandbox is invoked using the `demo`option. @Eduardo Apolinario (eapolinario) is
flytectl sandbox
an option that should still be available for a sandbox deployment?
e

Eduardo Apolinario (eapolinario)

02/08/2023, 11:30 PM
@Kevin Schaich, we're phasing out
flytectl sandbox
in favor of
flytectl demo
. Can you try that and tell us if you're seeing any issue?
59 Views