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

HaoboGu

05/20/2022, 6:45 AM
Copy code
Release "flyte" does not exist. Installing it now.

W0520 06:19:59.185843     736 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob

W0520 06:21:41.614777     736 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob

NAME: flyte

LAST DEPLOYED: Fri May 20 06:19:57 2022

NAMESPACE: flyte

STATUS: deployed

REVISION: 1

TEST SUITE: None

Waiting for Flyte to become ready...

Terminated

Timed out while waiting for the flyteadmin rollout to be created
p

Prafulla Mahindrakar

05/20/2022, 7:50 AM
Can you check the pods in flyte namespace
h

HaoboGu

05/20/2022, 8:42 AM
Here's the result:
Copy code
$ kubectl get pods --all-namespaces
NAMESPACE     NAME                                          READY   STATUS         RESTARTS   AGE
kube-system   coredns-7448499f4d-9t4rk                      1/1     Running        0          61m
flyte         postgres-76c5456bdf-4dlzs                     1/1     Running        0          61m
flyte         flyte-kubernetes-dashboard-7fd989b99d-hz89w   1/1     Running        0          61m
flyte         minio-699ccf97f9-w7n2w                        1/1     Running        0          61m
default       py39-cacher                                   0/1     ErrImagePull   0          59m
p

Prafulla Mahindrakar

05/20/2022, 8:49 AM
Can you try to access the console http://localhost:30080/console . Seems the pod are running fine in flyte namespace. Can you also do docker ps and check the flyte-entry point container logs
h

HaoboGu

05/20/2022, 9:09 AM
I found it runs good if I use
flyte demo start
, but fails when I use
flytectl sandbox start --source .
p

Prafulla Mahindrakar

05/20/2022, 9:11 AM
We will have to check the flyteadmin pod logs in case of sandbox start and see whats happening.
h

HaoboGu

05/20/2022, 9:26 AM
I removed demo project and started again using
flytectl sandbox start --source .
. After a while I got
Copy code
+-------------------------------------+---------+-----------+
|               SERVICE               | STATUS  | NAMESPACE |
+-------------------------------------+---------+-----------+
| flyte-contour-contour-certgen-cj7nz | Running | flyte     |
+-------------------------------------+---------+-----------+
πŸ‘¨β€πŸ’» Flyte is ready! Flyte UI is available at <http://localhost:30081/console> πŸš€ πŸš€ πŸŽ‰ 
Add KUBECONFIG and FLYTECTL_CONFIG to your environment variable 
export KUBECONFIG=$KUBECONFIG:/Users/haobogu/.kube/config:/Users/haobogu/.flyte/k3s/k3s.yaml 
export FLYTECTL_CONFIG=/Users/haobogu/.flyte/config-sandbox.yaml
But I cannot access to http://localhost:30081/console then. I checked the pods,
kubectl get pods --namespace flyte
gives me
After waiting 10 minutes, I got
Copy code
$ kubectl get pods --namespace flyte
The connection to the server 127.0.0.1:30086 was refused - did you specify the right host or port?
The container got killed and I got
Copy code
Timed out while waiting for the flyteadmin rollout to be created
message again in the container's log
p

Prafulla Mahindrakar

05/20/2022, 9:37 AM
can you check docker ps -a and check the exit code on the failed container. Also would suggest try this Can you try
Copy code
flytectl sandbox teardown
Copy code
docker system prune -a --volumes
And then
Copy code
flytectl sandbox start --source .
h

HaoboGu

05/20/2022, 9:52 AM
exit code is 1
Copy code
"tini flyte-entrypoi…"   14 minutes ago   Exited (1) 57 seconds ago             flyte-sandbox
p

Prafulla Mahindrakar

05/20/2022, 9:58 AM
And also the logs for this failed container. Also any reason you are using sandbox. The new ligher way is to use demo. You can run the same command as
Copy code
flytectl demo start --source .
h

HaoboGu

05/20/2022, 10:05 AM
The logs for the failed container:
Copy code
NAMESPACE: flyte

STATUS: deployed

REVISION: 1

TEST SUITE: None

Waiting for Flyte to become ready...

Terminated

Timed out while waiting for the flyteadmin rollout to be created
p

Prafulla Mahindrakar

05/20/2022, 10:12 AM
Not much info here seems like. We dont collect support bundles from the failed pods so its harder to know what happened. But would suggest to try out the steps i mentioned and use demo instead of sandbox if possible .
h

HaoboGu

05/20/2022, 10:17 AM
Is there any difference between demo and sandbox? I didn't see any from docs
flytectl demo start --source .
runs good πŸ˜„
p

Prafulla Mahindrakar

05/20/2022, 10:21 AM
great , Demo uses a single binary which bundles all the flyte components and is much lighter and faster to bring up due to this reason . I think we still are working on getting docs for explaining the differences between the two .
h

HaoboGu

05/20/2022, 11:45 AM
many thanks!
k

Ketan (kumare3)

05/20/2022, 1:26 PM
Ya use demo start
We are trying to make that default
Sandbox mimics a full deploy
But demo is lighter and actually can be run in production
77 Views