Herald.Yu
Dabbler
- Joined
- Mar 22, 2014
- Messages
- 15
I know that system will automatically create a plugin-jail when I installing a pulgin with FreeNAS. But because I am in China and visit the official download server is too slow, so the process of install a plugin becomes too hard.
Before I use the FreeNAS-9.2.x, I can download the plugin-template file to local dataset, and change the path of the default plugin-template point to local path. But in FreeNAS-9.3, only one default vitrualbox template in jails, so the solution which I use on 9.2 is not workable now.
Do you have any way or method to speed up the process of install a plugin? Thank you!
I try to add a new jail-template which named "pluginjail", but occur an error.
Before I use the FreeNAS-9.2.x, I can download the plugin-template file to local dataset, and change the path of the default plugin-template point to local path. But in FreeNAS-9.3, only one default vitrualbox template in jails, so the solution which I use on 9.2 is not workable now.
Do you have any way or method to speed up the process of install a plugin? Thank you!
I try to add a new jail-template which named "pluginjail", but occur an error.
Code:
Request Method: POST Request URL: http://192.168.1.111/jails/template/create/ Software Version: FreeNAS-9.3-STABLE-201502060108 Exception Type: IntegrityError Exception Value: UNIQUE constraint failed: jails_jailtemplate.jt_name Exception Location: /usr/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py in execute, line 452 Server time: Fri, 6 Feb 2015 15:42:41 +0800
Code:
Environment: Software Version: FreeNAS-9.3-STABLE-201502060108 Request Method: POST Request URL: http://192.168.1.111/jails/template/create/ 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/../freenasUI/freeadmin/middleware.py" in process_view 157. 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 22. return view_func(request, *args, **kwargs) File "/usr/local/www/freenasUI/../freenasUI/jails/views.py" in jail_template_create 520. form.save() File "/usr/local/lib/python2.7/site-packages/django/forms/models.py" in save 446. construct=False) File "/usr/local/lib/python2.7/site-packages/django/forms/models.py" in save_instance 99. instance.save() File "/usr/local/www/freenasUI/../freenasUI/freeadmin/models/__init__.py" in save 97. rv = super(Model, self).save(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py" in save 545. force_update=force_update, update_fields=update_fields) File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py" in save_base 573. updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields) File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py" in _save_table 654. result = self._do_insert(cls._base_manager, using, fields, update_pk, raw) File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py" in _do_insert 687. using=using, raw=raw) File "/usr/local/lib/python2.7/site-packages/django/db/models/manager.py" in _insert 232. return insert_query(self.model, objs, fields, **kwargs) File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in insert_query 1514. return query.get_compiler(using=using).execute_sql(return_id) File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql 903. cursor.execute(sql, params) File "/usr/local/lib/python2.7/site-packages/django/db/backends/util.py" in execute 53. return self.cursor.execute(sql, params) File "/usr/local/lib/python2.7/site-packages/django/db/utils.py" in __exit__ 99. six.reraise(dj_exc_type, dj_exc_value, traceback) File "/usr/local/lib/python2.7/site-packages/django/db/backends/util.py" in execute 53. return self.cursor.execute(sql, params) File "/usr/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py" in execute 452. return Database.Cursor.execute(self, query, params) Exception Type: IntegrityError at /jails/template/create/ Exception Value: UNIQUE constraint failed: jails_jailtemplate.jt_name
Code:
Request information GET No GET data POST Variable Value jt_url u'/mnt/myStor/jails/freenas-pluginjail-9.3-RELEASE.tgz' jt_name u'pluginjail' jt_os u'FreeBSD' __all__ u'' jt_readonly u'on' jt_arch u'x64' __form_id u'form_JailTemplateCreateForm' FILES No FILES data COOKIES Variable Value sessionid 'zvq8wjn4vfwcbud3vh59dbg9bgxmnl0l' csrftoken 'noFM9E6AZEzlxIZSUs0HxmJdL4rswiwT' fntreeSaveStateCookie 'root%2Croot%2F53%2F79%2Croot%2F89%2Croot%2F89%2F90%2Croot%2F90%2F104%2F117%2Croot%2F166%2Croot%2F133' META Variable Value QUERY_STRING '' wsgi.url_scheme 'http' REMOTE_ADDR '192.168.1.11' HTTP_CONTENT_LENGTH '174' SERVER_PORT '80' REQUEST_METHOD 'POST' HTTP_PRAGMA 'no-cache' HTTP_X_REQUESTED_WITH 'XMLHttpRequest' REDIRECT_STATUS '200' CSRF_COOKIE u'noFM9E6AZEzlxIZSUs0HxmJdL4rswiwT' HTTP_REFERER 'http://192.168.1.111/' HTTP_COOKIE 'csrftoken=noFM9E6AZEzlxIZSUs0HxmJdL4rswiwT; sessionid=zvq8wjn4vfwcbud3vh59dbg9bgxmnl0l; fntreeSaveStateCookie=root%2Croot%2F53%2F79%2Croot%2F89%2Croot%2F89%2F90%2Croot%2F90%2F104%2F117%2Croot%2F166%2Croot%2F133' wsgi.multiprocess False DOCUMENT_ROOT '/usr/local/etc/nginx/html' wsgi.input <flup.server.fcgi_base.InputStream object at 0x816c2de50> HTTP_CONNECTION 'keep-alive' GATEWAY_INTERFACE 'CGI/1.1' DOCUMENT_URI '/jails/template/create/' CONTENT_TYPE 'application/x-www-form-urlencoded; charset=UTF-8' SERVER_NAME 'localhost' HTTP_CACHE_CONTROL 'no-cache' wsgi.errors <flup.server.fcgi_base.TeeOutputStream object at 0x815f8f150> wsgi.run_once False REQUEST_URI '/jails/template/create/' HTTP_CONTENT_TYPE 'application/x-www-form-urlencoded; charset=UTF-8' HTTP_USER_AGENT 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0' HTTP_X_CSRFTOKEN 'noFM9E6AZEzlxIZSUs0HxmJdL4rswiwT' PATH_INFO u'/jails/template/create/' SERVER_ADDR '192.168.1.111' HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' SCRIPT_NAME u'' HTTP_ACCEPT_ENCODING 'gzip, deflate' SERVER_SOFTWARE 'nginx/1.6.2' SERVER_PROTOCOL 'HTTP/1.1' wsgi.multithread True HTTPS '' HTTP_HOST '192.168.1.111' HTTP_ACCEPT_LANGUAGE 'zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3' CONTENT_LENGTH '174' REMOTE_PORT '13041' wsgi.version (1, 0)
Last edited: