On Wed, 2010-02-24 at 16:00 +0100, Thomas Waldmann wrote:
> I tried to reproduce this with:
>
> moin 1.9.1 release and 1.9.current
> werkzeug 0.6 release and current
>
> I didn't get a traceback.
>
> So, please give much more details about how to reproduce this, e.g. what
> you did when the crash happen (URL? URL got removed above.)
>
> It would be helpful if you could reproduce it with the "standalone"
> wikiserver.py, so we don't need to setup apache just to find out whether
> it is related to that.
I could reproduce the error with:
- python-werkzeug 0.6-1 (the problem doesn't occur with 0.5.1)
- python-flup 1.0.2-1
My apache config:
FastCgiServer /path/to/moin.fcgi
ScriptAlias /wiki /path/to/moin.fcgi
My mywiki.py:
from farmconfig import FarmConfig
class Config(FarmConfig):
sitename = u'MyWiki'
interwikiname = u'MyWiki'
page_front_page = u"FrontPage"
data_dir = '/var/lib/mywiki/data/'
data_underlay_dir = '/var/lib/mywiki/underlay/'
allow_xslt = True
cookie_lifetime = (1,1)
> I see it is using _fallback_cgi - do you have flup installed?
For the record, using fcgi without flup causes the error below. (using either
werkzeug 0.5.1 or 0.6).
==============
2010-02-24 22:59:22,450 WARNING __main__:77 No flup-package installed, only
basic CGI support is available.
2010-02-24 22:59:22,451 ERROR MoinMoin.wsgiapp:292 An exception has occurred.
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.5/MoinMoin/wsgiapp.py", line 279, in __call__
request = self.Request(environ)
File "/usr/lib/pymodules/python2.5/MoinMoin/web/request.py", line 45, in
__init__
self.abs_href = Href(self.url_root, self.charset)
File "/usr/lib/pymodules/python2.5/werkzeug/utils.py", line 681, in __get__
value = self.func(obj)
File "/usr/lib/pymodules/python2.5/werkzeug/wrappers.py", line 355, in
url_root
return get_current_url(self.environ, True)
File "/usr/lib/pymodules/python2.5/werkzeug/utils.py", line 1241, in
get_current_url
tmp = [environ['wsgi.url_scheme'], '://', get_host(environ)]
File "/usr/lib/pymodules/python2.5/werkzeug/utils.py", line 1214, in get_host
result = environ['SERVER_NAME']
KeyError: 'SERVER_NAME'
Traceback (most recent call last):
File "/usr/share/moin/server/moin-.fcgi", line 80, in <module>
WSGIServer(application).run()
File "/usr/lib/pymodules/python2.5/MoinMoin/web/_fallback_cgi.py", line 69,
in run
result = self.application(environ, start_response)
File "/usr/lib/pymodules/python2.5/werkzeug/utils.py", line 248, in __call__
return self.app(environ, start_response)
File "/usr/lib/pymodules/python2.5/MoinMoin/wsgiapp.py", line 279, in __call__
request = self.Request(environ)
File "/usr/lib/pymodules/python2.5/MoinMoin/web/request.py", line 45, in
__init__
self.abs_href = Href(self.url_root, self.charset)
File "/usr/lib/pymodules/python2.5/werkzeug/utils.py", line 681, in __get__
value = self.func(obj)
File "/usr/lib/pymodules/python2.5/werkzeug/wrappers.py", line 355, in
url_root
return get_current_url(self.environ, True)
File "/usr/lib/pymodules/python2.5/werkzeug/utils.py", line 1241, in
get_current_url
tmp = [environ['wsgi.url_scheme'], '://', get_host(environ)]
File "/usr/lib/pymodules/python2.5/werkzeug/utils.py", line 1214, in get_host
result = environ['SERVER_NAME']
KeyError: 'SERVER_NAME'
===============
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]