Latest 9.3.1 update failed - how to repair?

Status
Not open for further replies.

ChiknNutz

Patron
Joined
Nov 6, 2015
Messages
217
I updated to the latest: FreeNAS-9.3-STABLE-201511280648. The last few updates have went totally fine. The file is shown below and gives a hint of what might work it says, but not really sure how to go about that. I also performed a "Verify Install" in the GUI and it fails the checksum. Should I just revert back to the previous build?

Code:
FATAL ERROR - The following SQL query failed: ALTER TABLE "services_fiberchannel                                                  totarget" RENAME TO "services_fibrechanneltotarget";
The error was: no such table: services_fiberchanneltotarget
Running migrations for api:
- Nothing to migrate.
- Loading initial data for api.
Installed 0 object(s) from 0 fixture(s)
Running migrations for freeadmin:
- Nothing to migrate.
- Loading initial data for freeadmin.
Installed 0 object(s) from 0 fixture(s)
Running migrations for support:
- Nothing to migrate.
- Loading initial data for support.
Installed 0 object(s) from 0 fixture(s)
Running migrations for vcp:
- Nothing to migrate.
- Loading initial data for vcp.
Installed 0 object(s) from 0 fixture(s)
Running migrations for jails:
- Nothing to migrate.
- Loading initial data for jails.
Installed 0 object(s) from 0 fixture(s)
Running migrations for directoryservice:
- Migrating forwards to 0054_auto__add_field_activedirectory_ad_allow_dns_updat                                                  es.
> directoryservice:0054_auto__add_field_activedirectory_ad_allow_dns_updates
- Loading initial data for directoryservice.
Installed 0 object(s) from 0 fixture(s)
Running migrations for storage:
- Nothing to migrate.
- Loading initial data for storage.
Installed 0 object(s) from 0 fixture(s)
Running migrations for tasks:
- Nothing to migrate.
- Loading initial data for tasks.
Installed 0 object(s) from 0 fixture(s)
Running migrations for system:
- Migrating forwards to 0099_email_pwenc.
> system:0099_email_pwenc
- Migration 'system:0099_email_pwenc' is marked for no-dry-run.
- Loading initial data for system.
Installed 0 object(s) from 0 fixture(s)
Running migrations for services:
- Migrating forwards to 0184_auto__del_fiberchanneltotarget__add_fibrechannelto                                                  target.
> services:0184_auto__del_fiberchanneltotarget__add_fibrechanneltotarget
! 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 "services_fibrechanneltot                                                  arget" RENAME TO "services_fiberchanneltotarget"; []

! The South developers regret this has happened, and would
! like to gently persuade you to consider a slightly
! easier-to-deal-with DBMS (one that supports DDL transactions)
! NOTE: The error which caused the migration to fail is further up.
Error in migration: services:0184_auto__del_fiberchanneltotarget__add_fibrechann                                                  eltotarget
Traceback (most recent call last):
  File "/usr/local/www/freenasUI/manage.py", line 42, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.p                                                  y", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.p                                                  y", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py",                                                   line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py",                                                   line 285, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python2.7/site-packages/south/management/commands/migrate                                                  .py", line 111, in handle
    ignore_ghosts = ignore_ghosts,
  File "/usr/local/lib/python2.7/site-packages/south/migration/__init__.py", lin                                                  e 220, in migrate_app
    success = migrator.migrate_many(target, workplan, database)
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", li                                                  ne 256, in migrate_many
    result = migrator.__class__.migrate_many(migrator, target, migrations, datab                                                  ase)
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", li                                                  ne 331, in migrate_many
    result = self.migrate(migration, database)
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", li                                                  ne 133, in migrate
    result = self.run(migration, database)
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", li                                                  ne 114, in run
    return self.run_migration(migration, database)
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", li                                                  ne 84, in run_migration
    migration_function()
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", li                                                  ne 60, in <lambda>
    return (lambda: direction(orm))
  File "/usr/local/www/freenasUI/../freenasUI/services/migrations/0184_auto__del                                                  _fiberchanneltotarget__add_fibrechanneltotarget.py", line 11, in forwards
    db.rename_table(u'services_fiberchanneltotarget', u'services_fibrechanneltot                                                  arget')
  File "/usr/local/lib/python2.7/site-packages/south/db/generic.py", line 47, in                                                   _cache_clear
    return func(self, table, *args, **opts)
  File "/usr/local/lib/python2.7/site-packages/south/db/generic.py", line 375, i                                                  n rename_table
    self.execute(self.rename_table_sql % params)
  File "/usr/local/lib/python2.7/site-packages/south/db/generic.py", line 282, i                                                  n execute
    cursor.execute(sql, params)
  File "/usr/local/lib/python2.7/site-packages/django/db/backends/util.py", line                                                   53, in execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python2.7/site-packages/django/db/utils.py", line 99, in                                                   __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/usr/local/lib/python2.7/site-packages/django/db/backends/util.py", line                                                   53, in execute
    return self.cursor.execute(sql, params)
  File "/usr/local/www/freenasUI/../freenasUI/freeadmin/sqlite3_ha/base.py", lin                                                  e 386, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such table: services_fiberchanneltotarget
[root@AdcNAS] /data# cat update.failed
FATAL ERROR - The following SQL query failed: ALTER TABLE "services_fiberchanneltotarget" RENAME TO "services_fibrechanneltotarget";
The error was: no such table: services_fiberchanneltotarget
Running migrations for api:
- Nothing to migrate.
- Loading initial data for api.
Installed 0 object(s) from 0 fixture(s)
Running migrations for freeadmin:
- Nothing to migrate.
- Loading initial data for freeadmin.
Installed 0 object(s) from 0 fixture(s)
Running migrations for support:
- Nothing to migrate.
- Loading initial data for support.
Installed 0 object(s) from 0 fixture(s)
Running migrations for vcp:
- Nothing to migrate.
- Loading initial data for vcp.
Installed 0 object(s) from 0 fixture(s)
Running migrations for jails:
- Nothing to migrate.
- Loading initial data for jails.
Installed 0 object(s) from 0 fixture(s)
Running migrations for directoryservice:
- Migrating forwards to 0054_auto__add_field_activedirectory_ad_allow_dns_updates.
> directoryservice:0054_auto__add_field_activedirectory_ad_allow_dns_updates
- Loading initial data for directoryservice.
Installed 0 object(s) from 0 fixture(s)
Running migrations for storage:
- Nothing to migrate.
- Loading initial data for storage.
Installed 0 object(s) from 0 fixture(s)
Running migrations for tasks:
- Nothing to migrate.
- Loading initial data for tasks.
Installed 0 object(s) from 0 fixture(s)
Running migrations for system:
- Migrating forwards to 0099_email_pwenc.
> system:0099_email_pwenc
- Migration 'system:0099_email_pwenc' is marked for no-dry-run.
- Loading initial data for system.
Installed 0 object(s) from 0 fixture(s)
Running migrations for services:
- Migrating forwards to 0184_auto__del_fiberchanneltotarget__add_fibrechanneltotarget.
> services:0184_auto__del_fiberchanneltotarget__add_fibrechanneltotarget
! 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 "services_fibrechanneltotarget" RENAME TO "services_fiberchanneltotarget"; []

! The South developers regret this has happened, and would
! like to gently persuade you to consider a slightly
! easier-to-deal-with DBMS (one that supports DDL transactions)
! NOTE: The error which caused the migration to fail is further up.
Error in migration: services:0184_auto__del_fiberchanneltotarget__add_fibrechanneltotarget
Traceback (most recent call last):
  File "/usr/local/www/freenasUI/manage.py", line 42, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python2.7/site-packages/south/management/commands/migrate.py", line 111, in handle
    ignore_ghosts = ignore_ghosts,
  File "/usr/local/lib/python2.7/site-packages/south/migration/__init__.py", line 220, in migrate_app
    success = migrator.migrate_many(target, workplan, database)
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 256, in migrate_many
    result = migrator.__class__.migrate_many(migrator, target, migrations, database)
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 331, in migrate_many
    result = self.migrate(migration, database)
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 133, in migrate
    result = self.run(migration, database)
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 114, in run
    return self.run_migration(migration, database)
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 84, in run_migration
    migration_function()
  File "/usr/local/lib/python2.7/site-packages/south/migration/migrators.py", line 60, in <lambda>
    return (lambda: direction(orm))
  File "/usr/local/www/freenasUI/../freenasUI/services/migrations/0184_auto__del_fiberchanneltotarget__add_fibrechanneltotarget.py", line 11, in forwards
    db.rename_table(u'services_fiberchanneltotarget', u'services_fibrechanneltotarget')
  File "/usr/local/lib/python2.7/site-packages/south/db/generic.py", line 47, in _cache_clear
    return func(self, table, *args, **opts)
  File "/usr/local/lib/python2.7/site-packages/south/db/generic.py", line 375, in rename_table
    self.execute(self.rename_table_sql % params)
  File "/usr/local/lib/python2.7/site-packages/south/db/generic.py", line 282, in execute
    cursor.execute(sql, params)
  File "/usr/local/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python2.7/site-packages/django/db/utils.py", line 99, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/usr/local/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
    return self.cursor.execute(sql, params)
  File "/usr/local/www/freenasUI/../freenasUI/freeadmin/sqlite3_ha/base.py", line 386, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such table: services_fiberchanneltotarget
 

ChiknNutz

Patron
Joined
Nov 6, 2015
Messages
217
Got it, many thanks!
 
Status
Not open for further replies.
Top