flaky-tent-80156
03/16/2023, 1:40 PMaverage-finland-92144
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 🙂flaky-tent-80156
03/16/2023, 1:50 PMflaky-tent-80156
03/16/2023, 1:50 PMaverage-finland-92144
03/16/2023, 1:51 PMflaky-tent-80156
03/16/2023, 1:52 PMflaky-tent-80156
03/16/2023, 1:52 PMaverage-finland-92144
03/16/2023, 1:52 PMflaky-tent-80156
03/16/2023, 1:54 PMflaky-tent-80156
03/16/2023, 1:54 PMaverage-finland-92144
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?
flaky-tent-80156
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 versionflaky-tent-80156
03/16/2023, 1:57 PMaverage-finland-92144
03/16/2023, 1:58 PMflaky-tent-80156
03/16/2023, 1:59 PMaverage-finland-92144
03/16/2023, 1:59 PMflyte-binary
?average-finland-92144
03/16/2023, 2:01 PMflaky-tent-80156
03/16/2023, 2:01 PMaverage-finland-92144
03/16/2023, 2:02 PMflaky-tent-80156
03/16/2023, 2:04 PMaverage-finland-92144
03/16/2023, 2:06 PM<http://my-domain.xyz|my-domain.xyz>
has a corresponding certificate created and imported?flaky-tent-80156
03/16/2023, 2:06 PMflaky-tent-80156
03/16/2023, 2:06 PMflaky-tent-80156
03/16/2023, 2:07 PMflaky-tent-80156
03/16/2023, 2:07 PMflaky-tent-80156
03/16/2023, 2:07 PMflaky-tent-80156
03/16/2023, 2:07 PMaverage-finland-92144
03/16/2023, 2:07 PMaverage-finland-92144
03/16/2023, 2:07 PMaverage-finland-92144
03/16/2023, 2:08 PMflaky-tent-80156
03/16/2023, 2:09 PMaverage-finland-92144
03/16/2023, 2:10 PMendpoint: dns:///my-domain:8089
average-finland-92144
03/16/2023, 2:11 PMflaky-tent-80156
03/16/2023, 2:11 PMflaky-tent-80156
03/16/2023, 2:11 PMdns:///my-domain.xyz:8089
flaky-tent-80156
03/16/2023, 2:12 PMaverage-finland-92144
03/16/2023, 2:12 PMflaky-tent-80156
03/16/2023, 2:12 PMflaky-tent-80156
03/16/2023, 2:13 PMflaky-tent-80156
03/16/2023, 2:14 PMflytectl create project --file project.yaml
average-finland-92144
03/16/2023, 2:14 PMripe-intern-90996
03/16/2023, 2:15 PMflaky-tent-80156
03/16/2023, 2:16 PMflaky-tent-80156
03/16/2023, 2:17 PMaverage-finland-92144
03/16/2023, 2:18 PMflyte
)
kubectl get svc -n flyte
flaky-tent-80156
03/16/2023, 2:18 PMaverage-finland-92144
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
flaky-tent-80156
03/16/2023, 2:28 PMflaky-tent-80156
03/16/2023, 2:28 PMflaky-tent-80156
03/16/2023, 2:29 PMaverage-finland-92144
03/16/2023, 2:31 PMflaky-tent-80156
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
average-finland-92144
03/16/2023, 2:32 PMconfig
otherwise it will throw weird SSL errorsflaky-tent-80156
03/16/2023, 2:32 PMHandling connection for 8089
average-finland-92144
03/16/2023, 2:33 PMlogger:
show-source: true
level: 6
flaky-tent-80156
03/16/2023, 2:34 PMflaky-tent-80156
03/16/2023, 2:34 PMflaky-tent-80156
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"}
flaky-tent-80156
03/16/2023, 2:36 PMadmin:
# 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
average-finland-92144
03/16/2023, 2:38 PMflaky-tent-80156
03/16/2023, 2:38 PMaverage-finland-92144
03/16/2023, 2:38 PMflaky-tent-80156
03/16/2023, 2:39 PMflaky-tent-80156
03/16/2023, 2:40 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"}
average-finland-92144
03/16/2023, 2:40 PMaverage-finland-92144
03/16/2023, 2:43 PMlocalhost:80
and if it doesn't work, we'll need more information on your setup (certificates, ingress or not, etc)flaky-tent-80156
03/16/2023, 2:46 PMflaky-tent-80156
03/16/2023, 2:47 PMflaky-tent-80156
03/16/2023, 2:50 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"}
average-finland-92144
03/16/2023, 2:51 PMaverage-finland-92144
03/16/2023, 2:53 PMconnection refused
also, btw, your port-forward session should change:
kubectl -n flyte port-forward service/flyteadmin 80:80
flaky-tent-80156
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}]
flaky-tent-80156
03/16/2023, 3:00 PMaverage-finland-92144
03/16/2023, 3:01 PMaverage-finland-92144
03/16/2023, 3:01 PMflaky-tent-80156
03/16/2023, 3:02 PMflaky-tent-80156
03/16/2023, 3:02 PMflaky-tent-80156
03/16/2023, 3:04 PMflaky-tent-80156
03/16/2023, 3:04 PMflaky-tent-80156
03/16/2023, 3:06 PMhelm_release.metrics_server
flaky-tent-80156
03/16/2023, 3:17 PMflaky-tent-80156
03/16/2023, 5:41 PMaverage-finland-92144
03/16/2023, 7:11 PMflaky-tent-80156
03/16/2023, 7:51 PMflaky-tent-80156
03/16/2023, 7:52 PMflaky-tent-80156
03/16/2023, 7:53 PMflaky-tent-80156
03/16/2023, 7:58 PMflaky-tent-80156
03/16/2023, 7:58 PMflaky-tent-80156
03/16/2023, 7:59 PMaverage-finland-92144
03/16/2023, 7:59 PM81
in this case would be the port for non SSL connections, interestingflaky-tent-80156
03/16/2023, 8:00 PMflaky-tent-80156
03/16/2023, 8:00 PMflaky-tent-80156
03/16/2023, 8:00 PMflaky-tent-80156
03/16/2023, 8:00 PMaverage-finland-92144
03/16/2023, 9:10 PMflaky-tent-80156
03/16/2023, 10:42 PMflaky-tent-80156
03/16/2023, 10:44 PM