User Tools

Site Tools


upgrading:1.2.1_to_1.2.2

Upgrading from Evergreen 1.2.1 to 1.2.2

Installing the new version

  1. Download and unpack http://www.open-ils.org/downloads/Evergreen-ILS-1.2.2.tar.gz in a temporary directory.
  2. Make a backup copy of all your files, but especially the /openils/conf directory.
  3. Stop Apache. On some systems this can be accomplished by doing 'sudo service apache2 stop'.
  4. Stop Evergreen:
    su - opensrf
    /openils/bin/osrf_ctl.sh -c /openils/conf/opensrf_core.xml -a stop_all

    (You may have to change the paths to match your installation.)

  5. Perform the server installation steps relevant to your platform; typically you can skip the prerequisites and go directly to the section that includes make config and ends with make install. WARNING: You will DESTROY your Evergreen database if you supply 'openils_all evergreen_core' for the Build_targets part of 'make config'. Instead, use the following Build_targets:
    openils_core openils_web openils_reporter openils_client_xul openils_server_xul evergreen_core
  6. Start Evergreen:
    sudo -u opensrf /openils/bin/osrf_ctl.sh -c /openils/conf/opensrf_core.xml -a start_router
    sudo -u opensrf /openils/bin/osrf_ctl.sh -c /openils/conf/opensrf_core.xml -a start_perl
    sudo -u opensrf /openils/bin/osrf_ctl.sh -c /openils/conf/opensrf_core.xml -a start_c
  7. Start Apache. On some systems this can be accomplished by doing 'sudo service apache2 start'.

Database Schema Upgrade

To support the new search infrastructure available in 1.2.2 some new database components must be added. An SQL script is provided to alleviate any need to work with the database by hand. Database upgrade procedures for at least version 1.2.1.1 must be in place before running this script. Instructions for upgrading from 1.2.0 or 1.2.1.0 to 1.2.1.1 through 1.2.1.4 can be found here.

These instructions assume that PostgreSQL is running on the local machine, there is a database called 'evergreen', a database user called 'evergreen' and a database password of 'password'. Modify these settings as required.

  1. The JSON::XS Perl module must be installed on the database server to support a new plperl database function. To install JSON::XS on your database system, run the following command as root:
    # cpan JSON::XS
  2. To upgrade the database schema, issue the following commands against the Evergreen database:
     $ cd Evergreen-ILS-1.2.2.1/Open-ILS/src/sql/Pg/
     $ PGUSER=postgres PGHOST=127.0.0.1 psql evergreen -W -f 1.2.1-1.2.2-upgrade-db.sql
       Password: [password]

If you encounter any errors with this upgrade script please contact the developers on the open-ils-dev mailing list.

In addition to this script, the main opensrf.xml configuration file must be updated. Place the following XML under the <appsettings> node of <open-ils.search> section this file:

  <use_staged_search>true</use_staged_search>

The section will look something like this:

            <open-ils.search>
                <keepalive>5</keepalive>
                <stateless>1</stateless>
                <migratable>1</migratable>
                <language>perl</language>
                <implementation>OpenILS::Application::Search</implementation>
                <max_requests>100</max_requests>
 
                <unix_config>
                  ...
                </unix_config>
 
                <app_settings>
                    <use_staged_search>true</use_staged_search>
                    <marc_html_xsl>oilsMARC21slim2HTML.xsl</marc_html_xsl>
 
                    ... added content, spell checking, and cache settings and zip-file settings ...
 
                </app_settings>

Added Content Plugin and Caching layer

The added content plugin layer has been given a number of enhancements:

  • The plugin now has the ability to serve images. Therefore, the following is no longer needed in your apache config (default: eg_vhost.conf):
    RewriteEngine on
    ProxyTimeout 2
    RewriteRule /opac/extras/ac/jacket/small/(.*) \
        http://images.amazon.com/images/P/$1.01._SCMZZZZZZZ_.jpg [P,L]
    RewriteRule /opac/extras/ac/jacket/large/(.*) \
        http://images.amazon.com/images/P/$1.01._SCLZZZZZZZ_.jpg [P,L]
  • If you use Amazon for image lookups, add the following to your opensrf.xml file in the <added_content> section:
    <module>OpenILS::WWW::AddedContent::Amazon</module>
    <base_url>http://images.amazon.com/images/P/</base_url>
  • The plugin architecture now supports automatically shutting down for a configured amount of time after a configured number of lookup errors. The purpose of this is to reduce unnecessary waiting for Apache processes if your added content servers are not responding in a timely fashion. For example, if you have 10 errors configured, after 10 successive added content lookup errors (usually status 500 from the AC server), the added content plugin layer will stop trying for the configured amount of time. Add the following to your opensrf.xml file in the <added_content> section:
    <retry_timeout>300</retry_timeout>
    <max_errors>10</max_errors>
    • Note that cached content will still be served regardless of the error handling.

More 1.2.2 information

upgrading/1.2.1_to_1.2.2.txt · Last modified: 2008/07/09 22:25 by dbs

© 2008-2014 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a member of Software Freedom Conservancy.