When originally trying to enable the TLS checkbox option within the FTP service options the FTP service would not start stating some error "this service has failed to restart" when I saved changes. I had noticed that the certificate field was not being automatically filled. After stopping/starting the service a few times the certificate finally generated.
Code:
Environment: Software Version: FreeNAS-9.1.1-RELEASE-x86 (a752d35) Request Method: POST Request URL: https://192.168.X.X/admin/services/ftp/edit/1/ 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 165. 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/freeadmin/options.py" in wrapper 158. return self._admin.admin_view(view)(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view 91. response = view_func(request, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func 89. response = view_func(request, *args, **kwargs) File "/usr/local/www/freenasUI/../freenasUI/freeadmin/site.py" in inner 140. return view(request, *args, **kwargs) File "/usr/local/www/freenasUI/../freenasUI/freeadmin/options.py" in edit 451. mf.done(request=request, events=events) File "/usr/local/www/freenasUI/../freenasUI/services/forms.py" in done 280. ) or (self.instance.ftp_tls and not self.instance.ftp_tls_certfile): Exception Type: AttributeError at /admin/services/ftp/edit/1/ Exception Value: 'FTP' object has no attribute 'ftp_tls_certfile'
Disabling TLS of course makes this all go away and normal FTP works fine, so I don't know what's wrong.
Edit: Ok, it appears in my tired haze I managed to get FTPS and sFTP confused. My bad! I was only really interested in sFTP, but in the sake of knowing what went wrong, can anyone still provide an insight into the above?