Skip to Content.

djnro - Re: [djnro] Problem installing, ie. migration fails

Subject: DjNRO discussion

Text archives

Re: [djnro] Problem installing, ie. migration fails

Archive: Chronological Thread 
  • From: Zenon Mousmoulas <>
  • To: Kurt Bauer <>
  • Cc:
  • Subject: Re: [djnro] Problem installing, ie. migration fails
  • Date: Thu, 21 Feb 2013 20:01:22 +0200
  • Delivery-date: Thu, 21 Feb 2013 20:01:35 +0200
  • Envelope-to:
Hi Kurt,

On 21/02/2013 4:20 μ.μ., Kurt Bauer wrote:
first of all let me thank you for your efforts. It seems this is exactly
what we were searching for at ACOnet to keep records for the Austrian
eduroam footprint.

Thanks for the kind words. We feel we are still in the first steps but we hope this project can be useful for the community; this will help in the direction of improving and further developing the software.

Unfortunately I ran into an error whilst the migration [1] - syncdb went
fine. Is there smth. obvious I've done wrong, a table named
'#sql-22fe_2d ' looks a little weird to me anyhow. Could it be that
there is something wrong with the character-set?

After a lot of tests, we are confident this is caused by a conflict between MySQL 5.5 and earlier versions of South, which has been addressed in South 0.7.5.

See this for some more insight:

So the question is, what does your environment look like? Are you by any chance running MySQL 5.5 and South 0.7.3? Is it possible to install South >= 0.7.5 or use MySQL 5.1?

Thanks for the heads-up. Sorry that your first experience was not as good as we'd hope it to be...

Best regards,

  > edumanage:0027_auto__del_monlocaleapoldata__add_monlocalauthnparam
  ! Error found during real run of migration! Aborting.

  ! Since you have a database that does not support running
  ! schema-altering statements in transactions, we have had
  ! to leave it in an interim state between migrations.

! You *might* be able to recover with:
  ! The South developers regret this has happened, and would
  ! like to gently persuade you to consider a slightly
  ! easier-to-deal-with DBMS.
  ! NOTE: The error which caused the migration to fail is further up.
Traceback (most recent call last):
   File "./", line 11, in <module>
line 438, in execute_manager
line 379, in execute
"/usr/lib/python2.7/dist-packages/django/core/management/", line
191, in run_from_argv
     self.execute(*args, **options.__dict__)
"/usr/lib/python2.7/dist-packages/django/core/management/", line
220, in execute
     output = self.handle(*args, **options)
line 105, in handle
     ignore_ghosts = ignore_ghosts,
   File "/usr/lib/python2.7/dist-packages/south/migration/",
line 191, in migrate_app
     success = migrator.migrate_many(target, workplan, database)
   File "/usr/lib/python2.7/dist-packages/south/migration/",
line 221, in migrate_many
     result = migrator.__class__.migrate_many(migrator, target,
migrations, database)
   File "/usr/lib/python2.7/dist-packages/south/migration/",
line 292, in migrate_many
     result = self.migrate(migration, database)
   File "/usr/lib/python2.7/dist-packages/south/migration/",
line 125, in migrate
     result =
   File "/usr/lib/python2.7/dist-packages/south/migration/",
line 99, in run
     return self.run_migration(migration)
   File "/usr/lib/python2.7/dist-packages/south/migration/",
line 81, in run_migration
   File "/usr/lib/python2.7/dist-packages/south/migration/",
line 57, in <lambda>
     return (lambda: direction(orm))
line 12, in forwards
     db.alter_column('edumanage_monlocalauthnparam', 'instrealmmonid_id','django.db.models.fields.related.OneToOneField')(to=orm['edumanage.InstRealmMon'],
   File "/usr/lib/python2.7/dist-packages/south/db/", line 397,
in alter_column
   File "/usr/lib/python2.7/dist-packages/south/db/", line 150,
in execute
     cursor.execute(sql, params)
line 86, in execute
     return self.cursor.execute(query, args)
   File "/usr/lib/python2.7/dist-packages/MySQLdb/", line 174,
in execute
     self.errorhandler(self, exc, value)
   File "/usr/lib/python2.7/dist-packages/MySQLdb/", line
36, in defaulterrorhandler
     raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1005, "Can't create table
'djnro.#sql-22fe_2d' (errno: 121)")

Top of Page