```Release "flyte" does not exist. Installing it n...
# ask-the-community
h
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
Can you check the pods in flyte namespace
h
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
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
I found it runs good if I use
flyte demo start
, but fails when I use
flytectl sandbox start --source .
p
We will have to check the flyteadmin pod logs in case of sandbox start and see whats happening.
h
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
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
exit code is 1
Copy code
"tini flyte-entrypoi…"   14 minutes ago   Exited (1) 57 seconds ago             flyte-sandbox
p
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
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
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
Is there any difference between demo and sandbox? I didn't see any from docs
flytectl demo start --source .
runs good πŸ˜„
p
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
many thanks!
k
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
164 Views