Modify

Opened 18 years ago

Closed 16 years ago

Last modified 16 years ago

#545 closed defect (worksforme)

Error with init

Reported by: anonymous Owned by: Team5
Priority: normal Component: PeerReviewPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.10

Description (last modified by Noah Kantrowitz)

Following error occurs on tracd restart after installing plugin:

The Trac Environment needs to be upgraded. 

if the PeerReviewInit is disabled, Trac allows entry into the project and the PeerReview tab is shown. However, when attempting to browse to PeerReview, the following is generated:

Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\trac\web\main.py", line 315, in dispatch_request
    dispatcher.dispatch(req)
  File "C:\Python23\Lib\site-packages\trac\web\main.py", line 200, in dispatch
    resp = chosen_handler.process_request(req)
  File "build\bdist.win32\egg\codereview\peerReviewMain.py", line 75, in process_request
  File "build\bdist.win32\egg\codereview\dbBackend.py", line 38, in getMyCodeReviews
  File "build\bdist.win32\egg\codereview\dbBackend.py", line 174, in execCodeReviewQuery
  File "C:\Python23\Lib\site-packages\trac\db\util.py", line 48, in execute
    return self.cursor.execute(sql)
  File "C:\Python23\Lib\site-packages\sqlite\main.py", line 244, in execute
    self.rs = self.con.db.execute(SQL)
DatabaseError: no such table: CodeReviews

Attachments (0)

Change History (11)

comment:1 Changed 18 years ago by anonymous

Severity: normalblocker

comment:2 Changed 18 years ago by Noah Kantrowitz

Description: modified (diff)

Fixing formatting.

Have you tried doing as it says and upgrading your environment? I'd say its a pretty big giveaway that you should do as the software tells you.

comment:3 Changed 18 years ago by anonymous

Tried upgrading, didn't work.

Trac version is .10dev; is the plugin particular to a specific version?

comment:4 Changed 18 years ago by anonymous

Trac Release: 0.90.10

comment:5 Changed 18 years ago by david.baggaley@…

I just got the same bug but it allowed me to do the trac-admin <repo> upgrade. It now displays this error

Oops...

Trac detected an internal error:

[Errno 13] Permission denied: '/var/www/.python-eggs'
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/cgi_frontend.py", line 130, in run
    dispatch_request(req.path_info, req, env)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 83, in dispatch
    req.hdf = HDFWrapper(loadpaths=chrome.get_all_templates_dirs())
  File "/usr/lib/python2.3/site-packages/trac/web/chrome.py", line 195, in get_all_templates_dirs
    dirs += provider.get_templates_dirs()
  File "build/bdist.linux-i686/egg/codereview/peerReviewMain.py", line 141, in get_templates_dirs
  File "/usr/lib/python2.3/site-packages/setuptools-0.6a4-py2.3.egg/pkg_resources.py", line 676, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File "/usr/lib/python2.3/site-packages/setuptools-0.6a4-py2.3.egg/pkg_resources.py", line 1065, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "/usr/lib/python2.3/site-packages/setuptools-0.6a4-py2.3.egg/pkg_resources.py", line 1070, in _extract_resource
    last = self._extract_resource(
  File "/usr/lib/python2.3/site-packages/setuptools-0.6a4-py2.3.egg/pkg_resources.py", line 1082, in _extract_resource
    real_path = manager.get_cache_path(self.egg_name, self._parts(zip_path))
  File "/usr/lib/python2.3/site-packages/setuptools-0.6a4-py2.3.egg/pkg_resources.py", line 713, in get_cache_path
    ensure_directory(target_path)
  File "/usr/lib/python2.3/site-packages/setuptools-0.6a4-py2.3.egg/pkg_resources.py", line 2096, in ensure_directory
    os.makedirs(dirname)
  File "/usr/lib/python2.3/os.py", line 153, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.3/os.py", line 153, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.3/os.py", line 153, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.3/os.py", line 154, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/www/.python-eggs'

comment:6 Changed 18 years ago by anonymous

Is

'/var/www/.python-eggs'

chmodded appropriately?

comment:7 Changed 18 years ago by Noah Kantrowitz

For the second error make sure you configure your PYTHONG_EGG_CACHE variable.

comment:8 in reply to:  7 Changed 18 years ago by david.baggaley@…

Replying to coderanger:

For the second error make sure you configure your PYTHONG_EGG_CACHE variable.

Setting

SetEnv PYTHON_EGG_CACHE /tmp/trac-eggs

in my /etc/httpd/conf.d/trac.conf file fixed it

comment:9 Changed 17 years ago by sontek

Does this still happen to you?

comment:10 Changed 16 years ago by anonymous

Resolution: worksforme
Status: newclosed

I had that issue several time, but upgrading the application and setting permission/cache dir properly always resolves the problem. The instalation should be handled properly anyway but we will review that during refactoring anyway. Closing as not a problem.

comment:11 in reply to:  9 Changed 16 years ago by anonymous

Replying to sontek:

Does this still happen to you?

And me too :(

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Team5.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.