Update from 9.3 - 9.10 failed, update to latest 9.3 doesn't fix

Status
Not open for further replies.

Patrick Ryan

Dabbler
Joined
Dec 18, 2014
Messages
25
I was running a fairly out-of-date revision of 9.3 (late 2014) and tried to update to 9.10 a couple of days ago, using the GUI to switch to the 9.10 train. On reboot, the system showed errors on the console and would not boot. I was able to attach a keyboard and select the prior BE to boot the system as per https://forums.freenas.org/index.php?threads/error-updating-9-3-to-9-10.42733/. I then changed back to the 9.3 train in the GUI, and applied the recommended 9.3 updates. The system is now running build FreeNAS-9.3-STABLE-201605170422, but still says the update failed. The contents of /data/update.failed are:

Code:
ps: cannot mmap corefile
ps: empty file: Invalid argument
ps: empty file: Invalid argument
ps: empty file: Invalid argument
ps: empty file: Invalid argument
ps: empty file: Invalid argument
ps: empty file: Invalid argument
ps: empty file: Invalid argument
ps: empty file: Invalid argument
ps: empty file: Invalid argument
ps: empty file: Invalid argument
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 directoryservice:
- Migrating forwards to 0057_auto__add_field_activedirectory_ad_disable_freenas_cache.
> directoryservice:0041_auto__add_field_ldap_ldap_schema
> directoryservice:0042_auto__add_kerberossettings
> directoryservice:0043_auto__chg_field_ldap_ldap_binddn
> directoryservice:0044_auto__add_field_idmap_rfc2307_idmap_rfc2307_ssl__add_field_idmap_rfc23
> directoryservice:0045_auto__add_field_activedirectory_ad_netbiosname_b
> directoryservice:0045_auto__add_field_idmap_rfc2307_idmap_rfc2307_ldap_user_dn_password
> directoryservice:0046_auto__add_kerberosprincipal
> directoryservice:0047_migrate_kerberos_keytabs_to_principals
- Migration 'directoryservice:0047_migrate_kerberos_keytabs_to_principals' is marked for no-dry-run.
> directoryservice:0048_auto__add_field_activedirectory_ad_kerberos_principal__add_field_ldap_
> directoryservice:0049_populate_kerberos_principals
- Migration 'directoryservice:0049_populate_kerberos_principals' is marked for no-dry-run.
> directoryservice:0050_auto__del_field_activedirectory_ad_kerberos_keytab__del_field_ldap_lda
> directoryservice:0051_auto__del_field_kerberoskeytab_keytab_principal
> directoryservice:0052_change_ad_timeout_defaults
- Migration 'directoryservice:0052_change_ad_timeout_defaults' is marked for no-dry-run.
> directoryservice:0053_auto__del_field_activedirectory_ad_netbiosname__add_field_activedirect
> directoryservice:0054_auto__add_field_activedirectory_ad_allow_dns_updates
> directoryservice:0055_auto__add_field_ldap_ldap_netbiosname_a__add_field_ldap_ldap_netbiosna
> directoryservice:0056_migrate_ldap_netbiosname
- Migration 'directoryservice:0056_migrate_ldap_netbiosname' is marked for no-dry-run.
> directoryservice:0057_auto__add_field_activedirectory_ad_disable_freenas_cache
- Loading initial data for directoryservice.
Installed 0 object(s) from 0 fixture(s)
Running migrations for vcp:
- Migrating forwards to 0002_auto__add_vcenterconfiguration.
> vcp:0001_initial
- Migration 'vcp:0001_initial' is marked for no-dry-run.
> vcp:0002_auto__add_vcenterconfiguration
- Loading initial data for vcp.
Installed 0 object(s) from 0 fixture(s)
Running migrations for support:
- Migrating forwards to 0003_auto__add_field_support_support_email.
> support:0003_auto__add_field_support_support_email
- Loading initial data for support.
Installed 0 object(s) from 0 fixture(s)
Running migrations for services:
- Migrating forwards to 0190_dup_webdav.
> storage:0051_auto__add_field_task_task_excludesystemdataset
> services:0156_auto__add_field_iscsitargetextent_iscsi_target_extent_blocksize__add_f
> services:0157_auto__del_field_iscsitarget_iscsi_target_logical_blocksize
> services:0158_auto__add_field_afp_afp_srv_homename
> services:0159_auto__add_field_nfs_nfs_srv_v4_krb
> services:0160_pwencrypt
- Migration 'services:0160_pwencrypt' is marked for no-dry-run.
> services:0161_auto__chg_field_cifs_cifs_srv_bindip
> services:0162_auto__add_field_iscsitargetextent_iscsi_target_extent_rpm
> services:0163_auto__add_field_ssh_ssh_host_dsa_key_cert_pub__add_field_ssh_ssh_host_
> services:0164_nfs_srv_v4_krb_fix
- Migration 'services:0164_nfs_srv_v4_krb_fix' is marked for no-dry-run.
> services:0165_auto__add_field_snmp_snmp_v3__add_field_snmp_snmp_v3_username__add_fie
> services:0165_fix_ddns_domains_delimiters
- Migration 'services:0165_fix_ddns_domains_delimiters' is marked for no-dry-run.
> services:0166_pwencrypt
- Migration 'services:0166_pwencrypt' is marked for no-dry-run.
> services:0167_auto__add_field_ups_ups_powerdown
> services:0168_snmp_v3_literal
- Migration 'services:0168_snmp_v3_literal' is marked for no-dry-run.
> 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
> services:0173_auto__del_field_iscsitarget_iscsi_target_serial
> services:0174_auto__add_iscsitargetgroups
> services:0175_target_to_groups
- Migration 'services:0175_target_to_groups' is marked for no-dry-run.
> services:0176_auto__del_field_iscsitarget_iscsi_target_portalgroup__del_field_iscsit
> services:0177_auto__del_field_iscsitargetgroups_iscsi_target_type
> services:0178_auto__add_fiberchanneltotarget
> services:0179_auto__add_field_iscsitarget_iscsi_target_mode
> services:0180_auto__del_unique_iscsitargettoextent_iscsi_extent__add_unique_iscsitar
> services:0181_auto__add_field_snmp_snmp_v3_authtype__add_field_snmp_snmp_v3_privprot
> services:0182_auto__add_unique_iscsitargetgroups_iscsi_target_iscsi_target_portalgro
> services:0183_auto__chg_field_fiberchanneltotarget_fc_target
> services:0184_auto__del_fiberchanneltotarget__add_fibrechanneltotarget
> services:0185_auto__add_field_iscsitargetextent_iscsi_target_extent_ro
> services:0186_auto__add_field_ssh_ssh_kerberosauth
> services:0187_auto__add_field_nfs_nfs_srv_16
> services:0188_auto__add_field_ssh_ssh_bindiface
> services:0189_auto__add_field_nfs_nfs_srv_v4_v3owner
> services:0190_dup_webdav
- Migration 'services:0190_dup_webdav' is marked for no-dry-run.
- Loading initial data for services.
Installed 0 object(s) from 0 fixture(s)
Running migrations for account:
- Migrating forwards to 0023_auto__add_field_bsdusers_bsdusr_microsoft_account.
> account:0023_auto__add_field_bsdusers_bsdusr_microsoft_account
- Loading initial data for account.
Installed 0 object(s) from 0 fixture(s)
Running migrations for network:
- Migrating forwards to 0018_auto__add_field_alias_alias_vip__add_field_alias_alias_v4address_b__ad.
> network:0016_auto__add_field_interfaces_int_vip__add_field_interfaces_int_vhid__add
> network:0017_auto__add_field_globalconfiguration_gc_hostname_b
> network:0018_auto__add_field_alias_alias_vip__add_field_alias_alias_v4address_b__ad
- Loading initial data for network.
Installed 0 object(s) from 0 fixture(s)
Running migrations for sharing:
- Migrating forwards to 0034_fix_wizard_cifs_vfsobjects.
> sharing:0032_auto__add_field_cifs_share_cifs_storage_task
> sharing:0033_add_periodic_snapshot_task
- Migration 'sharing:0033_add_periodic_snapshot_task' is marked for no-dry-run.
> sharing:0034_fix_wizard_cifs_vfsobjects
- Migration 'sharing:0034_fix_wizard_cifs_vfsobjects' is marked for no-dry-run.
- 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 system:
- Migrating forwards to 0100_auto__chg_field_tunable_tun_value.
> system:0093_auto__add_field_advanced_adv_boot_scrub
> system:0094_add_model_backup
> system:0095_auto__add_field_advanced_adv_periodic_notifyuser
> system:0096_auto__add_field_systemdataset_sys_uuid_b
> system:0097_auto__add_field_alert_timestamp
> system:0098_auto__add_field_alert_node__del_unique_alert_message_id__add_unique_al
> system:0099_auto__add_field_certificate_cert_chain__add_field_certificateauthority
> system:0099_email_pwenc
- Migration 'system:0099_email_pwenc' is marked for no-dry-run.
! 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:   (migration cannot be dry-run; cannot discover commands)
! 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: system:0099_email_pwenc
The following content types are stale and need to be deleted:

    system | registration

Any objects related to these content types by a foreign key will also
be deleted. Are you sure you want to delete these content types?
If you're unsure, answer 'no'.

    Type 'yes' to continue, or 'no' to cancel: 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/system/migrations/0099_email_pwenc.py", line 24, in forwards
    do_encrypt(orm['system.Email'], 'em_pass')
  File "/usr/local/www/freenasUI/../freenasUI/system/migrations/0099_email_pwenc.py", line 18, in do_encrypt
    setattr(obj, field, notifier().pwenc_encrypt(getattr(obj, field)))
  File "/usr/local/www/freenasUI/../freenasUI/middleware/notifier.py", line 5740, in pwenc_encrypt
    nonce = get_random_bytes(8)
  File "/usr/local/lib/python2.7/site-packages/Crypto/Random/__init__.py", line 41, in get_random_bytes
    return _UserFriendlyRNG.get_random_bytes(n)
  File "/usr/local/lib/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 228, in get_random_bytes
    return _get_singleton().read(n)
  File "/usr/local/lib/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 215, in _get_singleton
    _singleton = _LockingUserFriendlyRNG()
  File "/usr/local/lib/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 159, in __init__
    _UserFriendlyRNG.__init__(self)
  File "/usr/local/lib/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 86, in __init__
    self._ec = _EntropyCollector(self._fa)
  File "/usr/local/lib/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 53, in __init__
    self._osrng = OSRNG.new()
  File "/usr/local/lib/python2.7/site-packages/Crypto/Random/OSRNG/posix.py", line 83, in new
    return DevURandomRNG(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/Crypto/Random/OSRNG/posix.py", line 44, in __init__
    f = open(self.name, "rb", 0)
IOError: [Errno 2] No such file or directory: '/dev/urandom'
Exception AttributeError: "'DevURandomRNG' object has no attribute 'closed'" in <bound method DevURandomRNG.__del__ of <Crypto.Random.OSRNG.posix.DevURandomRNG object at 0x8172cf610>> ignored


The system is working, more or less, but the terminal shows ReplicationStatusAlert "no such column" errors. More importantly, my rsync tasks are now broken in the GUI ("Unable to load /api/v1.0/tasks/rsync/ status: 500") preventing the system from doing its nightly off-site backup. Interestingly, when I simply applied the outstanding updates my other system from the same 2014-era 9.3 to 201605170422 (no 9.10 attempt yet), the update also reports as failed, but with a different error log - and its rsync tasks aren't broken:

Code:
ps: cannot mmap corefile
ps: empty file: Invalid argument
ps: empty file: Invalid argument
ps: empty file: Invalid argument
ps: empty file: Invalid argument
ps: empty file: Invalid argument
ps: empty file: Invalid argument
ps: empty file: Invalid argument
ps: empty file: Invalid argument
ps: empty file: Invalid argument
ps: empty file: Invalid argument
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:
- Migrating forwards to 0003_auto__add_field_support_support_email.
> support:0003_auto__add_field_support_support_email
- Loading initial data for support.
Installed 0 object(s) from 0 fixture(s)
Running migrations for vcp:
- Migrating forwards to 0002_auto__add_vcenterconfiguration.
> vcp:0001_initial
- Migration 'vcp:0001_initial' is marked for no-dry-run.
> vcp:0002_auto__add_vcenterconfiguration
- Loading initial data for vcp.
Installed 0 object(s) from 0 fixture(s)
Running migrations for jails:
- Migrating forwards to 0033_add_mtree.
> jails:0031_jc_collectionurl_to_9_3
- Migration 'jails:0031_jc_collectionurl_to_9_3' is marked for no-dry-run.
> jails:0032_auto__add_field_jailtemplate_jt_mtree
> jails:0033_add_mtree
- Migration 'jails:0033_add_mtree' is marked for no-dry-run.
- Loading initial data for jails.
Installed 0 object(s) from 0 fixture(s)
Running migrations for services:
- Migrating forwards to 0190_dup_webdav.
> storage:0051_auto__add_field_task_task_excludesystemdataset
> services:0156_auto__add_field_iscsitargetextent_iscsi_target_extent_blocksize__add_f
> services:0157_auto__del_field_iscsitarget_iscsi_target_logical_blocksize
> services:0158_auto__add_field_afp_afp_srv_homename
> services:0159_auto__add_field_nfs_nfs_srv_v4_krb
> services:0160_pwencrypt
- Migration 'services:0160_pwencrypt' is marked for no-dry-run.
> services:0161_auto__chg_field_cifs_cifs_srv_bindip
> services:0162_auto__add_field_iscsitargetextent_iscsi_target_extent_rpm
> services:0163_auto__add_field_ssh_ssh_host_dsa_key_cert_pub__add_field_ssh_ssh_host_
> services:0164_nfs_srv_v4_krb_fix
- Migration 'services:0164_nfs_srv_v4_krb_fix' is marked for no-dry-run.
> services:0165_auto__add_field_snmp_snmp_v3__add_field_snmp_snmp_v3_username__add_fie
> services:0165_fix_ddns_domains_delimiters
- Migration 'services:0165_fix_ddns_domains_delimiters' is marked for no-dry-run.
> services:0166_pwencrypt
- Migration 'services:0166_pwencrypt' is marked for no-dry-run.
> services:0167_auto__add_field_ups_ups_powerdown
> services:0168_snmp_v3_literal
- Migration 'services:0168_snmp_v3_literal' is marked for no-dry-run.
> 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
> services:0173_auto__del_field_iscsitarget_iscsi_target_serial
> services:0174_auto__add_iscsitargetgroups
> services:0175_target_to_groups
- Migration 'services:0175_target_to_groups' is marked for no-dry-run.
> services:0176_auto__del_field_iscsitarget_iscsi_target_portalgroup__del_field_iscsit
> services:0177_auto__del_field_iscsitargetgroups_iscsi_target_type
> services:0178_auto__add_fiberchanneltotarget
> services:0179_auto__add_field_iscsitarget_iscsi_target_mode
> services:0180_auto__del_unique_iscsitargettoextent_iscsi_extent__add_unique_iscsitar
> services:0181_auto__add_field_snmp_snmp_v3_authtype__add_field_snmp_snmp_v3_privprot
> services:0182_auto__add_unique_iscsitargetgroups_iscsi_target_iscsi_target_portalgro
> services:0183_auto__chg_field_fiberchanneltotarget_fc_target
> services:0184_auto__del_fiberchanneltotarget__add_fibrechanneltotarget
> services:0185_auto__add_field_iscsitargetextent_iscsi_target_extent_ro
> services:0186_auto__add_field_ssh_ssh_kerberosauth
> services:0187_auto__add_field_nfs_nfs_srv_16
> services:0188_auto__add_field_ssh_ssh_bindiface
> services:0189_auto__add_field_nfs_nfs_srv_v4_v3owner
> services:0190_dup_webdav
- Migration 'services:0190_dup_webdav' is marked for no-dry-run.
- Loading initial data for services.
Installed 0 object(s) from 0 fixture(s)
Running migrations for storage:
- Migrating forwards to 0055_auto__del_field_replication_repl_resetonce.
> storage:0052_auto__del_field_task_task_excludesystemdataset
> storage:0053_auto__add_field_replication_repl_followdelete
> storage:0054_migrate_follow_delete
> storage:0055_auto__del_field_replication_repl_resetonce
- Loading initial data for storage.
Installed 0 object(s) from 0 fixture(s)
Running migrations for tasks:
- Migrating forwards to 0004_populate_rsync_delayupdates.
> tasks:0003_auto__add_field_rsync_rsync_delayupdates
> tasks:0004_populate_rsync_delayupdates
- Migration 'tasks:0004_populate_rsync_delayupdates' is marked for no-dry-run.
- Loading initial data for tasks.
Installed 0 object(s) from 0 fixture(s)
Running migrations for network:
- Migrating forwards to 0018_auto__add_field_alias_alias_vip__add_field_alias_alias_v4address_b__ad.
> network:0016_auto__add_field_interfaces_int_vip__add_field_interfaces_int_vhid__add
> network:0017_auto__add_field_globalconfiguration_gc_hostname_b
> network:0018_auto__add_field_alias_alias_vip__add_field_alias_alias_v4address_b__ad
- Loading initial data for network.
Installed 0 object(s) from 0 fixture(s)
Running migrations for directoryservice:
- Migrating forwards to 0057_auto__add_field_activedirectory_ad_disable_freenas_cache.
> directoryservice:0041_auto__add_field_ldap_ldap_schema
> directoryservice:0042_auto__add_kerberossettings
> directoryservice:0043_auto__chg_field_ldap_ldap_binddn
> directoryservice:0044_auto__add_field_idmap_rfc2307_idmap_rfc2307_ssl__add_field_idmap_rfc23
> directoryservice:0045_auto__add_field_activedirectory_ad_netbiosname_b
> directoryservice:0045_auto__add_field_idmap_rfc2307_idmap_rfc2307_ldap_user_dn_password
> directoryservice:0046_auto__add_kerberosprincipal
> directoryservice:0047_migrate_kerberos_keytabs_to_principals
- Migration 'directoryservice:0047_migrate_kerberos_keytabs_to_principals' is marked for no-dry-run.
> directoryservice:0048_auto__add_field_activedirectory_ad_kerberos_principal__add_field_ldap_
> directoryservice:0049_populate_kerberos_principals
- Migration 'directoryservice:0049_populate_kerberos_principals' is marked for no-dry-run.
> directoryservice:0050_auto__del_field_activedirectory_ad_kerberos_keytab__del_field_ldap_lda
> directoryservice:0051_auto__del_field_kerberoskeytab_keytab_principal
> directoryservice:0052_change_ad_timeout_defaults
- Migration 'directoryservice:0052_change_ad_timeout_defaults' is marked for no-dry-run.
> directoryservice:0053_auto__del_field_activedirectory_ad_netbiosname__add_field_activedirect
> directoryservice:0054_auto__add_field_activedirectory_ad_allow_dns_updates
> directoryservice:0055_auto__add_field_ldap_ldap_netbiosname_a__add_field_ldap_ldap_netbiosna
> directoryservice:0056_migrate_ldap_netbiosname
- Migration 'directoryservice:0056_migrate_ldap_netbiosname' is marked for no-dry-run.
> directoryservice:0057_auto__add_field_activedirectory_ad_disable_freenas_cache
- Loading initial data for directoryservice.
Installed 0 object(s) from 0 fixture(s)
Running migrations for account:
- Migrating forwards to 0023_auto__add_field_bsdusers_bsdusr_microsoft_account.
> account:0023_auto__add_field_bsdusers_bsdusr_microsoft_account
- Loading initial data for account.
Installed 0 object(s) from 0 fixture(s)
Running migrations for sharing:
- Migrating forwards to 0034_fix_wizard_cifs_vfsobjects.
> sharing:0032_auto__add_field_cifs_share_cifs_storage_task
> sharing:0033_add_periodic_snapshot_task
- Migration 'sharing:0033_add_periodic_snapshot_task' is marked for no-dry-run.
> sharing:0034_fix_wizard_cifs_vfsobjects
- Migration 'sharing:0034_fix_wizard_cifs_vfsobjects' is marked for no-dry-run.
- Loading initial data for sharing.
Installed 0 object(s) from 0 fixture(s)
Running migrations for system:
- Migrating forwards to 0100_auto__chg_field_tunable_tun_value.
> system:0093_auto__add_field_advanced_adv_boot_scrub
> system:0094_add_model_backup
> system:0095_auto__add_field_advanced_adv_periodic_notifyuser
> system:0096_auto__add_field_systemdataset_sys_uuid_b
> system:0097_auto__add_field_alert_timestamp
> system:0098_auto__add_field_alert_node__del_unique_alert_message_id__add_unique_al
> system:0099_auto__add_field_certificate_cert_chain__add_field_certificateauthority
> system:0099_email_pwenc
- Migration 'system:0099_email_pwenc' is marked for no-dry-run.
! 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:   (migration cannot be dry-run; cannot discover commands)
! 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: system:0099_email_pwenc
The following content types are stale and need to be deleted:

    system | registration

Any objects related to these content types by a foreign key will also
be deleted. Are you sure you want to delete these content types?
If you're unsure, answer 'no'.

    Type 'yes' to continue, or 'no' to cancel: 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/system/migrations/0099_email_pwenc.py", line 24, in forwards
    do_encrypt(orm['system.Email'], 'em_pass')
  File "/usr/local/www/freenasUI/../freenasUI/system/migrations/0099_email_pwenc.py", line 18, in do_encrypt
    setattr(obj, field, notifier().pwenc_encrypt(getattr(obj, field)))
  File "/usr/local/www/freenasUI/../freenasUI/middleware/notifier.py", line 5740, in pwenc_encrypt
    nonce = get_random_bytes(8)
  File "/usr/local/lib/python2.7/site-packages/Crypto/Random/__init__.py", line 41, in get_random_bytes
    return _UserFriendlyRNG.get_random_bytes(n)
  File "/usr/local/lib/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 228, in get_random_bytes
    return _get_singleton().read(n)
  File "/usr/local/lib/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 215, in _get_singleton
    _singleton = _LockingUserFriendlyRNG()
  File "/usr/local/lib/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 159, in __init__
    _UserFriendlyRNG.__init__(self)
  File "/usr/local/lib/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 86, in __init__
    self._ec = _EntropyCollector(self._fa)
  File "/usr/local/lib/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 53, in __init__
    self._osrng = OSRNG.new()
  File "/usr/local/lib/python2.7/site-packages/Crypto/Random/OSRNG/posix.py", line 83, in new
    return DevURandomRNG(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/Crypto/Random/OSRNG/posix.py", line 44, in __init__
    f = open(self.name, "rb", 0)
IOError: [Errno 2] No such file or directory: '/dev/urandom'
Exception AttributeError: "'DevURandomRNG' object has no attribute 'closed'" in <bound method DevURandomRNG.__del__ of <Crypto.Random.OSRNG.posix.DevURandomRNG object at 0x818251e10>> ignored


It seems like this issue is related to the other reports of similar failures, like https://bugs.freenas.org/issues/14985 and https://bugs.freenas.org/issues/14602 but they're all flagged as "Resolved". Is this a new/different issue? Should I post a bug report? (And if not, how do I fix it?)
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
There is something wrong with your system. I'd start with getting a new boot device, doing a fresh install of FreeNAS 9.10 (if that's what you want to run) and then upload your config file.
 

Patrick Ryan

Dabbler
Joined
Dec 18, 2014
Messages
25
There is something wrong with your system. I'd start with getting a new boot device, doing a fresh install of FreeNAS 9.10 (if that's what you want to run) and then upload your config file.
You mean, for example, put the 9.10 installer on a USB stick and boot the FreeNAS from that? Is there any chance doing an "Upgrade Install" will work, or does it need to be a "Fresh Install"? If it's got to be a fresh install, I assume the contents of my encrypted array won't be affected, will they? (Dumb question: I'm talking about FreeNAS Mini's here. I assume the OS is installed somewhere other than on the HDD array, right? An internal flash drive, I think?)
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
If its a Mini then the boot device is an SSD. You should consider doing a fresh install to the SSD and not a USB stick. I thought the boot device could be bad for the errors, and USB sticks are renowned to suck with FreeNAS.

I thought a fresh install would be a good idea that way you know you don't have some kind of broken OS install.

If you ever worked with a "nightly" build of FreeNAS your config file may also not be compatible with upgrades.

Your encrypted zpool will be fine so long as you have your keys and passwords backed up properly. If you don't you'll reinstall FreeNAS and find that you can no longer access the zpool ever again.
 

Patrick Ryan

Dabbler
Joined
Dec 18, 2014
Messages
25
If its a Mini then the boot device is an SSD. You should consider doing a fresh install to the SSD and not a USB stick. I thought the boot device could be bad for the errors, and USB sticks are renowned to suck with FreeNAS.
I meant, to use a USB-based installer to install the replacement OS on the Mini. Is there a better way to do that?

I thought a fresh install would be a good idea that way you know you don't have some kind of broken OS install.
Fair enough. I think it's pretty clear I do have a broken install.

If you ever worked with a "nightly" build of FreeNAS your config file may also not be compatible with upgrades.
Your encrypted zpool will be fine so long as you have your keys and passwords backed up properly. If you don't you'll reinstall FreeNAS and find that you can no longer access the zpool ever again.
Nope, no interest in the bleeding edge. I have both the geli.key and geli_recovery.key, as well as the passphrase and root password - is there anything else I should have?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Is there a better way to do that?
IPMI, of course. Just load up the ISO in the iKVM application and save yourself the trouble of even getting up.
 

Patrick Ryan

Dabbler
Joined
Dec 18, 2014
Messages
25
Did a fresh install of 9.10 and restored configuration from backups. Initially the encrypted volume wouldn't decrypt, but after disconnecting it and re-importing it with my key and passphrase, it opened. I then had to re-create the CIFS shares, but that was sufficient to restore user access to the shared volumes. Everything else appears to have restored properly. In particular, the rsync tasks re-appeared, and function properly. Fingers crossed, everything appears to be working. Thanks!
 
Status
Not open for further replies.
Top