che icon indicating copy to clipboard operation
che copied to clipboard

Local Che server inaccessible after successful start in minikube

Open Ryder05 opened this issue 4 years ago โ€ข 7 comments

Describe the bug

After starting che using "chectl server:start" it would start successfully, but the url provided by the output, does not resolve in the browser.

Che version

next (development version)

Steps to reproduce

  1. chectl server:start --platform minikube --installer=helm
  2. chectl server:deploy --platform minikube
  3. chectl server:start

Expected behavior

I see the che dashboard and able to make a new workspace

Runtime

minikube

Screenshots

No response

Installation method

chectl/next

Environment

Windows

Eclipse Che Logs

PS C:\Users\Oussema Mhiri> minikube start --addons=ingress --vm=true --memory=3334
๐Ÿ˜„  minikube v1.25.2 on Microsoft Windows 11 Pro 10.0.22000 Build 22000
โœจ  Using the docker driver based on existing profile
โ—  You cannot change the memory size for an existing minikube cluster. Please first delete the cluster.
๐Ÿ‘  Starting control plane node minikube in cluster minikube
๐Ÿšœ  Pulling base image ...
๐Ÿ”„  Restarting existing docker container for "minikube" ...
๐Ÿณ  Preparing Kubernetes v1.23.3 on Docker 20.10.12 ...
    โ–ช apiserver.oidc-issuer-url=https://dex.192.168.49.2.nip.io
    โ–ช apiserver.oidc-client-id=eclipse-che
    โ–ช apiserver.oidc-ca-file=/etc/ca-certificates/dex-ca.crt
    โ–ช apiserver.oidc-username-claim=name
    โ–ช apiserver.oidc-username-prefix=-
    โ–ช apiserver.oidc-groups-claim=groups
    โ–ช kubelet.housekeeping-interval=5m
๐Ÿ”Ž  Verifying Kubernetes components...
๐Ÿ’ก  After the addon is enabled, please run "minikube tunnel" and your ingress resources would be available at "127.0.0.1"
    โ–ช Using image k8s.gcr.io/ingress-nginx/controller:v1.1.1
    โ–ช Using image kubernetesui/dashboard:v2.3.1
    โ–ช Using image k8s.gcr.io/ingress-nginx/kube-webhook-certgen:v1.1.1
    โ–ช Using image k8s.gcr.io/ingress-nginx/kube-webhook-certgen:v1.1.1
    โ–ช Using image kubernetesui/metrics-scraper:v1.0.7
    โ–ช Using image gcr.io/k8s-minikube/storage-provisioner:v5
๐Ÿ”Ž  Verifying ingress addon...
๐ŸŒŸ  Enabled addons: default-storageclass, storage-provisioner, ingress, dashboard
๐Ÿ„  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
PS C:\Users\Oussema Mhiri> chectl server:deploy --platform minikube
โ€บ Installer type is set to: 'operator'
โ€บ Current Kubernetes context: 'minikube'
  โˆš Verify Kubernetes API...OK
  โˆš ๐Ÿ‘€  Looking for an already existing Eclipse Che instance
    โˆš Verify if Eclipse Che is deployed into namespace "eclipse-che"
      โˆš Found stopped Eclipse Che deployment
      โˆš Found stopped postgres deployment
      โˆš Found stopped plugin registry deployment
      โˆš Found stopped devfile registry deployment
  โˆš ๐Ÿงช  DevWorkspace engine
    โˆš Verify cert-manager installation
      โˆš Check Cert Manager deployment...already deployed
      โˆš Wait for Cert Manager...ready
 ยป   Warning: Eclipse Che has been already deployed. Use server:start command to start a stopped Eclipse Che instance.
PS C:\Users\Oussema Mhiri> chectl server:start --platform minikub
 ยป   Error: Unexpected arguments: --platform, minikub
 ยป   See more help with --help
PS C:\Users\Oussema Mhiri> chectl server:start --platform minikube
 ยป   Error: Unexpected arguments: --platform, minikube
 ยป   See more help with --help
PS C:\Users\Oussema Mhiri> chectl server:start
โ€บ Current Kubernetes context: 'minikube'
  โˆš Verify Kubernetes API...OK
  โˆš ๐Ÿ‘€  Looking for an already existing Eclipse Che instance
    โˆš Verify if Eclipse Che is deployed into namespace "eclipse-che"
      โˆš Found stopped Eclipse Che deployment
      โˆš Found stopped postgres deployment
      โˆš Found stopped plugin registry deployment
      โˆš Found stopped devfile registry deployment
  โˆš Following Eclipse Che logs
    โˆš Start following Operator logs...done
    โˆš Start following Eclipse Che Server logs...done
    โˆš Start following PostgreSQL logs...done
    โˆš Start following Keycloak logs...done
    โˆš Start following Plug-in Registry logs...done
    โˆš Start following Devfile Registry logs...done
    โˆš Start following Eclipse Che Dashboard logs...done
    โˆš Start following namespace events...done
  โˆš Starting Eclipse Che
    โˆš PostgreSQL pod bootstrap
      โˆš Scheduling...done
      โˆš Downloading images...done
      โˆš Starting...done
    โˆš Devfile registry pod bootstrap
      โˆš Scheduling...done
      โˆš Downloading images...done
      โˆš Starting...done
    โˆš Plug-in Registry pod bootstrap
      โˆš Scheduling...done
      โˆš Downloading images...done
      โˆš Starting...done
    โˆš Eclipse Che Dashboard pod bootstrap
      โˆš Scheduling...done
      โˆš Downloading images...done
      โˆš Starting...done
    โˆš Eclipse Che Server pod bootstrap
      โˆš Scheduling...done
      โˆš Downloading images...done
      โˆš Starting...done
    โˆš Eclipse Che status check...done
Command server:start has completed successfully in 01:50.
PS C:\Users\Oussema Mhiri> chectl server:status
Eclipse Che Version    : next
Eclipse Che Url        : https://192.168.49.2.nip.io/dashboard/

Additional context

No response

Ryder05 avatar Mar 14 '22 11:03 Ryder05

PS C:\Users\Oussema Mhiri> minikube version
minikube version: v1.25.2
commit: 362d5fdc0a3dbee389b3d3f1034e8023e72bd3a7
PS C:\Users\Oussema Mhiri> chectl version
chectl/0.0.20220216-next.8b90bdb win32-x64 node-v16.13.2

Ryder05 avatar Mar 14 '22 11:03 Ryder05

It seems Eclipse Che has been deployed already when minikube is started up. Warning: Eclipse Che has been already deployed. Use server:start command to start a stopped Eclipse Che instance. So, I suggest to redeploy it.

  1. chectl server:delete --delete-namespace -y
  2. chectl server:deploy ...

tolusha avatar Mar 15 '22 08:03 tolusha

PS C:\Users\Oussema Mhiri> chectl server:delete --delete-namespace -y
โ€บ Current Kubernetes context: 'minikube'
  โˆš Verify Kubernetes API...OK
  โˆš Delete oauthClientAuthorizations...OK
  โˆš Delete the Custom Resource of type checlusters.org.eclipse.che...OK
  โˆš Delete CRDs...OK
  โˆš Delete Roles and Bindings...OK
  โˆš Delete service accounts che-operator...OK
  โˆš Delete PVC che-operator...OK
  โˆš Check if OLM is pre-installed on the platform: false...[OK]
  โˆš Check if operator is installed...[Not Found]
  โˆš Delete(OLM) custom catalog source eclipse-che-custom-catalog-source...[OK]
  โˆš Delete(OLM) nigthly catalog source eclipse-che-preview...[OK]
  โˆš Delete role prometheus-k8s...[OK]
  โˆš Delete role binding prometheus-k8s...[OK]
  โˆš Delete all deployments...OK
  โˆš Delete all services...OK
  โˆš Delete all ingresses...OK
  โˆš Delete configmaps for Eclipse Che server and operator...OK
  โˆš Delete rolebindings che, che-workspace-exec and che-workspace-view...OK
  โˆš Delete service accounts che, che-workspace...OK
  โˆš Delete PVCs...OK
  โˆš Delete consoleLink che...OK
  โˆš Wait until Eclipse Che Server pod is deleted...done.
  โˆš Wait until Eclipse Che Dashboard pod is deleted...done.
  โˆš Wait until Keycloak pod is deleted...done.
  โˆš Wait until PostgreSQL pod is deleted...done.
  โˆš Wait until Devfile Registry pod is deleted...done.
  โˆš Wait until Plug-in Registry pod is deleted...done.
  โˆš Uninstall Dev Workspace Operator
    โˆš Delete workspace.devfile.io/v1alpha2 resources...[OK]
    โˆš Delete controller.devfile.io/v1alpha1 resources...[OK]
    โˆš Delete All Dev Workspace CRD...[OK]
    โˆš Delete all Dev Workspace Controller deployments...[OK]
    โˆš Delete all Dev Workspace Controller services...[OK]
    โˆš Delete all Dev Workspace Controller routes...[OK]
    โˆš Delete Dev Workspace Controller configmaps...[OK]
    โˆš Delete Dev Workspace Controller ClusterRoleBindings...[OK]
    โˆš Delete Dev Workspace Controller role...[OK]
    โˆš Delete Dev Workspace Controller roleBinding...[OK]
    โˆš Delete Dev Workspace Controller cluster roles...[OK]
    โˆš Delete Dev Workspace Controller service account...[OK]
    โˆš Delete Dev Workspace Controller self-signed certificates...[OK]
    โˆš Delete Dev Workspace Operator Namespace...[OK]
    โˆš Delete Dev Workspace webhook deployment...[OK]
    โˆš Delete Dev Workspace webhook service...[OK]
    โˆš Delete Dev Workspace webhook Cluster RoleBinding...[OK]
    โˆš Delete Dev Workspace webhook Cluster Role...[OK]
    โˆš Delete Dev Workspace webhooks service account...[OK]
    โˆš Delete Dev Workspace webhooks configurations ...[OK]
  โˆš Delete namespace eclipse-che
Command server:delete has completed successfully in 00:51.
PS C:\Users\Oussema Mhiri> chectl server:deploy --platform minikube
โ€บ Installer type is set to: 'operator'
โ€บ Current Kubernetes context: 'minikube'
  โˆš Verify Kubernetes API...OK
  โˆš ๐Ÿ‘€  Looking for an already existing Eclipse Che instance
    โˆš Verify if Eclipse Che is deployed into namespace "eclipse-che"...it is not
  โ†“ Check if OIDC Provider installed [skipped]
    โ†’ Dex will be automatically installed as OIDC Identity Provider
  โˆš ๐Ÿงช  DevWorkspace engine
    โˆš Verify cert-manager installation
      โˆš Check Cert Manager deployment...already deployed
      โˆš Wait for Cert Manager...ready
  โˆš โœˆ๏ธ  Minikube preflight checklist
    โˆš Verify if kubectl is installed
    โˆš Verify if minikube is installed
    โˆš Verify if minikube is running
    โ†“ Start minikube [skipped]
      โ†’ Minikube is already running.
    โˆš Check Kubernetes version: Found v1.23.3.
    โˆš Verify if minikube ingress addon is enabled
    โ†“ Enable minikube ingress addon [skipped]
      โ†’ Ingress addon is already enabled.
    โˆš Retrieving minikube IP and domain for ingress URLs...192.168.49.2.nip.io.
    โˆš Checking minikube version... 1.25.2
    โ†“ Check if cluster accessible [skipped]
  โˆš Following Eclipse Che logs
    โˆš Start following Operator logs...done
    โˆš Start following Eclipse Che Server logs...done
    โˆš Start following PostgreSQL logs...done
    โˆš Start following Keycloak logs...done
    โˆš Start following Plug-in Registry logs...done
    โˆš Start following Devfile Registry logs...done
    โˆš Start following Eclipse Che Dashboard logs...done
    โˆš Start following namespace events...done
  โˆš Create Namespace eclipse-che...[OK]
  โˆš Deploy Dex
    โˆš Create namespace: dex...[Exists]
    โˆš Provide Dex certificate
      โˆš Read Dex certificate...[OK]
      โˆš Save Dex certificate...[OK: C:\Users\OUSSEM~1\AppData\Local\Temp\dex-ca.crt]
      โˆš Add Dex certificate to Eclipse Che certificates bundle...[OK]
    โˆš Create Dex service account...[Exists]
    โˆš Create Dex cluster role...[Exists]
    โˆš Create Dex cluster role binding...[Exists]
    โˆš Create Dex service...[Exists]
    โˆš Create Dex ingress...[Exists]
    โˆš Generate Dex username and password...[Exists]
    โˆš Create Dex configmap...[Exists]
    โˆš Create Dex deployment...[Exists]
    โˆš Wait for Dex is ready...[OK]
    โˆš Configure API server
      โˆš Create /etc/ca-certificates directory...[OK]
      โˆš Copy Dex certificate into Minikube...[OK]
      โˆš Configure Minikube API server...[OK]
      โˆš Wait for Minikube API server...[OK]
  โˆš ๐Ÿƒโ€  Running the Eclipse Che operator
    โˆš Create ServiceAccount che-operator in namespace eclipse-che...done.
    โˆš Read Roles and Bindings...done.
    โˆš Creating Roles and Bindings...done.
    โˆš Create CRD checlusters.org.eclipse.che...done.
    โˆš Waiting 5 seconds for the new Kubernetes resources to get flushed...done.
    โˆš Create deployment che-operator in namespace eclipse-che...done.
    โˆš Operator pod bootstrap
      โˆš Scheduling...done
      โˆš Downloading images...done
      โˆš Starting...done
    โˆš Prepare Eclipse Che cluster CR...Done.
    โˆš Create the Custom Resource of type checlusters.org.eclipse.che in the namespace eclipse-che...done.
  โˆš โœ…  Post installation checklist
    โˆš PostgreSQL pod bootstrap
      โˆš Scheduling...done
      โˆš Downloading images...done
      โˆš Starting...done
    โˆš Keycloak pod bootstrap...skipped
    โˆš Devfile Registry pod bootstrap
      โˆš Scheduling...done
      โˆš Downloading images...done
      โˆš Starting...done
    โˆš Plug-in Registry pod bootstrap
      โˆš Scheduling...done
      โˆš Downloading images...done
      โˆš Starting...done
    โˆš Eclipse Che Dashboard pod bootstrap
      โˆš Scheduling...done
      โˆš Downloading images...done
      โˆš Starting...done
    โˆš Eclipse Che Server pod bootstrap
      โˆš Scheduling...done
      โˆš Downloading images...done
      โˆš Starting...done
    โˆš Eclipse Che status check...done
  โˆš Retrieving Che self-signed CA certificate...OK
  โˆš Prepare post installation output...done
  โˆš Show important messages
    โˆš Eclipse Che 'next' has been successfully deployed.
    โˆš Documentation             : https://www.eclipse.org/che/docs/
    โˆš -------------------------------------------------------------------------------
    โˆš Users Dashboard           : https://192.168.49.2.nip.io/dashboard/
    โˆš -------------------------------------------------------------------------------
    โˆš Plug-in Registry          : https://192.168.49.2.nip.io/plugin-registry/v3/
    โˆš Devfile Registry          : https://192.168.49.2.nip.io/devfile-registry/
    โˆš -------------------------------------------------------------------------------
    โˆš Dex user credentials      : [email protected]:admin
    โˆš Dex user credentials      : user1@che:password
    โˆš Dex user credentials      : user2@che:password
    โˆš Dex user credentials      : user3@che:password
    โˆš Dex user credentials      : user4@che:password
    โˆš Dex user credentials      : user5@che:password
    โˆš -------------------------------------------------------------------------------
Command server:deploy has completed successfully in 04:35.

Same problem

Ryder05 avatar Mar 15 '22 09:03 Ryder05

@Ryder05 can you please check that all Che services are up and running? I see you've provided your minikube instance 3gigs of memory, which may be insufficient.

Steps to reproduce, seems confusing. IMO we no longer have server:start.

sparkoo avatar Mar 15 '22 16:03 sparkoo

@Ryder05 i am facing the same problem. could you please help me access the same in windows

velak4340 avatar Jul 20 '23 07:07 velak4340

tried wget https://192.168.49.2.nip.io/dashboard/ --no-check-certificate, you can see the index webpage $ cat index.html but not external

dex
<div class="dex-container">

Log in to Your Account

<button tabindex="3" id="submit-login" type="submit" class="dex-btn theme-btn--primary">Login</button>
</div>

martinorpa avatar Aug 21 '23 22:08 martinorpa

Same, i can not access docker internal network https://github.com/eclipse-che/che/issues/22989 looking for help

emircanerkul avatar Jun 01 '24 12:06 emircanerkul