brief-fish-13206
04/25/2023, 2:36 PMkubectl -n flyte port-forward service/flyte-backend-flyte-binary 8088:8088 8089:8089
Config is this
admin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: localhost:8088
authType: Pkce
insecure: true
logger:
show-source: true
level: 0
And I'm getting this when running a wf:
$ FLYTE_CONFIG=~/.flyte/config.yaml pyflyte run --remote workflows/greeting.py wf --name Sam
Failed with Exception: Reason: SYSTEM:Unknown
RPC Failed, with Status: StatusCode.UNAVAILABLE
details: failed to connect to all addresses; last error: INTERNAL: ipv4:127.0.0.1:8088: Trying to connect an http1.x server
Debug string UNKNOWN:failed to connect to all addresses; last error: INTERNAL: ipv4:127.0.0.1:8088: Trying to connect an http1.x server {grpc_status:14, created_time:"2023-04-25T15:31:54.782127+01:00"}
average-finland-92144
04/25/2023, 2:43 PMinsecureSkipVerify: true
brief-fish-13206
04/25/2023, 3:39 PMadmin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: localhost:8088
authType: Pkce
insecure: true
insecureSkipVerify: true
logger:
show-source: true
level: 0
Still no luck :-(average-finland-92144
04/25/2023, 4:20 PMinsecure
to false
brief-fish-13206
04/25/2023, 4:22 PMFailed with Unknown Exception <class 'ssl.SSLError'> Reason: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)
[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)
average-finland-92144
04/25/2023, 4:38 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
average-finland-92144
04/25/2023, 6:46 PMaverage-finland-92144
04/25/2023, 6:48 PMinsecureSkipVerify
line
2. Leave insecure: true
3. Change the port from 8088
to 8089
brief-fish-13206
04/25/2023, 7:20 PMbrief-fish-13206
04/25/2023, 7:21 PMvictorious-kilobyte-69570
05/24/2023, 9:40 AM~/data_ops/eks/flyte/flytesnacks/cookbook$ pyflyte run --remote core/flyte_basics/hello_world.py my_wf
2023-05-24 15:01:01,173936 WARNING {"asctime": "2023-05-24 15:01:01,173", "name": "flytekit", "levelname": "WARNING", "message": "Error while parsing a block mapping\n in file.py:185
\"/home/enceladus/.flyte/config.yaml\", line 1, column 1\nexpected <block end>, but found '<block mapping start>'\n in
\"/home/enceladus/.flyte/config.yaml\", line 4, column 3 reading yaml config file at /home/enceladus/.flyte/config.yaml, ignoring..."}
2023-05-24 15:01:01,217704 WARNING {"asctime": "2023-05-24 15:01:01,217", "name": "flytekit", "levelname": "WARNING", "message": "Error while parsing a block mapping\n in file.py:185
\"/home/enceladus/.flyte/config.yaml\", line 1, column 1\nexpected <block end>, but found '<block mapping start>'\n in
\"/home/enceladus/.flyte/config.yaml\", line 4, column 3 reading yaml config file at /home/enceladus/.flyte/config.yaml, ignoring..."}
2023-05-24 15:01:01,221089 WARNING {"asctime": "2023-05-24 15:01:01,221", "name": "flytekit", "levelname": "WARNING", "message": "Error while parsing a block mapping\n in file.py:185
\"/home/enceladus/.flyte/config.yaml\", line 1, column 1\nexpected <block end>, but found '<block mapping start>'\n in
\"/home/enceladus/.flyte/config.yaml\", line 4, column 3 reading yaml config file at /home/enceladus/.flyte/config.yaml, ignoring..."}
2023-05-24 15:01:02,057700 WARNING {"asctime": "2023-05-24 15:01:02,057", "name": "flytekit", "levelname": "WARNING", "message": "Error while parsing a block mapping\n in file.py:185
\"/home/enceladus/.flyte/config.yaml\", line 1, column 1\nexpected <block end>, but found '<block mapping start>'\n in
\"/home/enceladus/.flyte/config.yaml\", line 4, column 3 reading yaml config file at /home/enceladus/.flyte/config.yaml, ignoring..."}
2023-05-24 15:01:02,060970 WARNING {"asctime": "2023-05-24 15:01:02,060", "name": "flytekit", "levelname": "WARNING", "message": "Error while parsing a block mapping\n in file.py:185
\"/home/enceladus/.flyte/config.yaml\", line 1, column 1\nexpected <block end>, but found '<block mapping start>'\n in
\"/home/enceladus/.flyte/config.yaml\", line 4, column 3 reading yaml config file at /home/enceladus/.flyte/config.yaml, ignoring..."}
Failed with Exception Code: SYSTEM:Unknown
RPC Failed, with Status: StatusCode.UNAVAILABLE
details: failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:30080: Failed to connect to remote host: Connection refused
Debug string UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:30080: Failed to connect to remote host: Connection refused {created_time:"2023-05-24T15:01:09.752070056+05:30", grpc_status:14}
heres the config -
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: 0
I installed single cloud cluster flyte with latest 1.6.1 helm chart.
both http and grpc are forwarded in other terminals.
The flyte frontend is up on 8088.
any thoughts?average-finland-92144
05/24/2023, 3:06 PMflytectl demo
in your system?
From the error message, it's weird to see pyflyte trying to connect to 30080
, the port for sandboxvictorious-kilobyte-69570
05/25/2023, 5:55 AMaverage-finland-92144
05/30/2023, 6:20 PMflytectl demo teardown
and it will remove your local sandbox instance.
Then port-forward your flyte-binary and try again pleasethankful-minister-83577
flytectl demo teardown --volume
to remove the local db volume alsovictorious-kilobyte-69570
05/31/2023, 6:54 AMForwarding from 127.0.0.1:8088 -> 8088
Forwarding from [::1]:8088 -> 8088
, and in config, ive kept
admin:
endpoint: dns:///localhost:8088
authType: Pkce
insecure: true
logger:
show-source: true
level: 0
thankful-minister-83577
average-finland-92144
05/31/2023, 4:45 PMflyte-binary
is that correct?thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
victorious-kilobyte-69570
06/01/2023, 6:26 AMvictorious-kilobyte-69570
06/01/2023, 6:40 AM