Hi!

My name is Roman, I'm a software developer in a small new company.
Actually I'm not a system administrator but I was chosen to configure
some services for project development because there is no system
administrator in our company yet. One of these services is Review
Board.

I have a Debian Linux server with Apache 2 and Python 2.5 installed.
I've configured the Review Board according to this manual
http://www.reviewboard.org/docs/manual/dev/admin/installation/linux/
and created a site according to this
http://www.reviewboard.org/docs/manual/dev/admin/sites/creating-sites/#creatingsites.
Then I've configured Apache using mod_python but when I'm trying to
enter this site with browser I get an Internal Server Error message.

You can read detailed information about my problem and configuration
below. Thanks a lot!


Site created at /srv/Reviews/Catalog/

Logs:

[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78] mod_python
(pid=32745, interpreter='<ourserver.address>', phase='PythonHandler',
handler='django.core.handlers.modpython'): Application error
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78] ServerName:
'<ourserver.address>'
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78]
DocumentRoot: '/srv/Reviews/Catalog'
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78] URI: '/'
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78] Location:
'/'
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78] Directory:
None
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78] Filename: '/
srv/Reviews/Catalog/'
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78] PathInfo: ''
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78] Traceback
(most recent call last):
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78]   File "/usr/
lib/python2.5/site-packages/mod_python/importer.py", line 1537, in
HandlerDispatch\n    default=default_handler, arg=req,
silent=hlist.silent)
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78]   File "/usr/
lib/python2.5/site-packages/mod_python/importer.py", line 1229, in
_process_target\n    result = _execute_target(config, req, object,
arg)
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78]   File "/usr/
lib/python2.5/site-packages/mod_python/importer.py", line 1128, in
_execute_target\n    result = object(arg)
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78]   File "/usr/
lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/core/
handlers/modpython.py", line 228, in handler\n    return
ModPythonHandler()(req)
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78]   File "/usr/
lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/core/
handlers/modpython.py", line 191, in __call__\n    self.load_middleware
()
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78]   File "/usr/
lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/core/
handlers/base.py", line 33, in load_middleware\n    for
middleware_path in settings.MIDDLEWARE_CLASSES:
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78]   File "/usr/
lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/utils/
functional.py", line 269, in __getattr__\n    self._setup()
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78]   File "/usr/
lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/conf/
__init__.py", line 40, in _setup\n    self._wrapped = Settings
(settings_module)
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78]   File "/usr/
lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/conf/
__init__.py", line 73, in __init__\n    mod = importlib.import_module
(self.SETTINGS_MODULE)
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78]   File "/usr/
lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/utils/
importlib.py", line 35, in import_module\n    __import__(name)
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78]   File "/usr/
lib/python2.5/site-packages/ReviewBoard-1.0.5.1-py2.5.egg/reviewboard/
settings.py", line 152, in <module>\n    dependency_error('Unable to
read settings_local.py.')
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78]   File "/usr/
lib/python2.5/site-packages/ReviewBoard-1.0.5.1-py2.5.egg/reviewboard/
settings.py", line 141, in dependency_error\n    sys.exit(1)
[Mon Nov 16 15:24:35 2009] [error] [client 80.239.242.78] SystemExit:
1

Virtual Host Configuration:

<VirtualHost *:8010>

ErrorLog /var/log/apache2/reviewboard.log
LogLevel warn

                          ServerName <ourserver.address>
                          DocumentRoot /srv/Reviews/Catalog
                          ErrorDocument 500 /errordocs/500.html

                           # Serve django pages
          <LocationMatch ^/(.*)$>
                            PythonPath "['/srv/Reviews/'] + ['/srv/
Reviews/Catalog'] + sys.path"
                            SetEnv DJANGO_SETTINGS_MODULE
reviewboard.settings
                            SetHandler mod_python
                            PythonHandler
django.core.handlers.modpython
                            PythonAutoReload Off
                            PythonDebug Off
         </LocationMatch>

                          # Serve static media without running it
through mod_python (overrides the above)
        <LocationMatch ^(/(media|css|images|scripts|errordocs))>
                            SetHandler None
         </LocationMatch>

                          # Alias static media requests to filesystem
                          Alias /media /usr/lib/python2.5/site-
packages/django/contrib/admin/media
                          Alias /css /srv/Reviews/Catalog/htdocs/css
                          Alias /images /srv/Reviews/Catalog/htdocs/
images
                          Alias /scripts /srv/Reviews/Catalog/htdocs/
scripts
                          Alias /errordocs/ /srv/Reviews/Catalog/
htdocs/errordocs
</VirtualHost>

--~--~---------~--~----~------------~-------~--~----~
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to