Hello, I need help on this error or at least to be oriented in reporting it as a bug. I installed MoinMoin fine and got it running without any problems, apache2/mod-python.
I was working on a page where I described the steps in my installation process, and added some content from a file in my apache's sites, this content: <VirtualHost *:80> ServerAdmin postmas...@example.com DocumentRoot /srv/moin/red/ ServerName red.eie.ucr.ac.cr Alias /moin_static182/ "/usr/local/share/moin/htdocs/" # Rewrite urls RewriteEngine On RewriteLogLevel 0 # map /wiki static files to Moin htdocs RewriteRule ^/moin_static182/(.*)$ /usr/local/share/moin/htdocs/$1 [last] RewriteRule ^/robots.txt$ /usr/local/share/moin/htdocs/robots.txt [last] RewriteRule ^/favicon.ico$ /usr/local/share/moin/htdocs/favicon.ico [last] # map everything else to server script RewriteRule ^(.*)$ /srv/moin/red/moinmodpy.py$1 <Directory "/srv/moin/red"> # Modpy stuff AddHandler python-program .py # Add the path to the wiki directory, where # moinmodpy.py and wikiconfig.py are located. PythonPath "['/srv/moin/red', ] + sys.path" PythonHandler MoinMoin.request.request_modpython::Request.run </Directory> </VirtualHost> After I did, I updated the page and then the wiki just blocked and received the error. Thanks!--> -->
CacheError
'utf8' codec can't decode byte 0x80 in position 0: unexpected code byte
If you want to report a bug, please save this page and attach it to your bug report.
Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/usr/local/lib/python2.5/site-packages/MoinMoin/request/request_modpython.py in __init__ (self=<MoinMoin.request.request_modpython.Request object at 0xb9c2ff8c>, req=<mp_request object at 0xa9a92984>, properties={})
- 37 env = req.subprocess_env
- 38 self._setup_vars_from_std_env(env)
- 39 RequestBase.__init__(self, properties)
- 40
- 41 except Exception, err:
- global RequestBase = <class 'MoinMoin.request.RequestBase'>
- RequestBase.__init__ = <unbound method RequestBase.__init__>
- self = <MoinMoin.request.request_modpython.Request object at 0xb9c2ff8c>
- properties = {}
/usr/local/lib/python2.5/site-packages/MoinMoin/request/__init__.py in __init__ (self=<MoinMoin.request.request_modpython.Request object at 0xb9c2ff8c>, properties={}, given_config=None)
- 235 if not self.forbidden and self.isForbidden():
- 236 self.makeForbidden403()
- 237 if not self.forbidden and self.surge_protect():
- 238 self.makeUnavailable503()
- 239
- self = <MoinMoin.request.request_modpython.Request object at 0xb9c2ff8c>
- self.forbidden = False
- self.surge_protect = <bound method Request.surge_protect of <MoinMoin....request_modpython.Request object at 0xb9c2ff8c>>
/usr/local/lib/python2.5/site-packages/MoinMoin/request/__init__.py in surge_protect (self=<MoinMoin.request.request_modpython.Request object at 0xb9c2ff8c>, kick_him=False)
- 281 cache = caching.CacheEntry(self, 'surgeprotect', 'surge-log', scope='wiki', use_encode=True)
- 282 if cache.exists():
- 283 data = ""
- 284 data = ""
- 285 for line in data:
- data undefined
- cache = <MoinMoin.caching.CacheEntry instance at 0xb9c40aac>
- cache.content = <bound method CacheEntry.content of <MoinMoin.caching.CacheEntry instance at 0xb9c40aac>>
/usr/local/lib/python2.5/site-packages/MoinMoin/caching.py in content (self=<MoinMoin.caching.CacheEntry instance at 0xb9c40aac>)
- 257 return data
- 258 except (pickle.UnpicklingError, IOError, EOFError, ValueError), err:
- 259 raise CacheError(str(err))
- 260
- 261 def remove(self):
- global CacheError = <class 'MoinMoin.caching.CacheError'>
- builtin str = <type 'str'>
- err = UnicodeDecodeError('utf8', '\x80\x02}q\x01(U\x07...0\x00\x00\x00\x00', 0, 1, 'unexpected code byte')
CacheError
'utf8' codec can't decode byte 0x80 in position 0: unexpected code byte
- args = ("'utf8' codec can't decode byte 0x80 in position 0: unexpected code byte",)
- message = "'utf8' codec can't decode byte 0x80 in position 0: unexpected code byte"
System Details
- Date: Thu, 26 Feb 2009 14:28:53 +0000
- Platform: Linux pacuarito 2.6.27-11-server #1 SMP Thu Jan 29 20:19:41 UTC 2009 i686
- Python: Python 2.5.2 (/usr/bin/python)
- MoinMoin: Release 1.8.2 (release)
------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H
_______________________________________________ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user