Project

General

Profile

Actions

Bug #5919

closed

Upgrade KNB to 2.0.6

Added by ben leinfelder over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
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


Subtasks 1 (0 open1 closed)

Bug #5920: Test PG dump on dev serverResolvedben leinfelder04/24/2013

Actions
Actions #1

Updated by ben leinfelder over 11 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF