Modify

Opened 8 years ago

Closed 6 years ago

Last modified 6 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 coderanger)

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 8 years ago by anonymous

  • Severity changed from normal to blocker

comment:2 Changed 8 years ago by coderanger

  • 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 8 years ago by anonymous

Tried upgrading, didn't work.

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

comment:4 Changed 8 years ago by anonymous

  • Trac Release changed from 0.9 to 0.10

comment:5 Changed 8 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 8 years ago by anonymous

Is

'/var/www/.python-eggs'

chmodded appropriately?

comment:7 follow-up: Changed 8 years ago by coderanger

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

comment:8 in reply to: ↑ 7 Changed 8 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 follow-up: Changed 7 years ago by sontek

Does this still happen to you?

comment:10 Changed 6 years ago by anonymous

  • Resolution set to worksforme
  • Status changed from new to closed

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 6 years ago by anonymous

Replying to sontek:

Does this still happen to you?

And me too :(

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.