1123: OperationalError: attempt to write a readonly database

reac*****@gmai***** (Google Code) (Is this you? Claim this profile.)
chipx86
chipx86
July 16, 2009
What version are you running?
ReviewBoard-1.0rc2

What's the URL of the page containing the problem?
Initial site URL

What steps will reproduce the problem?
1.create a site in linux
2.Trying to access the site from the browser
3.

What is the expected output? What do you see instead?
Initial Login screen is the expected output. But i' am getting "Review
Board is taking a nap" screen in the browser. 

What operating system are you using? What browser?
OS -Linux, Browser-IE 8

Please provide any additional information below.
I have created a site in review board and configured it with apache http
server and sqlite3 database. while i' am trying to acces the site, i' am
getting the above mentioned error.
Please find the attached logs for more information.
[Mon May 18 03:44:01 2009] [error] [client 10.132.4.221] mod_python (pid=20680, interpreter='reviewboard_review-site', phase='PythonHandler', handler='django.core.handlers.modpython'): Application error
[Mon May 18 03:44:01 2009] [error] [client 10.132.4.221] ServerName: 'review-board'
[Mon May 18 03:44:01 2009] [error] [client 10.132.4.221] DocumentRoot: '/usr/review-site/htdocs'
[Mon May 18 03:44:01 2009] [error] [client 10.132.4.221] URI: '/account/login/'
[Mon May 18 03:44:01 2009] [error] [client 10.132.4.221] Location: '/'
[Mon May 18 03:44:01 2009] [error] [client 10.132.4.221] Directory: None
[Mon May 18 03:44:01 2009] [error] [client 10.132.4.221] Filename: '/usr/review-site/htdocs/account'
[Mon May 18 03:44:01 2009] [error] [client 10.132.4.221] PathInfo: '/login/'
[Mon May 18 03:44:01 2009] [error] [client 10.132.4.221] Traceback (most recent call last):
[Mon May 18 03:44:01 2009] [error] [client 10.132.4.221]   File "/usr/local/lib/python2.5/site-packages/mod_pytho
chipx86
#1 chipx86
Make sure the directory containing the database is writable by the web server.
#2 reac*****@gmai***** (Google Code) (Is this you? Claim this profile.)
thanks for your quick reply. This issue was resolved after giving the ownership of
the database to the web server.
chipx86
#3 chipx86
We should doc this and update rb-site to make it clear.
  • +Confirmed
  • +Milestone-Release1.0
    +Component-Docs
    +Component-Scripts
  • +chipx86
#4 reac*****@gmai***** (Google Code) (Is this you? Claim this profile.)
i just gave the ownership of the reviewboard.db file to the user in which the web
server is running.

chown -R web-server-username /path/to/dbfile
david
#5 david
  • -Milestone-Release1.0
    +Milestone-Release1.1
chipx86
#6 chipx86
The instructions are already in the docs. Updated rb-site to also mention this after
install (r2037).
  • -Confirmed
    +Fixed