[Moin-user] Internal server error
Thomas Waldmann
tw at waldmann-edv.de
Sat Jun 25 14:52:23 EDT 2011
Hi Norman,
> I've had two moin wiki's running for a while now. They share some common data
> in /usr/local/moin-1.9.2 and reside in /home/www/wiki.xproc.org/ and
> /home/www/wiki.docbook.org/ respectively. No prizes for guessing which
> wikis they are :-)
>
> This morning the server crashed hard and fatally with an unrecoverable
> disk error on the root partition. Yay me.
Uuh, bad luck.
> I had a spare drive so I rebuilt the server on that and copied over
> the relevant data. (None appeared to be part of the damage.)
>
> When I got the apache config back up and running I got dict object not
> callable errors.
That's because of unpickling pickled data on a more recent python than
the pickle was made with.
> A little poking about on Google lead me to the
> 'cleancache' command.
Yup.
> Now the docbook wiki works fine, but the xproc wiki fails with a
> different error:
>
> Thu Jun 23 17:18:33 2011] [error] 2011-06-23 17:18:33,624 ERROR MoinMoin.wsgiapp:293 An exception has occurred [http://microwave:8192/].
> [Thu Jun 23 17:18:33 2011] [error] Traceback (most recent call last):
> [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/wsgiapp.py", line 282, in __call__
> [Thu Jun 23 17:18:33 2011] [error] response = run(context)
> [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/wsgiapp.py", line 88, in run
> [Thu Jun 23 17:18:33 2011] [error] response = dispatch(request, context, action_name)
> [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/wsgiapp.py", line 136, in dispatch
> [Thu Jun 23 17:18:33 2011] [error] response = handle_action(context, pagename, action_name)
> [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/wsgiapp.py", line 195, in handle_action
> [Thu Jun 23 17:18:33 2011] [error] handler(context.page.page_name, context)
> [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/action/__init__.py", line 261, in do_show
> [Thu Jun 23 17:18:33 2011] [error] content_only=content_only,
> [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/Page.py", line 1171, in send_page
> [Thu Jun 23 17:18:33 2011] [error] html_head=html_head,
> [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/theme/__init__.py", line 1750, in send_title
> [Thu Jun 23 17:18:33 2011] [error] bodyattr.append(' %s' % self.ui_lang_attr())
> [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/theme/__init__.py", line 1553, in ui_lang_attr
> [Thu Jun 23 17:18:33 2011] [error] return ' lang="%s" dir="%s"' % (lang, i18n.getDirection(lang))
> [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/i18n/__init__.py", line 257, in getDirection
> [Thu Jun 23 17:18:33 2011] [error] return languages[lang]['x-direction']
> [Thu Jun 23 17:18:33 2011] [error] TypeError: 'NoneType' object is not subscriptable
Just kill the i18n cache and try again.
data/cache/.../i18n/*
Cheers,
Thomas
More information about the Moin-user
mailing list