How to Get a WSO2 Identity Server Pack Updated from Staging Environment

Shanika Wickramasinghe
2 min readMar 28, 2022
  1. Download the required IS pack from the website ( Dont get the pack from Github as the github pack doesnt have the required update manager tool) https://wso2.com/identity-server/#
  2. Unzip the downloaded pack and navigate to <IS-HOME>/bin
  3. Run the wso2update_linux.sh file

./wso2update_linux

4. It will ask for the wso2 authenticating credentials. Provide the credentials

5. Run the same tool again for one more time (./wso2update_linux)

6. Once the pack gets updated you can see the below logs

7. Once its updated there will be file generated as <IS-HOME>/updates/config.json. Open that file

8. Add below config to point it to the staging environment and disconnect from UAT environment. Save the file

“product”: {
“pattern”: “wso2is-5.11.0”,
“name”: “wso2is”,
“version”: “5.11.0”,
“backup”: “/home/shanika/.wso2-updates/backup/wso2is-5.11.0-cf3feba9–4b0f-4568-b58d-5a80e1568cdd”,
“backup-size”: 527778090
},
“services”: {
“staging”: {
“enabled”: true,
“name”: “WSO2 Update Repository”,
“url”: “https://gateway.api.cloud.wso2.com/t/updatesstaging",
“token-url”: “https://gateway.api.cloud.wso2.com/token",
“app-key”: “value”,
“access-token”: “value”,
“refresh-token”: “value”
},
“wso2”: {
“enabled”: false,
“name”: “WSO2 Update Repository”,
“url”: “https://gateway.api.cloud.wso2.com/t/updateslive",
“token-url”: “https://gateway.api.cloud.wso2.com/token",
“app-key”: “value”,
“access-token”: “value”,
“refresh-token”: “value”
}

9. Next run the update tool again (./wso2update_linux)

Now your pack should be updated with the latest updates available in the staging environment.

--

--

Shanika Wickramasinghe

Senior Software Engineer and Freelance Technical Writer. I write about any Computer Science related topic. https://www.linkedin.com/in/shanikawickramasinghe