Troubleshooting
If you encounter issues during deployment or operation of HCL Connections Engagement Center (WebEngine), refer to the following resources for troubleshooting guidance:
Common issues and solutions
Pod startup issues
The following are common issues that may occur during the startup of the WebEngine pod. Use the provided steps to diagnose and resolve these issues.
Crashloopbackoff
If the WebEngine pod crashes with CrashLoopBackOff, it is typically (99% of cases) a configuration error in the server.xml or Helm values.
To resolve:
-
Check pod logs:
kubectl logs -n connections <pod-name> --previous -
Verify configuration files:
kubectl exec -it -n connections <pod-name> -- cat /opt/openliberty/wlp/usr/servers/defaultServer/server.xml -
Common causes:
- Invalid LDAP configuration
- Incorrect database connection settings
- Missing or invalid LTPA keys
- SSL/TLS certificate issues
Pending state
Perform the following steps if the pod remains in Pending state:
-
Check PersistentVolumes and PersistentVolumeClaims:
kubectl get pv,pvc -n connections -
Verify NFS connectivity and
/etc/exportsconfiguration contains folder entries specific for CEC -
Check node resources:
kubectl describe node <node-name>
Imagepullbackoff
Perform the following steps if the pod shows ImagePullBackOff:
-
Verify image pull secrets:
kubectl get secrets -n connections -
Check Harbor/registry credentials are correct
-
Verify network connectivity to the container registry
Authentication issues
The following are common authentication issues that may occur when accessing CEC (WebEngine). Use the provided steps to diagnose and resolve these issues.
SSO not working
Perform the following steps if Single Sign-On between Connections and CEC is not working:
-
Verify LTPA keys are shared correctly:
kubectl get secret <ltpa-secret-name> -n connections -o yaml -
Ensure the LTPA key password matches between Connections WAS and CEC
-
Check that both applications use the same LDAP realm name
-
Verify cookie domains are configured correctly
Users cannot login
Perform the following steps if users cannot log in to CEC (WebEngine):
-
Check LDAP connectivity from the WebEngine pod:
kubectl exec -it -n connections <pod-name> -- ldapsearch -x -H ldap://<ldap-host>:389 -b "dc=example,dc=com" -
Verify
bindDNandbindPasswordinserver.xml -
Check Open Liberty logs for authentication errors:
kubectl logs -n connections <pod-name> | grep -i "authentication\|ldap\|login"
Database connectivity issues
The following are common database connectivity issues that may occur when CEC (WebEngine) is unable to connect to the database. Use the provided steps to diagnose and resolve these issues.
Connection refused
Perform the following steps if the WebEngine pod cannot connect to the database:
-
Verify database service is accessible:
kubectl exec -it -n connections <pod-name> -- nc -zv <db-host> <db-port> -
Check database credentials in configuration
-
Verify database user has required permissions
Schema errors
perform the following steps if you encounter schema-related errors:
-
Ensure database schema is properly initialized
-
Check that the database user has access to the required schemas
Network issues
The following are common network issues that may occur when CEC (WebEngine) is unable to communicate with other components. Use the provided steps to diagnose and resolve these issues.
Bad gateway
Perform the following steps if you encounter a 502 Bad Gateway error when accessing CEC (WebEngine):
-
Check if the WebEngine pod is running:
kubectl get pods -n connections | grep web-engine -
Verify Ingress configuration:
kubectl describe ingress -n connections -
Check service endpoints:
kubectl get endpoints -n connections
Connection timeout
Perform the following steps if you encounter connection timeouts when accessing CEC (WebEngine):
-
Verify network policies allow traffic
-
Check firewall rules between components
-
Verify DNS resolution within the cluster
Enabling trace logging
Enable trace logging in Open Liberty to capture detailed information for troubleshooting. This can help identify issues related to configuration, authentication, and connectivity.
To enable detailed trace logging for troubleshooting:
-
Edit the
server.xmlto add trace specification:<logging traceSpecification="*=info:com.ibm.portal.*=all:com.hcl.*=all" traceFileName="trace.log" maxFileSize="50" maxFiles="10"/> -
Restart the WebEngine pod
-
Collect trace logs:
kubectl cp connections/<pod-name>:/opt/openliberty/wlp/usr/servers/defaultServer/logs/trace.log ./trace.log
Collecting diagnostic information
Collecting diagnostic information is essential for effective troubleshooting. When opening a support case, provide the following information to help the support team diagnose the issue
-
Pod logs:
kubectl logs -n connections <pod-name> > webengine-logs.txt -
Pod description:
kubectl describe pod -n connections <pod-name> > pod-describe.txt -
Helm values (sanitized):
helm get values <release-name> -n connections > helm-values.txt -
Events:
kubectl get events -n connections --sort-by='.lastTimestamp' > events.txt