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

  1. Unzip the downloaded pack and navigate to <IS-HOME>/bin
  2. 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.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Shanika Wickramasinghe

Shanika Wickramasinghe

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