Actions
Bug #5919
closedUpgrade KNB to 2.0.6
Start date:
04/24/2013
Due date:
% Done:
100%
Estimated time:
(Total: 0.00 h)
Bugzilla-Id:
Description
Steps for upgrading:
- stop Tomcat
sudo /etc/init.d/tomcat6 stop
- backup postgres
/var/lib/postgresql/dumps/knb-nightly.sqlc
- backup /var/metacat
sudo tar -cvzf var_metacat.tgz /var/metacat/*
- backup spatial cache
cd /var/lib/tomcat6/webapps/knb/spatial/geoserver/data/data/metacat_shps/ sudo tar -cvzf metacat_shps.tgz *
- backup properties files
sudo cp /var/lib/tomcat6/webapps/knb/WEB-INF/metacat.properties /tmp/metacat.properties sudo cp /var/lib/tomcat6/webapps/knb/style/skins/obfs/obfs.properties /tmp/obfs.properties sudo cp /var/lib/tomcat6/webapps/knb/style/skins/nrs/nrs.properties /tmp/nrs.properties sudo cp /var/lib/tomcat6/webapps/knb/style/skins/nceas/nceas.properties /tmp/nceas.properties
- remove deployed webapp
sudo rm -rf /var/lib/tomcat6/webapps/knb
- deploy new war
sudo cp /home/leinfelder/metacat-2.0.6/knb.war /var/lib/tomcat6/webapps
- start Tomcat
sudo /etc/init.d/tomcat6 start
- configure metacat via the admin interface, making sure not to regenerate the spatial cache
- apply customizations to metacat.properties files
sudo diff /tmp/metacat.properties /var/lib/tomcat6/webapps/knb/WEB-INF/metacat.properties
- restore skin-specific properties
sudo cp /tmp/obfs.properties /var/lib/tomcat6/webapps/knb/style/skins/obfs/obfs.properties sudo cp /tmp/nrs.properties /var/lib/tomcat6/webapps/knb/style/skins/nrs/nrs.properties sudo cp /tmp/nceas.properties /var/lib/tomcat6/webapps/knb/style/skins/nceas/nceas.properties
- restore spatial cache
cd /var/lib/tomcat6/webapps/knb/spatial/geoserver/data/data/metacat_shps/ sudo tar -xvzf metacat_shps.tgz
- change permissions on cgi-bin scripts for the registry
sudo chmod +x /var/lib/tomcat6/webapps/knb/cgi-bin/*.cgi
- rename Hazelcast connection details (group name and password)
sudo vi /var/lib/tomcat6/webapps/knb/WEB-INF/hazelcast.xml
- restart tomcat
sudo /etc/init.d/tomcat6 restart
Actions