Hello flighters, I am new to flyte and trying to ...
# ask-the-community
c
Hello flighters, I am new to flyte and trying to start
demo
cluster in my local / system / laptop / machine but it is failing with below error:
Copy code
{"status":"Status: Downloaded newer image for <http://cr.flyte.org/flyteorg/flyte-sandbox-bundled:sha-1ae254f8683699b68ecddc89d775fc5d39cc3d84%22|cr.flyte.org/flyteorg/flyte-sandbox-bundled:sha-1ae254f8683699b68ecddc89d775fc5d39cc3d84">}
🧑‍🏭 booting Flyte-sandbox container
😬 Something went wrong: Failed to start Sandbox container 🐋, Please check your docker client and try again. 
Error: Error response from daemon: driver failed programming external connectivity on endpoint flyte-sandbox (5eaf6609c86e6d818291e2f060e42f8002dfd4e288393da6e01109cfa5a60bd7): listen tcp4 0.0.0.0:6443: bind: address already in use
I am on a Mac machine and I have a Docker Desktop which allows me to have locak Kubernetes to play with. As per this documentation of Kubernetes,
6443
port is used by
Kubernetes API server
. May I please know if and how I can change the port number for this flyte-sandbox?
update:
flytectl sandbox start
command worked (kind of). It gives this nice shiny message:
Copy code
+------------------------------------------+---------------+-----------+
|                 SERVICE                  |    STATUS     | NAMESPACE |
+------------------------------------------+---------------+-----------+
| flyte-deps-contour-contour-certgen-s9mtr | Running       | flyte     |
+------------------------------------------+---------------+-----------+
👨‍💻 Flyte is ready! Flyte UI is available at <http://localhost:30081/console> 🚀 🚀 🎉 
❇️ Run the following command to export sandbox environment variables for accessing flytectl
but flyte console not available on
<http://localhost:30081/console>
kubernetes get pods
command shows that
flyteconsole-7d567c4764-x5p2k
and some other pods are in
ContainerCreating
status
d
Hi @Chandrashekhar Kotekar You should use
flytectl demo start
as this is the preferred option going forward. It's complaining that port 6443 is already in use, could you check what process is using it?
sudo lsof -i:6443
c
@David Espejo (he/him) Thanks for the quick reply. I get following output:
Copy code
com.docke 14161 chandrashekhar.kotekar  119u  IPv4 0x1ce358db20b5b759      0t0  TCP localhost:sun-sr-https (LISTEN)
d
do you have other containers running?
docker ps
c
Yes.
Copy code
docker ps -a
CONTAINER ID   IMAGE          COMMAND                  CREATED         STATUS       PORTS     NAMES
dceb5005346a   68cb0c05b3f2   "/bin/node_exporter …"   2 minutes ago   Created                k8s_node-exporter_prometheus-prometheus-node-exporter-nwzpc_default_4e73572d-f75f-4a05-bafb-07c93a9586c8_23
f2d0b0ed13b4   4d8d4d8334be   "/bin/alertmanager -…"   2 hours ago     Up 2 hours             k8s_alertmanager_prometheus-alertmanager-0_default_8c71d9ff-8490-428a-b059-b0792885faf6_1
j
might just need to disable the kubernetes cluster bundled in docker desktop for mac
we should definitely use a non-standard port though. 6443 might be too common. @Chandrashekhar Kotekar can you open an issue about this?
c
Sure, will open issue about it. Also - this port should be configurable through some config file.
Thanks for the help @David Espejo (he/him) and @jeev. As of now
flytectl sandbox start
command has worked for me. So all good
f
Hi, any update to this?
j
@Fidhal Kotta: unfortunately not yet. any interest in taking a crack at a solution? 🙂
i
was facing the same issue on Windows 11 x64. disabling the local Kube-cluster that came with Docker Desktop did the trick.
c
Hi, I would like to start contributing to Flyte by fixing this issue. I have cloned flyte repository but not sure how this flyte sandbox image is built. Can someone please give me some hints / pointers to get started?
j
“make -C docker/sandbox-bundled build” should do it
c
thanks
165 Views