Hello,

I've had a Trac environment running for about 2 years, currently under
0.12.2, that has recently started to have issues. trac-admin from the
command line only offers the help and initenv commands. The Mercurial
commit hooks (which run trac-admin) are failing. At least one ticket has
duplicate comment numbers, and editing comments there seems to fail. I see
a few exceptions like this in the log:

2012-07-09 11:20:54,314 Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 511, in
_dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 237, in
dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/trac/ticket/web_ui.py", line 169, in
process_request
    return self._process_ticket_request(req)
  File "build/bdist.linux-x86_64/egg/trac/ticket/web_ui.py", line 541, in
_process_ticket_request
    self._do_save(req, ticket, action)
  File "build/bdist.linux-x86_64/egg/trac/ticket/web_ui.py", line 1238, in
_do_save
    cnum=internal_cnum):
  File "build/bdist.linux-x86_64/egg/trac/ticket/model.py", line 360, in
save_changes
    listener.ticket_changed(self, comment, author, old_values)
  File "build/bdist.linux-x86_64/egg/mastertickets/api.py", line 111, in
ticket_changed
    links.save(author, comment, tkt.time_changed, db)
  File "build/bdist.linux-x86_64/egg/mastertickets/model.py", line 76, in
save
    (n, when_ts, author, 'comment', '', '(In #%s) %s'%(self.tkt.id,
comment)))
  File "build/bdist.linux-x86_64/egg/trac/db/util.py", line 65, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "build/bdist.linux-x86_64/egg/MySQLdb/cursors.py", line 174, in
execute
    self.errorhandler(self, exc, value)
  File "build/bdist.linux-x86_64/egg/MySQLdb/connections.py", line 36, in
defaulterrorhandler
    raise errorclass, errorvalue
IntegrityError: (1062, "Duplicate entry '156-1341858054303812-comment' for
key 1")

Other functions seem to more or less work under Apache.

Any help sorting this out would be very much appreciated!

Thanks,

 - Richard

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to