Friday 12th November 2010
Local Packages
Updated perl-MIME-XBase64 to 3.10:
Provide functions to calculate the length of encoded and decoded base64 strings (CPAN RT#62404)
Updated perl-Pod-Simple to 3.15 and bumped its Epoch to 1 as per the Fedora package:
Removed "perlpod.pod" and "perlpodspec.pod", which now just live in the Perl core
Fixed stylesheet names output by HTMLBatch to match the names of the actual stylesheet files (broken in 3.09 - CPAN RT#56725)
- Added missing closing slash to the CSS links in the XHTML output
Added parentheses around bar "qw(...)" in t/xhtml05.t
Improved the Pod::Simple::HTML docs
Pod::Simple::XHTML now properly encodes entities in URLs in the anchor tag (CPAN RT#60249)
Pod::Simple::HTML and XHTML now strip whitespace from the end of section names that appear as anchor names for headers (in HTML) and IDs (in XHTML); such whitespace appeared when "X<>" entities were stripped out but not the space between them (CPAN RT#56572)
Make test "t/search50.t" always pass on case-insensitive file systems rather than just skip VMS
Python Upgrade Broke Moin
Today I updated my web server box from Fedora 13 to Fedora 14, which included an upgrade of python from version 2.6 to 2.7. When I tried to access the wiki I got an Internal Server Error (500), and this traceback in /var/log/httpd/error_log:
[Fri Nov 12 10:22:09 2010] [error] 2010-11-12 10:22:09,123 MoinMoin.log INFO using logging configuration read from "/usr/share/moin/config/logging/stderr" [Fri Nov 12 10:22:10 2010] [error] 2010-11-12 10:22:10,906 MoinMoin.config.multiconfig INFO using wiki config: /srv/testwiki/cgi-bin/wikiconfig.py [Fri Nov 12 10:22:13 2010] [error] 2010-11-12 10:22:13,402 MoinMoin.wsgiapp ERROR An exception has occurred [http://zion.city-fan.org/testwiki/]. [Fri Nov 12 10:22:13 2010] [error] Traceback (most recent call last): [Fri Nov 12 10:22:13 2010] [error] File "/usr/lib/python2.7/site-packages/MoinMoin/wsgiapp.py", line 282, in __call__ [Fri Nov 12 10:22:13 2010] [error] response = run(context) [Fri Nov 12 10:22:13 2010] [error] File "/usr/lib/python2.7/site-packages/MoinMoin/wsgiapp.py", line 88, in run [Fri Nov 12 10:22:13 2010] [error] response = dispatch(request, context, action_name) [Fri Nov 12 10:22:13 2010] [error] File "/usr/lib/python2.7/site-packages/MoinMoin/wsgiapp.py", line 136, in dispatch [Fri Nov 12 10:22:13 2010] [error] response = handle_action(context, pagename, action_name) [Fri Nov 12 10:22:13 2010] [error] File "/usr/lib/python2.7/site-packages/MoinMoin/wsgiapp.py", line 195, in handle_action [Fri Nov 12 10:22:13 2010] [error] handler(context.page.page_name, context) [Fri Nov 12 10:22:13 2010] [error] File "/usr/lib/python2.7/site-packages/MoinMoin/action/__init__.py", line 261, in do_show [Fri Nov 12 10:22:13 2010] [error] content_only=content_only, [Fri Nov 12 10:22:13 2010] [error] File "/usr/lib/python2.7/site-packages/MoinMoin/Page.py", line 1198, in send_page [Fri Nov 12 10:22:13 2010] [error] start_line=pi['lines']) [Fri Nov 12 10:22:13 2010] [error] File "/usr/lib/python2.7/site-packages/MoinMoin/Page.py", line 1292, in send_page_content [Fri Nov 12 10:22:13 2010] [error] self.execute(request, parser, code) [Fri Nov 12 10:22:13 2010] [error] File "/usr/lib/python2.7/site-packages/MoinMoin/Page.py", line 1323, in execute [Fri Nov 12 10:22:13 2010] [error] exec code [Fri Nov 12 10:22:13 2010] [error] File "MyStartingPage", line 2, in <module> [Fri Nov 12 10:22:13 2010] [error] TypeError: 'dict' object is not callable [Fri Nov 12 10:22:13 2010] [error] [client 2001:470:9279::1] mod_wsgi (pid=4099): Exception occurred processing WSGI script '/srv/testwiki/cgi-bin/moin.wsgi'.
The usual googling around suggested that clearing all of the wiki page caches should fix this, and indeed it did:
# runuser -s /bin/sh -c "moin --config-dir=/srv/mywiki/cgi-bin --wiki-url=http://example.com/mywiki/ maint cleancache" apache