Description

I just cannot migrate date from 1.5.8 to 1.6.1 I am a UNIX type of guy and also know Python, but still, i cannot migrate my data ...

My StartPage does not show the right content for such things:

["Fotografie/Links"]

["RogueLike/Links"]

["Counter-Strike/Links"]

["Afrika/Links"]

["Mixed/Links"]

["Meinungen"]

["IMatch"]

I assume, the page was not converted at all.

But i have no idea how to check or enforce this.

Steps to reproduce

I correctly installed a new moin161 - and it runs! For this, i removed all moin-directories and files after backing them up. I even add some parser/plugin - which also works under 161! Then, i copy my old "pages" and "user" directory as well as the "meta" file over the new and (nearly) empty location. All this happens on exactly the same places where my old wiki 1.5.8 was installed - just to reduce problems with the pathes. I use "moin ... migration data" successfully, but still, pages do not get converted.

Example

Here is my migration process:

moin --config-dir=/home/htdocs/web0/html/moin --wiki-url=www.server.de/wiki migration data
cat /home/htdocs/web0/html/moin/data/rename1.txt
mv /home/htdocs/web0/html/moin/data/rename1.txt /home/htdocs/web0/html/moin/data/rename2.txt
moin --config-dir=/home/htdocs/web0/html/moin --wiki-url=www.server.de/wiki migration data

Everything seems fine, but my StartPage just does not show any Links - looks like the raw-Version!

Here the migration with more detail:

wwwrun@austria073:/home/htdocs/web0/html/moin> moin --config-dir=/home/htdocs/web0/html/moin --wiki-url=http://www.server.de/wiki migration data
Calling migration script for /home/htdocs/web0/html/moin/data, base revision 1050800
Returned. New rev is 1059999.
Calling migration script for /home/htdocs/web0/html/moin/data, base revision 1059999
You must first edit /home/htdocs/web0/html/moin/data/rename1.txt.
For editing it, please use an editor that is able to edit UTF-8 encoded files.
Carefully edit - the fields are separated by a | char, do not change this!
Entries in this file look like:
PAGE OLDPAGENAME NEWPAGENAME
FILE OLDPAGENAME OLDFILENAME NEWFILENAME
You may ONLY edit the rightmost field (the new name - in case you want to rename the page or file).

After you have finished editing, rename the file to /home/htdocs/web0/html/moin/data/rename2.txt and re-issue the moin migrate command.
Final mig script reached, migration is complete.
wwwrun@austria073:/home/htdocs/web0/html/moin> cat /home/htdocs/web0/html/moin/data/rename1.txt
PAGE|*band/Biggest_*band_monsters|*band/Biggest_*band_monsters
PAGE|Collected_Links|Collected_Links
PAGE|Fotografie/Digital_Workflow|Fotografie/Digital_Workflow
PAGE|Fotografie/DxO_Problems|Fotografie/DxO_Problems
PAGE|HTML_function|HTML_function
PAGE|Linux/HP_Raid_cciss|Linux/HP_Raid_cciss
PAGE|New_Page|New_Page
wwwrun@austria073:/home/htdocs/web0/html/moin> mv /home/htdocs/web0/html/moin/data/rename1.txt /home/htdocs/web0/html/moin/data/rename2.txt
wwwrun@austria073:/home/htdocs/web0/html/moin> moin --config-dir=/home/htdocs/web0/html/moin --wiki-url=http://www.server.de/wiki migration data
Calling migration script for /home/htdocs/web0/html/moin/data, base revision 1059999
/home/htdocs/web0/html/moin/data.pre160/plugin/ -> /home/htdocs/web0/html/moin/data/plugin/
/home/htdocs/web0/html/moin/data.pre160/intermap.txt -> /home/htdocs/web0/html/moin/data/intermap.txt
/home/htdocs/web0/html/moin/data.pre160/pages/TODO(2f)Wiki/attachments/package.zip -> /home/htdocs/web0/html/moin/data/pages/TODO(2f)Wiki/attachments/package.zip
Returned. New rev is 1060000.
Calling migration script for /home/htdocs/web0/html/moin/data, base revision 1060000
Returned. New rev is 1060100.
Calling migration script for /home/htdocs/web0/html/moin/data, base revision 1060100
Final mig script reached, migration is complete.

http://www.server.de/wiki

Component selection

Details

MoinMoin Version

1.5.8 migrated to 1.6.1

OS and Version

SuSE Linux 9.3

Python Version

2.5

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

It seems, i can trace this back to my usage of the parser plugin "wikisnl" - it seems, pages are not converted if such a format-line is included.

What is that wikisnl?


"wikisnl" is just "wiki" - it renders the pages differently, allowing new lines without a BR or
. Otherwise, it is just the same and can be converted completely regulary.

If would be great to include (and even to exclude) certain formats - at best via commandline argument "moin" at the "migration data" step. This way, one you tell moin to migrate this or that formats as well: ".. migration data --format=wikisnl"

(!) The converter is only made for "wiki" format, other (similar) formats are of unknown conversion quality. If the format is very similar, you could try hacking the converter source and report back if it worked. If you have used wikisnl as default parser (== configured it in your wiki config), it is even easier: just temporarily switch it to "wiki" in your config and try the migration. Maybe you are lucky and it works.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/MigrationData158To161 (last edited 2011-04-10 22:42:55 by dslb-084-063-088-058)