Edgewall Software

Opened 18 years ago

Last modified 9 years ago

#3948 closed defect

Can't add a new report — at Version 3

Reported by: anonymous Owned by: Matthew Good
Priority: normal Milestone:
Component: report system Version: 1.0.1
Severity: minor Keywords: postgresql, upgrade, documentation
Cc: johngluck@…, chris+trac@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

I get this when I save a new report

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 356, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 224, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.4/site-packages/trac/ticket/report.py", line 79, in process_request
    self._do_create(req, db)
  File "/usr/local/lib/python2.4/site-packages/trac/ticket/report.py", line 128, in _do_create
    "VALUES (%s,%s,%s)", (title, query, description))
  File "/usr/local/lib/python2.4/site-packages/trac/db/util.py", line 47, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/local/lib/python2.4/site-packages/trac/db/util.py", line 47, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/local/lib/python2.4/site-packages/pyPgSQL/PgSQL.py", line 3111, in execute
    raise OperationalError, msg
OperationalError: ERROR:  duplicate key violates unique constraint "report_pkey"

Change History (3)

comment:1 by anonymous, 18 years ago

I've already updated my system from 0.9 to 0.10. With version 0.9 this feature worked great.

comment:2 by anonymous, 18 years ago

Resolution: fixed
Status: newclosed

Solved adding one manually to the database. May be during the update process from .9 to .10 some counter didn't update properly

comment:3 by Christian Boos, 18 years ago

Description: modified (diff)
Resolution: fixed
Status: closedreopened

(wrong resolution type, fixed should be used only for issues requiring code changes)

Did you also switch from SQLite to PostgreSQL at the same time?

Note: See TracTickets for help on using tickets.