Local Che server inaccessible after successful start in minikube
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
- chectl server:start --platform minikube --installer=helm
- chectl server:deploy --platform minikube
- 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
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
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.
chectl server:delete --delete-namespace -ychectl server:deploy ...
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 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.
@Ryder05 i am facing the same problem. could you please help me access the same in windows
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
<div class="dex-container">
Log in to Your Account
</div>
Same, i can not access docker internal network https://github.com/eclipse-che/che/issues/22989 looking for help