Project

General

Profile

Bug #7134

Creation of a Rsync Task Triggers Traceback

Added by Václav Navrátil almost 6 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
William Grzybowski
Category:
GUI (new)
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

While I try to create a Rsync Task Traceback comes up:

Request Method:     POST
Request URL:     http://192.168.1.251/admin/tasks/rsync/add/
Software Version:     FreeNAS-9.3-STABLE-201412091831
Exception Type:     AttributeError
Exception Value:     

'NoneType' object has no attribute 'encode'

Exception Location:     /usr/local/www/freenasUI/../freenasUI/tasks/forms.py in check_rpath_exists, line 189
Server time:     Sun, 14 Dec 2014 16:25:15 -0800

Environment:

Software Version: FreeNAS-9.3-STABLE-201412091831
Request Method: POST
Request URL: http://192.168.1.251/admin/tasks/rsync/add/

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
  156.         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 add
  342.             valid &= mf.is_valid(formsets=formsets)
File "/usr/local/www/freenasUI/../freenasUI/common/forms.py" in is_valid
  114.         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
  274.         self._clean_form()
File "/usr/local/lib/python2.7/site-packages/django/forms/forms.py" in _clean_form
  300.             self.cleaned_data = self.clean()
File "/usr/local/www/freenasUI/../freenasUI/tasks/forms.py" in clean
  269.         if not (self.check_rpath_exists() or self.cleaned_data.get("rsync_create")):
File "/usr/local/www/freenasUI/../freenasUI/tasks/forms.py" in check_rpath_exists
  189.         ruser = self.cleaned_data.get("rsync_user").encode('utf8')

Exception Type: AttributeError at /admin/tasks/rsync/add/
Exception Value: 'NoneType' object has no attribute 'encode'

Request information
GET

No GET data
POST
Variable     Value
rsync_remotehost     u'192.168.1.250'
rsync_hour     u'*'
rsync_mode     u'ssh'
rsync_desc     u'test'
rsync_times     u'on'
rsync_path     u'/mnt/MiniTank/Data/SB-Download'
rsync_remotemodule     u''
__form_id     u'dialogForm_Rsync Task'
rsync_remotepath     u'/mnt/Pool/Tank/My Series'
rsync_month     u'12'
rsync_minute     u'00'
rsync_enabled     u'on'
rsync_user     u'aida'
rsync_daymonth     u'*'
__all__     u''
rsync_extra     u''
rsync_compress     u'on'
rsync_remoteport     u'22'
rsync_recursive     u'on'
rsync_direction     u'pull'
rsync_dayweek     u'7'
FILES

No FILES data
COOKIES
Variable     Value
sessionid     'gqjb2pztz1d90l3imu1hm466hcwscfhm'
csrftoken     'Myx6wcAerz936VTfYws7SvG27eVqUXrG'
fntreeSaveStateCookie     'root%2Croot%2F1%2Croot%2F1%2F5%2Croot%2F165%2Croot%2F165%2F171%2Croot%2F165%2F171%2F173%2Croot%2F166%2Croot%2F166%2F172%2Croot%2F161%2Croot%2F53%2Croot%2F162%2Croot%2F162%2F168%2Croot%2F162%2F168%2F170%2Croot%2F37%2Croot%2F160%2Croot%2F176%2Croot%2F176%2F195%2Croot%2F176%2F195%2F197%2Croot%2F172%2Croot%2F177%2Croot%2F177%2F192%2Croot%2F177%2F192%2F194%2Croot%2F24%2Croot%2F24%2F31%2Croot%2F181%2Croot%2F181%2F196%2Croot%2F181%2F196%2F198'
META
Variable     Value
wsgi.version     (1, 0)
REMOTE_PORT     '55835'
HTTP_PRAGMA     'no-cache'
SERVER_PORT     '80'
SERVER_NAME     'localhost'
CONTENT_LENGTH     '694'
DOCUMENT_URI     '/admin/tasks/rsync/add/'
HTTP_HOST     '192.168.1.251'
HTTP_X_CSRFTOKEN     'Myx6wcAerz936VTfYws7SvG27eVqUXrG'
SCRIPT_NAME     u''
HTTP_CONNECTION     'keep-alive'
wsgi.url_scheme     'http'
CSRF_COOKIE     u'Myx6wcAerz936VTfYws7SvG27eVqUXrG'
wsgi.multithread     True
REDIRECT_STATUS     '200'
HTTP_ACCEPT_ENCODING     'gzip, deflate'
wsgi.errors     <flup.server.fcgi_base.TeeOutputStream object at 0x814a00e90>
HTTP_USER_AGENT     'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0'
PATH_INFO     u'/admin/tasks/rsync/add/'
wsgi.multiprocess     False
wsgi.input     <flup.server.fcgi_base.InputStream object at 0x814a00590>
HTTP_ACCEPT     'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
HTTP_CACHE_CONTROL     'no-cache'
HTTP_CONTENT_LENGTH     '694'
wsgi.run_once     False
REQUEST_URI     '/admin/tasks/rsync/add/'
DOCUMENT_ROOT     '/usr/local/etc/nginx/html'
SERVER_SOFTWARE     'nginx/1.6.2'
HTTP_X_REQUESTED_WITH     'XMLHttpRequest'
SERVER_ADDR     '192.168.1.251'
HTTP_REFERER     'http://192.168.1.251/'
SERVER_PROTOCOL     'HTTP/1.1'
HTTP_CONTENT_TYPE     'application/x-www-form-urlencoded; charset=UTF-8'
HTTPS     ''
REQUEST_METHOD     'POST'
CONTENT_TYPE     'application/x-www-form-urlencoded; charset=UTF-8'
HTTP_COOKIE     'csrftoken=Myx6wcAerz936VTfYws7SvG27eVqUXrG; sessionid=gqjb2pztz1d90l3imu1hm466hcwscfhm; fntreeSaveStateCookie=root%2Croot%2F1%2Croot%2F1%2F5%2Croot%2F165%2Croot%2F165%2F171%2Croot%2F165%2F171%2F173%2Croot%2F166%2Croot%2F166%2F172%2Croot%2F161%2Croot%2F53%2Croot%2F162%2Croot%2F162%2F168%2Croot%2F162%2F168%2F170%2Croot%2F37%2Croot%2F160%2Croot%2F176%2Croot%2F176%2F195%2Croot%2F176%2F195%2F197%2Croot%2F172%2Croot%2F177%2Croot%2F177%2F192%2Croot%2F177%2F192%2F194%2Croot%2F24%2Croot%2F24%2F31%2Croot%2F181%2Croot%2F181%2F196%2Croot%2F181%2F196%2F198'
HTTP_ACCEPT_LANGUAGE     'cs,en-us;q=0.7,en;q=0.3'
REMOTE_ADDR     '192.168.1.110'
QUERY_STRING     ''
GATEWAY_INTERFACE     'CGI/1.1'

Associated revisions

Revision aca5e87d (diff)
Added by William Grzybowski almost 6 years ago

Fix traceback when creating ssh rsync task + user without SSH key Ticket: #7134

Revision 704e3e05 (diff)
Added by William Grzybowski almost 6 years ago

Fix traceback when creating ssh rsync task + user without SSH key Ticket: #7134 (cherry picked from commit aca5e87d0a5fc9ba3169a295962cac298dd8f776)

History

#1 Updated by Václav Navrátil almost 6 years ago

Same thing after update to FreeNAS-9.3-STABLE-201412142326.

#2 Updated by William Grzybowski almost 6 years ago

  • Status changed from Unscreened to Screened
  • Target version set to Unspecified

Do you have AD configured?

#3 Updated by Václav Navrátil almost 6 years ago

No AD. Only local users.

#4 Updated by William Grzybowski almost 6 years ago

  • Status changed from Screened to Ready For Release

#5 Updated by Jordan Hubbard almost 6 years ago

  • Status changed from Ready For Release to Resolved

#6 Avatar?id=14398&size=24x24 Updated by Kris Moore about 4 years ago

  • Target version changed from Unspecified to N/A

Also available in: Atom PDF