Manually configuring Redis traffic to Homepage
Configure Redis traffic between the HCL Connections™ applications and the Homepage.
Do you need to manually configure Redis?
By default, Redis is configured automatically as part of the bootstrap installation task. You can confirm this by checking the bootstrap pod logs with the following steps:
-
Determine the bootstrap pod name by running the following command:
kubectl get pods -n connections | grep bootstrapThe response should look like the following example:
bootstrap-1abcd 0/1 Completed 0 1d -
Check the bootstrap pod logs by running the following command:
kubectl logs bootstrap-1abcd -n connectionsIf redis is configured successfully, you will see the following message in the logs:
Successfully configured redisIf redis was not configured, or if redis failed to configure with the following error, continue with the steps on this page to configure redis manually:
Unable to reach Connections HTTP server on <http_server>/homepage/orgadmin/adminapi.jsp. Please make sure host is correct and Connections is running.Alternatively you can configure redis manually using the steps in the documentation.
Running the configuration script
Ensure that the Connections server is running. Then, run the Redis configuration script and restart the dependent applications to apply the changes.
- On a system with access to the Connections deployment URL, download the
configureRedis.shscript and grant it execute permissions.curl -O https://raw.githubusercontent.com/HCL-TECH-SOFTWARE/connections-automation/refs/heads/main/roles/hcl/component-pack-harbor/files/redis/configureRedis.sh chmod +x configureRedis.sh -
Run the configuration script with the following command, including the parameters described in Table 1.
sudo bash configureRedis.sh -m <redis host> -po 30379 -ic https://<connections url> -ic_u <admin user> -ic_p <admin password> -pw <redis password>Parameter Description -mThe host name or IP address of the external Kubernetes load balancer (eg. HAProxy) in an HA environment or the worker node in a single node environment. -poThe external port that haproxy-redis is running on. The default port is 30379. -icThe host name and HTTP protocol used to access Connections in the browser. You must specify http://orhttps://or the script will not run.-ic_uRequired. The user name of the Connections Administrator account, which is also the WebSphere Application Server administrator account. -ic_pRequired. The password for the Connections Administrator account, which is also the WebSphere Application Server administrator account. -pwThe password for the Redis secret. This value must match the env.set_redis_secretsetting that was used during the bootstrap installation.Example:
sudo bash configureRedis.sh -m 1.2.3.4 -po 30379 -ic https://connections.example.com -ic_u admin -ic_p admin_password -pw redis_passwordAfter the script completes, verify that there is no
redis config failederror message. -
Restart the dependent applications by completing the following steps:
-
Browse to the WebSphere® Integrated Solutions Console and log in.
For example: https://your_Connections_URL:9043/ibm/console
-
Click Applications > All Applications.
- Stop and restart the Common application.
- Stop and restart the News application.
-
Alternative configuration
If the configureRedis.sh script does not work, there is an alternative method to configure redis directly on the HCL Connections deployment's WebSphere Deployment Manager (Linux only):
-
On the Connections deployment's WebSphere Deployment Manager, create a folder and download the Redis files from the HCL Harbor repository. Grant execute permissions to the 'updateRedisJSON.sh' script.
-
On the Deployment Manager, run the configuration script with following command, including the parameters described in Table 2:
sudo bash $HOME/redis/updateRedisJSON.sh \ -m k8s_load_balancer_host_or_ip \ -po haproxy-redis_port \ -pa path_to_update_folder \ -pw redis_passwordParameter Description -mThe host name or IP address of the external Kubernetes load balancer (for example, HAProxy) in an HA environment or the worker node in a single node environment. -poThe external port that haproxy-redis is running on. The default port is 30379. -paThe absolute path to the Connections configuration update folder. For example, \(Linux®\): /opt/HCL/Connections/shared/configuration/update-pwPassword for the Redis secret. This value must match the env.set_redis_secretsetting that was used during the bootstrap installation.Example:
sudo bash updateRedisJSON.sh -m 1.2.3.4 -po 30379 -pa /opt/HCL/Connections/shared/configuration/update -pw yourredispasswordWhen the script finishes running, a confirmation message displays with a list of the steps for completing the configuration:
Next Steps : 1. Log in to WAS. Browse to Applications 2. Restart Common 3. Restart News Clean exit -
Restart the dependent applications as instructed by completing the following steps:
-
Browse to the WebSphere Integrated Solutions Console and log in.
For example:
https://your\_Connections\_URL:9043/ibm/console -
Click Applications > All Applications.
- Stop and restart the Common application.
- Stop and restart the News application.
-
Parent topic:Enabling and securing Redis traffic to Homepage