ask/django-celery — Issue #95: Error running a migration v2.4.2 with celery 2.4.5
Author: eka
Created: 2011-12-14 19:53:08+00:00
State: open

python manage.py migrate
Running migrations for easy_thumbnails:
- Nothing to migrate.
- Loading initial data for easy_thumbnails.
No fixtures found.
Running migrations for helpdesk:
- Nothing to migrate.
- Loading initial data for helpdesk.
No fixtures found.
Running migrations for djcelery:
- Migrating forwards to 0001_initial.
> djcelery:0001_initial
Traceback (most recent call last):
File "manage.py", line 12, in
execute_manager(settings)
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/south/management/commands/migrate.py", line 105, in handle
ignore_ghosts = ignore_ghosts,
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/south/migration/__init__.py", line 191, in migrate_app
success = migrator.migrate_many(target, workplan, database)
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/south/migration/migrators.py", line 221, in migrate_many
result = migrator.__class__.migrate_many(migrator, target, migrations, database)
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/south/migration/migrators.py", line 292, in migrate_many
result = self.migrate(migration, database)
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/south/migration/migrators.py", line 125, in migrate
result = self.run(migration)
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/south/migration/migrators.py", line 99, in run
return self.run_migration(migration)
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/south/migration/migrators.py", line 81, in run_migration
migration_function()
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/south/migration/migrators.py", line 57, in
return (lambda: direction(orm))
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/djcelery/migrations/0001_initial.py", line 39, in forwards
('date_done', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),)):
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/djcelery/migrations/0001_initial.py", line 13, in ignore_exists
fun(*args, **kwargs)
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/south/db/generic.py", line 226, in create_table
', '.join([col for col in columns if col]),
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/south/db/generic.py", line 150, in execute
cursor.execute(sql, params)
File "/home/eka/.virtualenvs/wpt2/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
return self.cursor.execute(query, args)
django.db.utils.DatabaseError: current transaction is aborted, commands ignored until end of transaction block