Description

Not much to say:

I used "... maint cleancache" to remove the old cachefiles and then tried to use ".. maint makecache" to create new ones. The command returned with several "too many arguments" errors as shown below.

Steps to reproduce

I think, this is just something in *my* wiki and when using the above "maint" commands.

Example

Here is, what happened - domain is faked:

server:/home/htdocs/web0/html/wiki_home # moin --config-dir=/home/htdocs/web0/html/wiki_home --wiki-url=http://www.server.de/home maint makecache
2010-06-04 11:51:37,591 WARNING MoinMoin.log:1072 using logging configuration read from built-in fallback in MoinMoin.log module!
2010-06-04 11:51:37,798 INFO MoinMoin.config.multiconfig:1072 using wiki config: /home/htdocs/web0/html/wiki_home/wikiconfig.pyc
2010-06-04 11:51:41,315 ERROR MoinMoin.macro:1072 Macro MailTo (page: 'HelpOnMacros/MailTo') raised an exception:
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/MoinMoin/macro/__init__.py", line 122, in execute
    return execute(self, args)
  File "/usr/lib/python2.4/site-packages/MoinMoin/macro/__init__.py", line 114, in <lambda>
    execute = lambda _self, _args: wikiutil.invoke_extension_function(
  File "/usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py", line 1918, in invoke_extension_function
    raise ValueError(_('Too many arguments'))
ValueError: Too many arguments
2010-06-04 11:51:43,961 ERROR MoinMoin.macro:1072 Macro Action (page: 'MissingHomePage') raised an exception:
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/MoinMoin/macro/__init__.py", line 122, in execute
    return execute(self, args)
  File "/usr/lib/python2.4/site-packages/MoinMoin/macro/__init__.py", line 106, in <lambda>
    execute = lambda _self, _args: wikiutil.invoke_extension_function(
  File "/usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py", line 1923, in invoke_extension_function
    raise ValueError(_('Cannot have arguments without name following'
ValueError: Cannot have arguments without name following named arguments
2010-06-04 11:51:45,086 ERROR MoinMoin.macro:1072 Macro GetText (page: 'HelpOnUserPreferences') raised an exception:
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/MoinMoin/macro/__init__.py", line 122, in execute
    return execute(self, args)
  File "/usr/lib/python2.4/site-packages/MoinMoin/macro/__init__.py", line 106, in <lambda>
    execute = lambda _self, _args: wikiutil.invoke_extension_function(
  File "/usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py", line 1918, in invoke_extension_function
    raise ValueError(_('Too many arguments'))
ValueError: Too many arguments

Component selection

moin ... maint makecache

Details

MoinMoin 1.9.2

Debian Lenny

Python 2.4

Workaround

As i did not know, what exactly may have broken, i returned to a backup up the data directory.

Discussion

Do you have own plugins or don't you have updated underlay?

Please look at your HelpOnUserPreferences. Does it look like this http://master19.moinmo.in/HelpOnUserPreferences?action=raw ?

server:/home/htdocs/web0/html/wiki_moin/data/pages # for i in HelpOnMacros*MailTo MissingHomePage HelpOnUserPreferences ; do ls -al ${i}/revisions/ ; done
total 16
drwxrwxr-x 4 www-data www-data 4096 Feb 25  2008 ../
-rw-rw-r-- 1 www-data www-data 3834 Jun  3 20:10 00000002
-rw-rw-r-- 1 www-data www-data 3834 Jun  3 20:10 00000001
drwxrwxr-x 2 www-data www-data 4096 Jun  3 20:10 ./
total 16
drwxrwxr-x 4 www-data www-data 4096 Feb 25  2008 ../
-rw-rw-r-- 1 www-data www-data 1105 Jun  3 20:10 00000002
-rw-rw-r-- 1 www-data www-data 1105 Jun  3 20:10 00000001
drwxrwxr-x 2 www-data www-data 4096 Jun  3 20:10 ./
total 24
drwxrwxr-x 4 www-data www-data 4096 Feb 25  2008 ../
-rw-rw-r-- 1 www-data www-data 5154 Jun  3 20:10 00000002
-rw-rw-r-- 1 www-data www-data 5154 Jun  3 20:10 00000001
drwxrwxr-x 2 www-data www-data 4096 Jun  3 20:10 ./
server:/home/htdocs/web0/html/wiki_moin/data/pages # for i in HelpOnMacros*MailTo MissingHomePage HelpOnUserPreferences ; do ls -al ${i}/cache/ ; done
total 12
drwxrwxr-x 4 www-data www-data 4096 Feb 25  2008 ../
-rw-rw---- 1 www-data     www-data        6 Jun  4 18:05 pagelinks
drwxrwxr-x 2 www-data www-data 4096 Jun  4 18:05 ./
total 12
drwxrwxr-x 4 www-data www-data 4096 Feb 25  2008 ../
-rw-rw---- 1 www-data     www-data        6 Jun  4 18:05 pagelinks
drwxrwxr-x 2 www-data www-data 4096 Jun  4 18:05 ./
total 12
drwxrwxr-x 4 www-data www-data 4096 Feb 25  2008 ../
-rw-rw---- 1 www-data     www-data      104 Jun  4 18:05 pagelinks
drwxrwxr-x 2 www-data www-data 4096 Jun  4 18:05 ./

3743465967 3834 HelpOnMacros(2f)MailTo/revisions/00000001
3743465967 3834 HelpOnMacros(2f)MailTo/revisions/00000002
2595412267 1105 MissingHomePage/revisions/00000001
2595412267 1105 MissingHomePage/revisions/00000002
803479169 5154 HelpOnUserPreferences/revisions/00000001
803479169 5154 HelpOnUserPreferences/revisions/00000002

That sounds like you have edited these pages in the past and have them now as copy in the data arena (with old syntax). Usually they live in the underlay and that is replaced with each version The pages of the new underlay have the correct syntax for the call of the macros on this pages. See on your wiki EditedSystemPages and remove these pages by e.g. delete page from the data dir. -- ReimarBauer 2010-06-05 00:28:17

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/MaintMakecacheTooManyArguments (last edited 2010-06-05 00:28:18 by ReimarBauer)