[Moin-user] Monitoring site gets 500 error: 'NoneType' object has no attribute 'startswith'

Martin Spacek moin at mspacek.mm.st
Mon Jan 28 21:21:07 EST 2008

I just upgraded to 1.6.0 final from 1.6.0beta1. Everything seemed to be 
fine, but my (free) monitoring service, siteuptime.com, started 
complaining that the wiki (http://swindale.ecc.ubc.ca) was down, even 
though it obviously wasn't when I viewed it in various browsers on 
various networks.

I just tried a few other monitoring services and they're all reporting 
that it's down. One of them gave it as a 500 Internal Server error.

I checked my moin.log, and it looks like every time a monitoring service 
tries to access the site, I get one of these:

2008-01-28 17:49:25,674 ERROR AttributeError: 'NoneType' object has no 
attribute 'startswith'
Traceback (most recent call last):
   File "/usr/lib/python2.5/site-packages/MoinMoin/request/__init__.py", 
line 1248, in run
     self.page = wikiutil.getFrontPage(self)
   File "/usr/lib/python2.5/site-packages/MoinMoin/wikiutil.py", line 
783, in getFrontPage
     return getLocalizedPage(request, request.cfg.page_front_page)
   File "/usr/lib/python2.5/site-packages/MoinMoin/wikiutil.py", line 
752, in getLocalizedPage
     i18n_name = request.getText(pagename, formatted=False)
   File "/usr/lib/python2.5/site-packages/MoinMoin/request/__init__.py", 
line 273, in <lambda>
     self.getText = lambda text, i18n=self.i18n, request=self, 
lang=self.lang, **kv: i18n.getText(text, request, lang, **kv)
   File "/usr/lib/python2.5/site-packages/MoinMoin/i18n/__init__.py", 
line 234, in getText
   File "/usr/lib/python2.5/site-packages/MoinMoin/i18n/__init__.py", 
line 178, in loadLanguage
     needsupdate = cache.needsUpdate(langfilename)
   File "/usr/lib/python2.5/site-packages/MoinMoin/caching.py", line 92, 
in needsUpdate
     ctime = os.path.getmtime(self._filename())
   File "/usr/lib/python2.5/site-packages/MoinMoin/caching.py", line 75, 
in _filename
     return os.path.join(self.arena_dir, self.key)
   File "posixpath.py", line 60, in join
     if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'

However, when I access it with a web browser, the site displays fine, 
and nothing shows up in the log. My site is a single language English 
site. I found a bug report that sounds similar, but doesn't apply in my 


I'm using Twisted. I've attached my wikiconfig.py, with a couple of 
sensitive fields replaced with 'blahblah'.

Any ideas?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: wikiconfig.py
Type: text/x-python
Size: 8067 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/moin-user/attachments/20080128/534edc3b/attachment.py>

More information about the Moin-user mailing list