Changes between Version 16 and Version 17 of ToolUpgrade


Ignore:
Timestamp:
Oct 8, 2008, 9:58:52 AM (16 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ToolUpgrade

    v16 v17  
    11= Upgrading server software =
    22
    3 The BOINC server software (scheduler, daemons, web pages) is continually improved and debugged. We recommend that projects upgrade to the latest version every few weeks or so. There may also be points where upgrades are mandatory to continue working with current client software.
     3The BOINC server software (scheduler, daemons, web pages) is continually improved and debugged.
     4We recommend that projects upgrade whenever a new server_stable version is released.
     5There may also be points where upgrades are mandatory to continue working with current client software.
    46We maintain a list of [ServerUpdates recent changes].
    57
    68The steps required to upgrade are as follows:
    79
    8  1. (Optional) Stop the project, and make backups of the project database and the project tree.
    9  1. [SourceCode Download] (using SVN) the current source code. [ServerIntro#cookbook-compiling Compile] it in your BOINC source directory (called `source' below).
     10 1. (Optional) Stop the project.
     11 1. [SourceCode Download] (using SVN) the server_stable branch (or the trunk). [ServerIntro#cookbook-compiling Compile] it in your BOINC source directory (called `source' below).
     12 1. Recompile all project-specific back end programs (validators, assimilators).
    1013 1. Run the upgrade script:
    1114{{{
     
    1922$ ./upgrade --project_root=/path/to/projects  project_name
    2023}}}
    21  The project directory would then be `/path/to/projects/project_name`.  This allows for several BOINC projects to co-exist on the same server.
     24 The project directory would then be `/path/to/projects/project_name`.
    2225
    2326 It is possible to update only the web pages (PHP files), using the `--web_only` flag:
     
    2528$ ./upgrade --web_only  project_name
    2629}}}
    27  (There is no option to update only the server software but not the web pages, but there should be.  I'm working on it now...  -EAM)
    2830
    29  4. Update your project's database, if needed.   First
     31 5. Start the project, and check log files to make sure everything is OK. Run the BOINC client and test basic functions (attaching to project, getting work).
     32
     33== Updating the database structure ==
     34
     35Starting with SVN changeset [16160], database updates are performed automatically by '''upgrade'''.
     36Older updates must be done as follows.
     37
    3038{{{
    3139$ cd project/html/ops
     
    3543update_8_05_2005()
    3644}}}
    37   Each function performs a particular database update. You must perform all updates, in sequence, starting from  your last server software upgrade. If you are not sure when that was, you can use `mysql` to see that current format of your database.  For example, to see the fields in the `user` table, type
     45  Each function performs a particular database update.
     46You must perform all updates, in sequence, starting from  your last server software upgrade.
     47If you are not sure when that was, you can use `mysql` to see that current format of your database.
     48For example, to see the fields in the `user` table, type
    3849{{{
    3950$ mysql project_name
     
    4556}}}
    4657 Repeat this for the necessary updates, in increasing chronological order.
    47  1. Check file permissions and ownership of the feeder, scheduler, etc.
    48  1. Start the project, and check log files to make sure everything is OK. Run the BOINC client and test basic functions (attaching to project, getting work).