Thread
#ask-the-community
    Khuyen Tran

    Khuyen Tran

    9 months ago
    So I created a sandbox using:
    flytectl sandbox start --source .
    . After doing that, I can access to Flyte UI. However, after stopping the container, I tried to run
    flytectl sandbox start --source .
    to resume the existing sandbox cluster, but I can't access to Flyte UI. Here is the specific outputs I got:
    ➜ flytectl sandbox start                                       
    πŸ§‘β€πŸ­ Bootstrapping a brand new flyte cluster... πŸ”¨ πŸ”§
    delete existing sandbox cluster [y/n]: n
    Existing details of your sandboxπŸ‘¨β€πŸ’» Flyte is ready! Flyte UI is available at <http://localhost:30081/console> πŸš€ πŸš€ πŸŽ‰ 
    Add KUBECONFIG and FLYTECTL_CONFIG to your environment variable 
    export KUBECONFIG=$KUBECONFIG:/home/khuyen/.kube/config:/home/khuyen/.flyte/k3s/k3s.yaml 
    export FLYTECTL_CONFIG=/home/khuyen/.flyte/config-sandbox.yaml
    I wonder what is the best way to resume the existing cluster?
    Haytham Abuelfutuh

    Haytham Abuelfutuh

    9 months ago
    Hey @Khuyen Tran thank you for your interest! I think this is related to: https://github.com/flyteorg/flyte/issues/1605 (Which is closed as fixed) And potentially doing this may be better: https://github.com/flyteorg/flyte/issues/1604 What version of flytectl do you have?
    flytectl version
    CC @Prafulla Mahindrakar @Yuvraj
    Khuyen Tran

    Khuyen Tran

    9 months ago
    Thank you for the suggestion! My flytectl version is 0.4.3
    Haytham Abuelfutuh

    Haytham Abuelfutuh

    9 months ago
    ls ~/.flyte/
    export KUBECONFIG=$KUBECONFIG:/home/khuyen/.kube/config:/home/khuyen/.flyte/k3s/k3s.yaml 
    export FLYTECTL_CONFIG=/home/khuyen/.flyte/config-sandbox.yaml
    
    kubectl config use-context default
    
    kubectl port-forward -n flyte ingress/flyte-system
    curl -LO "<https://dl.k8s.io/release/$(curl> -L -s <https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl>"
    kubectl get pods -A
    docker exec -it <the container id> sh
    y

    Yuvraj

    8 months ago
    @Khuyen Tran Currently we did't added command for restart in flytectl, For now you can use
    docker start flyte-sandbox
    Khuyen Tran

    Khuyen Tran

    8 months ago
    @Yuvraj I tried that but I still can't access to Flyte UI
    y

    Yuvraj

    8 months ago
    Currently It's a bug, I am working on the fix here https://github.com/flyteorg/flyte/pull/1990, For now please re create the sandbox.
    Khuyen Tran

    Khuyen Tran

    8 months ago
    Thank you!