[Pkg-linaro-lava-devel] Bug#763310: Fails to upgrade from 2014.07.1-1 to 2014.08.2-1

Sjoerd Simons sjoerd at debian.org
Mon Sep 29 07:17:14 UTC 2014


Source: lava-server
Version: 2014.08.2-1
Severity: serious

Hey,

Upgrading our server from 2014.07.1-1 to 2014.08.2-1 seems to fail inside the django migrations:

Preparing to unpack .../lava-server_2014.08.2-1_all.deb ...
[ ok ] Stopping lava-server manage scheduler: lava-daemon.
Unpacking lava-server (2014.08.2-1) over (2014.07.1-1) ...

<snip>

Setting up lava-server (2014.08.2-1) ...
 lavaserver
 lavaserver
 devel
 devel
Operations to perform:
  Synchronize unmigrated apps: linaro_django_xmlrpc, django_openid_auth, lava_projects, lava_scheduler_daemon, django_tables2, lava_markitup
  Apply all migrations: sessions, admin, dashboard_app, auth, sites, contenttypes, lava_scheduler_app, google_analytics
Synchronizing apps without migrations:
  Creating tables...
  Installing custom SQL...
  Installing indexes...
Running migrations:
  Applying contenttypes.0001_initial... FAKED
  Applying auth.0001_initial... FAKED
  Applying admin.0001_initial... FAKED
  Applying dashboard_app.0001_initial...Traceback (most recent call last):
  File "/usr/bin/lava-server", line 9, in <module>
    load_entry_point('lava-server==2014.08.2', '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 385, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 377, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 338, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 533, in handle
    return self.handle_noargs(**options)
  File "/usr/lib/python2.7/dist-packages/django/core/management/commands/syncdb.py", line 27, in handle_noargs
    call_command("migrate", **options)
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 115, in call_command
    return klass.execute(*args, **defaults)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 338, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/django/core/management/commands/migrate.py", line 160, in handle
    executor.migrate(targets, plan, fake=options.get("fake", False))
  File "/usr/lib/python2.7/dist-packages/django/db/migrations/executor.py", line 63, in migrate
    self.apply_migration(migration, fake=fake)
  File "/usr/lib/python2.7/dist-packages/django/db/migrations/executor.py", line 97, in apply_migration
    migration.apply(project_state, schema_editor)
  File "/usr/lib/python2.7/dist-packages/django/db/migrations/migration.py", line 107, in apply
    operation.database_forwards(self.app_label, schema_editor, project_state, new_state)
  File "/usr/lib/python2.7/dist-packages/django/db/migrations/operations/models.py", line 36, in database_forwards
    schema_editor.create_model(model)
  File "/usr/lib/python2.7/dist-packages/django/db/backends/schema.py", line 270, in create_model
    self.execute(sql, params)
  File "/usr/lib/python2.7/dist-packages/django/db/backends/schema.py", line 98, in execute
    cursor.execute(sql, params)
  File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 65, in execute
    return self.cursor.execute(sql, params)
  File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 65, in execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "dashboard_app_attachment" already exists

dpkg: error processing package lava-server (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up lava-server-doc (2014.08.2-1) ...
Setting up lava-dev (2014.08.2-1) ...
dpkg: dependency problems prevent configuration of lava:
 lava depends on lava-server; however:
  Package lava-server is not configured yet.

dpkg: error processing package lava (--configure):
 dependency problems - leaving unconfigured





-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



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