User Tools

Site Tools


zzz_archive:upgrading:evergreen:2.0.5_to_2.0.6

Upgrading Evergreen 2.0.5 to 2.0.6

  • If you are currently on a version before 2.0.5, make sure you follow the upgrade instructions for all previous releases up to 2.0.5.
  1. As Root, Stop Apache.
  2. Stop all Evergreen and OpenSRF services. As the opensrf user:
    osrf_ctl.sh -l -a stop_all
  3. Install or Upgrade OpenSRF 2.0.x
    1. NOTE: You may skip this step if the latest version of OpenSRF 2.0.x was previously installed.
  4. Download and build Evergreen:
    1. As the opensrf user, download and extract the latest version of Evergreen (http://open-ils.org/downloads/Evergreen-ILS-2.0.6.tar.gz):
      wget http://evergreen-ils.org/downloads/Evergreen-ILS-2.0.6.tar.gz
      tar xzf Evergreen-ILS-2.0.6.tar.gz
    2. As the root user, install the prerequisites. Replace <distribution> below with one of these values for your actual distribution:
      • debian-sqeeze for Debian Squeeze
      • ubuntu-lucid for Ubuntu Lucid Lynx (10.04)
        cd /home/opensrf/Evergreen-ILS-2.0.6
        make -f Open-ILS/src/extras/Makefile.install <distribution>
    3. As the opensrf user, configure and compile Evergreen:
      cd /home/opensrf/Evergreen-ILS-2.0.6
      ./configure --prefix=/openils --sysconfdir=/openils/conf
      make
    4. As the root user, install Evergreen:
      make STAFF_CLIENT_BUILD_ID=rel_2_0_6 install
    5. As the root user, change all files to be owned by the opensrf user/group:
      sudo chown -R opensrf:opensrf /openils
    6. As the opensrf user, update configuration files:
      cd /home/opensrf/Evergreen-ILS-2.0.6
      # and offline-config.pl for the offline staff client data uploader
      perl Open-ILS/src/support-scripts/eg_db_config.pl \
        --create-offline --user evergreen --password evergreen \
        --hostname localhost --port 5432 --database evergreen
    7. As the opensrf user, update server symlink in /openils/var/web/xul/:
      cd /openils/var/web/xul/
      rm server
      ln -s rel_2_0_6/server server
  5. Upgrade the database:
    1. NOTE: it is recommended that you back up your Evergreen database in order to restore your data if anything goes wrong
    2. cd /home/opensrf/Evergreen-ILS-2.0.6
      psql -U evergreen -h localhost -f Open-ILS/src/sql/Pg/2.0.5-2.0.6-upgrade-db.sql evergreen
  6. Start all Evergreen and OpenSRF services. As the opensrf user:
    osrf_ctl.sh -l -a start_all
  7. As Root, Start Apache.
  8. As the opensrf user, run autogen to refresh the static organizational data files:
    cd /openils/bin
    ./autogen.sh -c /openils/conf/opensrf_core.xml -u
  9. Update authority table if system was ever on 1.6
    UPDATE authority.record_entry SET active = active;
  10. Generate and run a reingest SQL script using the reingest script generation script:
    cd /home/opensrf/Evergreen-ILS-2.0.6
    perl Open-ILS/src/sql/Pg/reingest-1.6-2.0.pl --config /openils/conf/opensrf_core.xml --chunk_size 10000
    psql -U evergreen -h localhost -f reingest-1.6-2.0.sql evergreen
    1. Note: SQL file will be created in the current directory.
    2. Note This takes a long time if you have a lot of bibs and they can be run concurrently.

NOTE: Troubleshooting: If you run into errors, see: Troubleshooting: Checking for Errors for help finding errors in the log files. You may also ask the evergreen community using the mailing lists. Including error information from the logs will be extremely helpful when seeking assistance.

zzz_archive/upgrading/evergreen/2.0.5_to_2.0.6.txt · Last modified: 2022/02/10 13:34 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.