Opened 14 years ago
Closed 11 years ago
#7481 closed defect (fixed)
plugin MindMap cause my Trac server 500 error.
Reported by: | anonymous | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | MindMapMacro |
Severity: | normal | Keywords: | |
Cc: | Theodor Norup, Steffen Hoffmann | Trac Release: | 0.12 |
Description
log is:
2010-08-12 19:32:50,897 Trac[env] WARNING: Component <tracmindmap.macro.MindMapMacro object at 0x2a9d1ff210> requires environment upgrade
i do not know why this happened, could anybody help to have a look?
Attachments (2)
Change History (17)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Status: | new → assigned |
---|
Did you tried to upgrade your database using:
trac-admin </path/to/your/trac/installation> upgrade
The macro stores some information in the database.
If the upgrade fails, please post the output here.
comment:3 Changed 14 years ago by
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
I know tested the current version of the macro with a fresh installed Trac 0.12. The DB table is created properly. Did you upgraded from a older version of the macro?
I'm closing this ticket now, because it works for me. Please feel free to reopen it if you still have trouble.
comment:4 follow-up: 6 Changed 11 years ago by
The problem still persists with Trac 1.0.1 and PostgreSQL as backend. For PostgreSQL, table creation syntax is a bit different:
CREATE TABLE mindmapcache ( hash text PRIMARY KEY, content text );
Having done that, things work nicely.
Before adding the table by hand I tried trac-admin <myenv> upgrade - but got an error message:
Error:Attribute error:
In fact every trac-admin operation gave this error. Which disappeared once I had created the table by hand.
comment:5 Changed 11 years ago by
Cc: | Theodor Norup added; anonymous removed |
---|---|
Resolution: | worksforme |
Status: | closed → reopened |
comment:6 follow-up: 7 Changed 11 years ago by
Cc: | Steffen Hoffmann added |
---|
Replying to thenor:
The problem still persists with Trac 1.0.1 and PostgreSQL as backend. For PostgreSQL, table creation syntax is a bit different:
The Trac database API will create the proper SQL for PostgreSQL. Checking for table existing using a SELECT
query (mindmapmacro/0.11/tracmindmap/macro.py@9152:56#L50) causes problems in Trac 1.0, IIRC. If the table is not being created when the plugin is installed, this is most likely the issue.
comment:7 Changed 11 years ago by
Changed 11 years ago by
Attachment: | t7481.diff added |
---|
comment:9 Changed 11 years ago by
Proposed change in t7481.diff.
martin_s: Is it okay to commit?
I also noticed some other issues:
- The source file mixes 2 and 4 space indentation.
- ExtractUrlPlugin should be included in
install_requires
insetup.py
.
Changed 11 years ago by
Attachment: | t7481.2.diff added |
---|
comment:10 Changed 11 years ago by
The patch has been improved to insert mindmap_version
into the DB table: t7481.2.diff.
This will be useful in case the DB version is revised in the future.
comment:14 Changed 11 years ago by
Owner: | changed from Martin Scharrer to Ryan J Ollos |
---|---|
Status: | reopened → accepted |
Please report back if you have a chance to test the latest and can confirm whether the changes work for you.
comment:15 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Oops...
i find that there is a table needed be created.
sql: