[mod_python] Help with multiple repeat error from apache server

Graham Dumpleton graham.dumpleton at gmail.com
Thu Nov 15 16:13:55 EST 2007


On 16/11/2007, wayne collier <Wayne.Collier at noaa.gov> wrote:
>  Can some one help me with this "multiple repeat error". I seem to get on
> every page load. Before I got this, I was fiddling around with
> authentication with apache. How do you troubleshoot this?
>
> Configuration:
> Linux Red Hat 3.4.6-3
> Apache 2.0.52
> mod_python 3.2.8
> Python 2.4.3
>
> Output:
> Mod_python error: "PythonHandler vampire::publisher"
>
> Traceback (most recent call last):
>
>   File
> "/usr/local/lib/python2.4/site-packages/mod_python/apache.py",
> line 299, in HandlerDispatch
>     result = object(req)
>
>   File
> "/usr/local/lib/python2.4/site-packages/vampire/lookup.py",
> line 969, in _publisher
>     suff_matcher = re.compile(exp)
>
>   File "/usr/local/lib/python2.4/sre.py", line 180, in
> compile
>     return _compile(pattern, flags)
>
>   File "/usr/local/lib/python2.4/sre.py", line 227, in
> _compile
>     raise error, v # invalid expression
>
> error: multiple repeat
>
> log file:
>
> [Thu Nov 15 12:00:37 2007] [error] [client 10.60.7.170] PythonHandler
> vampire::publisher: Traceback (most recent call last):, referer:
> http://mingus.../dev/index.html
> [Thu Nov 15 12:00:37 2007] [error] [client 10.60.7.170] PythonHandler
> vampire::publisher:   File
> "/usr/local/lib/python2.4/site-packages/mod_python/apache.py",
> line 299, in HandlerDispatch\n    result = object(req), referer: http://
> mingus.../dev/index.html
> [Thu Nov 15 12:00:37 2007] [error] [client 10.60.7.170] PythonHandler
> vampire::publisher:   File
> "/usr/local/lib/python2.4/site-packages/vampire/lookup.py",
> line 969, in _publisher\n    suff_matcher = re.compile(exp), referer:
> http://mingus..../dev/index.html
> [Thu Nov 15 12:00:37 2007] [error] [client 10.60.7.170] PythonHandler
> vampire::publisher:   File
> "/usr/local/lib/python2.4/sre.py", line 180, in compile\n
>  return _compile(pattern, flags), referer:
> http://mingus.ncd-tcn.noaa.gov/dev/index.html
> [Thu Nov 15 12:00:37 2007] [error] [client 10.60.7.170] PythonHandler
> vampire::publisher:   File
> "/usr/local/lib/python2.4/sre.py", line 227, in _compile\n
>   raise error, v # invalid expression, referer:
> http://mingus...../dev/index.html
> [Thu Nov 15 12:00:37 2007] [error] [client 10.60.7.170] PythonHandler
> vampire::publisher: error: multiple repeat, referer:
> http://mingus..../dev/index.html
>
>
> Apache directive :
>
> <Directory /var/www/html_dev/python>
>     AddHandler mod_python .py .psp

What happens if you have:

  AddHandler mod_python .py

It doesn't make sense to push .psp files through vampire::publisher.

Graham

>         PythonHandler vampire::publisher
>         PythonPath "['/var/www/html/python'] + sys.path"
>     PythonDebug On
>         Options  -Indexes -MultiViews
>
> </Directory>


More information about the Mod_python mailing list