[Moin-user] update migration form 1.5.8 to 1.7.2 fails, please help

R.Bauer rb.proj at gmail.com
Wed Sep 10 02:33:52 EDT 2008


Michael Matthews schrieb:
> My wikiconfig.py uses a cookie function based on
> contrib/auth_externalcookie but I had to take out the auth part to get
> the migration script to run. However it still fails. Please help.
> 
> webhsps> moin --config-dir=/home/www/wiki --wiki-url=www.nsf.att.com/
> migration data
> 2008-09-09 21:45:05,521 WARNING MoinMoin.log:120 using logging
> configuration read from built-in fallback in MoinMoin.log module!
> 2008-09-09 21:45:06,573 INFO MoinMoin.config.multiconfig:124 using wiki
> config: /home/www/wiki/wikiconfig.py
> Traceback (most recent call last):
>   File "/home/www/moin/bin/moin", line 6, in ?
>     run()
>   File
> "/home/www/moin/lib/python2.4/site-packages/MoinMoin/script/moin.py",
> line 15, in run
>     MoinScript().run(showtime=0)
>   File
> "/home/www/moin/lib/python2.4/site-packages/MoinMoin/script/__init__.py",
> line 138, in run
>     self.mainloop()
>   File
> "/home/www/moin/lib/python2.4/site-packages/MoinMoin/script/__init__.py",
> line 255, in mainloop
>     plugin_class(args[2:], self.options).run() # all starts again there
>   File
> "/home/www/moin/lib/python2.4/site-packages/MoinMoin/script/__init__.py",
> line 138, in run
>     self.mainloop()
>   File
> "/home/www/moin/lib/python2.4/site-packages/MoinMoin/script/migration/data.py",
> line 44, in mainloop
>     curr_rev = meta['data_format_revision']
>   File
> "/home/www/moin/lib/python2.4/site-packages/MoinMoin/wikiutil.py", line
> 475, in __getitem__
>     return dict.__getitem__(self, key)
> KeyError: 'data_format_revision'


Hi Michael.

this sounds like a missing meta file in data
the content of the meta file for the 1.5.8 version should be
data_format_revision: 01050800


The reason can be that you missed to run an older migration scripts in
the past.


cheers
Reimar






More information about the Moin-user mailing list