Andrew
11/27/2023, 3:33 PMflytectl demo start
. Last week it was saying it couldn’t find docker running even when it was, and now I got back on today and ran it, and it got this error. Any idea what could have caused this? I just updated with brew upgrade flytectl
but it didn’t change the output
Error:
1 error(s) decoding:
* '' has invalid keys: console
strict mode is on but received keys [map[level:{}]] to decode with no config assigned to receive them: failed strict mode check
ERRO[0000]
1 error(s) decoding:
* '' has invalid keys: console
strict mode is on but received keys [map[level:{}]] to decode with no config assigned to receive them: failed strict mode check src="main.go:13"
David Espejo (he/him)
11/27/2023, 4:51 PMAndrew
11/27/2023, 4:53 PMAndrew
11/27/2023, 6:42 PMflytectl
? I’m trying to fully update homebrew and then reinstall, but if that doesn’t work I can try the curl install methodDavid Espejo (he/him)
11/27/2023, 6:52 PMbrew
can make things more deterministic if you want to upgrade/etc in the future, but that's just my opinion 🙂Andrew
11/27/2023, 6:52 PMAndrew
11/27/2023, 8:12 PMflytectl
? I tried installing with curl on another machine (linux this time), and its getting the same errorAndrew
11/27/2023, 11:51 PMpyflyte
talking to docker, so I wasn’t sure if it was an intel thing, or if somehow my machine is just in a weird state or somethingSamhita Alla
~/.flyte/config.yaml
? precisely asking for the flytectl config.Andrew
11/28/2023, 3:01 PMadmin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: dns:///flyte.<domain>.com
authType: Pkce
insecure: false
console:
endpoint: <https://flyte>.<domain>.com/console
logger:
show-source: true
level: 0
David Espejo (he/him)
11/28/2023, 3:22 PMtask_resources:
defaults:
cpu: 500m
memory: 1Gi
limits:
cpu: 2
memory: 4Gi
Andrew
11/28/2023, 3:37 PMSamhita Alla
console
to the left?Samhita Alla
admin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: dns:///flyte.<domain>.com
authType: Pkce
insecure: false
console:
endpoint: <https://flyte>.<domain>.com/console
logger:
show-source: true
level: 0
Andrew
11/28/2023, 4:55 PMadmin:
endpoint: localhost:30080
authType: Pkce
insecure: false
console:
endpoint: <http://localhost:30080>
logger:
show-source: true
level: 0
task_resources:
defaults:
cpu: 500m
memory: 1Gi
limits:
cpu: 2
memory: 4Gi
Is there a way to make sure its using this config file? I assumed it was just the default, that it would look for ~/.flyte/config.yaml
David Espejo (he/him)
11/28/2023, 4:57 PMexport FLYTECTL_CONFIG=$HOME/.flyte/config-sandbox.yaml
config.yaml
is for non-sandbox configAndrew
11/28/2023, 4:57 PMexport FLYTECTL_CONFIG=~/.flyte/config.yaml
just now, and it output this instead:
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
🧑🏭 Bootstrapping a brand new Flyte cluster... 🔨 🔧
Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
{"json":{},"level":"error","msg":"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?","ts":"2023-11-28T09:56:14-07:00"}
Which is back to my initial error, where it can’t access docker for some reasonAndrew
11/28/2023, 4:58 PMAndrew
11/28/2023, 4:59 PMadmin:
endpoint: localhost:30080
authType: Pkce
insecure: true
console:
endpoint: <http://localhost:30080>
logger:
show-source: true
level: 0
Andrew
11/28/2023, 5:04 PMflytectl config init
, and that got past the main.go issue, using this as the initialized config file. Now its back to the docker issue, which seems to be separate.
admin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: dns:///localhost:30080
insecure: true
So it does seem to be a config parsing issue for the first issue, and the docker issue is some other issue (which I’m pretty sure is inherent to my computer for some reason, I’ve seen that pop up every once in awhile trying to run docker commands, where it doesn’t think its running). But I’m not really sureAndrew
11/28/2023, 5:09 PMAndrew
11/28/2023, 5:09 PMAndrew
11/28/2023, 5:10 PM