[Pkg-linaro-lava-devel] Bug#808313: lava-server: fails to upgrade from 'jessie': django.db.utils.ProgrammingError: relation "django_openid_auth_association" already exists

Andreas Beckmann anbe at debian.org
Fri Dec 18 15:14:10 UTC 2015


Package: lava-server
Version: 2015.12-2
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package fails to upgrade from
'jessie'.
It installed fine in 'jessie', then the upgrade to 'stretch' fails.

>From the attached log (scroll to the bottom...):

[...]
    Applying django_openid_auth.0001_initial...Traceback (most recent call last):
    File "/usr/bin/lava-server", line 9, in <module>
      load_entry_point('lava-server==2015.12', 'console_scripts', 'lava-server')()
    File "/usr/lib/python2.7/dist-packages/lava_server/manage.py", line 125, in main
      run_with_dispatcher_class(LAVAServerDispatcher)
    File "/usr/lib/python2.7/dist-packages/lava_tool/dispatcher.py", line 45, in run_with_dispatcher_class
      raise cls.run()
    File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 153, in run
      raise SystemExit(cls().dispatch(args))
    File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 143, in dispatch
      return command.invoke()
    File "/usr/lib/python2.7/dist-packages/lava_server/manage.py", line 114, in invoke
      execute_from_command_line(['lava-server'] + self.args.command)
    File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 350, in execute_from_command_line
      utility.execute()
    File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 342, in execute
      self.fetch_command(subcommand).run_from_argv(self.argv)
    File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 348, in run_from_argv
      self.execute(*args, **cmd_options)
    File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 399, in execute
      output = self.handle(*args, **options)
    File "/usr/lib/python2.7/dist-packages/django/core/management/commands/migrate.py", line 200, in handle
      executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)
    File "/usr/lib/python2.7/dist-packages/django/db/migrations/executor.py", line 92, in migrate
      self._migrate_all_forwards(plan, full_plan, fake=fake, fake_initial=fake_initial)
    File "/usr/lib/python2.7/dist-packages/django/db/migrations/executor.py", line 121, in _migrate_all_forwards
      state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
    File "/usr/lib/python2.7/dist-packages/django/db/migrations/executor.py", line 198, in apply_migration
      state = migration.apply(state, schema_editor)
    File "/usr/lib/python2.7/dist-packages/django/db/migrations/migration.py", line 123, in apply
      operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
    File "/usr/lib/python2.7/dist-packages/django/db/migrations/operations/models.py", line 59, in database_forwards
      schema_editor.create_model(model)
    File "/usr/lib/python2.7/dist-packages/django/db/backends/base/schema.py", line 284, in create_model
      self.execute(sql, params or None)
    File "/usr/lib/python2.7/dist-packages/django/db/backends/base/schema.py", line 110, in execute
      cursor.execute(sql, params)
    File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
      return self.cursor.execute(sql, params)
    File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 97, in __exit__
      six.reraise(dj_exc_type, dj_exc_value, traceback)
    File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute
      return self.cursor.execute(sql)
  django.db.utils.ProgrammingError: relation "django_openid_auth_association" already exists
  
  dpkg: error processing package lava-server (--configure):
   subprocess installed post-installation script returned error exit status 1
  Setting up libglib2.0-0:amd64 (2.46.2-1) ...
  No schema files found: doing nothing.
  Setting up postgresql-9.4 (9.4.5-1+b1) ...
  Running in chroot, ignoring request.
  Starting PostgreSQL 9.4 database server: main.
  Setting up python-django-auth-openid (0.5-2.3) ...
  Setting up python-roman (2.0.0-2) ...
  Processing triggers for python-support (1.0.15) ...
  Processing triggers for libc-bin (2.21-4) ...
  Processing triggers for systemd (228-2) ...
  Processing triggers for ca-certificates (20150426) ...
  Updating certificates in /etc/ssl/certs...
  13 added, 6 removed; done.
  Running hooks in /etc/ca-certificates/update.d...
  done.
  Errors were encountered while processing:
   lava-server


cheers,

Andreas


More information about the Pkg-linaro-lava-devel mailing list