Hi Everybody,
I just upgraded my FreeNAS box from 8.0.4 to 8.2.0. The install seems to have worked fine but when I booted the install for the first time it got stuck at the "Applying database schema" line. I let it go for about an hour before figuring it was stuck. So I rebooted. There were errors being reported during boot up but things do seem to be working now. The web interface is up and running and my data all seems to be mounted OK and accessible. However under the Services tab I have database errors being reported. They are:
no such column: services_activedirectory.ad_allow_trusted_doms
Environment:
Software Version: FreeNAS-8.2.0-RELEASE-p1-x64 (r11950)
Request Method: GET
Request URL: http://freenas/services/core/?dojo.preventCache=1349217061699
Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
105. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/freeadmin/middleware.py" in process_view
166. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/services/views.py" in core
113. activedirectory = models.ActiveDirectory.objects.order_by("-id")[0]
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in __getitem__
190. return list(qs)[0]
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in __len__
84. self._result_cache.extend(self._iter)
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in iterator
273. for row in compiler.results_iter():
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in results_iter
680. for rows in self.execute_sql(MULTI):
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql
735. cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py" in execute
234. return Database.Cursor.execute(self, query, params)
Exception Type: DatabaseError at /services/core/
Exception Value: no such column: services_activedirectory.ad_allow_trusted_doms
--------------
and:
no such table: plugins_plugins
Environment:
Software Version: FreeNAS-8.2.0-RELEASE-p1-x64 (r11950)
Request Method: GET
Request URL: http://freenas/services/plugins/?dojo.preventCache=1349217753507
Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
105. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/freeadmin/middleware.py" in process_view
166. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/services/views.py" in plugins
67. for plugin in plugins:
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in _result_iter
107. self._fill_cache()
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in _fill_cache
772. self._result_cache.append(self._iter.next())
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in iterator
273. for row in compiler.results_iter():
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in results_iter
680. for rows in self.execute_sql(MULTI):
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql
735. cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py" in execute
234. return Database.Cursor.execute(self, query, params)
Exception Type: DatabaseError at /services/plugins/
Exception Value: no such table: plugins_plugins
-----------------
I have a backup of the database like the upgrade instructions say but I don't know how to re-initialize the database using the saved copy.
So what should I do now? Any help would be greatly appreciated.
Thanks, John
I just upgraded my FreeNAS box from 8.0.4 to 8.2.0. The install seems to have worked fine but when I booted the install for the first time it got stuck at the "Applying database schema" line. I let it go for about an hour before figuring it was stuck. So I rebooted. There were errors being reported during boot up but things do seem to be working now. The web interface is up and running and my data all seems to be mounted OK and accessible. However under the Services tab I have database errors being reported. They are:
no such column: services_activedirectory.ad_allow_trusted_doms
Environment:
Software Version: FreeNAS-8.2.0-RELEASE-p1-x64 (r11950)
Request Method: GET
Request URL: http://freenas/services/core/?dojo.preventCache=1349217061699
Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
105. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/freeadmin/middleware.py" in process_view
166. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/services/views.py" in core
113. activedirectory = models.ActiveDirectory.objects.order_by("-id")[0]
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in __getitem__
190. return list(qs)[0]
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in __len__
84. self._result_cache.extend(self._iter)
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in iterator
273. for row in compiler.results_iter():
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in results_iter
680. for rows in self.execute_sql(MULTI):
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql
735. cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py" in execute
234. return Database.Cursor.execute(self, query, params)
Exception Type: DatabaseError at /services/core/
Exception Value: no such column: services_activedirectory.ad_allow_trusted_doms
--------------
and:
no such table: plugins_plugins
Environment:
Software Version: FreeNAS-8.2.0-RELEASE-p1-x64 (r11950)
Request Method: GET
Request URL: http://freenas/services/plugins/?dojo.preventCache=1349217753507
Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
105. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/freeadmin/middleware.py" in process_view
166. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/services/views.py" in plugins
67. for plugin in plugins:
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in _result_iter
107. self._fill_cache()
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in _fill_cache
772. self._result_cache.append(self._iter.next())
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in iterator
273. for row in compiler.results_iter():
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in results_iter
680. for rows in self.execute_sql(MULTI):
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql
735. cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py" in execute
234. return Database.Cursor.execute(self, query, params)
Exception Type: DatabaseError at /services/plugins/
Exception Value: no such table: plugins_plugins
-----------------
I have a backup of the database like the upgrade instructions say but I don't know how to re-initialize the database using the saved copy.
So what should I do now? Any help would be greatly appreciated.
Thanks, John