Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k3d cluster creation fails in codespaces #689

Closed
Reshrahim opened this issue Oct 24, 2023 · 3 comments · Fixed by radius-project/docs#908
Closed

k3d cluster creation fails in codespaces #689

Reshrahim opened this issue Oct 24, 2023 · 3 comments · Fixed by radius-project/docs#908
Assignees
Labels
triaged This item has been triaged by project maintainers and is in the backlog

Comments

@Reshrahim
Copy link
Contributor

Reshrahim commented Oct 24, 2023

User facing docs - https://docs.radapp.io/getting-started/

There seems to be an issue with k3d cluster creation when we spin up a devcontainer via codespaces.
Error from the creation log

2023-10-24 13:40:27.779Z: ERRO[0001] Failed to get nodes for cluster 'k3s-default': docker failed to get containers with labels 'map[k3d.cluster:k3s-default]': failed to list containers: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2023-10-24 13:40:27.816Z: INFO[0000] portmapping '8081:80' targets the loadbalancer: defaulting to [servers:*:proxy agents:*:proxy]
2023-10-24 13:40:27.817Z: ERRO[0000] Failed to get nodes for cluster 'k3s-default': docker failed to get containers with labels 'map[k3d.cluster:k3s-default]': failed to list containers: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2023-10-24 13:40:27.817Z: INFO[0000] Prep: Network                                
2023-10-24 13:40:27.818Z: ERRO[0000] Failed Cluster Preparation: Failed Network Preparation: failed to create cluster network: failed to check for duplicate docker networks: docker failed to list networks: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
ERRO[0000] Failed to create cluster >>> Rolling Back

when I ran the cluster create command manually in the codespaces, the cluster got created succesfully. Not sure whats happening in the post create script.

May be a permission issue or a readiness issue?

AB#9902

@shalabhms shalabhms added the triaged This item has been triaged by project maintainers and is in the backlog label Oct 24, 2023
@Reshrahim
Copy link
Contributor Author

@jasonviviano is currently investigating to see if there is a race condition

@willtsai
Copy link
Contributor

note that I've commented out the codespaces instructions in this page, so we need to add it back when this issue gets fixed: radius-project/docs#864

@jasonviviano
Copy link
Contributor

Closing, fixed with: #694

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged This item has been triaged by project maintainers and is in the backlog
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants