Upgrade from 4.2.0.2 to 4.2.1.4
This section describes how customers can upgrade from version 4.2.0.2 to 4.2.1.4 in Docker environment.
Before starting an upgrade, make sure your current build is 4.2.1.2. To that, got to Administration
-> About OpenIAM
and verify the build configuration.
To check from git status
- cd /usr/local/openiam/openiam-docker-compose
- Check from git status
- Check OpenIAM version in env.sh
To upgrade OpenIAM to version 4.2.1.4, perform the following steps:
- Run
sudo git checkout -b RELEASE-4.2.1.2-changessudo git add .
- Commit the changes to new branch with customizations.
sudo git commit -a -m "4.2.1.2-changes"
Note: If you encounter 'please tell me who you are' issue use the highlighted commands to setup your email and username.
- Do a merge in a new branch so you could keep original customized branch safe.
sudo git checkout -b update_to_RELEASE-4.2.1.4sudo git pull origin RELEASE-4.2.1.4
sudo git merge origin/RELEASE-4.2.1.4
Note: Please verify that OpenIAM version in env.sh is changed to 4.2.1.4. And if there are any merge conflicts follow the link to resolve those and merge afterwards.
- Restart Server Run
sudo ./shutdown.sh
and kindly wait for the containers to stop.
Then, run
sudo ./setup.shsudo ./startup.sh
After upgrading, to check the status of all the containers, execute
watch -n 5 ‘docker ps’
If some of the services are getting killed, follow the steps highlighted below:
- The flyway container should fail:
docker ps -a
grep flyway with a non-zero exit.
Modify utilities/flyway/docker-compose.yaml, and uncomment
FLYWAY_COMMAND: "repair"
lineDeploy using./setup.sh && ./startup.sh
Modify utilities/flyway/docker-compose.yaml, and comment out
FLYWAY_COMMAND: "repair"
line.Deploy using./setup.sh && ./startup.sh
- Check OpenIAM version in webconsole. Go to
Administration
->About OpenIAM
.
NOTE: If rproxy container keeps restarting and shows logs similar to mentioned below.
The issue has to do with Ubuntu 20.04 syscalls not compatible with Docker version 19. Hence, the solution is to upgrade Docker version using below mentioned commands.
sudo apt updatesudo apt install apt-transport-https ca-certificates curl software-properties-commoncurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"apt-cache policy docker-cesudo apt install docker-ce
Note: .NET/PS connector versions to be used with OpenIAM version 4.2.1.4. should be at least 5.13.0.0 or higher. Please note that you must update connector if you use newer versions of the product. It is recommended to use the latest connector version. All .NET/PS connectors versions as at 5.24.0.0 version are backward compatible, hence updating it will not disrupt operation of OpenIAM versions 4.2.0 and higher.