Repository scan failing for +oci repository

Bug #1916876 reported by Cristian Gonzalez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Cristian Gonzalez

Bug Description

We are seeing scan jobs failing on this +oci repository:
https://code.launchpad.net/~mattermost-charmers/charm-k8s-mattermost/+oci/mattermost/+git/mattermost/

After checking some logs, we can see the scan jobs failing and triggering OOPs, like the following one: https://oops.canonical.com/?oopsid=33337048ccf9476f5a0d2119d797c3e0

Traceback:

InternalError: current transaction is aborted, commands ignored until end of transaction block

    Traceback (most recent call last):
  Module lazr.jobrunner.jobrunner, line 194, in runJobHandleError
    self.runJob(job, fallback)
  Module lp.services.job.runner, line 379, in runJob
    super(BaseJobRunner, self).runJob(IRunnableJob(job), fallback)
  Module lazr.jobrunner.jobrunner, line 162, in runJob
    job.run()
  Module lp.code.model.gitjob, line 256, in run
    self.repository, 'git:push:0.1', payload)
  Module contextlib, line 35, in __exit__
    self.gen.throw(type, value, traceback)
  Module lp.services.database.locking, line 55, in try_advisory_lock
    store.execute(Select(AdvisoryUnlock(lock_type.value, lock_id)))
  Module storm.store, line 118, in execute
    return self._connection.execute(statement, params, noresult)
  Module storm.databases.postgres, line 306, in execute
    return Connection.execute(self, statement, params, noresult)
  Module storm.database, line 323, in execute
    raw_cursor = self.raw_execute(statement, params)
  Module storm.database, line 457, in raw_execute
    self._run_execution(raw_cursor, args, params, statement)
  Module storm.database, line 471, in _run_execution
    self._check_disconnect(raw_cursor.execute, *args)
  Module storm.database, line 537, in _check_disconnect
    return function(*args, **kwargs)
  Module storm.database, line 187, in wrapper
    return attr(*args, **kwargs)
  Module contextlib, line 35, in __exit__
    self.gen.throw(type, value, traceback)
  Module storm.exceptions, line 182, in wrap_exceptions
    six.reraise(wrapped, None, tb)
  Module storm.exceptions, line 165, in wrap_exceptions
    yield
  Module storm.database, line 187, in wrapper
    return attr(*args, **kwargs)
InternalError: current transaction is aborted, commands ignored until end of transaction block

It could potentially be a DB permissions problem as the user that runs the GitRefScanJob does not seem to have permissions for OCI.

Tags: git lp-code oops

Related branches

Changed in launchpad:
status: New → Triaged
status: Triaged → In Progress
Colin Watson (cjwatson)
tags: added: git lp-code oops
Changed in launchpad:
importance: Undecided → High
assignee: nobody → Cristian Gonzalez (cristiangsp)
Colin Watson (cjwatson)
Changed in launchpad:
status: In Progress → Fix Committed
Colin Watson (cjwatson)
Changed in launchpad:
status: Fix Committed → Fix Released
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.