che icon indicating copy to clipboard operation
che copied to clipboard

On AWS Che fails to connect to Keycloak at startup

Open sushant08 opened this issue 6 years ago โ€ข 10 comments

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

sushant08 avatar May 22 '20 10:05 sushant08

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

tolusha avatar May 22 '20 10:05 tolusha

kubectl get ingress -n che

tolusha avatar May 22 '20 11:05 tolusha

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.

sushant08 avatar May 22 '20 12:05 sushant08

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

sushant08 avatar May 22 '20 12:05 sushant08

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 avatar May 25 '20 01:05 erlansan

@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/

tolusha avatar May 25 '20 07:05 tolusha

@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

sushant08 avatar May 26 '20 19:05 sushant08

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

RickJWagner avatar May 26 '20 19:05 RickJWagner

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.

sushant08 avatar May 27 '20 05:05 sushant08

Thank you, @sushant08.

RickJWagner avatar May 27 '20 12:05 RickJWagner