You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 25
Next »
The WSO2 in-place updates tool allows you to update your currently used product by fetching updates from the server and merging all configurations and files. The tool also gives backup and restore capability.
Given below is how to get in-place updates to your product.
Let's begin.
Stop the WSO2 product server if it is running.
Go to the <PRODUCT_HOME>/bin
directory and run the in-place updates tool that is appropriate to your OS:
./update_linux (On Linux)
./update_windows (On Windows)
./update_darwin (On OS X)
- When prompted, give the following:
- WSO2 subscription's user credentials.
- The channel that you subscribed to (e.g., full or security) when getting a WSO2 subscription.
Note that the tool starts to update your product.
If the tool lists any conflicts, click to see how to resolve them...
A conflict is likely to happen when a configuration file or artifact that you have customized has changed during the update. If a file/artifact has conflicts, the tool does not attempt to merge them. You need to manually apply the customizations on top of the updated files.
- Go to the locations of the files that have conflicts and note the following files that are created by the tool:
- The file that has your customizations (e.g.,
test.jag
). - The file that was there in the previous update level, before updating (e.g.,
test.jag.old
). - The file that is in the new update level, after updating (e.g.,
test.jag.updated
).
- By looking at the created files (
.old and
.updated
), resolve the conflicts and save the resolved file with the .final
extension (e.g., test.jag.final
). Run the tool again with the '--continue' flag for the tool to merge the changes in the .final
file with the file that created the conflict.
./update_linux --continue (On Linux)
./update_windows --continue (On Windows)
./update_darwin --continue (On OS X)
Go back to the location of the conflicting file and note that the tool has merged the
.final
file with the file that had your custom configurations and deleted all the other temporary files (i.e., .old
, .updated
, and .final
).
Restart the server.
If you want to revert the updates and restore the previous state, run the following command:
./update_linux --revert (On Linux)
./update_darwin --revert (On OS X)
Currently not supported on Windows due to file restrictions.
Click to see a list of flags and exit codes...
Here the flags:
--help | See a list of commands the tool provides. |
-t, --timestamp int | The timestamp up to which updates should be retrieved. |
--dry-run | Simulate the in-place update |
--d, --details | View details of the updates. |
--continue | Merge resolved conflicts. |
Here are the exit codes:
0 | Exit successfully |
1 | Exit on error |
2 | Exit on tool update |
3 | Exit on merge conflict |
4 | Exit on revert |
You have now updated your product using the WSO2 in-place update tool.