Skip to content

Instantly share code, notes, and snippets.

@darkain
Created December 21, 2019 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkain/7d7536fe884683f846737a7ebe865340 to your computer and use it in GitHub Desktop.
Save darkain/7d7536fe884683f846737a7ebe865340 to your computer and use it in GitHub Desktop.
FreeNAS 11.3-RC1 update.failed
Operations to perform:
Apply all migrations: account, auth, contenttypes, directoryservice, jails, network, plugins, services, sessions, sharing, storage, system, tasks, vm
Running migrations:
Applying account.0010_auto_20190221_0824... OK
Applying account.0011_remove_netdata_user... OK
Applying directoryservice.0006_certificate_model... OK
Applying directoryservice.0007_migrate_to_nslcd... OK
Applying directoryservice.0008__alter_kerberos_principal... OK
Applying directoryservice.0009__add_createcomputer_to_ad... OK
Applying directoryservice.0010_encrypt_keytabs... OK
Applying directoryservice.0011_add_new_idmap_model... OK
Applying directoryservice.0012_remove_unix_extensions... OK
Applying directoryservice.0013_add_disable_freenas_cache_to_ldap... OK
Applying directoryservice.0014_remove_sysctls... OK
Applying directoryservice.0015_add_ldaps_validation... OK
Applying network.0009_move_options_and_mtu... OK
Applying network.0010_auto_20181114_1129... OK
Applying network.0011_disable_offload_capabilities... OK
Applying system.0029_add_organizational_unit... OK
Applying system.0030_ip_fields... OK
Applying system.0031_adv_boot_scrub... OK
Applying system.0032_remove_protocol_field... OK
Applying system.0033_acme_models... OK
Applying system.0034_keychain_credential... OK
Applying system.0035_vmware_snapshot_alert... OK
Applying system.0036_remove_parseable_cert_attrs... OK
Applying system.0037_reporting... OK
Applying system.0038_merge_20190226_1008... OK
Applying system.0039_alerts_classes... OK
Applying services.0021_add_ups_hostsync_field... OK
Applying services.0022_remove_smb_doscharset... OK
Applying services.0023_configurable_netdata_metrics... OK
Applying services.0024_merge_20181206_0849... OK
Applying services.0025_merge_20190114_1159... OK
Applying services.0026_s3_fields... OK
Applying services.0026_delete_vm_kmem_size_tunable... OK
Applying services.0027_kill_domaincontroller... OK
Applying services.0027_auto_20190307_1006... OK
Applying services.0028_merge_20190316_0802... OK
Applying services.0029_merge_20190410_0351... OK
Applying services.0030_merge_20190422_0554... OK
Applying services.0031_remove_service_monitor... OK
Applying services.0032_enabled... OK
Applying services.0033_ups_shutdowncmd... OK
Applying services.0034_remove_extra_fields_smbconf... OK
Applying services.0035_remove_asigra... OK
Applying services.0036_remove_smart_email... OK
Applying services.0037_remove_netdata... OK
Applying services.0038_disable_capabilities... OK
Applying sharing.0015_add_shadow_copy_checkbox... OK
Applying sharing.0016_enabled... OK
Applying sharing.0017_add_share_acl... OK
Applying sharing.0018_add_vuid_to_afp_tm... OK
Applying storage.0010_auto_20180618_0340... OK
Applying storage.0011_disk_temperatures... OK
Applying storage.0012_new_periodic_snapshot_task... OK
Applying storage.0013_new_replication_task...Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/local/www/freenasUI/freeadmin/sqlite3_ha/base.py", line 381, in execute
execute = super().execute(query, params)
sqlite3.IntegrityError: NOT NULL constraint failed: storage_replication.repl_compression
The above exception was the direct cause of the following exception:
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/python3.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 345, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/migrate.py", line 204, in handle
fake_initial=fake_initial,
File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 115, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 145, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 244, in apply_migration
state = migration.apply(state, schema_editor)
File "/usr/local/lib/python3.7/site-packages/django/db/migrations/migration.py", line 129, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/usr/local/lib/python3.7/site-packages/django/db/migrations/operations/special.py", line 189, in database_forwards
self.code(from_state.apps, schema_editor)
File "/usr/local/www/freenasUI/storage/migrations/0013_new_replication_task.py", line 31, in repl_compression
replication.save()
File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 796, in save
force_update=force_update, update_fields=update_fields)
File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 824, in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 889, in _save_table
forced_update)
File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 939, in _do_update
return filtered._update(values) > 0
File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 654, in _update
return query.get_compiler(self.db).execute_sql(CURSOR)
File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1148, in execute_sql
cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)
File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 835, in execute_sql
cursor.execute(sql, params)
File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/local/lib/python3.7/site-packages/django/utils/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/local/www/freenasUI/freeadmin/sqlite3_ha/base.py", line 381, in execute
execute = super().execute(query, params)
django.db.utils.IntegrityError: NOT NULL constraint failed: storage_replication.repl_compression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment