I have a Z2 pool on a box that has been running FreeNAS for several years. I attempted to upgrade from 9.10.2-U6 which was a regrettable decision. I have just had no luck getting 11.2-RELEASE to work.
In the past week I've performed at least 6 installs using 9.10.2-U6, 11.1 and 11.2 trying to sort through some of the problems with 11.2. I've confirmed that the same hardware setup works with 9.10.x and 11.1 but just will not work with 11.2. These observations seem to refute the hypothesis that potentially 'defective' USB stick hardware rather than software is responsible for the problem. (Yes, I'm still using USB sticks for boot devices, and all of the USB drives were fully benchmarked and tested for read/write prior to deployment.)
I've just completed a bare metal install of 11.2 so that I can get an accurate list of problems. Things seem to have worked flawlessly during the basic install, but things went bad on rebooting from the 11.2-U1 update. Following the upgrade I used "System > Upgrade > Verify Install" to confirm that all of the files were properly installed. Nonetheless I'm now suffering the following errors:
1. django.db.utils.OperationalError: database is locked
2. a long list of django errors went scrolling by on the terminal.
3. the GUI issued a Traceback for the environment following the upgrade:
And a window appears below that with the following text:
In the past week I've performed at least 6 installs using 9.10.2-U6, 11.1 and 11.2 trying to sort through some of the problems with 11.2. I've confirmed that the same hardware setup works with 9.10.x and 11.1 but just will not work with 11.2. These observations seem to refute the hypothesis that potentially 'defective' USB stick hardware rather than software is responsible for the problem. (Yes, I'm still using USB sticks for boot devices, and all of the USB drives were fully benchmarked and tested for read/write prior to deployment.)
I've just completed a bare metal install of 11.2 so that I can get an accurate list of problems. Things seem to have worked flawlessly during the basic install, but things went bad on rebooting from the 11.2-U1 update. Following the upgrade I used "System > Upgrade > Verify Install" to confirm that all of the files were properly installed. Nonetheless I'm now suffering the following errors:
1. django.db.utils.OperationalError: database is locked
2. a long list of django errors went scrolling by on the terminal.
3. the GUI issued a Traceback for the environment following the upgrade:
Code:
Request Method: POST Request URL: http://xxx.xxx.xxx.xxx/legacy/system/update/check/?uuid=6e3ed455dff0409597356db6080c2d14 Software Version: FreeNAS-11.2-RELEASE (31f889bbf) Exception Type: OperationalError Exception Value: database is locked Exception Location: ./freenasUI/freeadmin/sqlite3_ha/base.py in locked_retry, line 389 Server time: Fri, 28 Dec 2018 18:37:49 -0800
And a window appears below that with the following text:
Code:
Environment: Software Version: FreeNAS-11.2-RELEASE (31f889bbf) Request Method: POST Request URL: http://xxx.xxx.xxx.xxx/legacy/system/update/check/?uuid=6e3ed455dff0409597356db6080c2d14 Traceback: File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py" in execute 64. return self.cursor.execute(sql, params) File "./freenasUI/freeadmin/sqlite3_ha/base.py" in execute 412. execute = self.locked_retry(Database.Cursor.execute, query, params) File "./freenasUI/freeadmin/sqlite3_ha/base.py" in locked_retry 403. raise e File "./freenasUI/freeadmin/sqlite3_ha/base.py" in locked_retry 389. rv = method(self, *args, **kwargs) File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner 42. response = get_response(request) File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response 249. response = self._get_response(request) File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response 178. response = middleware_method(request, callback, callback_args, callback_kwargs) File "./freenasUI/freeadmin/middleware.py" in process_view 163. return login_required(view_func)(request, *view_args, **view_kwargs) File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view 22. if test_func(request.user): File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in <lambda> 46. lambda u: u.is_authenticated, File "/usr/local/lib/python3.6/site-packages/django/utils/functional.py" in inner 234. self._setup() File "/usr/local/lib/python3.6/site-packages/django/utils/functional.py" in _setup 380. self._wrapped = self._setupfunc() File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/middleware.py" in <lambda> 24. request.user = SimpleLazyObject(lambda: get_user(request)) File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/middleware.py" in get_user 12. request._cached_user = auth.get_user(request) File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/__init__.py" in get_user 187. user = backend.get_user(user_id) File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/backends.py" in get_user 102. user = UserModel._default_manager.get(pk=user_id) File "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py" in manager_method 85. return getattr(self.get_queryset(), name)(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py" in get 379. num = len(clone) File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py" in __len__ 238. self._fetch_all() File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py" in _fetch_all 1087. self._result_cache = list(self.iterator()) File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py" in __iter__ 54. results = compiler.execute_sql() File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/compiler.py" in execute_sql 835. cursor.execute(sql, params) File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py" in execute 64. return self.cursor.execute(sql, params) File "/usr/local/lib/python3.6/site-packages/django/db/utils.py" in __exit__ 94. six.reraise(dj_exc_type, dj_exc_value, traceback) File "/usr/local/lib/python3.6/site-packages/django/utils/six.py" in reraise 685. raise value.with_traceback(tb) File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py" in execute 64. return self.cursor.execute(sql, params) File "./freenasUI/freeadmin/sqlite3_ha/base.py" in execute 412. execute = self.locked_retry(Database.Cursor.execute, query, params) File "./freenasUI/freeadmin/sqlite3_ha/base.py" in locked_retry 403. raise e File "./freenasUI/freeadmin/sqlite3_ha/base.py" in locked_retry 389. rv = method(self, *args, **kwargs) Exception Type: OperationalError at /legacy/system/update/check/ Exception Value: database is locked