Hey Hello , I am new to community and i have a qui...
# flyte-deployment
y
Hey Hello , I am new to community and i have a quick idea of flyte i hope the community could assist me with the deployment of the SDK . Eventully talking about the issue i have had the Vbox Environment and the Server Environment using Xshell/Putty i find it difficult to deploy . Creating the cluster makes an error of Tcp connection refused .Have tried multiple machines i cant fix it . Can any one in the community could guide me with the issue.
t
Hi Yash! Let me get some eyes on your issue.
k
How much CPU and GPU resources does your VM have? Sometimes it fail because it doesn’t have enough resource.
y
Since its the issue with Ec2-user using aws too.Infact i tried to launch it using VM and gets the same context with same tcp error.
e
@Yash Kalode, can you share the command you're using to start the sandbox?
Also, how long does it take to get to that state after you start it? This might be caused by a timeout, so in that case, can you try specifying the
FLYTE_TIMEOUT
env var (e.g.:
flytectl demo start --source . --env FLYTE_TIMEOUT=700
)
y
I have made a complete guide connecting over a instance . *********Flyte Installtion Guide*********** #Prerequisites Of Docker 1)Update the local Packages : /////sudo apt-get update 2)To Install Desktop Environment for docker /////sudo apt install gnome-terminal 3)Install using the repository {Update the apt package index and install packages to allow apt to use a repository over HTTPS} ///////sudo apt-get install \ ca-certificates \ curl \ gnupg \ lsb-release 4)Add Docker’s official GPG key: ///////sudo mkdir -p /etc/apt/keyrings ///////curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg 5)Use the following command to set up the repository: //////echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null #Install Docker Engine 6)Update the apt package index: //////sudo apt-get update 7)Install Docker Engine, containerd, and Docker Compose. //////sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin 8)To install a specific version of Docker Engine, start by list the available versions in the repository: //////apt-cache madison docker-ce 9)Select the desired version and install:{While versions are displaying on the terminal} ######EX:((5:20.10.19~3-0~ubuntu-jammy))##### //////sudo apt-get install docker-ce=5:20.10.20~3-0~ubuntu-focal docker-ce-cli=5:20.10.20~3-0~ubuntu-focal containerd.io docker-compose-plugin 10)Start The Docker Engine: //////sudo service docker start 11)Verify that the Docker Engine installation is successful by running the hello-world image: //////sudo docker run hello-world 12)Installtion of pip to install python repository //////sudo apt-get install pip 13)Install Flytekit, Flyte’s Python SDK. //////sudo pip install flytekit #Creating a Demo Flyte Cluster 14)To start a local demo cluster, install flytectl //////sudo apt install flytectl //////flytectl version 15)command-line interface for Flyte //////curl -sL https://ctl.flyte.org/install | sudo bash -s -- -b /usr/local/bin //////export PATH=$(pwd)/bin:$PATH 16)install flytectl //////curl -sL https://ctl.flyte.org/install | bash ############updated ############################ ///////curl -L https://raw.githubusercontent.com/flyteorg/flytectl/HEAD/install.sh | bash 17)Start a Flyte demonstration environment on your local machine via: //////sudo flytectl demo start
e
Yash, you mentioned that you're using a VM to run this. What are the specs of the VM? How much memory and cpus does it have? Is it an ec2 machine or local?
157 Views