IntegrityError: duplicate key value violates unique constraint "forum_userproperty_pkey"

XMLWordPrintable

    • Severity 3 - Minor

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Traceback (most recent call last):

      File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/core/handlers/base.py", line 100, in get_response
      response = callback(request, *callback_args, **callback_kwargs)

      File "/opt/python/domains/atlassian.com/answers/ADM-33771/forum/modules/decorators.py", line 95, in decorated
      return decoratable(*args, **kwargs)

      File "/opt/python/domains/atlassian.com/answers/ADM-33771/forum/modules/decorators.py", line 55, in _call_
      res = self._callable(*args, **kwargs)

      File "/opt/python/domains/atlassian.com/answers/ADM-33771/forum/modules/decorators.py", line 30, in <lambda>
      self._callable = lambda *args, **kwargs: fn(origin, *args, **kwargs)

      File "/opt/python/domains/atlassian.com/answers/ADM-33771/forum_modules/exporter/mappings.py", line 27, in match_question_slug
      return origin(request, id, slug, answer)

      File "/opt/python/domains/atlassian.com/answers/ADM-33771/forum/views/readers.py", line 494, in question
      "type": type,

      File "/opt/python/domains/atlassian.com/answers/ADM-33771/forum/utils/pagination.py", line 195, in paginated
      tpl_context[list_name] = _paginated(request, tpl_context[list_name], context)

      File "/opt/python/domains/atlassian.com/answers/ADM-33771/forum/utils/pagination.py", line 350, in _paginated
      context.set_preferences(request, session_prefs)

      File "/opt/python/domains/atlassian.com/answers/ADM-33771/forum/utils/pagination.py", line 94, in set_preferences
      request.user.prop.pagination = all_preferences

      File "/opt/python/domains/atlassian.com/answers/ADM-33771/forum/models/user.py", line 542, in _setattr_
      current.save( full_save = True )

      File "/opt/python/domains/atlassian.com/answers/ADM-33771/forum/models/base.py", line 169, in save
      super(BaseModel, self).save()

      File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/db/models/base.py", line 458, in save
      self.save_base(using=using, force_insert=force_insert, force_update=force_update)

      File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/db/models/base.py", line 551, in save_base
      result = manager._insert(values, return_id=update_pk, using=using)

      File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/db/models/manager.py", line 195, in _insert
      return insert_query(self.model, values, **kwargs)

      File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/db/models/query.py", line 1524, in insert_query
      return query.get_compiler(using=using).execute_sql(return_id)

      File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/db/models/sql/compiler.py", line 788, in execute_sql
      cursor = super(SQLInsertCompiler, self).execute_sql(None)

      File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/db/models/sql/compiler.py", line 732, in execute_sql
      cursor.execute(sql, params)

      File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
      return self.cursor.execute(query, args)

      IntegrityError: duplicate key value violates unique constraint "forum_userproperty_pkey"

            Assignee:
            Unassigned
            Reporter:
            Jeremy Largman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: