Index: openacs-4/packages/acs-core-docs/www/upgrade-openacs.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/Attic/upgrade-openacs.html,v diff -u -N -r1.1.2.6 -r1.1.2.7 --- openacs-4/packages/acs-core-docs/www/upgrade-openacs.html 21 Jan 2004 18:36:17 -0000 1.1.2.6 +++ openacs-4/packages/acs-core-docs/www/upgrade-openacs.html 2 Feb 2004 18:10:58 -0000 1.1.2.7 @@ -1,4 +1,4 @@ -Upgrading OpenACS

Upgrading OpenACS

Upgrading 4.5 to 4.6.x

The required platform for OpenACS 4.6 is the same as +Upgrading OpenACS

Upgrading OpenACS

Upgrading 4.5 or higher to 4.6.3

The required platform for OpenACS 4.6 is the same as 4.5, with the exception of OpenFTS. OpenACS 4.6 and later require OpenFTS 0.3.2 for full text search on PostGreSQL. If you have OpenFTS 0.2, you'll need to upgrade.

  1. Make a Backup.�Back up the database and file system (see the section called “Manual backup and recovery”).

  2. OPTIONAL: Upgrade OpenFTS.�the section called “Upgrading OpenFTS from 0.2 to 0.3.2”

  3. Stop the server

    [root root]# svc -d /service/service0
  4. Upgrade the file system.�the section called “Upgrading the OpenACS files”

  5. @@ -8,9 +8,8 @@ upgrade, plus any new packages you want. It's safest to upgrade the kernel by itself, and then come back and upgrade the rest of the - desired packages in a second pass.

  6. On the next screen, click Install Packages

  7. When prompted, restart the server:

    [root root]# restart-aolserver service0
  8. Wait a minute, then browse to the package manager, http://yourserver/acs-admin/apm.

  9. Check that the kernel upgrade worked by clicking All and making sure that acs-kernel version is 5.0.0.

  • Rollback.�If anything goes wrong, roll back to the backup snapshot.

  • Upgrading OpenACS 4.6.3 to 5.0

    • Oracle.�Not yet documented. It should be possible to upgrade via the APM just as when upgrading to 4.6.3.

    • PostGreSQL.� - You must use PostGreSQL 7.3.x or newer, or Oracle, to upgrade OpenACS beyond 4.6.3. (OpenACS 5.0 requires PostGreSQL 7.3; OpenACS versions prior to 4.6.3 do not support PostGreSQL 7.3; only OpenACS 4.6.3 supports both 7.2 and 7.3. Upgrade PostGreSQL to 7.3) -

      1. Back up the database and file system.

      2. Upgrade the kernel manually:

        [root root]# su - service0
        +              desired packages in a second pass.

      3. On the next screen, click Install Packages

      4. When prompted, restart the server:

        [root root]# restart-aolserver service0
      5. Wait a minute, then browse to the package manager, http://yourserver/acs-admin/apm.

      6. Check that the kernel upgrade worked by clicking All and making sure that acs-kernel version is .

    • Rollback.�If anything goes wrong, roll back to the backup snapshot.

    Upgrading OpenACS 4.6.3 to 5.0

    • Oracle.�Not yet documented. It should be possible to upgrade via the APM just as when upgrading to 4.6.3.

    • PostGreSQL.�You must use PostGreSQL 7.3.x or newer to upgrade OpenACS beyond 4.6.3. See Upgrade PostGreSQL to 7.3; Table�2.2, “Version Compatibility Matrix” +

      1. Back up the database and file system.

      2. Upgrade the file system for packages/acs-kernel.�the section called “Upgrading the OpenACS files”

      3. Upgrade the kernel manually. (There is a script to do most of the rest: /contrib/misc/upgrade_4.6_to_5.0.sh on HEAD). You'll still have to do a lot of stuff manually, but automated trial and error is much more fun.)

        [root root]# su - service0
         [service0 aolserver]$ cd /var/lib/aolserver/ service0/packages/acs-kernel/sql/postgresql/upgrade

        Manually execute each of the upgrade scripts in sequence, either from within psql or from the command line with commands such as psql -f upgrade-4.6.3-4.6.4.sql service0. Run the scripts in this order (order is tentative, not verified):

        psql -f upgrade-4.6.3-4.6.4.sql service0
        @@ -26,7 +25,9 @@
         psql -f upgrade-5.0.0a4-5.0.0a5.sql service0
         psql -f upgrade-5.0.0b1-5.0.0b2.sql service0
         psql -f upgrade-5.0.0b2-5.0.0b3.sql service0
        -psql -f upgrade-5.0.0b3-5.0.0b4.sql service0
      4. Load acs-authentication data model.

        psql -f /var/lib/aolserver/service0/openacs-5/packages/acs-authentication/sql/postgresql/acs-authentication-create.sql service0
      5. Load acs-lang data model.

        psql -f /var/lib/aolserver/service0/packages/acs-lang/sql/postgresql/acs-lang-create.sql service0
      6. Create a file which will be executed on startup which takes care of a few issues with authentication and internationalization: create service0/tcl/zzz-postload.tcl containing:

        if {![apm_package_installed_p acs-lang]} {
        +psql -f upgrade-5.0.0b3-5.0.0b4.sql service0
      7. Upgrade ACS Service Contracts manually:

        [service0 aolserver]$ cd /var/lib/aolserver/ service0/packages/acs-service-contracts/sql/postgresql/upgrade
        +psql -f upgrade-4.7d2-4.7d3.sql service0
        +
      8. Load acs-authentication data model.

        psql -f /var/lib/aolserver/service0/openacs-5/packages/acs-authentication/sql/postgresql/acs-authentication-create.sql service0
      9. Load acs-lang data model.

        psql -f /var/lib/aolserver/service0/packages/acs-lang/sql/postgresql/acs-lang-create.sql service0
      10. (This step may overlap with the two previous steps, but I think it's harmless?) Create a file which will be executed on startup which takes care of a few issues with authentication and internationalization: create service0/tcl/zzz-postload.tcl containing:

        if {![apm_package_installed_p acs-lang]} {
         apm_package_install -enable -mount_path acs-lang [acs_root_dir]/packages/acs-lang/acs-lang.info
         lang::catalog::import -locales [list "en_US"]
         }
        @@ -43,4 +44,4 @@
         parameter::set_value -package_id [ad_acs_kernel_id] -parameter UsePasswordWidgetForUsername -value 0
         }
      11. If you can login, visit /acs-admin/apm and upgrade acs-kernel and acs-service-contract and uncheck the data model scripts. Restart. If everything is still working, make another backup of the database.

      12. Upgrade other packages via the APM

      - See also this forum post: Forum OpenACS Development: 4.6.3 upgrade to 5-HEAD: final results.

    View comments on this page at openacs.org
    + See also these forum posts: Forum OpenACS Development: 4.6.3 upgrade to 5-HEAD: final results, OpenACS 5.0 Upgrade Experiences.

    View comments on this page at openacs.org