Project

General

Profile

Bug #17280

backup config

Added by Ken Nicklowicz about 4 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
William Grzybowski
Category:
OS
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

Cannot get this to work. I setup TFTP software on pc, and when I try VIA CMD on freenas box or from web GUI it fails. I get something about location error or authentication failure and the software I am using is setup for secure shell and should work..

If you could provide documentation on how to correctly backup my nas over the wire to pc

I can do the config but would like to do the backup option found in freenas

History

#1 Updated by Ken Nicklowicz about 4 years ago

  • File debug-freenas-20160904002729.txz added

#2 Updated by Ken Nicklowicz about 4 years ago

Ken Nicklowicz wrote:

Cannot get this to work. I setup TFTP software on pc, and when I try VIA CMD on freenas box or from web GUI it fails. I get something about location error or authentication failure and the software I am using is setup for secure shell and should work..

If you could provide documentation on how to correctly backup my nas over the wire to pc

I can do the config but would like to do the backup option found in freenas

PS: I am getting a lot of errors! can you take a look at the attached Debug and help give me an idea to resolve some of these. Router is PFsense, as I am taking an interest in the BSD project, and recently setup a pc with PCbsd

#3 Updated by Ken Nicklowicz about 4 years ago

ok I found I didn't have SSH enabled.. Here is what happened when I tried

Request Method:
POST

Request URL:
http://192.168.1.198/admin/services/ssh/edit/1/

Software Version:
FreeNAS-9.10.1 (d989edd)

Exception Type:
IOError

Exception Value:
[Errno 2] No such file or directory: '/etc/ssh/ssh_host_ecdsa_key.pub'

Exception Location:
/usr/local/www/freenasUI/../freenasUI/services/forms.py in save, line 625

Server time:
Sun, 4 Sep 2016 00:38:59 -0700

Traceback

Environment:

Software Version: FreeNAS-9.10.1 (d989edd)
Request Method: POST
Request URL: http://192.168.1.198/admin/services/ssh/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
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
209. 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
567. mf.save()
File "/usr/local/www/freenasUI/../freenasUI/services/forms.py" in save
625. with open(keyfile, "rb") as f:

Exception Type: IOError at /admin/services/ssh/edit/1/
Exception Value: [Errno 2] No such file or directory: '/etc/ssh/ssh_host_ecdsa_key.pub'

Request information

GET

No GET data

POST

Variable

Value

ssh_rootlogin u'on'
all u''
ssh_options u''
ssh_passwordauth u'on'
__form_id u'dialogForm_ssh'
ssh_sftp_log_level u''
ssh_tcpfwd u'on'
ssh_sftp_log_facility u''
ssh_tcpport u'22'
selecAt_from u'em0'

FILES

No FILES data

COOKIES

Variable

Value

csrftoken 'cvWlPYMSFQlB06FWKaVvRtt8nrrS6L6y'
sessionid '29yxtgdqmepu5dd3d7zz3kmwrjxbq148'
fntreeSaveStateCookie 'root%2Croot%2F51%2Croot%2F8%2Croot%2F22%2Croot%2F22%2F32%2Croot%2F36%2Croot%2F24%2Croot%2F24%2F25%2Croot%2F24%2F28%2Croot%2F24%2F32%2Croot%2F56%2Croot%2F56%2F135%2Croot%2F24%2F35%2Croot%2F56%2F57%2Croot%2F203'

META

Variable

Value

SERVER_PROTOCOL 'HTTP/1.1'
wsgi.multithread True
HTTPS ''
wsgi.run_once False
HTTP_ACCEPT_ENCODING 'gzip, deflate'
SERVER_SOFTWARE 'nginx/1.8.1'
SCRIPT_NAME u''
CONTENT_LENGTH '172'
wsgi.version (1, 0)
REMOTE_PORT '58093'
HTTP_ACCEPT_LANGUAGE 'en-US'
HTTP_HOST '192.168.1.198'
DOCUMENT_URI '/admin/services/ssh/edit/1/'
SERVER_NAME 'localhost'
SERVER_PORT '80'
HTTP_X_CSRFTOKEN 'cvWlPYMSFQlB06FWKaVvRtt8nrrS6L6y'
HTTP_USER_AGENT 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586'
PATH_INFO u'/admin/services/ssh/edit/1/'
HTTP_CONNECTION 'Keep-Alive'
HTTP_CONTENT_LENGTH '172'
HTTP_CACHE_CONTROL 'no-cache'
wsgi.errors <flup.server.fcgi_base.TeeOutputStream object at 0x814462090>
HTTP_CONTENT_TYPE 'application/x-www-form-urlencoded'
REQUEST_URI '/admin/services/ssh/edit/1/'
HTTP_REFERER 'http://192.168.1.198/'
REDIRECT_STATUS '200'
CSRF_COOKIE u'cvWlPYMSFQlB06FWKaVvRtt8nrrS6L6y'
wsgi.input <flup.server.fcgi_base.InputStream object at 0x814462d10>
wsgi.multiprocess False
SERVER_ADDR '192.168.1.198'
DOCUMENT_ROOT '/usr/local/etc/nginx/html'
wsgi.url_scheme 'http'
GATEWAY_INTERFACE 'CGI/1.1'
REMOTE_ADDR '192.168.1.199'
HTTP_ACCEPT '*/*'
QUERY_STRING ''
CONTENT_TYPE 'application/x-www-form-urlencoded'
REQUEST_METHOD 'POST'
HTTP_COOKIE 'csrftoken=cvWlPYMSFQlB06FWKaVvRtt8nrrS6L6y; sessionid=29yxtgdqmepu5dd3d7zz3kmwrjxbq148; fntreeSaveStateCookie=root%2Croot%2F51%2Croot%2F8%2Croot%2F22%2Croot%2F22%2F32%2Croot%2F36%2Croot%2F24%2Croot%2F24%2F25%2Croot%2F24%2F28%2Croot%2F24%2F32%2Croot%2F56%2Croot%2F56%2F135%2Croot%2F24%2F35%2Croot%2F56%2F57%2Croot%2F203'
HTTP_X_REQUESTED_WITH 'XMLHttpRequest'

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

  • Assignee set to William Grzybowski
  • Priority changed from No priority to Nice to have

Willam, is this a config issue in his settings?

#5 Updated by William Grzybowski about 4 years ago

  • Status changed from Unscreened to Resolved

This traceback has already been resolved in 33dc96b6370fbe

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

  • Seen in changed from Unspecified to N/A

#7 Updated by Dru Lavigne about 3 years ago

  • File deleted (debug-freenas-20160904002729.txz)

#8 Updated by Dru Lavigne about 3 years ago

  • Target version set to N/A
  • Private changed from Yes to No

Also available in: Atom PDF