Closed Bug 812284 Opened 12 years ago Closed 8 years ago

Duplicate entry for key 'actioncounters_actioncounterunique_unique'

Categories

(developer.mozilla.org Graveyard :: Demo Studio / Dev Derby, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: groovecoder, Unassigned)

Details

(Whiteboard: [type:bug])

Been getting more of these lately and more often. I don't see any of our old bugs for them.

Traceback (most recent call last):

  File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/core/handlers/base.py", line 100, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/www/developer.mozilla.org/kuma/apps/demos/views.py", line 222, in launch
    submission.launches.increment(request)

  File "/data/www/developer.mozilla.org/kuma/apps/actioncounters/fields.py", line 93, in increment
    counter = self._get_counter_for_request(request)

  File "/data/www/developer.mozilla.org/kuma/apps/actioncounters/fields.py", line 85, in _get_counter_for_request
    self.instance, self.name, request, do_create)

  File "/data/www/developer.mozilla.org/kuma/apps/actioncounters/models.py", line 52, in get_unique_for_request
    total=0))

  File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/db/models/manager.py", line 135, in get_or_create
    return self.get_query_set().get_or_create(**kwargs)

  File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/db/models/query.py", line 391, in get_or_create
    raise e

IntegrityError: (1062, "Duplicate entry 'afc8fd54fdded7915b3ba9c43fc6dde8' for key 'actioncounters_actioncounterunique_unique'")
Should put this in an upcoming sprint
Whiteboard: bug
Priority: P1 → --
Whiteboard: bug → [type:bug]
Demo Studio is being removed from MDN and archived as of end January 2016
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.