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

Sanjay Chouhan

09/22/2022, 6:38 AM
Hi, I had setup Flyte Sandbox on EKS by following these steps https://docs.flyte.org/en/latest/deployment/sandbox.html#deploy-flyte-sandbox-to-a-cloud-kubernetes-cluster I can access the console UI. But when I run "`pyflyte --config .flyte/config.yaml run --remote example.py wf --n 500 --mean 42 --sigma 2`" I get error like " flytekit.exceptions.user.FlyteAssertion: Failed to put data from /tmp/tmp9l0dj7e1/script_mode.tar.gz to http://localhost:30084/my-s3-bucket --- Original exception: HTTPConnectionPool(host='localhost', port=30084): Max retries exceeded with url: /my-s3-bucket/bh/flytesnacks/development/OWEO " I have mentioned the details in config.yaml like,
admin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: dns:///a4ad903c61##################.<http://us-west-1.elb.amazonaws.com:80|us-west-1.elb.amazonaws.com:80>
authType: Pkce
insecure: true
logger:
show-source: true
level: 0
storage:
connection:
access-key: minio
auth-type: accesskey
disable-ssl: true
endpoint: <http://a093eb##############.us-west-1.elb.amazonaws.com:9001/>
region: us-east-1
secret-key: miniostorage
type: minio
container: "my-s3-bucket"
enable-multicontainer: true
Why it's checking in localhost when I have mentioned the AWS ingress URL?
s

Samhita Alla

09/22/2022, 7:18 AM
Not sure why that’s happening. Can you remove the “storage” section in the config file cause that’s no longer required? Also, can you double check the config yaml path?
s

Sanjay Chouhan

09/22/2022, 7:45 AM
I also tried without the storage section in config file. I get the same issue. The minio url is different then the dns endpoint. They are in same EKS but have different ingress URL. The yaml path is correct. I had followed all the steps of https://docs.flyte.org/en/latest/deployment/sandbox.html#deploy-flyte-sandbox-to-a-cloud-kubernetes-cluster
s

Samhita Alla

09/22/2022, 8:38 AM
What’s your flytekit version? Do you have the yaml config in the directory you’re running the pyflyte command?
s

Sanjay Chouhan

09/22/2022, 9:09 AM
Currently it is Version: 1.2.0b3 Earlier I was trying 1.1.3 yaml is in one of the subdirectory. I am running the command in /home/sanjay and the yaml is in /home/sanjay/.flyte/config.yaml
s

Samhita Alla

09/22/2022, 9:23 AM
Can you specify the config path as
/home/sanjay/.flyte/config.yaml
in your pyflyte run command?
s

Sanjay Chouhan

09/22/2022, 9:52 AM
same issue. Note that I followed, Deploy Flyte Sandbox to a Cloud Kubernetes Cluster and there the minio url is different then the console.
s

Samhita Alla

09/22/2022, 10:01 AM
Are you able to trigger workflows directly on the UI?
s

Sanjay Chouhan

09/22/2022, 10:34 AM
I am not sure how to upload the workflow in the UI without the pyflyte command.
s

Samhita Alla

09/22/2022, 10:40 AM
https://docs.flyte.org/projects/cookbook/en/latest/auto/larger_apps/larger_apps_deploy.html#build-deploy-your-application-to-the-cluster: the pyflyte --pkgs and flytectl register should be used. If you have an image already, you can provide that, or else, you can use
<http://ghcr.io/flyteorg/flytecookbook:core-latest|ghcr.io/flyteorg/flytecookbook:core-latest>
to register flytesnacks/core examples.
s

Sanjay Chouhan

09/22/2022, 11:19 AM
Yeah it's showing on the UI. But when I launch I get issue,
Copy code
[1/1] currentAttempt done. Last Error: USER::Pod failed. No message received from kubernetes.
[adq4ch5hvxgclkkl6d42-n0-0] terminated with exit code (1). Reason [Error]. Message: 
thon3.8/site-packages/click/core.py", line 1130, in __call__
.
.
3, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'flyte'
s

Samhita Alla

09/22/2022, 11:22 AM
Not sure what this is. Can you share the workflow code you’re trying to run?
s

Sanjay Chouhan

09/22/2022, 11:25 AM
I created the sample workflow with
Copy code
pyflyte init my_flyte_project
k

Ketan (kumare3)

09/22/2022, 1:51 PM
@Samhita Alla / @Sanjay Chouhan sandbox helm is not designed today to install to eks. It should work but by default it is not. If you want to use pyflyte run then you need to update and remove this https://github.com/flyteorg/flyte/blob/3cdf9285c3cdbf6645090980ccac488de02de517/deployment/sandbox/flyte_helm_generated.yaml#L327
But you cannot upload to minio that is used
We are working on a much faster deployment guide - cc @jeev fyi
73 Views