Ahmed Laadraoui
03/16/2023, 1:40 PMDavid Espejo (he/him)
03/16/2023, 1:48 PMpyflyte run --remote example.py training_workflow \
--hyperparameters '{"C": 0.1}'
btw you can skip the flytectl demo start
part because you already have a Flyte backend deployed
Let us know here about your progress, We try to be as responsive as possible, so really at channel is not necessary 🙂Ahmed Laadraoui
03/16/2023, 1:50 PMDavid Espejo (he/him)
03/16/2023, 1:51 PMAhmed Laadraoui
03/16/2023, 1:52 PMDavid Espejo (he/him)
03/16/2023, 1:52 PMAhmed Laadraoui
03/16/2023, 1:54 PMDavid Espejo (he/him)
03/16/2023, 1:57 PMI got a docker error saying that it’s already used when I try to restart itlike, the port is already in use?
Ahmed Laadraoui
03/16/2023, 1:57 PMadmin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: dns:///<my-domain.xyz>
authType: Pkce
insecure: true
logger:
show-source: true
level: 0
I suppose this will connect my flytectl with the deployed versionDavid Espejo (he/him)
03/16/2023, 1:58 PMAhmed Laadraoui
03/16/2023, 1:59 PMDavid Espejo (he/him)
03/16/2023, 1:59 PMflyte-binary
?Ahmed Laadraoui
03/16/2023, 2:01 PMDavid Espejo (he/him)
03/16/2023, 2:02 PMAhmed Laadraoui
03/16/2023, 2:04 PMDavid Espejo (he/him)
03/16/2023, 2:06 PM<http://my-domain.xyz|my-domain.xyz>
has a corresponding certificate created and imported?Ahmed Laadraoui
03/16/2023, 2:06 PMDavid Espejo (he/him)
03/16/2023, 2:07 PMAhmed Laadraoui
03/16/2023, 2:09 PMDavid Espejo (he/him)
03/16/2023, 2:10 PMendpoint: dns:///my-domain:8089
Ahmed Laadraoui
03/16/2023, 2:11 PMdns:///my-domain.xyz:8089
David Espejo (he/him)
03/16/2023, 2:12 PMAhmed Laadraoui
03/16/2023, 2:12 PMflytectl create project --file project.yaml
David Espejo (he/him)
03/16/2023, 2:14 PMAlexander Kim
03/16/2023, 2:15 PMAhmed Laadraoui
03/16/2023, 2:16 PMDavid Espejo (he/him)
03/16/2023, 2:18 PMflyte
)
kubectl get svc -n flyte
Ahmed Laadraoui
03/16/2023, 2:18 PMDavid Espejo (he/him)
03/16/2023, 2:25 PMflyte-binary
🙂
alright, so as this is a non SSL connection, you could
1. config.yaml
kubectl -n flyte port-forward service/flyteadmin 8089:80
Ahmed Laadraoui
03/16/2023, 2:28 PMDavid Espejo (he/him)
03/16/2023, 2:31 PMAhmed Laadraoui
03/16/2023, 2:32 PMflytectl create project --file project.yaml
Error: Connection Info: [Endpoint: dns:///localhost:8089, InsecureConnection?: true, AuthMode: Pkce]: rpc error: code = Unavailable desc = connection closed before server preface received
David Espejo (he/him)
03/16/2023, 2:32 PMconfig
otherwise it will throw weird SSL errorsAhmed Laadraoui
03/16/2023, 2:32 PMHandling connection for 8089
David Espejo (he/him)
03/16/2023, 2:33 PMlogger:
show-source: true
level: 6
Ahmed Laadraoui
03/16/2023, 2:34 PM{"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [storage] updated. No update handler registered.","ts":"2023-03-16T15:33:38+01:00"}
{"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [root] updated. No update handler registered.","ts":"2023-03-16T15:33:38+01:00"}
{"json":{"src":"viper.go:400"},"level":"debug","msg":"Config section [admin] updated. Firing updated event.","ts":"2023-03-16T15:33:38+01:00"}
{"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [files] updated. No update handler registered.","ts":"2023-03-16T15:33:38+01:00"}
{"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [console] updated. No update handler registered.","ts":"2023-03-16T15:33:38+01:00"}
{"json":{"src":"client.go:63"},"level":"info","msg":"Initialized Admin client","ts":"2023-03-16T15:33:38+01:00"}
{"json":{"src":"auth_interceptor.go:67"},"level":"debug","msg":"Request failed due to [rpc error: code = Unavailable desc = connection closed before server preface received]. If it's an unauthenticated error, we will attempt to establish an authenticated context.","ts":"2023-03-16T15:34:19+01:00"}
Error: Connection Info: [Endpoint: dns:///localhost:8089, InsecureConnection?: true, AuthMode: Pkce]: rpc error: code = Unavailable desc = connection closed before server preface received
{"json":{"src":"main.go:13"},"level":"error","msg":"Connection Info: [Endpoint: dns:///localhost:8089, InsecureConnection?: true, AuthMode: Pkce]: rpc error: code = Unavailable desc = connection closed before server preface received","ts":"2023-03-16T15:34:19+01:00"}
admin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: dns:///localhost:8089
authType: Pkce
insecure: true
logger:
show-source: true
level: 6
David Espejo (he/him)
03/16/2023, 2:38 PMAhmed Laadraoui
03/16/2023, 2:38 PMDavid Espejo (he/him)
03/16/2023, 2:38 PMAhmed Laadraoui
03/16/2023, 2:39 PM{"json":{"src":"client.go:63"},"level":"info","msg":"Initialized Admin client","ts":"2023-03-16T15:39:19+01:00"}
{"json":{"src":"auth_interceptor.go:67"},"level":"debug","msg":"Request failed due to [rpc error: code = Unavailable desc = connection closed before server preface received]. If it's an unauthenticated error, we will attempt to establish an authenticated context.","ts":"2023-03-16T15:39:40+01:00"}
Error: Connection Info: [Endpoint: dns:///opentick.xyz:80, InsecureConnection?: true, AuthMode: Pkce]: rpc error: code = Unavailable desc = connection closed before server preface received
{"json":{"src":"main.go:13"},"level":"error","msg":"Connection Info: [Endpoint: dns:///opentick.xyz:80, InsecureConnection?: true, AuthMode: Pkce]: rpc error: code = Unavailable desc = connection closed before server preface received","ts":"2023-03-16T15:39:40+01:00"}
David Espejo (he/him)
03/16/2023, 2:40 PMlocalhost:80
and if it doesn't work, we'll need more information on your setup (certificates, ingress or not, etc)Ahmed Laadraoui
03/16/2023, 2:46 PM{"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [storage] updated. No update handler registered.","ts":"2023-03-16T15:44:30+01:00"}
{"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [root] updated. No update handler registered.","ts":"2023-03-16T15:44:30+01:00"}
{"json":{"src":"viper.go:400"},"level":"debug","msg":"Config section [admin] updated. Firing updated event.","ts":"2023-03-16T15:44:30+01:00"}
{"json":{"src":"client.go:63"},"level":"info","msg":"Initialized Admin client","ts":"2023-03-16T15:44:30+01:00"}
{"json":{"src":"auth_interceptor.go:67"},"level":"debug","msg":"Request failed due to [rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial tcp 127.0.0.1:80: connect: connection refused\"]. If it's an unauthenticated error, we will attempt to establish an authenticated context.","ts":"2023-03-16T15:45:10+01:00"}
Error: Connection Info: [Endpoint: dns:///localhost:80, InsecureConnection?: true, AuthMode: Pkce]: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:80: connect: connection refused"
{"json":{"src":"main.go:13"},"level":"error","msg":"Connection Info: [Endpoint: dns:///localhost:80, InsecureConnection?: true, AuthMode: Pkce]: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial tcp 127.0.0.1:80: connect: connection refused\"","ts":"2023-03-16T15:45:10+01:00"}
David Espejo (he/him)
03/16/2023, 2:51 PMconnection refused
also, btw, your port-forward session should change:
kubectl -n flyte port-forward service/flyteadmin 80:80
Ahmed Laadraoui
03/16/2023, 2:56 PMUnable to listen on port 80: Listeners failed to create with the following errors: [unable to create listener: Error listen tcp4 127.0.0.1:80: bind: permission denied unable to create listener: Error listen tcp6 [::1]:80: bind: permission denied]
error: unable to listen on any of the requested ports: [{80 8088}]
David Espejo (he/him)
03/16/2023, 3:01 PMAhmed Laadraoui
03/16/2023, 3:02 PMhelm_release.metrics_server
David Espejo (he/him)
03/16/2023, 7:11 PMAhmed Laadraoui
03/16/2023, 7:51 PMDavid Espejo (he/him)
03/16/2023, 7:59 PM81
in this case would be the port for non SSL connections, interestingAhmed Laadraoui
03/16/2023, 8:00 PMDavid Espejo (he/him)
03/16/2023, 9:10 PMAhmed Laadraoui
03/16/2023, 10:42 PM