question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to start a workspace on fresh minikube/che install [v7.8.0]

See original GitHub issue

Describe the bug

I’ve created a local minikube cluster following the documentation, and deployed che to it using chectl. When creating and opening a workspace from any stack, the following log appears until it fails in a timeout.

Successfully assigned che/workspacevljc0zfnpzuh4u76.che-plugin-broker to minikube
Pulling image "quay.io/eclipse/che-plugin-metadata-broker:v3.1.0"
Successfully pulled image "quay.io/eclipse/che-plugin-metadata-broker:v3.1.0"
Created container che-plugin-metadata-broker-v3-1-0
Started container che-plugin-metadata-broker-v3-1-0
Error: Failed to run the workspace: "Plugins installation process timed out"

I’ve put some further investigation to the “additional context” section.

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

  1. Spin up minikube minikube start --vm-driver=kvm2 --memory=6144 --cpus=6 --disk-size=32gb --dns-domain='kube.lab'
  2. Start che chectl server:start --platform minikube --domain "kube.lab"
  3. Put che hostnames in /etc/hosts on workstation
  4. Visit the che server and start a workspace

Expected behavior

The workspace should start and open correctly.

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube (minikube version: v1.7.2 , kubectl version: v1.17.2)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

Installation method

  • chectl (server:start --platform minikube --domain "kube.lab")
  • che-operator
  • minishift-addon
  • I don’t know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • other: please specify

Additional context

I’ve tried this on recently set up latest debian buster and latest manjaro linux (amd64). Helm, chectl, minikube and system apckages are all up to date. Host firewall is turned off for testing. KVM is properly running and configured. Changing the domain, or leaving it on default has no effect on the current behavior.

The kubernetes dashboard shows all PODs/services to be running and healthy, but when starting a workspace in che, the workspace POD fails with following log.

2020/02/12 11:50:31 Broker configuration
2020/02/12 11:50:31   Push endpoint: ws://che-che.kube.lab/api/websocket
2020/02/12 11:50:31   Auth enabled: false
2020/02/12 11:50:31   Runtime ID:
2020/02/12 11:50:31     Workspace: workspacevljc0zfnpzuh4u76
2020/02/12 11:50:31     Environment: default
2020/02/12 11:50:31     OwnerId: che
2020/02/12 11:50:31 Couldn't connect to endpoint 'ws://che-che.kube.lab/api/websocket', due to error 'dial tcp: lookup che-che.kube.lab on 10.96.0.10:53: no such host'

The kube-dns service is running, and mapped to two coredns PODs. I’ve created a dnsutils POD in namespace che to investigate possible DNS issues. From there neither nslookup, nor dig can resolve the che server hostname no matter what domain to query for.

# nslookup che-che.kube.lab
Server:         10.96.0.10
Address:        10.96.0.10#53

** server can't find che-che.kube.lab: NXDOMAIN

I don’t know whether this is just a configuration issue, or a fault in che, or minikube. As I’m new to kubernetes/che, I don’t know where to go from here. Searching the web results in many issues related to older versions of minikube/che and their fixes do not work at this point. Also the che and minikube documentations provide absolutely no hint on this, or even exact configuration steps. So I’m considering the described steps there as a correct how-to (at least for first steps), but they are simply not working (no rant, just a perception). It would be great if we can find a solution on this, and maybe extend the documentation by all necessary steps.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tolushacommented, Feb 17, 2020

@Jarthianur Thank you, we will do.

0reactions
tolushacommented, Feb 27, 2020

The following scenario works without setting up external dns server:

  1. minikube start --vm-driver=virtualbox --memory=6144 --cpus=6 --disk-size=32gb --dns-domain=‘kube.lab’
  2. kubectl -n kube-system edit configmap coredns and add cluster.local to the configuration
apiVersion: v1
data:
  Corefile: |
    .:53 {
        errors
        health
        ready
        kubernetes kube.lab cluster.local in-addr.arpa ip6.arpa {
           pods insecure
           fallthrough in-addr.arpa ip6.arpa
           ttl 30
        }
        prometheus :9153
        forward . /etc/resolv.conf
        cache 30
        loop
        reload
        loadbalance
    }
kind: ConfigMap
  1. chectl server:start --platform minikube --domain $(minikube ip).nip.io
  2. create a workspace

https://github.com/eclipse/che/issues/14404

Read more comments on GitHub >

github_iconTop Results From Across the Web

minikube start
minikube start. minikube is local Kubernetes, focusing on making it easy to learn and develop for Kubernetes. All you need is Docker (or...
Read more >
Developing for Kubernetes with minikube - GitLab Docs
Developing for Kubernetes with minikube. This guide is meant to serve as a cross-plaform resource for setting up a local Kubernetes development environment....
Read more >
Run Filebeat on Kubernetes | Filebeat Reference [8.5] - Elastic
The Docker logs host folder ( /var/lib/docker/containers ) is mounted on the Filebeat container. Filebeat starts an input for the files and begins...
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
Read more >
Run Kubernetes Using Minikube Cluster on The AWS Cloud
Access our container via the EC2 Instance Port on a web browser. Step 8: Minikube Dashboard. In order to set up the Kubernetes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found