cd /opt/reviewboard
./autogen.sh
cd contrib
make
Also do you have a Directory entry somewhere for /opt/reviewboard/
htdocs or one of it's parents? If not, you may need one and throw
Allow from all in it.
-Mat
On Jun 11, 2008, at 12:26 PM, James wrote:
> I am looking forward to trying out reviewboard. It seems like
> something that could be very useful. Unfortunately, I am unable to
> access the program from Apache and am pretty much stuck on what to do
> next.
>
I added the Directory listing as you mentioned and now I am getting
somewhere.
When I access this site I get "Review Board is taking a nap" page.
What does this indicate?
Mat,
This is the error log. I have also pasted my /opt/reviewboard/settings_local.py below
[Wed Jun 11 12:34:33 2008] [notice] mod_python: Creating 8 session mutexes based on 256 max processes and 0 max threads.
[Wed Jun 11 12:34:33 2008] [notice] mod_python: using mutex_directory /tmp
[Wed Jun 11 12:34:33 2008] [notice] Apache/2.2.8 (Unix) mod_python/3.3.1 Python/2.5.2 configured -- resuming normal operations
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] mod_python (pid=29267, interpreter='ussy-vm-matrix01.sjm.com', phase='PythonHandler', handler='django.core.handlers.modpython'): Application error
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] ServerName: 'ussy-vm-matrix01.sjm.com'
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] DocumentRoot: '/opt/reviewboard/htdocs'
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] URI: '/'
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] Location: '/'
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] Directory: None
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] Filename: '/opt/reviewboard/htdocs/'
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] PathInfo: ''
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] Traceback (most recent call last):
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] File "/usr/local/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch\n default=default_handler, arg=req, silent=hlist.silent)
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] File "/usr/local/lib/python2.5/site-packages/mod_python/importer.py", line 1229, in _process_target\n result = _execute_target(config, req, object, arg)
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] File "/usr/local/lib/python2.5/site-packages/mod_python/importer.py", line 1128, in _execute_target\n result = object(arg)
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] File "/usr/local/lib/python2.5/site-packages/django/core/handlers/modpython.py", line 189, in handler\n return ModPythonHandler()(req)
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] File "/usr/local/lib/python2.5/site-packages/django/core/handlers/modpython.py", line 153, in __call__\n self.load_middleware()
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] File "/usr/local/lib/python2.5/site-packages/django/core/handlers/base.py", line 27, in load_middleware\n for middleware_path in settings.MIDDLEWARE_CLASSES:
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] File "/usr/local/lib/python2.5/site-packages/django/conf/__init__.py", line 28, in __getattr__\n self._import_settings()
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] File "/usr/local/lib/python2.5/site-packages/django/conf/__init__.py", line 59, in _import_settings\n self._target = Settings(settings_module)
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] File "/usr/local/lib/python2.5/site-packages/django/conf/__init__.py", line 85, in __init__\n mod = __import__(self.SETTINGS_MODULE, {}, {}, [''])
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] File "/usr/local/lib/python2.5/site-packages/reviewboard/settings.py", line 180, in <module>\n dependency_error('Unable to read settings_local.py.')
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] File "/usr/local/lib/python2.5/site-packages/reviewboard/settings.py", line 169, in dependency_error\n sys.exit(1)
[Wed Jun 11 12:34:47 2008] [error] [client 150.202.99.26] SystemExit: 1
# Database backend. Any supported django database engine should work.
DATABASE_ENGINE = 'sqlite3' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = 'reviewboard.sqlite' # Or path to database file if using sqlite3.
DATABASE_USER = '********' # Not used with sqlite3.
DATABASE_PASSWORD = '********' # Not used with sqlite3.
DATABASE_HOST = '' # Set to empty string for localhost.
DATABASE_PORT = '' # Set to empty string for default.
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'secretkey'
# Cache backend. Unset this to turn off caching completely. As with most
# django installations, the best option is probably to use memcached.
CACHE_BACKEND = 'locmem:///'
# Whether to send e-mail for review requests.
SEND_REVIEW_MAIL = False
# Local time zone for this installation. All choices can be found here:
# http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
TIME_ZONE = 'US/Pacific'
# Language code for this installation. All choices can be found here:
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
# http://blogs.law.harvard.edu/tech/stories/storyReader$15
LANGUAGE_CODE = 'en-us'
# This should match the ID of the Site object in the database. This is used to
# figure out URLs to stick in e-mails and related pages.
SITE_ID = 1
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True
# Enable search. Search needs PyLucene to be installed. It also requires
# that a regular job be set up to perform the indexing. To generate the
# index, run:
# manage.py index
# This command will perform an incremental index. To do a full reindex, run:
# manage.py index --full
#
# Incremental indexes should be done fairly often.
# A sample cron configuration exists in contrib/conf/search-cron.conf
#
# If you want the search index to be located somewhere other than the
# reviewboard root, set SEARCH_INDEX to the desired path. The index needs to be
# a directory writable by the user creating the index and readable by the user
# that Review Board runs as.
ENABLE_SEARCH = False
Paul,
How is this determined? Did I missing a step during build configuration?
I know minimal about the Python language. I examined /usr/local/lib/python2.5/site-packages/reviewboard/settings.py and didn’t find a clear answer. I see REVIEWBOARD_ROOT = os.path.abspath(os.path.split(__file__)[0]) but have no idea the context behind __file__
Step by step I am getting there.
@pythondir@ didn’t mean much to me, but after the examples, I realized you wanted the directory where the python site-packages where located.
Likewise for @djangodir@
After setting that up, I noticed that settings_local.py was not getting copied to @pythondir@ so I manually copied it and the reviewboard.sqlite file to /usr/local/lib/python2.5/site-packages/reviewboard
Then I got an error about django-evolution module not being found. So I downloaded and installed that.
Now I get the following error:
OperationalError: attempt to write a readonly database
I am using a sqlite database. I noticed that every time I “chmod +w /opt/reviewboard/reviewboard.sqlite” the permissions are reset when I access the webpage.
Any thoughts on this?
PS. I will send a summary of what I needed to do that the Getting Started didn’t cover once I get started.
From:
revie...@googlegroups.com [mailto:revie...@googlegroups.com] On Behalf Of Paul Beets
Sent: Wednesday, June 11, 2008
1:44 PM
To: revie...@googlegroups.com
Subject: Re: 403 Forbidden in
Apache
Leone,
After setting that up, I noticed that settings_local.py was not getting copied to @pythondir@ so I manually copied it and the reviewboard.sqlite file to /usr/local/lib/python2.5/site-packages/reviewboard
Mat,
Ultimately, I want to get this thing running. I don’t care if I use Apache, Windows, Linux, whatever. Is there a document that accurately describes the install procedure?
James
From:
revie...@googlegroups.com [mailto:revie...@googlegroups.com] On Behalf Of Mat Schaffer
Sent: Wednesday, June 11, 2008
6:15 PM
To: revie...@googlegroups.com
Subject: Re: 403 Forbidden in
Apache
On Jun 11, 2008, at 8:42 PM, Leone, James wrote: