Opened 12 months ago

Closed 12 months ago

Last modified 12 months ago

#11298 closed defect (duplicate)

ProgrammingError: relation "tags" does not existLINE 1: SELECT tag FROM tags WHERE tagspace='wiki' AND name='WikiSta... ^

Reported by: jerry.yang.jin@… Owned by: hasienda
Priority: normal Component: TagsPlugin
Severity: normal Keywords: tractags
Cc: Trac Release: 1.0


How to Reproduce

While doing a GET operation on /wiki, Trac issued an internal error.

(please provide additional details here)

Request parameters:


User agent: Mozilla/5.0 (Windows NT 5.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36

System Information

Trac 1.0
Agilo 1.3.10-PRO
Genshi 0.7 (without speedups)
psycopg2 2.0.14
Pygments 1.4
Python 2.6.8 (unknown, Mar 14 2013, 09:31:22)
[GCC 4.6.2 20111027 (Red Hat 4.6.2-2)]
setuptools 0.8
Subversion 1.7.10 (r1485443)
jQuery 1.7.2

Enabled Plugins

binary-agilo 1.3.10-PRO
SQLExecutor 1.0.6
TestManager 1.7.1
TracAccountManager 0.4.3
TracGenericClass 1.1.5
TracGenericWorkflow 1.0.4
TracPermRedirect 3.0
TracTags 0.6

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/", line 497, in _dispatch_request
  File "build/bdist.linux-x86_64/egg/trac/web/", line 233, in dispatch
  File "build/bdist.linux-x86_64/egg/trac/web/", line 968, in render_template
    stream |= self._filter_stream(req, method, filename, stream, data)
  File "/root/.local/lib/python2.6/site-packages/Genshi-0.7-py2.6-linux-x86_64.egg/genshi/", line 133, in __or__
    return Stream(_ensure(function(self)), serializer=self.serializer)
  File "build/bdist.linux-x86_64/egg/trac/web/", line 1147, in inner
  File "build/bdist.linux-x86_64/egg/tractags/", line 42, in filter_stream
    return self._wiki_view(req, stream)
  File "build/bdist.linux-x86_64/egg/tractags/", line 87, in _wiki_view
    tags = self._page_tags(req)
  File "build/bdist.linux-x86_64/egg/tractags/", line 83, in _page_tags
    tags = sorted(tag_system.get_tags(req, resource))
  File "build/bdist.linux-x86_64/egg/tractags/", line 203, in get_tags
    .get_resource_tags(req, resource))
  File "build/bdist.linux-x86_64/egg/tractags/", line 120, in get_resource_tags
  File "build/bdist.linux-x86_64/egg/trac/db/", line 65, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
ProgrammingError: relation "tags" does not exist
LINE 1: SELECT tag FROM tags WHERE tagspace='wiki' AND name='WikiSta...

Attachments (0)

Change History (4)

comment:1 Changed 12 months ago by anonymous

trac-admin /var/lib/trac/scrum upgradeafter installing tractags plugin, the upgrade phase ended in error:

Error importing optional Trac XML-RPC Plugin. No XML-RPC remote interface will be available.
If you require XML-RPC access to the Test Manager, download and install it from

Error: AttributeError: 
Last edited 12 months ago by rjollos (previous) (diff)

comment:2 follow-up: Changed 12 months ago by rjollos

  • Component changed from SELECT A HACK to TagsPlugin
  • Owner set to hasienda

Please try installing TagsPlugin 0.7dev from the tagsplugin/trunk. I'm fairly certain that TagsPlugin 0.6 is not compatible with Trac 1.0.

comment:3 in reply to: ↑ 2 Changed 12 months ago by hasienda

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

Replying to rjollos:

I'm fairly certain that TagsPlugin 0.6 is not compatible with Trac 1.0.

This has been discussed in #9521 for a while, and more important: fixed reliably for trunk. Treat it as tags-0.7-rc, if you want. There are a few edges I hope to round out before next release.

For Trac revisions even a bit before 1.0 release there is definitely no choice other than using a plugin revision newer than 0.6, as Ryan already pointed out. No news here, sorry.

comment:4 Changed 12 months ago by hasienda

Please follow-up on #9521, if you find a problem with the current solution implemented during the work on that ticket. Still thanks for taking time to report this here.

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.