Deploying Che with self signed TLS certificates on Kubernetes fails with timeout error Timeout set to pod wait timeout 300000. podExist: false, currentPhase: undefined.
Deploy Che using chectl chectl server:start --platform=minikube --installer=operator --self-signed-cert
kubectl version)oc version)minikube version and kubectl version)minishift version and oc version)docker version and kubectl version)chectl version commandSet current context to 'minikube'
β Verify Kubernetes API...OK
β π Looking for an already existing Eclipse Che instance
β Verify if Eclipse Che is deployed into namespace "che"...it is not
β βοΈ 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.18.0.
β Verify if minikube ingress addon is enabled
β Enable minikube ingress addon
β Retrieving minikube IP and domain for ingress URLs...192.168.64.2.nip.io.
β Check if cluster accessible [skipped]
Eclipse Che logs will be available in '/var/folders/ck/7h90dz716lx9d9lcdqz_zhd40000gp/T/chectl-logs/1589471418284'
β Start following logs
β Start following Operator logs...done
β Start following Eclipse Che logs...done
β Start following Postgres logs...done
β Start following Keycloak logs...done
β Start following Plugin registry logs...done
β Start following Devfile registry logs...done
β Start following events
β Start following namespace events...done
β πβ Running the Eclipse Che operator
β Copying operator resources...done.
β Create Namespace (che)...It already exists.
β Checking for pre-created TLS secret... "che-tls" secret found
β Checking certificate [skipped]
β Create ServiceAccount che-operator in namespace che...It already exists.
β Create Role che-operator in namespace che...It already exists.
β Create ClusterRole che-operator...It already exists.
β Create RoleBinding che-operator in namespace che...It already exists.
β Create ClusterRoleBinding che-operator...It already exists.
β Create CRD checlusters.org.eclipse.che...It already exists.
β Waiting 5 seconds for the new Kubernetes resources to get flushed...done.
β Create deployment che-operator in namespace che...It already exists.
β Create Eclipse Che cluster eclipse-che in namespace che...It already exists.
β― β
Post installation checklist
β― Eclipse Che pod bootstrap
β scheduling
β ERR_TIMEOUT: Timeout set to pod wait timeout 300000. podExist: false, currentPhase: undefined
downloading images
starting
Retrieving Eclipse Che server URL
Eclipse Che status check
βΊ Error: Error: ERR_TIMEOUT: Timeout set to pod wait timeout 300000. podExist: false, currentPhase: undefined
βΊ Installation failed, check logs in '/var/folders/ck/7h90dz716lx9d9lcdqz_zhd40000gp/T/chectl-logs/1589471418284'
minikube version: v1.9.2
chectl/7.12.2 darwin-x64 node-v10.13.0
@Divya063
Thank you for reporting.
Currently it is not possible to deploy Eclipse Che on minikube 1.9.2 due to https://github.com/kubernetes/minikube/issues/7218
There is workaround https://github.com/kubernetes/minikube/issues/7218#issuecomment-611364740
Another option: try minikube 1.8.2
@tolusha Thank you for your response! I'm now using minikube 1.8.2 and still facing the same error.
chectl server:start --platform=minikube --installer=operator --self-signed-cert ββ―
Set current context to 'minikube'
β Verify Kubernetes API...OK
β π Looking for an already existing Eclipse Che instance
β Verify if Eclipse Che is deployed into namespace "che"...it is not
β βοΈ 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.18.0.
β Verify if minikube ingress addon is enabled
β Enable minikube ingress addon
β Retrieving minikube IP and domain for ingress URLs...192.168.64.2.nip.io.
β Check if cluster accessible [skipped]
Eclipse Che logs will be available in '/var/folders/ck/7h90dz716lx9d9lcdqz_zhd40000gp/T/chectl-logs/1589539010389'
β Start following logs
β Start following Operator logs...done
β Start following Eclipse Che logs...done
β Start following Postgres logs...done
β Start following Keycloak logs...done
β Start following Plugin registry logs...done
β Start following Devfile registry logs...done
β Start following events
β Start following namespace events...done
β πβ Running the Eclipse Che operator
β Copying operator resources...done.
β Create Namespace (che)...It already exists.
β Checking for pre-created TLS secret... "che-tls" secret found
β Checking certificate [skipped]
β Create ServiceAccount che-operator in namespace che...It already exists.
β Create Role che-operator in namespace che...It already exists.
β Create ClusterRole che-operator...It already exists.
β Create RoleBinding che-operator in namespace che...It already exists.
β Create ClusterRoleBinding che-operator...It already exists.
β Create CRD checlusters.org.eclipse.che...It already exists.
β Waiting 5 seconds for the new Kubernetes resources to get flushed...done.
β Create deployment che-operator in namespace che...It already exists.
β Create Eclipse Che cluster eclipse-che in namespace che...It already exists.
β― β
Post installation checklist
β― Eclipse Che pod bootstrap
β scheduling
β ERR_TIMEOUT: Timeout set to pod wait timeout 300000. podExist: false, currentPhase: undefined
downloading images
starting
Retrieving Eclipse Che server URL
Eclipse Che status check
βΊ Error: Error: ERR_TIMEOUT: Timeout set to pod wait timeout 300000. podExist: false, currentPhase: undefined
βΊ Installation failed, check logs in '/var/folders/ck/7h90dz716lx9d9lcdqz_zhd40000gp/T/chectl-logs/1589539010389'
@Divya063
I don't see that keycloak, postgres and other pods starting up.
Is that the very first install logs ?
@tolusha After switching to minikube 1.8.2 this is the very first install logs.
@Divya063
And that is very strange, because normally we have logs like that:
β
Post installation checklist
β PostgreSQL pod bootstrap
β scheduling...done.
β downloading images...done.
β starting...done.
β Keycloak pod bootstrap
β scheduling...done.
β downloading images...done.
β starting...done.
β Devfile registry pod bootstrap
β scheduling...done.
β downloading images...done.
β starting...done.
β Plugin registry pod bootstrap
β scheduling...done.
β downloading images...done.
β starting...done.
β― Eclipse Che pod bootstrap
β scheduling...done.
β downloading images...done.
β starting
Retrieving Eclipse Che ser
Any manual work before deploying?
@tolusha When I first ran chectl server:start --platform=minikube --installer=operator --self-signed-cert using minikube 1.9.2 it was stuck at the PostgreSQL pod:
β
Post installation checklist
β PostgreSQL pod bootstrap
β scheduling...
Don't know if its relevant, After that I started following this guide - https://che.eclipse.org/running-eclipse-che-on-kubernetes-using-docker-desktop-for-mac-5d972ed511e1 but some commands were not working. One of the command was this helm upgrade β install che β namespace che β set global.cheWorkspacesNamespace=βcheβ β set global.ingressDomain=${CHE_DOMAIN}.nip.io ./ and the error I got was
Release βcheβ does not exist. Installing it now.
Error: found in requirements.yaml, but missing in charts/ directory: che-devfile-registry, che-plugin-registry, che-postgres, che-keycloak, che-jaeger, prometheus, grafana`
To fix that I used helm dependency update
@Divya063 Just to check, did you do a minikube delete before starting the 1.8 cluster? I don't believe the k8s version can be changed without recreating the whole VM.
The logs
β Copying operator resources...done.
β Create Namespace (che)...It already exists.
β Checking for pre-created TLS secret... "che-tls" secret found
β Checking certificate [skipped]
β Create ServiceAccount che-operator in namespace che...It already exists.
β Create Role che-operator in namespace che...It already exists.
β Create ClusterRole che-operator...It already exists.
β Create RoleBinding che-operator in namespace che...It already exists.
β Create ClusterRoleBinding che-operator...It already exists.
β Create CRD checlusters.org.eclipse.che...It already exists.
β Waiting 5 seconds for the new Kubernetes resources to get flushed...done.
β Create deployment che-operator in namespace che...It already exists.
β Create Eclipse Che cluster eclipse-che in namespace che...It already exists.
make it look like there's already some Che deployment elements present in the cluster
@amisevsk I didn't do minikube delete. Well, I started again by doing minikube delete:
At first it got stuck at Keycloak pod :
Logs
chectl server:start --platform=minikube --installer=operator --self-signed-cert
Set current context to 'minikube'
β Verify Kubernetes API...OK
β π Looking for an already existing Eclipse Che instance
β Verify if Eclipse Che is deployed into namespace "che"...it is not
β βοΈ 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.17.3.
β Verify if minikube ingress addon is enabled
β Enable minikube ingress addon
β Retrieving minikube IP and domain for ingress URLs...192.168.64.3.nip.io
.
β Check if cluster accessible [skipped]
Eclipse Che logs will be available in '/var/folders/ck/7h90dz716lx9d9lcdqz_zhd40000gp/T/chectl-logs/1589612585730'
β Start following logs
β Start following Operator logs...done
β Start following Eclipse Che logs...done
β Start following Postgres logs...done
β Start following Keycloak logs...done
β Start following Plugin registry logs...done
β Start following Devfile registry logs...done
β Start following events
β Start following namespace events...done
β πβ Running the Eclipse Che operator
β Copying operator resources...done.
β Create Namespace (che)...It already exists.
β Checking for pre-created TLS secret... "che-tls" secret found
β Checking certificate [skipped]
β Create ServiceAccount che-operator in namespace che...done.
β Create Role che-operator in namespace che...done.
β Create ClusterRole che-operator...done.
β Create RoleBinding che-operator in namespace che...done.
β Create ClusterRoleBinding che-operator...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 che...done.
β Create Eclipse Che cluster eclipse-che in namespace che...done.
β― β
Post installation checklist
β PostgreSQL pod bootstrap
β scheduling...done.
β downloading images...done.
β starting...done.
β― Keycloak pod bootstrap
β scheduling...done.
β downloading images
β ERR_TIMEOUT: Timeout set to pod wait timeout 300000
starting
Devfile registry pod bootstrap
Plugin registry pod bootstrap
Eclipse Che pod bootstrap
Retrieving Eclipse Che server URL
Eclipse Che status check
βΊ Error: Error: ERR_TIMEOUT: Timeout set to pod wait timeout 300000
βΊ Installation failed, check logs in
βΊ '/var/folders/ck/7h90dz716lx9d9lcdqz_zhd40000gp/T/chectl-logs/1589612585
βΊ 730'
I started again, it jumped to Eclipse Che pod, but failed to start:
Logs
chectl server:start --platform=minikube --installer=operator --self-signed-cert
Set current context to 'minikube'
β Verify Kubernetes API...OK
β π Looking for an already existing Eclipse Che instance
β Verify if Eclipse Che is deployed into namespace "che"...it is not
β βοΈ 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.17.3.
β Verify if minikube ingress addon is enabled
β Enable minikube ingress addon
β Retrieving minikube IP and domain for ingress URLs...192.168.64.3.nip.io
.
β Check if cluster accessible [skipped]
Eclipse Che logs will be available in '/var/folders/ck/7h90dz716lx9d9lcdqz_zhd40000gp/T/chectl-logs/1589613321876'
β Start following logs
β Start following Operator logs...done
β Start following Eclipse Che logs...done
β Start following Postgres logs...done
β Start following Keycloak logs...done
β Start following Plugin registry logs...done
β Start following Devfile registry logs...done
β Start following events
β Start following namespace events...done
β πβ Running the Eclipse Che operator
β Copying operator resources...done.
β Create Namespace (che)...It already exists.
β Checking for pre-created TLS secret... "che-tls" secret found
β Checking certificate [skipped]
β Create ServiceAccount che-operator in namespace che...It already exists.
β Create Role che-operator in namespace che...It already exists.
β Create ClusterRole che-operator...It already exists.
β Create RoleBinding che-operator in namespace che...It already exists.
β Create ClusterRoleBinding che-operator...It already exists.
β Create CRD checlusters.org.eclipse.che...It already exists.
β Waiting 5 seconds for the new Kubernetes resources to get flushed...done
.
β Create deployment che-operator in namespace che...It already exists.
β Create Eclipse Che cluster eclipse-che in namespace che...It already exi
sts.
β― β
Post installation checklist
β― Eclipse Che pod bootstrap
β scheduling...done.
β downloading images...done.
β starting
β ERR_TIMEOUT: Timeout set to pod ready timeout 130000
Retrieving Eclipse Che server URL
Eclipse Che status check
βΊ Error: Error: ERR_TIMEOUT: Timeout set to pod ready timeout 130000
βΊ Installation failed, check logs in
βΊ '/var/folders/ck/7h90dz716lx9d9lcdqz_zhd40000gp/T/chectl-logs/1589613321
βΊ 876'
Next time I ran the command, the logs depicts that Eclipse Che is already deployed.
chectl server:start --platform=minikube --installer=operator --self-signed-cert
Set current context to 'minikube'
β Verify Kubernetes API...OK
β π Looking for an already existing Eclipse Che instance
β Verify if Eclipse Che is deployed into namespace "che"
β Found running Eclipse Che deployment
β Found running postgres deployment
β Found running keycloak deployment
β Found running plugin registry deployment
β Found running devfile registry deployment
βΊ Warning: Deployed Eclipse Che is found and the specified installation
βΊ parameters will be ignored
β π Starting already deployed Eclipse Che
β Scaling up Eclipse Che Deployments...done.
β― β
Post installation checklist
β― Eclipse Che pod bootstrap
β scheduling...done.
β downloading images...done.
β starting
β ERR_TIMEOUT: Timeout set to pod ready timeout 130000
Retrieving Eclipse Che server URL
Eclipse Che status check
βΊ Error: Error: ERR_TIMEOUT: Timeout set to pod ready timeout 130000
βΊ Installation failed, check logs in
βΊ '/var/folders/ck/7h90dz716lx9d9lcdqz_zhd40000gp/T/chectl-logs/1589614448
βΊ 795'
pls do.
kubectl delete namespace che
chectl server:start --platform=minikube --installer=operator --k8spodwaittimeout 600000
--k8spodwaittimeout
that didn't help me.
to fix deploy using custom storage resources (storage class and persistent volume for workspaces and che Postgres), and add storage class and workspacestorageclass to chectl, if using che-operator then edit the cr.yaml accordingly
@skabashnyuk https://github.com/eclipse/che/issues/16545#issuecomment-611363921 here's details on how to. I think there's docs pr on this too but I can't find the link.