First time here? Check out the FAQ!

Revision history  [back]

Errors in running migrations

Hello, I am trying to install/running askbot in my local machine(apache + mysql + windows7). In the procedure of migrations, I met the following errors. How to fix this. Thanks in advance.

 > askbot:0020_auto__add_field_repute_comment__chg_field_repute_question
 ! 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:   = ALTER TABLE `repute` DROP COLUMN `com
ment` CASCADE; []

 ! 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 "manage.py", line 11, in <module>
    execute_manager(settings)
  File "C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\core\managem
ent\__init__.py", line 438, in execute_manager
    utility.execute()
  File "C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\core\managem
ent\__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\core\managem
ent\base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\core\managem
ent\base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\management\com
mands\migrate.py", line 105, in handle
    ignore_ghosts = ignore_ghosts,
  File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\migration\__in
it__.py", line 191, in migrate_app
    success = migrator.migrate_many(target, workplan, database)
  File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\migration\migr
ators.py", line 221, in migrate_many
    result = migrator.__class__.migrate_many(migrator, target, migrations, datab
ase)
  File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\migration\migr
ators.py", line 292, in migrate_many
    result = self.migrate(migration, database)
  File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\migration\migr
ators.py", line 125, in migrate
    result = self.run(migration)
  File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\migration\migr
ators.py", line 99, in run
    return self.run_migration(migration)
  File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\migration\migr
ators.py", line 81, in run_migration
    migration_function()
  File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\migration\migr
ators.py", line 57, in <lambda>
    return (lambda: direction(orm))
  File "C:\Python27\lib\site-packages\askbot-0.7.26-py2.7.egg\askbot\migrations\
0020_auto__add_field_repute_comment__chg_field_repute_question.py", line 15, in
forwards
    db.alter_column(u'repute', 'question_id', self.gf('django.db.models.fields.r
elated.ForeignKey')(to=orm['askbot.Question'], null=True, blank=True))
  File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\db\generic.py"
, line 397, in alter_column
    field.rel.to._meta.get_field(field.rel.field_name).column
  File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\db\generic.py"
, line 150, in execute
    cursor.execute(sql, params)
  File "C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\db\backends\
mysql\base.py", line 86, in execute
    return self.cursor.execute(query, args)
  File "C:\Python27\lib\site-packages\MySQLdb\cursors.py", line 174, in execute
    self.errorhandler(self, exc, value)
  File "C:\Python27\lib\site-packages\MySQLdb\connections.py", line 36, in defau
lterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1005, "Can't create table 'askbot.#sql-754_
2ae' (errno: 121)")

Errors in running migrations

Hello, I am trying to install/running askbot in my local machine(apache + mysql + windows7). In the procedure of migrations, I met the following errors. How to fix this. Thanks in advance.

 > 

askbot:0020_auto__add_field_repute_comment__chg_field_repute_question ! Error found during real run of migration! Aborting. 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. migrations.

! You *might* might be able to recover with: = ALTER TABLE `repute` repute DROP COLUMN `com ment` com ment CASCADE; [] []

! 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 "manage.py", line 11, in <module> execute_manager(settings) File "C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\core\managem ent\__init__.py", ent__init__.py", line 438, in execute_manager utility.execute() File "C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\core\managem ent\__init__.py", ent__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\core\managem ent\base.py", line 191, in run_from_argv self.execute(*args, **options.__dict__) self.execute(args, *options.__dict__) File "C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\core\managem ent\base.py", line 220, in execute output = self.handle(*args, **options) self.handle(args, *options) File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\management\com mands\migrate.py", line 105, in handle ignore_ghosts = ignore_ghosts, File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\migration\__in "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\migration__in it__.py", line 191, in migrate_app success = migrator.migrate_many(target, workplan, database) File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\migration\migr ators.py", line 221, in migrate_many result = migrator.__class__.migrate_many(migrator, target, migrations, datab ase) File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\migration\migr ators.py", line 292, in migrate_many result = self.migrate(migration, database) File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\migration\migr ators.py", line 125, in migrate result = self.run(migration) File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\migration\migr ators.py", line 99, in run return self.run_migration(migration) File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\migration\migr ators.py", line 81, in run_migration migration_function() File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\migration\migr ators.py", line 57, in <lambda> return (lambda: direction(orm)) File "C:\Python27\lib\site-packages\askbot-0.7.26-py2.7.egg\askbot\migrations\ 0020_auto__add_field_repute_comment__chg_field_repute_question.py", line 15, in forwards db.alter_column(u'repute', 'question_id', self.gf('django.db.models.fields.r elated.ForeignKey')(to=orm['askbot.Question'], null=True, blank=True)) File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\db\generic.py" , line 397, in alter_column field.rel.to._meta.get_field(field.rel.field_name).column File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south\db\generic.py" , line 150, in execute cursor.execute(sql, params) File "C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\db\backends\ mysql\base.py", line 86, in execute return self.cursor.execute(query, args) File "C:\Python27\lib\site-packages\MySQLdb\cursors.py", line 174, in execute self.errorhandler(self, exc, value) File "C:\Python27\lib\site-packages\MySQLdb\connections.py", line 36, in defau lterrorhandler raise errorclass, errorvalue _mysql_exceptions.OperationalError: (1005, "Can't create table 'askbot.#sql-754_ 2ae' (errno: 121)")

121)")