Upgrade Guide
The following section of the guide is valid only for Docker-based deployments for upgrading Hybrid Chat from 3.15.3 to 3.15.9.
Upgrade from 3.15.3 to 3.15.9
Changelog
The following table shows the changelog with respect to required manual updates during the upgrade process.
| Entity | Updated | Description | |
|---|---|---|---|
| 1 | Environment variables | ||
| 2 | Translations | ||
| 3 | Reporting Database Schema | ||
| 4 | Reporting Data | ||
| 5 | Network Proxy Rules | ||
| 6 | Rasa Bot Training Data |
Prerequisites
- Gitlab container registry should be accessible from the host machine i.e.
gitlab.expertflow.com:9242 - One of the following tools should be installed on the host machine
- curl
- wget
Upgrade Procedure
Singleton Deployment
To upgrade from 3.15.3 to 3.15.9 in a singleton deployment, follow these steps:
Stop Hybrid Chat
Stop Hybrid Chat
BASHefutils all down- Navigate to the HC installation directory
Create a backup of the
coreversion.envfileBASH# The following command will rename coreversion.env file as coreversion.env.3.15.3.backup mv coreversion.env{,.3.15.3.backup}Download the updated coreversion.env file
BASH# This command must be executed in the HC installation directory which you navigated to following step 2 # Using curl curl https://gitlab.expertflow.com/expertflow/hybrid-chat/-/raw/3.15.9/coreversion.env --output coreversion.env # or via using wget wget https://gitlab.expertflow.com/expertflow/hybrid-chat/-/raw/3.15.9/coreversion.envThe following section of point # 4 only applies if the above commands fail
Executing the above command will fetch updated information about images. If unable to perform this, revert the step 3CODEmv coreversion.env.3.15.3.backup coreversion.envEdit the
coreversion.envfile and update the following image tags:Component coreversion.env Key Previous Version Updated Version 1 ActiveMQ activemq5.16.1-openj9-alpine-slim5.17.1-alpine-zulu-11-hardened2 Chat Server chat3.15.33.15.63 Communication Server commserver3.14.03.15.94 Media Routing Engine mre3.15.33.15.95 Customer Gadget customergadget3.15.03.15.66 Database Connector databaseconnector3.15.33.15.97 Customer Channel Manager ccm3.15.03.15.78 Reporting Connector reportingconnector3.15.33.15.8Save the
coreversion.envfileNavigate to the
environment-variablesdirectoryCODEcd <hc-installtion-dir>/docker/environment-variables/Add/update the following variables in the respective files
Environment Variable Default Value Action Description Chat Server → chat-variables.env1 MOBILE_CUSTOMER_RECONNECT_TIME120ADD
This is the customer inactivity timeout for when a customer is using web chat in a mobile browser. Time is in seconds. Communication Server → comm-server-variables.env2 RONA_TIMEOUT-1UPDATE
RONA_TIMEOUTvalue was in milliseconds in the HC 3.15.3 release. It has been changed to seconds in HC 3.15.9. Adjust the value of this environment variable accordingly. To disable RONA, set its value to-1.Database Connector → database-connector-variables.env3 ERR_FILE_PATH/usr/src/app/errADD
HC 3.15.9 release tries to take correcting actions for avoiding ghost chats up to 20 times. If still not successful, it dumps the problematic messages in an errfile. This environment variable holds the path of that file. Do not change this value unless recommended by the maintainer(s).Start Hybrid Chat
Start Hybrid Chat
BASHefutils all up
High Availability (HA) Deployment
- Turn down Hybrid Chat on both primary and secondary machines
- Perform the upgrade using the
singleton deploymentmethod on the primary machine - Turn down Hybrid Chat on the primary machine
- Perform the upgrade using the
singleton deploymentmethod on the secondary machine - Renounce the following services on the secondary machine
- Chat Server
- Comm Server
- MRE
- Reporting Connector
- Database Connector
The following section of the guide is valid only for Docker-based deployments for upgrading Hybrid Chat from 3.13.x to 3.15.0.
Upgrade from 3.14.0 to 3.15.0
Changelog
The following table shows the changelog with respect to required manual updates during the upgrade process.
| Entity | Updated | Description | |
|---|---|---|---|
| 1 | Environment variables | ||
| 2 | Translations | ||
| 3 | Reporting Database Schema | ||
| 4 | Reporting Data | ||
| 5 | Network Proxy Rules | ||
| 6 | Rasa Bot Training Data |
Upgrade Procedure
To upgrade from 3.14.0 to 3.15.0, follow these steps:
- Backup MongoDB and MySql database data.
- Stop HC completely.
Remove
efutilssymbolic linkRemove Symbolic Link
BASH# the following command can be used to remove efutils symbolic link, make sure your have remove privilidges # press y when this command prompts for removing the symlink, press enter to confirm [root@hc-host ~] rm -i $(which efutils) rm: remove symbolic link '/usr/bin/efutils'? y- Deploy the new solution in a new location on the same host.
- Stop HC after deploying the new solution.
- Deploy Customer Web Widget from the master branch. Update Queues & customer channel data configurations in the new Web Widget deployment as per your previous configuration.
- Copy <3.14.0-
install-dir>/docker/environment-variables/*to <3.15.0-install-dir>/docker/environment-variables/*. It makes sure that all the previous configurations are imported in the new deployment. Add/update the following environment variables in
<3.15.0-install-dir>/docker/environment-variables/*.envfilesComponent Environment Variable File Environment Variable Action Recommendation Previous Value Updated Value Description 1 CCM ccm-variables.env 360DIALOG_HOST_URL ADD
OPTIONAL
https://waba.360dialog.io Used for 360Dialog integration for WhatsApp channel, it is mandatory to add it if you are planning to integrate 360Dialog WhatsApp with HC. It is optional otherwise 2 CCM ccm-variables.env 360DIALOG_API_KEY ADD
OPTIONAL
N/A Used for 360Dialog integration for WhatsApp channel, it is mandatory to add it if you are planning to integrate 360Dialog WhatsApp with HC. It is optional otherwise 3 CCM ccm-variables.env 360DIALOG_WHATSAPP_NUMBER ADD
OPTIONAL
N/A Used for 360Dialog integration for WhatsApp channel, it is mandatory to add it if you are planning to integrate 360Dialog WhatsApp with HC. It is optional otherwise 4 CCM ccm-variables.env 360DIALOG_READ_TIMEOUT ADD
OPTIONAL
3000 Used for 360Dialog integration for WhatsApp channel, it is mandatory to add it if you are planning to integrate 360Dialog WhatsApp with HC. It is optional otherwise 5 CCM ccm-variables.env 360DIALOG_CONNECT_TIMEOUT ADD
OPTIONAL
3000 Used for 360Dialog integration for WhatsApp channel, it is mandatory to add it if you are planning to integrate 360Dialog WhatsApp with HC. It is optional otherwise 6 CCM ccm-variables.env 360DIALOG_ERR_NOTIFICATION ADD
OPTIONAL
The system only supports text messages, please retry
Used for 360Dialog integration for WhatsApp channel, it is mandatory to add it if you are planning to integrate 360Dialog WhatsApp with HC. It is optional otherwise 7 CCM ccm-variables.env FACEBOOK_APP_SECRET ADD
OPTIONAL
N/A Used for FB Messenger app integration for the Facebook channel. It is mandatory to add if you are planning to integrate FB Messenger with HC, optional otherwise 8 CCM ccm-variables.env FACEBOOK_GRAPH_API_URL UPDATE
OPTIONAL
https://graph.facebook.com/v4.0 https://graph.facebook.com/v10.0 Used for FB Messenger app integration for the Facebook channel. It is mandatory to add if you are planning to integrate FB Messenger with HC, optional otherwise - Copy <3.14.0-
install-dir>/docker/translations/*to <3.15.0-install-dir>/docker/translations/*. No new translation is added or updated in this release. - Start HC 3.15.0 using
efutils all(select 1 to turn the solution up). - Restore MySql and MongoDB backup. MongoDB and MySql containers should be running for backup restore. If 3.14.0 was deployed in high availability mode, restore MongoDB and MySql on both primary and secondary host machines.
- If certificates for the customer are mounted via Volume Mount to APP-GATEWAY container, mount the same directory to HC 3.15.0 APP-GATEWAY service in
<3.14.0-install-dir>/sds/docker-compose-service-gateway.ymlfile for singleton deployment and in<3.15.0-intall-dir>/sds/docker-compose-ha-service-gateway.ymlif HC 3.15.0 is being deployed in HA mode. Useefutils serviceto performUpoperation for APP-GATEWAY container after this update. - Start HC 3.15.0 after performing these steps.
- Restart MRE service.
If 3.14.0 was deployed in high availability mode, perform the upgrade operations for Primary and Secondary host machines. There is no update for the Arbiter node. After upgrade, execute the renounce scripts in the secondary host machine.