Breakage when importing translations from bzr branch

Bug #655077 reported by Данило Шеган
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Critical
Unassigned

Bug Description

We hit OOPS-1739RSBR1 with the following traceback on rosettabranches script:

Traceback (most recent call last):
  File "/srv/bzrsyncd.launchpad.net/production/launchpad-rev-9766/lib/lp/services/job/runner.py", line 178, in runJob
    job.run()
  File "/srv/bzrsyncd.launchpad.net/production/launchpad-rev-9766/lib/lp/code/model/branchjob.py", line 944, in run
    approver.approve(entry)
  File "/srv/bzrsyncd.launchpad.net/production/launchpad-rev-9766/lib/lp/translations/model/approver.py", line 133, in approve
    name, domain, entry.path, entry.importer)
  File "/srv/bzrsyncd.launchpad.net/production/launchpad-rev-9766/lib/lp/translations/model/potemplate.py", line 1148, in new
    self._copyPOFilesFromSharingTemplates(template)
  File "/srv/bzrsyncd.launchpad.net/production/launchpad-rev-9766/lib/lp/translations/model/potemplate.py", line 1121, in _copyPOFilesFromSharingTemplates
    product=template.product)
  File "/srv/bzrsyncd.launchpad.net/production/launchpad-rev-9766/lib/lp/translations/model/potemplate.py", line 299, in product
    return self.productseries.product
  File "/srv/bzrsyncd.launchpad.net/production/launchpad-rev-9766/eggs/storm-0.17_launchpad_1-py2.6-linux-x86_64.egg/storm/references.py", line 157, in __get__
    self._relation.get_local_variables(local))
  File "/srv/bzrsyncd.launchpad.net/production/launchpad-rev-9766/eggs/storm-0.17_launchpad_1-py2.6-linux-x86_64.egg/storm/store.py", line 153, in get
    self.flush()
  File "/srv/bzrsyncd.launchpad.net/production/launchpad-rev-9766/eggs/storm-0.17_launchpad_1-py2.6-linux-x86_64.egg/storm/store.py", line 489, in flush
    self._flush_one(obj_info)
  File "/srv/bzrsyncd.launchpad.net/production/launchpad-rev-9766/eggs/storm-0.17_launchpad_1-py2.6-linux-x86_64.egg/storm/store.py", line 526, in _flush_one
    result = self._connection.execute(expr)
  File "/srv/bzrsyncd.launchpad.net/production/launchpad-rev-9766/eggs/storm-0.17_launchpad_1-py2.6-linux-x86_64.egg/storm/databases/postgres.py", line 243, in execute
    result = Connection.execute(self, Returning(statement), params)
  File "/srv/bzrsyncd.launchpad.net/production/launchpad-rev-9766/eggs/storm-0.17_launchpad_1-py2.6-linux-x86_64.egg/storm/database.py", line 237, in execute
    raw_cursor = self.raw_execute(statement, params)
  File "/srv/bzrsyncd.launchpad.net/production/launchpad-rev-9766/eggs/storm-0.17_launchpad_1-py2.6-linux-x86_64.egg/storm/databases/postgres.py", line 259, in raw_execute
    return Connection.raw_execute(self, statement, params)
  File "/srv/bzrsyncd.launchpad.net/production/launchpad-rev-9766/eggs/storm-0.17_launchpad_1-py2.6-linux-x86_64.egg/storm/database.py", line 321, in raw_execute
    self._check_disconnect(raw_cursor.execute, *args)
  File "/srv/bzrsyncd.launchpad.net/production/launchpad-rev-9766/eggs/storm-0.17_launchpad_1-py2.6-linux-x86_64.egg/storm/database.py", line 366, in _check_disconnect
    return function(*args, **kwargs)
IntegrityError: duplicate key value violates unique constraint "potemplate__productseries__name__key"

(http://launchpadlibrarian.net/57123697/vLYrN4BdvVwbnEkMvTdiMsgV9p3.txt)

It seems to be related to template approval (and could, by extension, be related to template renames).

Revision history for this message
Данило Шеган (danilo) wrote :

FWIW, this happened on trying to import r5 of lp:~chromium-team/chromium-browser/chromium-translations.head

Revision history for this message
Данило Шеган (danilo) wrote :

After help from Fabien "fta" in debugging this, we found out that this is related to disabled templates. Basically, templates still exist but they are not to be translated, and we don't have a way to mark this up in our system sufficiently well.

Changed in launchpad:
importance: High → Critical
tags: added: oops
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.