Thanks for the output, I checked my update.failed and had the same failure.
Code:% cat update.failed 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.6/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.6/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.6/site-packages/django/core/management/base.py", line 294, in run_from_argv self.execute(*args, **cmd_options) File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 345, in execute output = self.handle(*args, **options) File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 86, in handle executor.loader.check_consistent_history(connection) File "/usr/local/lib/python3.6/site-packages/django/db/migrations/loader.py", line 292, in check_consistent_history connection.alias, django.db.migrations.exceptions.InconsistentMigrationHistory: Migration system.0022_cert_serial is applied before its dependency system.0021_merge_20180507_1315 on database 'default'.
but had differing results from the showmigrations
Code:system [X] 0001_initial [X] 0002_auto_consulalerts [X] 0003_auto_20170411_1445 [X] 0004_auto_20170503_0608 [X] 0005_auto_20170712_1137 [X] 0006_update_tun_var_size [X] 0007_auto_201708211858 [X] 0008_auto_20170906_2335 [X] 0009_auto_20171023_2159 [X] 0017_auto_20180219_1615 [X] 0020_auto_20180502_1200 [X] 0016_encrypt_cloud_credentials [ ] 0018_merge_20180409_1538 [ ] 0019_increase_motd [ ] 0021_merge_20180507_1315 [X] 0022_cert_serial [ ] 0022_cloud_sync [X] 0021_merge_20180612_2332 [ ] 0010_syscons_to_vt [ ] 0011_auto_20180219_1615 [ ] 0012_add_filesystem_model [ ] 0013_rename_consulalerts_to_alertservice [ ] 0014_alert_default_settings [ ] 0015_alert [ ] 0023_merge_20180612_2359 [ ] 0024_rename_bes [ ] 0025_remove_screensaver
May just submit a bug report and rollback rather then risk blowing something up...
I actually think mine looked identical to that, however i can't be sure. I definitely had these three checked
[X] 0016_encrypt_cloud_credentials
[ ] 0018_merge_20180409_1538
[ ] 0019_increase_motd
[ ] 0021_merge_20180507_1315
[X] 0022_cert_serial
[ ] 0022_cloud_sync
[X] 0021_merge_20180612_2332
and you're also failing on the exact same file is me.
But, this is not advice, good luck.