Afp crash when binding 10gbe interface

Status
Not open for further replies.

macross

Cadet
Joined
Aug 26, 2014
Messages
8
How can I do it manually?



Request Method: POST
Request URL: http://minerva/admin/services/afp/edit/1/
Software Version: FreeNAS-9.3-STABLE-201506042008
Exception Type: TypeError
Exception Value:

format requires a mapping

Exception Location: /usr/local/lib/python2.7/site-packages/django/utils/functional.py in __mod__, line 168
Server time: Tue, 23 Jun 2015 09:36:22 -0400

Request Method: POST
Request URL: http://minerva/admin/services/afp/edit/1/


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/freeadmin/options.py" in wrapper
210. return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
99. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
52. response = view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/site.py" in inner
142. return view(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/options.py" in edit
527. valid &= mf.is_valid(formsets=formsets)
File "/usr/local/www/freenasUI/../freenasUI/common/forms.py" in is_valid
133. valid = super(ModelForm, self).is_valid()
File "/usr/local/lib/python2.7/site-packages/django/forms/forms.py" in is_valid
129. return self.is_bound and not bool(self.errors)
File "/usr/local/lib/python2.7/site-packages/django/forms/forms.py" in errors
121. self.full_clean()
File "/usr/local/lib/python2.7/site-packages/django/forms/forms.py" in full_clean
275. self._post_clean()
File "/usr/local/lib/python2.7/site-packages/django/forms/models.py" in _post_clean
413. validate_unique=False)
File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py" in full_clean
928. self.clean_fields(exclude=exclude)
File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py" in clean_fields
970. setattr(self, f.attname, f.clean(raw_value, self))
File "/usr/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py" in clean
255. self.validate(value, model_instance)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/models/fields.py" in validate
164. self.error_messages['invalid_choice'] % choice)
File "/usr/local/lib/python2.7/site-packages/django/utils/functional.py" in __mod__
168. return six.text_type(self) % rhs

Exception Type: TypeError at /admin/services/afp/edit/1/
Exception Value: format requires a mapping

Request information
GET

No GET data
POST
Variable Value
afp_srv_connections_limit u'100'
afp_srv_homename u''
afp_srv_homedir u''
selecAt_from u'10.10.20.44'
afp_srv_guest_user u'nobody'
afp_srv_global_aux u''
afp_srv_bindip u'10.64.4.44'
__all__ u''
afp_srv_dbpath u''
__form_id u'dialogForm_AFP'
FILES

No FILES data
COOKIES
Variable Value
csrftoken 'A7jvJscgcZ3QZwW7NeejtWAmS9lntMR1'
fntreeSaveStateCookie 'root%2Croot%2F61%2Croot%2F62%2Croot%2F145'
sessionid 'tl7qkqlm21vtktkmgfz8mdwprbff6g8n'
META
Variable Value
HTTP_CONTENT_LENGTH '238'
GATEWAY_INTERFACE 'CGI/1.1'
wsgi.url_scheme 'http'
REMOTE_PORT '37532'
REQUEST_URI '/admin/services/afp/edit/1/'
CSRF_COOKIE u'A7jvJscgcZ3QZwW7NeejtWAmS9lntMR1'
HTTP_CACHE_CONTROL 'no-cache'
SERVER_PROTOCOL 'HTTP/1.1'
HTTP_CONTENT_TYPE 'application/x-www-form-urlencoded; charset=UTF-8'
wsgi.input <flup.server.fcgi_base.InputStream object at 0x813187250>
wsgi.version (1, 0)
wsgi.errors <flup.server.fcgi_base.TeeOutputStream object at 0x815285950>
wsgi.multithread True
HTTPS ''
REMOTE_ADDR '10.30.7.76'
wsgi.run_once False
SERVER_NAME 'localhost'
REQUEST_METHOD 'POST'
SERVER_SOFTWARE 'nginx/1.6.2'
CONTENT_LENGTH '238'
SCRIPT_NAME u''
HTTP_X_CSRFTOKEN 'A7jvJscgcZ3QZwW7NeejtWAmS9lntMR1'
HTTP_PRAGMA 'no-cache'
HTTP_COOKIE 'csrftoken=A7jvJscgcZ3QZwW7NeejtWAmS9lntMR1; sessionid=tl7qkqlm21vtktkmgfz8mdwprbff6g8n; fntreeSaveStateCookie=root%2Croot%2F61%2Croot%2F62%2Croot%2F145'
HTTP_CONNECTION 'keep-alive'
HTTP_HOST 'minerva'
SERVER_ADDR '10.10.10.44'
HTTP_REFERER 'http://minerva/'
DOCUMENT_URI '/admin/services/afp/edit/1/'
HTTP_X_REQUESTED_WITH 'XMLHttpRequest'
HTTP_ACCEPT_LANGUAGE 'en-US,en;q=0.5'
PATH_INFO u'/admin/services/afp/edit/1/'
HTTP_USER_AGENT 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0'
HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
DOCUMENT_ROOT '/usr/local/etc/nginx/html'
CONTENT_TYPE 'application/x-www-form-urlencoded; charset=UTF-8'
wsgi.multiprocess False
QUERY_STRING ''
HTTP_ACCEPT_ENCODING 'gzip, deflate'
SERVER_PORT '80'
REDIRECT_STATUS '200'
 
D

dlavigne

Guest
Software Version: FreeNAS-9.3-STABLE-201506042008'

Does updating to the latest SU fix the traceback? If not, create a bug report at bugs.freenas.org that includes the full text of the traceback and post the issue number here.
 

Joeman3000

Dabbler
Joined
Jun 26, 2015
Messages
10
I am running FreeNAS-9.3-STABLE-201506232120 and can confirm that this problem persists with the latest stable update. This issue happens when I add a new IP alias to my network interface and then bind AFP to the new IP alias. The only way I've found to fix this is to reboot the machine. Refreshing, clearing the browser cache, and closing and re-opening the browser did not help either.

Here's my traceback info below:

Code:
Request Method:    POST
Request URL:    http://192.168.0.33/admin/services/afp/edit/1/
Software Version:    FreeNAS-9.3-STABLE-201506232120
Exception Type:    TypeError
Exception Value:

format requires a mapping

Exception Location:    /usr/local/lib/python2.7/site-packages/django/utils/functional.py in __mod__, line 168
Server time:    Fri, 26 Jun 2015 10:32:48 -0400

Traceback

Environment:

Software Version: FreeNAS-9.3-STABLE-201506232120
Request Method: POST
Request URL: http://192.168.0.33/admin/services/afp/edit/1/


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/freeadmin/options.py" in wrapper
  210.  return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  99.  response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  52.  response = view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/site.py" in inner
  142.  return view(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/options.py" in edit
  527.  valid &= mf.is_valid(formsets=formsets)
File "/usr/local/www/freenasUI/../freenasUI/common/forms.py" in is_valid
  133.  valid = super(ModelForm, self).is_valid()
File "/usr/local/lib/python2.7/site-packages/django/forms/forms.py" in is_valid
  129.  return self.is_bound and not bool(self.errors)
File "/usr/local/lib/python2.7/site-packages/django/forms/forms.py" in errors
  121.  self.full_clean()
File "/usr/local/lib/python2.7/site-packages/django/forms/forms.py" in full_clean
  275.  self._post_clean()
File "/usr/local/lib/python2.7/site-packages/django/forms/models.py" in _post_clean
  413.  validate_unique=False)
File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py" in full_clean
  928.  self.clean_fields(exclude=exclude)
File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py" in clean_fields
  970.  setattr(self, f.attname, f.clean(raw_value, self))
File "/usr/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py" in clean
  255.  self.validate(value, model_instance)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/models/fields.py" in validate
  164.  self.error_messages['invalid_choice'] % choice)
File "/usr/local/lib/python2.7/site-packages/django/utils/functional.py" in __mod__
  168.  return six.text_type(self) % rhs

Exception Type: TypeError at /admin/services/afp/edit/1/
Exception Value: format requires a mapping

Request Information

GET

No GET data
POST
Variable    Value
afp_srv_homedir    u''
afp_srv_dbpath    u''
afp_srv_global_aux    u'hostname = tm-test\nad domain = mycompany.local'
__all__    u''
afp_srv_bindip    u'192.168.0.38'
selecAt_from    u'192.168.0.33'
afp_srv_homename    u''
__form_id    u'dialogForm_AFP'
afp_srv_guest_user    u'nobody'
afp_srv_connections_limit    u'50'
FILES

No FILES data
COOKIES
Variable    Value
sessionid    '[redacted]'
csrftoken    '[redacted]'
fntreeSaveStateCookie    'root%2Croot%2F127'
META
Variable    Value
HTTP_CONTENT_LENGTH    '307'
GATEWAY_INTERFACE    'CGI/1.1'
HTTPS    ''
CONTENT_TYPE    'application/x-www-form-urlencoded; charset=UTF-8'
wsgi.multiprocess    False
CSRF_COOKIE    u'[redacted]'
DOCUMENT_ROOT    '/usr/local/etc/nginx/html'
CONTENT_LENGTH    '307'
HTTP_COOKIE    'csrftoken=[redacted]; sessionid=[redacted]; fntreeSaveStateCookie=root%2Croot%2F127'
SCRIPT_NAME    u''
HTTP_ACCEPT_ENCODING    'gzip, deflate'
wsgi.url_scheme    'http'
wsgi.version    (1, 0)
HTTP_CACHE_CONTROL    'no-cache'
HTTP_ACCEPT_LANGUAGE    'en-US,en;q=0.5'
REMOTE_PORT    '50117'
QUERY_STRING    ''
SERVER_ADDR    '192.168.0.33'
wsgi.multithread    True
SERVER_NAME    'localhost'
HTTP_HOST    '192.168.0.33'
wsgi.errors    <flup.server.fcgi_base.TeeOutputStream object at 0x81624d290>
REQUEST_URI    '/admin/services/afp/edit/1/'
REQUEST_METHOD    'POST'
HTTP_PRAGMA    'no-cache'
REDIRECT_STATUS    '200'
wsgi.run_once    False
SERVER_SOFTWARE    'nginx/1.6.2'
HTTP_DNT    '1'
SERVER_PROTOCOL    'HTTP/1.1'
SERVER_PORT    '80'
DOCUMENT_URI    '/admin/services/afp/edit/1/'
REMOTE_ADDR    '192.168.0.148'
HTTP_REFERER    'http://192.168.0.33/'
HTTP_CONTENT_TYPE    'application/x-www-form-urlencoded; charset=UTF-8'
HTTP_USER_AGENT    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Firefox/38.0'
wsgi.input    <flup.server.fcgi_base.InputStream object at 0x814498d10>
HTTP_X_CSRFTOKEN    '[redacted]'
HTTP_ACCEPT    'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
HTTP_X_REQUESTED_WITH    'XMLHttpRequest'
PATH_INFO    u'/admin/services/afp/edit/1/'
HTTP_CONNECTION    'keep-alive'


Update: I have submitted a bug report here: https://bugs.freenas.org/issues/10361
 
Last edited:
Status
Not open for further replies.
Top