Upgrading to 9.2.1.6

Status
Not open for further replies.

BahBah

Dabbler
Joined
May 14, 2013
Messages
13
Permission denied: '/data/need-update'

The directory doesn't exist. Are my permissions on /data/ screwed?

drwxrwxr-x 6 root wheel 512 May 20 19:00 data
[root@freenas /data]# ls -la
total 1783
drwxrwxr-x 6 root wheel 512 May 20 19:00 .
drwxr-xr-x 21 root wheel 512 Apr 23 19:53 ..
drwxrwxr-x 2 root operator 512 Apr 10 2013 .snap
-rw-r--r-- 1 root wheel 29 Jul 4 19:02 0005.run_update.sh.log
drwxrwxr-x 2 root wheel 512 Aug 7 2013 crash
-rw-r----- 1 root wheel 212992 Apr 10 2013 factory-v1.db
-rw-r----- 1 root operator 259072 Apr 25 20:27 freenas-v1.db
-rw-r----- 1 root wheel 259072 Apr 25 20:21 freenas-v1.db.bak
-rw-r--r-- 1 root wheel 153600 Jun 17 2013 rrd_dir.tar.bz2.93247
drwxr-xr-x 2 root wheel 512 May 18 2013 ssh
drwxr-xr-x 2 root wheel 512 Apr 25 20:23 zfs
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
And you were upgrading from what version? What is the makeup of your hardware?

My quick advice is to grab a different USB Flash drive and reload it with your previous version, restore the configuration backup you made, and try the update again. If it fails then you need to submit a bug report at https://bugs.freenas.org/projects/freenas
 
L

L

Guest
Can you tail the log file? 0005.run_update.sh.log maybe last 20 or so?
 

BahBah

Dabbler
Joined
May 14, 2013
Messages
13
Hi

I tried to upgrade to 9.2.1.6 but because it had failed a few times /tmp filled up and the GUI was inaccessible. I then proceeded to do a fresh install on another memory device.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Hi

I tried to upgrade to 9.2.1.6 but because it had failed a few times /tmp filled up and the GUI was inaccessible. I then proceeded to do a fresh install on another memory device.
That solved your problem?
 
Joined
Jun 16, 2014
Messages
3
Hi to all,
I am also not able to do an update from 9.2.1.4 to 9.2.1.6.
It looks that all went well, but the update was not done.
Here my /data/update.failed:
---------------
FATAL ERROR - The following SQL query failed: insert into jails_jailtemplate (jt_name, jt_os, jt_url, jt_arch) values ('VirtualBox-4.3.10', 'FreeBSD', 'http://download.freenas.org/9.2.0/RELEASE/x64/jails/vboxtemplate.tgz', 'x64')
The error was: column jt_name is not unique
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 services:
- Migrating forwards to 0120_nfs_srv_allow_nonroot.
> services:0113_auto__add_field_iscsitargetglobalconfiguration_iscsi_multithreaded
- Migration 'services:0113_auto__add_field_iscsitargetglobalconfiguration_iscsi_multithreaded' is marked for no-dry-run.
> services:0115_auto__add_field_afp_afp_srv_dbpath
> services:0117_auto__del_field_cifs_cifs_srv_easupport__del_field_cifs_cifs_srv_dosat
> services:0119_auto__add_field_iscsitargetglobalconfiguration_iscsi_experimental
> services:0120_nfs_srv_allow_nonroot
- Migration 'services:0120_nfs_srv_allow_nonroot' is marked for no-dry-run.
- Loading initial data for services.
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 account:
- Nothing to migrate.
- Loading initial data for account.
Installed 0 object(s) from 0 fixture(s)
Running migrations for jails:
- Migrating forwards to 0022_auto__del_field_jailmountpoint_fstype.
> jails:0017_add_virtualbox_template
- Migration 'jails:0017_add_virtualbox_template' 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: jails:0017_add_virtualbox_template
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 254, 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 329, 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/jails/migrations/0017_add_virtualbox_template.py", line 14, in forwards
get_jails_index(release='9.2.0', arch='x64'))
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/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 451, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.IntegrityError: column jt_name is not unique
---------
As you can see I installed the virtualbox template on my 9.2.14. installation.
This virtualbox template works very well an contains my linux homserver (mail, web, ...)
How can I solve this?
 
Status
Not open for further replies.
Top