Unison:Software Rollback Tutorial
Jump to navigation
Jump to search
Software Rollback Instructions
In some situations a Unison version upgrade can cause an unsuccessful upgrade, requiring starting from a previous version to fix. If this occurs, you can follow the steps below to rollback to a previous version of Unison you initially installed in your system.
Steps to Rollback Unison Version:
- Navigate (
cd
) to the rollback directory (/work/.rollback
). - Copy the files from the version you want to rollback to into the current file locations.
- Navigate to the work directory (
/work
). - Load the environmental variables necessary to deploy the stack.
- Navigate to the stack deployment config directory.
- Make sure the old stack is torn down.
- Log in to the server you are rolling back.
- Deploy the stack.
- Ensure the stack has come up
cd /usr/local/melissa/work/.rollback
cp .config.1.2.18 /usr/local/melissa/work cp docker-compose.yml.1.2.18 /usr/local/melissa/work/unisonMultiTemplate/docker-compose.yml cp docker-compose.base.yml.1.2.18 /usr/local/melissa/work/unisonMultiTemplate/docker-compose.base.yml
cd /usr/local/melissa/work
for v in $(cat .config); do export $v ;done
cd /usr/local/melissa/work/unisonMultiTemplate
docker stack rm unison docker container ls
(This should show nothing listed.)
docker login -u unison -p 9YJxcRTM1yRgz0xJagTw ucr.melissadata.net
docker stack deploy -c docker-compose.yml --with-registry-auth unison
docker service ls
(All should show 1/1 or 3/3, etc.)