Updating WSO2 API Manager 4.7 Behind a Corporate Proxy
With WSO2 API Manager 4.7, the Update Tool is no longer bundled with the product distribution. Instead, you must first download it using the
update_tool_setup.sh script, which then installs the platform-specific update utility (for example, wso2update_linux).If your environment is behind a corporate proxy, the download may fail unless the proxy environment variables are configured.
Step 1: Configure Proxy (If Applicable)
Before running the setup script, configure the proxy environment variables.
export http_proxy=http://[proxy-host]:[proxy-port]
export https_proxy=http://[proxy-host]:[proxy-port]
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$https_proxy
# Optional
export no_proxy=localhost,127.0.0.1,[internal-domains]
export NO_PROXY=$no_proxy
Note: In my environment, configuring https_proxy was sufficient for the Update Tool to download successfully.
Step 2: Download the Update Tool
Navigate to the API Manager installation directory bin (AM_HOME/bin) and execute:
./update_tool_setup.sh
Command Output
$ ./update_tool_setup.sh
Downloading and extracting the supported Update Tool binary...
Downloading archive wso2update_linux.zip
https://product-dist.wso2.com/downloads/update-tool/release/wso2update_linux.zip
######################################################################################################################################################################### 100.0%
Successfully downloaded and extracted the supported Update Tool binary
This downloads the appropriate update utility for your operating system.
Step 3: Update the Product
Once the setup completes, execute the downloaded update utility.
./wso2update_linux
The tool checks for available updates, downloads the required patches, and updates the API Manager installation.
Command Output
$ ./wso2update_linux Initializing update tool with credentials Please enter your credentials to continue. Email: kumar@domain.com Password for kumar@domain.com Authenticating Authenticated user kumar@domain.com Checking for latest update tool version -------------- Welcome to WSO2 Updates -------------- Checking for updates The latest update level is 'wso2am-4.7.0.9'. This consists of 18 updates applied on top of 'wso2am-4.7.0.7' [WARNING] The update level 'wso2am-4.7.0.9' consists of 1 critical security updates applied on top of 'wso2am-4.7.0.7'. WSO2 strongly recommends to use 'wso2am-4.7.0.9' distribution in production as soon as possible. Creating a backup of '/data1/u01/binaries/wso2am-4.7.0' Successfully created the backup at : /home/appadmin1/.wso2-updates/backup/wso2am-4.7.0-bdee23ad-0018-4ae8-bc67-33f4d7dfc0d9 Downloading updates Downloading files... [63/63] - 0s remaining Updating product wso2am-4.7.0 updated successfully
Key Takeaways
- WSO2 API Manager 4.7 no longer ships with the Update Tool by default.
- Execute update_tool_setup.sh once to download the platform-specific update utility.
- If you're behind a corporate proxy, configure http_proxy and https_proxy before running the setup script.
- After the Update Tool is downloaded, use wso2update_linux (or the equivalent for your operating system) to apply the latest product updates.
- This small change in the update process can save troubleshooting time, especially in enterprise environments where outbound internet access is restricted through a proxy.

Comments
Post a Comment