#4118 closed defect (fixed)
PeerReview fails after install
| Reported by: | Owned by: | Ryan J Ollos | |
|---|---|---|---|
| Priority: | high | Component: | PeerReviewPlugin |
| Severity: | critical | Keywords: | |
| Cc: | erne.castro@…, Peter, Stjujsckij Nickolaj | Trac Release: | 0.11 |
Description (last modified by )
After installing PeerReview plugin, both globally or local to a particular Trac environment, I can't use the plugin.
One clue: After installing, it didn't make me upgrade the environment.
The traceback is:
Python Traceback
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 406, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 237, in dispatch
resp = chosen_handler.process_request(req)
File "build/bdist.linux-x86_64/egg/codereview/peerReviewMain.py", line 75, in process_request
File "build/bdist.linux-x86_64/egg/codereview/dbBackend.py", line 38, in getMyCodeReviews
File "build/bdist.linux-x86_64/egg/codereview/dbBackend.py", line 174, in execCodeReviewQuery
File "/usr/lib/python2.5/site-packages/trac/db/util.py", line 51, in execute
return self.cursor.execute(sql)
File "/usr/lib/python2.5/site-packages/trac/db/util.py", line 51, in execute
return self.cursor.execute(sql)
ProgrammingError: relation "codereviews" does not exist
Attachments (0)
Change History (14)
comment:1 follow-up: 2 Changed 17 years ago by
comment:3 Changed 17 years ago by
| Priority: | normal → high |
|---|---|
| Severity: | major → critical |
comment:5 follow-up: 7 Changed 16 years ago by
| Cc: | Peter added |
|---|---|
| Trac Release: | 0.10 → 0.11 |
Let me guess: this bug only manifests itself on Postgres backend. PeerReview plugin uses uppercase letters in it's tables and columns names, and for this to work on PG all names have to be double-quoted. Solution is to manually change all table & field names in DB to lowercase
comment:6 Changed 16 years ago by
I have the same problem, but when I upgrade environment I get a message:
Database is up to date, no upgrade necessary.
But Trac doesn't work and says that I have to upgrade environment. What to do?
comment:7 Changed 16 years ago by
| Cc: | Stjujsckij Nickolaj added |
|---|
comment:8 Changed 15 years ago by
Another alternative is to change db_default.py prior to compiling / installing so each of the table and column names are lowercase.
comment:9 Changed 15 years ago by
| Description: | modified (diff) |
|---|
comment:10 Changed 15 years ago by
| Owner: | changed from Sebastian Marek to Ryan J Ollos |
|---|---|
| Status: | new → assigned |
comment:11 Changed 14 years ago by
| Owner: | changed from Ryan J Ollos to Marc |
|---|---|
| Status: | assigned → new |
comment:12 Changed 13 years ago by
| Owner: | changed from Marc to Ryan J Ollos |
|---|
This issue seems to be fixed on the trunk since proper use is now being made of the Trac API. Please reopen if you continue to have trouble with the latest trunk version.
comment:13 Changed 13 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |



I have actually the same error:
relation "codereviews" does not exist
I did get a notification to upgrade the environment, this error was shown after the environment was upgraded.
Trac. 0.11.3