Project

General

Profile

Bug #10513

update failed from TrueNAS 9.3-STABLE to latest nightly train

Added by Lilit Babalikhyan about 5 years ago. Updated about 3 years ago.

Status:
Closed: Not To Be Fixed
Priority:
Important
Assignee:
-
Category:
OS
Target version:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Good news is that alert system works:

CRITICAL: Update failed. Check /data/update.failed for further details.

Josh and William noted that switching between the trains is not supported, but maybe the error gives some insight in case same failure happens in a legitimate upgrade.

The /data/upgrade.failed file

Installed 0 object(s) from 0 fixture(s)
Running migrations for failover:
- Nothing to migrate.
- Loading initial data for failover.
Installed 0 object(s) from 0 fixture(s)
Running migrations for system:
- Nothing to migrate.
- Loading initial data for system.
Installed 0 object(s) from 0 fixture(s)
Running migrations for sharing:
- Nothing to migrate.
- Loading initial data for sharing.
Installed 0 object(s) from 0 fixture(s)
Running migrations for plugins:
- Nothing to migrate.
- Loading initial data for plugins.
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 account:
- Nothing to migrate.
- Loading initial data for account.
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 network:
- Nothing to migrate.
- Loading initial data for network.
Installed 0 object(s) from 0 fixture(s)
Running migrations for services:
! Migration services:0181_auto__add_field_snmp_snmp_v3_authtype__add_field_snmp_snmp_v3_privprot should not have been applie
d before services:0180_auto__del_unique_iscsitargettoextent_iscsi_extent__add_unique_iscsitar but was.
! Migration services:0181_auto__add_field_snmp_snmp_v3_authtype__add_field_snmp_snmp_v3_privprot should not have been applie
d before services:0180_auto__del_unique_iscsitargettoextent_iscsi_extent__add_unique_iscsitar but was.
! Migration services:0181_auto__add_field_snmp_snmp_v3_authtype__add_field_snmp_snmp_v3_privprot should not have been applie
d before services:0180_auto__del_unique_iscsitargettoextent_iscsi_extent__add_unique_iscsitar but was.
! Migration services:0181_auto__add_field_snmp_snmp_v3_authtype__add_field_snmp_snmp_v3_privprot should not have been applie
d before services:0180_auto__del_unique_iscsitargettoextent_iscsi_extent__add_unique_iscsitar but was.
! Migration services:0181_auto__add_field_snmp_snmp_v3_authtype__add_field_snmp_snmp_v3_privprot should not have been applie
d before services:0180_auto__del_unique_iscsitargettoextent_iscsi_extent__add_unique_iscsitar but was.
! Migration services:0181_auto__add_field_snmp_snmp_v3_authtype__add_field_snmp_snmp_v3_privprot should not have been applie
d before services:0180_auto__del_unique_iscsitargettoextent_iscsi_extent__add_unique_iscsitar but was.
! Migration services:0181_auto__add_field_snmp_snmp_v3_authtype__add_field_snmp_snmp_v3_privprot should not have been applie
d before services:0180_auto__del_unique_iscsitargettoextent_iscsi_extent__add_unique_iscsitar but was.
! Migration services:0181_auto__add_field_snmp_snmp_v3_authtype__add_field_snmp_snmp_v3_privprot should not have been applie
d before services:0180_auto__del_unique_iscsitargettoextent_iscsi_extent__add_unique_iscsitar but was.
! Migration services:0181_auto__add_field_snmp_snmp_v3_authtype__add_field_snmp_snmp_v3_privprot should not have been applie
d before services:0180_auto__del_unique_iscsitargettoextent_iscsi_extent__add_unique_iscsitar but was.
! Migration services:0181_auto__add_field_snmp_snmp_v3_authtype__add_field_snmp_snmp_v3_privprot should not have been applie
d before services:0180_auto__del_unique_iscsitargettoextent_iscsi_extent__add_unique_iscsitar but was.
! Migration services:0181_auto__add_field_snmp_snmp_v3_authtype__add_field_snmp_snmp_v3_privprot should not have been applie
d before services:0180_auto__del_unique_iscsitargettoextent_iscsi_extent__add_unique_iscsitar but was.
- Migrating forwards to 0183_auto__chg_field_fiberchanneltotarget_fc_target.
> services:0169_auto__add_field_iscsitargetportal_iscsi_target_portal_discoveryauthmet
> services:0170_copy_discovery_fields
- Migration 'services:0170_copy_discovery_fields' is marked for no-dry-run.
> services:0171_auto__del_field_iscsitargetglobalconfiguration_iscsi_discoveryauthmeth
> services:0172_auto__add_field_iscsitargetextent_iscsi_target_extent_serial
! Error found during real run of migration! Aborting.

! Migration services:0181_auto__add_field_snmp_snmp_v3_authtype__add_field_snmp_snmp_v3_privprot should not have been applie
d before services:0180_auto__del_unique_iscsitargettoextent_iscsi_extent__add_unique_iscsitar but was.
- Migrating forwards to 0183_auto__chg_field_fiberchanneltotarget_fc_target.
> services:0169_auto__add_field_iscsitargetportal_iscsi_target_portal_discoveryauthmet
> services:0170_copy_discovery_fields
- Migration 'services:0170_copy_discovery_fields' is marked for no-dry-run.
> services:0171_auto__del_field_iscsitargetglobalconfiguration_iscsi_discoveryauthmeth
> services:0172_auto__add_field_iscsitargetextent_iscsi_target_extent_serial
! 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 (one that supports DDL transactions)
! NOTE: The error which caused the migration to fail is further up.
Error in migration: services:0172_auto__add_field_iscsitargetextent_iscsi_target_extent_serial
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/0172_auto__add_field_iscsitargetextent_iscsi_target_extent_
serial.py", line 23, in forwards
for target in orm['services.iSCSITarget'].objects.all():
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 96, in iter
self._fetch_all()
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 857, in _fetch_all
self._result_cache = list(self.iterator())
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 220, in iterator
for row in compiler.results_iter():
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 713, in results_iter
for rows in self.execute_sql(MULTI):
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 786, in execute_sql

update.failed (9.16 KB) update.failed Lilit Babalikhyan, 07/09/2015 11:01 AM
bootHistory_z20b.png (181 KB) bootHistory_z20b.png Lilit Babalikhyan, 07/09/2015 11:26 AM
3305

History

#1 Updated by William Grzybowski about 5 years ago

The traceback seems incomplete.

#2 Updated by Lilit Babalikhyan about 5 years ago

You are right. Attaching the file from http://z20ref-b.sjlab1.ixsystems.com/

#3 Updated by William Grzybowski about 5 years ago

From our email you said the opposite.

From Nightly to STABLE, in this ticket its from STABLE to nightly. Which one is the correct? Has this machine ever been in nightly? (it seems so)

#4 Updated by Lilit Babalikhyan about 5 years ago

3305

This machine have mostly been on nightly train, you can check in the system's boot history. Yesterday I updated it from nightly to stable. ISCSI stopped working. I tried to activate the previous boot, even worse. So today morning I upgraded from the yesterday's stable upgrade to nightly and got the upgrade error in alert.

Attached is the boot history screenshot

#5 Updated by William Grzybowski about 5 years ago

  • Status changed from Unscreened to Closed: Not To Be Fixed

In that case there is nothing we can do.

There is already a ticket to prevent downgrades.

Thanks

#6 Avatar?id=14398&size=24x24 Updated by Kris Moore about 3 years ago

  • Target version changed from 49 to N/A

Also available in: Atom PDF