Help about adding storage into a jail

Status
Not open for further replies.

tograf

Cadet
Joined
Jul 12, 2014
Messages
5
Hello,

I can't add storage into a jail, whatever the jail i choose. Each time, i get the same error. The following example is about Plex :

Add Storage
Request Method: POST
Request URL: https://192.168.2.22/jails/storage_add/4
Software Version: FreeNAS-9.2.0-RELEASE-x64 (ab098f4)
Exception Type: IntegrityError
Exception Value:
jails_nullmountpoint.fstype may not be NULL
Exception Location: /usr/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py in execute, line 362
Server time: Sun, 13 Jul 2014 11:37:45 -0400
Traceback
Code:
Environment:
Software Version: FreeNAS-9.2.0-RELEASE-x64 (ab098f4)
Request Method: POST
Request URL: https://192.168.2.22/jails/storage_add/4
Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  109.  response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py" in process_view
  159.  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
  25.  return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/jails/views.py" in jail_storage_add
  113.  form.save()
File "/usr/local/www/freenasUI/../freenasUI/jails/forms.py" in save
  843.  obj = super(NullMountPointForm, self).save(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/forms/models.py" in save
  370.  fail_message, commit, construct=False)
File "/usr/local/lib/python2.7/site-packages/django/forms/models.py" in save_instance
  87.  instance.save()
File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py" in save
  546.  force_update=force_update, update_fields=update_fields)
File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py" in save_base
  650.  result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
File "/usr/local/lib/python2.7/site-packages/django/db/models/manager.py" in _insert
  215.  return insert_query(self.model, objs, fields, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in insert_query
  1675.  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
  943.  cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py" in execute
  364.  six.reraise(utils.IntegrityError, utils.IntegrityError(*tuple(e.args)), sys.exc_info()[2])
File "/usr/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py" in execute
  362.  return Database.Cursor.execute(self, query, params)
Exception Type: IntegrityError at /jails/storage_add/4
Exception Value: jails_nullmountpoint.fstype may not be NULL


Request information

GET
No GET data
POST
Variable Value
__form_id u'form_NullMountPointForm'
__all__ u''
mpjc_path u'/mnt/pool1/jails'
create u'on'
destination u'/media'
source u'/mnt/pool1/Medias'
jail u'plex'
mounted u'True'
FILES
No FILES data
COOKIES
Variable Value
csrftoken '48jrRt0VGbuGwswQqmsLdkmNe2Xzc7qX'
sessionid 'o2kt6sxnc1xx0uop3cjubzt2ghby0arb'
fntreeSaveStateCookie 'root%2Croot%2F166%2Croot%2F170%2F188%2Croot%2F170%2F188%2F190%2Croot%2F170%2F184%2Croot%2F170%2F184%2F186%2Croot%2F170%2Croot%2F162%2F168%2F170%2Croot%2F162%2Croot%2F162%2F180%2F182%2Croot%2F162%2F176%2Croot%2F162%2F176%2F178%2Croot%2F162%2F180'
META
Variable Value
wsgi.multiprocess False
HTTP_REFERER 'https://192.168.2.22/'
REDIRECT_STATUS '200'
SERVER_SOFTWARE 'nginx/1.4.3'
SCRIPT_NAME u''
HTTP_X_CSRFTOKEN '48jrRt0VGbuGwswQqmsLdkmNe2Xzc7qX'
REQUEST_METHOD 'POST'
PATH_INFO u'/jails/storage_add/4'
SERVER_PROTOCOL 'HTTP/1.1'
QUERY_STRING ''
CONTENT_LENGTH '160'
HTTP_USER_AGENT 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0'
HTTP_CONNECTION 'keep-alive'
HTTP_COOKIE 'csrftoken=48jrRt0VGbuGwswQqmsLdkmNe2Xzc7qX; sessionid=o2kt6sxnc1xx0uop3cjubzt2ghby0arb; fntreeSaveStateCookie=root%2Croot%2F166%2Croot%2F170%2F188%2Croot%2F170%2F188%2F190%2Croot%2F170%2F184%2Croot%2F170%2F184%2F186%2Croot%2F170%2Croot%2F162%2F168%2F170%2Croot%2F162%2Croot%2F162%2F180%2F182%2Croot%2F162%2F176%2Croot%2F162%2F176%2F178%2Croot%2F162%2F180'
SERVER_NAME 'localhost'
REMOTE_PORT '49690'
wsgi.url_scheme 'https'
SERVER_PORT '443'
SERVER_ADDR '192.168.2.22'
DOCUMENT_ROOT '/usr/local/etc/nginx/html'
HTTP_PRAGMA 'no-cache'
HTTP_CONTENT_LENGTH '160'
HTTP_X_REQUESTED_WITH 'XMLHttpRequest'
DOCUMENT_URI '/jails/storage_add/4'
wsgi.input <flup.server.fcgi_base.InputStream object at 0x80e510490>
HTTP_HOST '192.168.2.22'
HTTPS 'on'
wsgi.multithread True
HTTP_CACHE_CONTROL 'no-cache'
HTTP_CONTENT_TYPE 'application/x-www-form-urlencoded; charset=UTF-8'
REQUEST_URI '/jails/storage_add/4'
HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
wsgi.version (1, 0)
GATEWAY_INTERFACE 'CGI/1.1'
wsgi.run_once False
wsgi.errors <flup.server.fcgi_base.TeeOutputStream object at 0x80f00b110>
REMOTE_ADDR '192.168.2.13'
HTTP_ACCEPT_LANGUAGE 'fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3'
CONTENT_TYPE 'application/x-www-form-urlencoded; charset=UTF-8'
CSRF_COOKIE u'48jrRt0VGbuGwswQqmsLdkmNe2Xzc7qX'
HTTP_ACCEPT_ENCODING
'gzip, deflate'

Plex is working fine, but I can't access to my medias yet... I have to add storage into the jail.. :/ Any idea ?

Thank you very much for reading and have a good day.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
You link storage using the Jails Storage in the GUI, that will allow the Plex to see your media. To get to your media from the computer side you share the dataset via CIFS, NFS, or AFP and you access it that way.
 

tograf

Cadet
Joined
Jul 12, 2014
Messages
5
You link storage using the Jails Storage in the GUI, that will allow the Plex to see your media.
That's exactly the point. Adding storage in the Jail doesn't work.

My CIFS share works great, and i currently have a XBMC htpc, connected to a MySQL database (in a jail) and all the shares / synchronizations works great.

I would like to give a chance to Plex and test it, but i can't add storage to my jail...
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Is there a reason you aren't running the current version of FreeNAS? It does have a bug in the "create directory" checkbox (it doesn't work--you need to manually create the target directory in the jail before you set up the storage), but there could well be other relevant bugs that have been fixed.
 

tograf

Cadet
Joined
Jul 12, 2014
Messages
5
The only reason is that i'm to lazy to update the NAS each time there is a new release. :)

Obviously, that's a good idea and i'm gonna do this before checking anything else.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Unfortunately you haven't give any details as to your exact setup of the Plex share. Maybe adding some details would help otherwise I can't offer anything better. And where were you actually trying to add storage using a URL with an IP address?
 

tograf

Cadet
Joined
Jul 12, 2014
Messages
5
I'm following this documentation ( http://doc.freenas.org/index.php/Adding_Jails#Adding_Storage ), but as soon as I have selected the source ( /mnt/pool1/Medias ) and the destination ( /media , which is an existing directory under /mnt/pool1/jails/plex ), and then clic OK button, I get the error message you can find in the first post. (you can clic on it to expand it and find the full log)

I also tried unchecking the "Create directory" box, but same results.

I also tried to add storage using the same way in my other jails, but same results.

The IP address is my FreeNAS IP address.
 
Last edited:

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Update to 9.2.1.6 it's going to be a very stable release and probably recommended for the next 6 months
 
Status
Not open for further replies.
Top