Che: On AWS Che fails to connect to Keycloak at startup

Created on 22 May 2020  ยท  10Comments  ยท  Source: eclipse/che

Summary

Che pod failed to start with health check fail issue

Relevant information

โœ” Verify Kubernetes API...OK
โœ” ๐Ÿ‘€ Looking for an already existing Eclipse Che instance
โœ” Verify if Eclipse Che is deployed into namespace "che"...it is not
โœ” โœˆ๏ธ Kubernetes preflight checklist
โœ” Verify if kubectl is installed
โœ” Verify remote kubernetes status...done.
โœ” Check Kubernetes version: Found v1.13.12-eks-eb1860.
โœ” Verify domain is set...set to aws.glu-ide.cloud.
โ†“ Check if cluster accessible [skipped]
Eclipse Che logs will be available in '/var/folders/b_/knc25xx9159_h693ljnwb_mdd__nh8/T/chectl-logs/1590069382835'
โœ” 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.
โœ” ๐Ÿƒโ€ 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
โœ” 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...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
โ†’ Error: connect ETIMEDOUT 3.213.183.138:443
Retrieving Eclipse Che server URL
Eclipse Che status check
โ€บ Error: Error: Error: connect ETIMEDOUT 3.213.183.138:443
โ€บ Installation failed, check logs in '/var/folders/b_/knc25xx9159_h693ljnwb_mdd__nh8/T/chectl-logs/1590069382835'
che.log
che-operator.log
che-devfile-registry.log
keycloak.log
che-plugin-registry.log
postgres.log

I see error: 37) Error injecting constructor, java.lang.RuntimeException: Exception while retrieving OpenId configuration from endpoint: https://keycloak-che.aws.my-ide.cloud/auth/realms/che/.well-known/openid-configuration

arechectl kinquestion

Most helpful comment

Hi @sushant08
Thank you for reporting this issue. Can you please elaborate a little on the adjustment that was needed to make things work?
Thanks

All nodes in my ingress controller LB were unhealthy for that i had to change _externalTrafficPolicy_ to Cluster and i was trying with random domain name initially but to make it working i had to switch to domain i own.

All 10 comments

Is https://keycloak-che.aws.glu-ide.cloud/auth/realms/che/.well-known/openid-configuration available from the browser

kubectl get ingress -n che

Is https://keycloak-che.aws.glu-ide.cloud/auth/realms/che/.well-known/openid-configuration available from the browser

Not this link is not accessible.

kubectl get ingress -n che

NAMESPACE NAME HOSTS ADDRESS PORTS AGE
che che che-che.aws.glu-ide.cloud ae4a1479b9c1f11eab9ad0a1732cc3dc-0236d7fffaea8bc8.elb.us-east-1.amazonaws.com 80, 443 84s
che devfile-registry devfile-registry-che.aws.glu-ide.cloud ae4a1479b9c1f11eab9ad0a1732cc3dc-0236d7fffaea8bc8.elb.us-east-1.amazonaws.com 80, 443 29s
che keycloak keycloak-che.aws.glu-ide.cloud ae4a1479b9c1f11eab9ad0a1732cc3dc-0236d7fffaea8bc8.elb.us-east-1.amazonaws.com 80, 443 84s
che plugin-registry plugin-registry-che.aws.glu-ide.cloud ae4a1479b9c1f11eab9ad0a1732cc3dc-0236d7fffaea8bc8.elb.us-east-1.amazonaws.com 80, 443 15s

I have the same issue when starting the Eclipse Che pod
> 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 Retrieving Keycloak admin credentials Retrieving Che self-signed CA certificate Show important messages ยป Error: Error: ERR_TIMEOUT: Timeout set to pod ready timeout 130000 ยป Installation failed, check logs in

imo it started happening after i updated my chectl from 7.12.0 to 7.13.1. Before that i could start and stop the che server without any issues
how could i fix it?

@erlansan
pls, create a dedicated issue.

@sushant08
Have you used this doc?
https://www.eclipse.org/che/docs/che-7/deploying-che-on-kubernetes-on-aws/

@erlansan
pls, create a dedicated issue.

@sushant08
Have you used this doc?
https://www.eclipse.org/che/docs/che-7/deploying-che-on-kubernetes-on-aws/

Mine issue has been resolved. Issue was was with ingress controller and domain. Thanks

Hi @sushant08
Thank you for reporting this issue. Can you please elaborate a little on the adjustment that was needed to make things work?
Thanks

Hi @sushant08
Thank you for reporting this issue. Can you please elaborate a little on the adjustment that was needed to make things work?
Thanks

All nodes in my ingress controller LB were unhealthy for that i had to change _externalTrafficPolicy_ to Cluster and i was trying with random domain name initially but to make it working i had to switch to domain i own.

Thank you, @sushant08.

Was this page helpful?
0 / 5 - 0 ratings