| 1 |
==================== |
|---|
| 2 |
Upgrading to CPS 3.4 |
|---|
| 3 |
==================== |
|---|
| 4 |
|
|---|
| 5 |
:Authors: - Lennart Regebro |
|---|
| 6 |
- Marc-Aurèle Darche |
|---|
| 7 |
|
|---|
| 8 |
:Revision: $Id$ |
|---|
| 9 |
|
|---|
| 10 |
.. sectnum:: :depth: 4 |
|---|
| 11 |
.. contents:: :depth: 4 |
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
CPS 3.4.0 supports upgrading from CPS 3.3.8. |
|---|
| 15 |
|
|---|
| 16 |
CPS 3.4.2 supports upgrades from CPS 3.2.4 and 3.3.* (and of course from CPS 3.4.0). |
|---|
| 17 |
|
|---|
| 18 |
**DO NOT UPGRADE A PRODUCTION SITE. Make backups first, or run the procedure on a copy.** |
|---|
| 19 |
|
|---|
| 20 |
The best way to upgrade is to first do a new install of CPS 3.4 in a new |
|---|
| 21 |
directory, and make sure it runs. Remember to make sure that you have all |
|---|
| 22 |
products that you have on your old site installed in the new site, or the |
|---|
| 23 |
upgrade will not work. Some products that exists in CPS 3.2 and 3.3 have been |
|---|
| 24 |
deprecated in 3.4. These exist in the 3.4 legacy package: |
|---|
| 25 |
|
|---|
| 26 |
http://www.cps-project.org/static/src/CPS-legacy-3.4.2-1.tar.gz |
|---|
| 27 |
|
|---|
| 28 |
If you have any custom products, you will need to install them as well, and make |
|---|
| 29 |
any necessary changes to the for compatibility with CPS 3.4. See |
|---|
| 30 |
http://svn.nuxeo.org/trac/pub/file/CPS3/trunk/doc/whats-new-cps-3.4/whats-new-cps-3.4.txt |
|---|
| 31 |
for more information about things that have changed on the technical level. |
|---|
| 32 |
|
|---|
| 33 |
After you have CPS 3.4 running, you stop the new server and delete the database |
|---|
| 34 |
in the new installation, and copy in the database from the production site. (You |
|---|
| 35 |
don't have to stop the production site, but of course, any changes made to the |
|---|
| 36 |
production site after you copied that database will be lost from the upgrade). |
|---|
| 37 |
|
|---|
| 38 |
In Unix:: |
|---|
| 39 |
|
|---|
| 40 |
<newsite>/bin/zopectl stop # Stopping the new installation |
|---|
| 41 |
rm <newsite>/var/* # Removing the new database |
|---|
| 42 |
cp <oldsite>/var/Data.fs <newsite>/var/ # Copying the production database |
|---|
| 43 |
<newsite>/bin/zopectl start # Restarting the new server |
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
The procedure from here on varies slightly depending on what version of CPS you |
|---|
| 47 |
are upgrading from. |
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 |
Upgrading from earlier versions of CPS 3.4. |
|---|
| 51 |
=========================================== |
|---|
| 52 |
|
|---|
| 53 |
Go to portal_setup at the root of your CPS (from the ZMI) and see, |
|---|
| 54 |
from the "Upgrades" tab, if some upgrades need to be run. Any |
|---|
| 55 |
upgrades that are to be run should be listed, and the ones that are |
|---|
| 56 |
runnable should be selected. Simply press the upgrade button. If no |
|---|
| 57 |
errors occurred, the upgrade went well. |
|---|
| 58 |
|
|---|
| 59 |
In unusual circumstances, you may note that an upgrade that was not |
|---|
| 60 |
selected before the upgrade is selected after the upgrade. In that |
|---|
| 61 |
case, press upgrade again. After all upgrades are done, there should |
|---|
| 62 |
be no upgrades listed. |
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 |
Upgrading from CPS 3.3.8 or 3.2.4 |
|---|
| 66 |
================================= |
|---|
| 67 |
|
|---|
| 68 |
1. Adding `portal_setup` |
|---|
| 69 |
|
|---|
| 70 |
Go to the CPS site and in the ZMI add a `CPS Setup Tool` from the `CPS Tools` |
|---|
| 71 |
menu item (do not add a `Generic Setup Tool`). Then go to the newly |
|---|
| 72 |
created `portal_setup` tool and run the upgrades. Before the upgrade |
|---|
| 73 |
the version number displayed will be "unknown". After the upgrade |
|---|
| 74 |
it should be "3.4.0". |
|---|
| 75 |
|
|---|
| 76 |
2. Importing the profiles |
|---|
| 77 |
|
|---|
| 78 |
Go to the "Profiles" tab, make sure "CPS Default" is selected and |
|---|
| 79 |
press import. Importing this profile takes some time, and results |
|---|
| 80 |
in a working CPS site. |
|---|
| 81 |
|
|---|
| 82 |
As with all previous CPS upgrades, installing the default profile |
|---|
| 83 |
will reset the standard configuration objects, like portal types, |
|---|
| 84 |
workflows, schemas, layouts, etc, but custom objects are kept |
|---|
| 85 |
untouched. If you press "Reinstall" instead of "Install" the |
|---|
| 86 |
installation will also remove any custom objects. |
|---|
| 87 |
|
|---|
| 88 |
3. Taking care of the member folder |
|---|
| 89 |
|
|---|
| 90 |
CPS 3.4 has it's member folder in <portal>/members, where CPS 3.2 |
|---|
| 91 |
and 3.3 had it in <portal>/workspaces/members. You need to change |
|---|
| 92 |
the configuration back to the old path. Open the portal_membership |
|---|
| 93 |
tool, and change the path from 'members' to 'workspaces/members'. |
|---|
| 94 |
Note that in the CPS 3.4.0 release there is a bug here, where this |
|---|
| 95 |
path will be changed back every time you import a profile. |
|---|
| 96 |
|
|---|
| 97 |
4. Other products and legacy products |
|---|
| 98 |
|
|---|
| 99 |
Go to the Profiles tab of the portal_setup tool. Select and install |
|---|
| 100 |
the profile for any of the products you used. If you had |
|---|
| 101 |
notifications set up in your old site, you will want to install the |
|---|
| 102 |
CPS Subscriptions profile, if you used the forums, you will want to |
|---|
| 103 |
install the CPS Forum profile and so on. |
|---|
| 104 |
|
|---|
| 105 |
The products in the CPSLegacy package is no longer supported and has |
|---|
| 106 |
no profiles. If you want to install them you have to refer to their |
|---|
| 107 |
respective documentation. For the CPSCalendar and CPSWebMail there |
|---|
| 108 |
are now the new replacement products CPSSharedCalendar and |
|---|
| 109 |
CPSMailAccess, which you probably would want to use instead. See |
|---|
| 110 |
their respective documentation on how to install and migrate from |
|---|
| 111 |
old versions. |
|---|
| 112 |
|
|---|
| 113 |
5. Multiple upgrades |
|---|
| 114 |
|
|---|
| 115 |
In some cases installing profiles may enable upgrades that were not |
|---|
| 116 |
previously enabled. Go to the "Upgrades" tab and run any upgrades |
|---|
| 117 |
that now are enabled. |
|---|
| 118 |
|
|---|
| 119 |
6. Last problems, the customizations |
|---|
| 120 |
|
|---|
| 121 |
If you still encounter problems after all those steps, the problems might |
|---|
| 122 |
come from customized versions of the ZPT (.py) or Python scripts (.py) |
|---|
| 123 |
present in your custom product(s). For example your product(s) might |
|---|
| 124 |
have customized `CPSSchemas/skins/cps_schemas/widget_attachedfile_render.pt` |
|---|
| 125 |
or any such file. The solution is to remove those customizations until you |
|---|
| 126 |
find the one(s) being the cause. Often those customizations can be removed |
|---|
| 127 |
since CPS has evolved and improved and you might prefer the current |
|---|
| 128 |
implementation in CPS. If it's not the case those customizations have to be |
|---|
| 129 |
upgraded to the current state of CPS. |
|---|
| 130 |
|
|---|
| 131 |
7. Backing up the configuration with a snapshot |
|---|
| 132 |
|
|---|
| 133 |
Lastly, and this is a good idea to do after any configuration |
|---|
| 134 |
change, you should go to portal_setup and create a new snapshot. |
|---|
| 135 |
This way you can back out of any configuration changes. For example, |
|---|
| 136 |
if you make a snapshot before you install a product, you can |
|---|
| 137 |
uninstall the product by reinstalling the snapshot. |
|---|
| 138 |
|
|---|
| 139 |
|
|---|
| 140 |
|
|---|
| 141 |
.. Local Variables: |
|---|
| 142 |
.. mode: rst |
|---|
| 143 |
.. End: |
|---|
| 144 |
.. vim: set filetype=rst: |
|---|