back-stack / backstack.dev

Website for The BACK stack
2 stars 0 forks source link

Failed install using KinD #14

Closed danielsollondon closed 7 months ago

danielsollondon commented 7 months ago

Hey, I have been trying to get this up and running, but getting errors below, these are the steps:

./porter credentials generate back-stack-cloud-creds --reference ghcr.io/back-stack/showcase-bundle:latest

For these I have a populated the Azure.json, Pat token, kubeconfig path for the existing KinD cluster.

]I run the install: ./porter install back-stack --reference ghcr.io/back-stack/showcase-bundle:latest --credential-set back-stack-cloud-creds --param repository=https://github.com/danielsollondon/backstack --allow-docker-host-access

Then I see these errors:

Ensure Kubernetes Connection
ERROR: failed to list clusters: command "docker ps -a --filter label=io.x-k8s.kind.cluster --format '{{.Label "io.x-k8s.kind.cluster"}}'" failed with error: exit status 1

Command Output: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Create KinD Cluster
ERROR: failed to create cluster: failed to list nodes: command "docker ps -a --filter label=io.x-k8s.kind.cluster=backstack --format '{{.Names}}'" failed with error: exit status 1

Command Output: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
error running command /cnab/app ./helpers.sh ensure_kubernetes: exit status 1
Error: error running command /cnab/app ./helpers.sh ensure_kubernetes: exit status 1
1 error occurred:
        * mixin execution failed: package command failed /cnab/app/cnab/app/mixins/exec/runtimes/exec-runtime install
ERROR: failed to list clusters: command "docker ps -a --filter label=io.x-k8s.kind.cluster --format '{{.Label "io.x-k8s.kind.cluster"}}'" failed with error: exit status 1

Command Output: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
ERROR: failed to create cluster: failed to list nodes: command "docker ps -a --filter label=io.x-k8s.kind.cluster=backstack --format '{{.Names}}'" failed with error: exit status 1

Command Output: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
error running command /cnab/app ./helpers.sh ensure_kubernetes: exit status 1
Error: error running command /cnab/app ./helpers.sh ensure_kubernetes: exit status 1

1 error occurred:
        * mixin execution failed: package command failed /cnab/app/cnab/app/mixins/exec/runtimes/exec-runtime install
ERROR: failed to list clusters: command "docker ps -a --filter label=io.x-k8s.kind.cluster --format '{{.Label "io.x-k8s.kind.cluster"}}'" failed with error: exit status 1

Command Output: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
ERROR: failed to create cluster: failed to list nodes: command "docker ps -a --filter label=io.x-k8s.kind.cluster=backstack --format '{{.Names}}'" failed with error: exit status 1

Command Output: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
error running command /cnab/app ./helpers.sh ensure_kubernetes: exit status 1
Error: error running command /cnab/app ./helpers.sh ensure_kubernetes: exit status 1

I use rancher desktop, when I run 'docker ps -a --filter label=io.x-k8s.kind.cluster --format '{{.Label "io.x-k8s.kind.cluster"}}'', this return an existing cluster name.

Any pointers would be great! TIA!

kurktchiev commented 7 months ago

Hey @danielsollondon looks like your local docker is not running, also I would delete the local kind cluster, as the install process currently will create it and does not support importing for that type

kurktchiev commented 7 months ago

if you run into more issues with this please reopen an issue under the Showcase repo

danielsollondon commented 7 months ago

thank you!