[OPEN-ILS-DOCUMENTATION] Upgrading from 1.4.0.2 to 1.4.0.4

David Christensen david.a.christensen at gmail.com
Fri Apr 3 09:58:58 EDT 2009


Upgrading from an Evergreen 1.4.0.2 installation to 1.4.0.4

(this seems to have worked for me... on my test box.)
(note the potential gotcha at the end of this doc!)

Shut down apache (as root: "/etc/init.d/apache2 stop") and stop
services (as opensrf: "osrf_ctl.sh -l -a stop_all")
You might also want to make a backup of your existing /openils/
directory (as root: "cd /" and then "cp -p -R openils openils.orig")
:-)

Following the "Installing OpenSRF 1.0.6" wiki page
(http://open-ils.org/dokuwiki/doku.php?id=opensrf:1.0:install):
Skip step 1 - You've already got the opensrf user.
Do step 2 - download and extract OpenSRF-1.0.6
Do step 3 - as root, install prerequisites.  (I generally add a "| tee
log.txt" to the end of any 'make' commands)
Do step 4(I)  - configure and compile OpenSRF
Do step 4(II) - install OpenSRF
Skip step 4(III) - /etc/ld.so.conf.d/osrf.conf: already done
Skip step 4(IV) - define OpenSRF domains: already done
Do step 4 (V) - change ownership
Change step 5 - from "stop ejabberd" to "restart ejabberd" (as root:
"/etc/init.d/ejabberd restart")
Skip step 6 - ejabberd config: already done
Skip step 7 - restart ejabberd: we did it in step 5.
Skip step 8 - hmm... not even really a step :-)
Skip step 9 - register ejabber users: already done
Skip step 10 - create opensrf_core.xml: already done
Skip step 11 - edit opensrf.xml: already done
Skip step 12 - set up srfsh.xml: already done
Skip step 13 - edit .bashrc: already done

Start OpenSRF again (as opensrf: "osrf_ctl.sh -l -a start_all"
Test the connection to OpenSRF
Stop OpenSRF again (as opensrf: "osrf_ctl.sh -l -a stop_all")

Good - now on to Evergreen!

Following the "Installing Evergreen 1.4.0.4 on Ubuntu or Debian" wiki
page (http://open-ils.org/dokuwiki/doku.php?id=server:1.4.0:install):
Skip step 1 - we just did it :-)
Do step 2(I) - download and extract Evergreen-ILS-1.4.0.4
Do step 2(II) - as root, install prerequisites
Skip step 2(III) - /etc/ld.so.conf.d/eg.conf: already done
Do step 2(IV) - configure and compile Evergreen
Do step 2(V) - install the code (note that the STAFF_CLIENT_BUILD_ID
should be "rel_1_4_0_4")
Skip step 3 - PostgreSQL configuration: already done
Skip step 4 - create the database schema: already done
Skip step 5 - installing Dojo: already done
Skip steps 6,7,8,9,10,11 - apache stuff: already done
Skip step 12 - editing opensrf_core.xml: already done
Skip step 13 - set up srfsh.xml: already done
Skip step 14 - make cgi-bins executable: already done
Skip step 15 - translations: already done
NEW STEP 16 - database upgrade scripts.
  $ cd /home/opensrf/Evergreen-ILS-1.4.0.4/Open-ILS/src/sql/Pg/
  $ psql -U evergreen -d evergreen -h localhost -f
1.4.0.2-1.4.0.3-upgrade-db.sql
  $ psql -U evergreen -d evergreen -h localhost -f
1.4.0.3-1.4.0.4-upgrade-db.sql

Continue on from the "Starting Evergreen" section....
Note: it's *really* important to remember to do autogen again!  :-)



More information about the OPEN-ILS-DOCUMENTATION mailing list