This is a snapshot of Indico's old Trac site. Any information contained herein is most probably outdated. Access our new GitHub site here.

Migrating from 0.94

We are supposing that you still have the version 0.94 of Indico.

You must stop the Apache server while running the migration because user interaction with Indico could cause inconsistencies.

Please, follow the steps precisely in the following order:

  1. Still with 0.94 (normally you should be running Indico with python 2.4 and ZODB3 3.4.2):
    • run the script tools/
  2. Download and install 0.96.2:
    • Download from
    • Run: python2.4 install
    • Install pytz:
    • Install simplejson:
      • download the package:
      • run: python2.4 install
    • Run the script: tools/, but before read carefully here below:
      • You will be asked to provide the category timezones file. You, as Indico admin, have to create this file in order to choose which timezone will be set to each of your categories. The file must have 2 columns (separated by 1 tab), the first one will contain the ID for each Indico category and the second one is the TZ for the corresponding category. Please, see an example here.
      • A complete list of timezone codes is here
      • On the other hand, if you do not want to create the categories timezones file, you can provide an empty file as parameter. The script will add the categories to your server timezone (default timezone). And afterwards, you will be able to change the TZ for each category by hand.
  3. Install python 2.6
  4. Install setuptools:
  5. Install: apt-get install python-dev
  6. Install ZODB3-3.8.1: sudo easy_install-2.6 ZODB3==3.8
  7. Install 0.97.1:
    • sudo easy_install-2.6
      • if you get any error ('NoneType?' object has no attribute 'clone'), try:
        • Install pip: easy_install-2.6 pip
        • pip install jstools
        • Download and untar:
        • edit and, from _getInstallRequires() method, remove 'zope.index' and comment ZODB3 'appends'. The method should look like this:
           def _getInstallRequires():
              '''Returns external packages required by Indico
              These are the ones needed for runtime.'''
              #base =  ['pytz', 'zope.index', 'zope.interface', 'simplejson', 'suds', 'cds-indico-extras>=0.2']
              base =  ['pytz', 'zope.interface', 'simplejson', 'suds', 'cds-indico-extras>=0.2']
              if sys.version_info[1] < 5: #for Python older than 2.5
                  base.append('hashlib') # hashlib isn't a part of Python older than 2.5
              #    base.append('ZODB3>=3.8,<3.9.0a')
              #else:                       #for Python 2.5+
              #    base.append('ZODB3>=3.8')
              return base
        • run: python install
    • install: sudo apt-get install gettext
    • run: sudo indico_initial_setup (use default values when asked)
      • Reply /opt/indico to the 1st question
      • Reply 'c' to the question about indico.conf
      • If you did not have the DB in /opt/indico/db, reply 'y' to the question about the DB. Otherwise reply 'n'.
      • If you said 'y' in the previous point, you will be asked where to install the DB. Say: /opt/indico/db
      • Hit any key to finish the script.
    • Stop ZEO daemon
    • Move your current DB file to /opt/indico/db/Data.fs
    • Run: sudo chown www-data:www-data /opt/indico/db/*
    • Start the DB: sudo zdaemon -C /opt/indico/etc/zdctl.conf start
    • In 0.97 we have introduced a new configuration file, moving away from XML config to python-like config file. Therefore:
      • Find the old config file for 0.96.2 (.../python2.4/site-packages/MaKaC/common/config.xml)
      • Fill /opt/indico/etc/indico.conf with the old values from config.xml
    • Run the migration scripts:
      • Run (if it fails claiming 'KeyError?: upcoming_events', skip this step):
        sudo python2.6 -c "from MaKaC.common.db import DBMgr; \
        DBMgr.getInstance().startRequest(); from MaKaC.modules.base import ModulesHolder; \
        del ModulesHolder()._getIdx()['upcoming_events']; DBMgr.getInstance().endRequest()"
      • Run: sudo python2.6 /opt/indico/bin/maintenance/indexes/
      • Run: sudo python2.6 /opt/indico/bin/maintenance/indexes/
  8. Install 1.0:
    • follow this installation steps
    • and do not forget at the end to do this migration
    • [DO only if you get the errors] We have experienced some problems accessing category because of an index that we have recreated from command line ($ sudo indico_shell):
      from indico.core.index import Catalog
  9. As well, you may need to configure indico.conf to point to the right folder where all the 'uploaded files' are. The variable in indico.conf is ArchiveDir?.

Last modified 2 years ago Last modified on 07/16/13 18:36:26