Data migration from 1.8.9 to 1.9.4 is failing

After installing the new MoinMoin version the data migration is failing with an error. It looks like the migration script is missing or not found. The script 1080900.py is included in the public release of 1.8.9 but not in 1.9.4.

Steps to reproduce

  1. Use an old version e.g. 1.8.9
  2. Install 1.9.4 like generally described
  3. Change into wiki directory
  4. Start data migration using
    # moin --config-dir=$(pwd) migration data

Example

# moin --config-dir=$(pwd) migration data
Error: There is no script for 1080900.

Component selection

Details

MoinMoin Version

old: 1.8.9, new: 1.9.4

OS and Version

RHEL5

Python Version

2.7

Workaround

Create a symlink:

# cd /home/moin/moin-1.9.4/lib/python-2.7/site-packages/MoinMoin/script/migration
# ln -s 1089999.py 1080900.py

# cd /home/moin/MyWiki

# moin --config-dir=$(pwd) migration data
Calling migration script for /home/moin/MyWiki/data, base revision 1080900Returned. New rev is 1090000.
Calling migration script for /home/moin/MyWiki/data, base revision 1090000Returned. New rev is 1090100.
Calling migration script for /home/moin/MyWiki/data, base revision 1090100Returned. New rev is 1090200.
Calling migration script for /home/moin/MyWiki/data, base revision 1090200Returned. New rev is 1090300.
Calling migration script for /home/moin/MyWiki/data, base revision 1090300Returned. New rev is 1090400.
Calling migration script for /home/moin/MyWiki/data, base revision 1090400Final mig script reached, migration is complete.

Discussion

Use this patch: http://hg.moinmo.in/moin/1.9/rev/0265eec31d99

Or:

# ln -s 1080800.py 1080900.py

The "missing" file was never there in moin 1.9.x (because 1.8.9 came after 1.9 was begun). But of course you need it, if you want to upgrade from 1.8.9.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/1.9MigrationScriptMissing (last edited 2012-04-27 20:06:41 by ThomasWaldmann)