molgenis / molgenis-service-armadillo

Armadillo; a DataSHIELD implementation, part of the MOLGENIS suite
https://molgenis.github.io/molgenis-service-armadillo/
GNU Lesser General Public License v3.0
7 stars 10 forks source link

Upgrade to v4.x.y #594

Closed clemens-tolboom closed 9 months ago

clemens-tolboom commented 11 months ago

Are you ready for Rock only

Upgrade to v4 latest (pre) release

Clean up docker containers/images

# Check space on VM
df -H

# should contain only rock images
docker container list --all

# remove containers not needed
docker container stop <id>
docker container rm <id>

# remove unneeded images
docker image list
docker image rm <id>
clemens-tolboom commented 9 months ago

Steps are not correct when having the newer install scripts available on https://github.com/molgenis/molgenis-service-armadillo/tree/master/scripts/install

marikaris commented 9 months ago

Steps are not correct when having the newer install scripts available on https://github.com/molgenis/molgenis-service-armadillo/tree/master/scripts/install

  • [ ] Should we use the --cleanup instead to have all reinstalled?
  • [ ] Is the armadillo-check-update.sh script installed and added to cron ... which we still are not sure we want

I don't think we want to use --cleanup, as I believe this throws away the data as well.

clemens-tolboom commented 9 months ago

Steps are missing the version intended

Download files from your version located in

Example using v4.1.1

clemens-tolboom commented 9 months ago

armadillo.application.yml on v4.1.1

diff --side-by-side /etc/armadillo/application.yml v4.1.1/application.template.yml 
clemens-tolboom commented 9 months ago

Auto upgrade

./v4.1.1/armadillo-check-update.sh 
Updater version: 0.1.0
Mode           : prd
Auto install   : n
Armadillo home : /usr/share/armadillo
Current version: 3.4.0

Current version is not upgradeable. It must be higher then 3.9999.0

What armadillo versions are available on your system

ls -l /usr/share/armadillo/application
clemens-tolboom commented 9 months ago

Manual change version


systemctl stop armadillo
systemctl status armadillo

cd /usr/share/armadillo/application/
ls -l
rm armadillo.jar 
ln -s /usr/share/armadillo/application/armadillo-4.1.1.jar armadillo.jar
ls -l

systemctl start armadillo
systemctl status armadillo
clemens-tolboom commented 9 months ago

Docker volumes

docker volume ls

# Where located
docker volume inspect ca0e9a34466a7543e42624421a332fc10266f23d0a809eb8f20933c8b15f0e9c

# Same list as above
ls -l /var/lib/docker/volumes/

# How much (seems only in kilobytes)
du -h -s /var/lib/docker/volumes/*
docker volume prune
clemens-tolboom commented 9 months ago

Log files

ls -l /var/log/armadillo/
ls -l /usr/share/armadillo/

less /var/log/armadillo/armadillo.log 

tail -f /var/log/armadillo/*
clemens-tolboom commented 9 months ago

This lead to PR #629 which got merged and released.