How can I know when importing a disk is done?

Status
Not open for further replies.

Keven

Contributor
Joined
Aug 10, 2016
Messages
114
Hi,

I just use the auto import disk to import a usb HDD formatted in NTFS. In the DOC it says
When you click “Import Volume”, the disk will be automatically mounted, its contents will be copied to the specified ZFS dataset, and the disk will automatically unmount once the copy operation completes.

how do I know that it's unmount and I can safely remove the USB HDD without rebooting

When I'm going to the import disk I get that:

Code:
Request Method:    GET
Request URL:    http://10.0.1.14/storage/import/
Software Version:    FreeNAS-9.10.1 (d989edd)
Exception Type:    UnboundLocalError
Exception Value:   local variable 'traceback' referenced before assignment
Exception Location:    /usr/local/www/freenasUI/../freenasUI/storage/views.py in volimport, line 348
Server time:    Tue, 20 Sep 2016 14:02:25 -0400
Traceback


Environment:

Software Version: FreeNAS-9.10.1 (d989edd)
Request Method: GET
Request URL: http://10.0.1.14/storage/import/


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/storage/views.py" in volimport
  348.             traceback = traceback.format_exc() if sys.exc_info()[0] else False

Exception Type: UnboundLocalError at /storage/import/
Exception Value: local variable 'traceback' referenced before assignment


Request information

GET

No GET data
POST

No POST data
FILES

No FILES data
COOKIES

Variable    Value
fntreeSaveStateCookie    'root%2Croot%2F149%2Croot%2F184%2Croot%2F186%2Croot%2F43%2Croot%2F15%2Croot%2F43%2F53%2Croot%2F43%2F56'
csrftoken    '3nlDX4tNiOZTt6pM1Rstuw4ZbwyTIDGA'
sessionid    'q7xntzcfsosyrrkwtjza14u50d4a5ua2'
META

Variable    Value
HTTP_COOKIE    'sessionid=q7xntzcfsosyrrkwtjza14u50d4a5ua2; csrftoken=3nlDX4tNiOZTt6pM1Rstuw4ZbwyTIDGA; fntreeSaveStateCookie=root%2Croot%2F149%2Croot%2F184%2Croot%2F186%2Croot%2F43%2Croot%2F15%2Croot%2F43%2F53%2Croot%2F43%2F56'
SERVER_SOFTWARE    'nginx/1.8.1'
SCRIPT_NAME    u''
REDIRECT_STATUS    '200'
PATH_INFO    u'/storage/import/'
SERVER_PROTOCOL    'HTTP/1.1'
HTTP_REFERER    'http://10.0.1.14/'
DOCUMENT_URI    '/storage/import/'
wsgi.input    <flup.server.fcgi_base.InputStream object at 0x815ee5490>
GATEWAY_INTERFACE    'CGI/1.1'
CONTENT_LENGTH    ''
wsgi.run_once    False
SERVER_PORT    '80'
CSRF_COOKIE    u'3nlDX4tNiOZTt6pM1Rstuw4ZbwyTIDGA'
HTTP_X_REQUESTED_WITH    'XMLHttpRequest'
wsgi.version    (1, 0)
REMOTE_PORT    '53196'
HTTP_HOST    '10.0.1.14'
HTTPS    ''
REQUEST_METHOD    'GET'
HTTP_CONTENT_TYPE    'application/x-www-form-urlencoded'
REQUEST_URI    '/storage/import/'
QUERY_STRING    ''
HTTP_ACCEPT    '*/*'
HTTP_CONNECTION    'keep-alive'
REMOTE_ADDR    '10.0.1.12'
SERVER_NAME    'localhost'
HTTP_USER_AGENT    'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36'
HTTP_ACCEPT_LANGUAGE    'fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4,fr-CA;q=0.2'
wsgi.multithread    True
wsgi.multiprocess    False
wsgi.errors    <flup.server.fcgi_base.TeeOutputStream object at 0x815f2c8d0>
CONTENT_TYPE    'application/x-www-form-urlencoded'
wsgi.url_scheme    'http'
HTTP_ACCEPT_ENCODING    'gzip, deflate, sdch'
DOCUMENT_ROOT    '/usr/local/etc/nginx/html'
SERVER_ADDR    '10.0.1.14'
 

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
Looks like something crashed. You might consider submitting a bug report. In the meantime, connect the disk to a client computer and transfer the data over the network. Remember, it's a one-time operation.
 

Keven

Contributor
Joined
Aug 10, 2016
Messages
114
ok thank you for the info.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
I think it's the second Import traceback I've seen recently, dunno if the other guy ever filed a bug report.

This is code that is not used nearly as often as other things in FreeNAS, for obvious reasons, so please file a bug report ASAP.
 

Keven

Contributor
Joined
Aug 10, 2016
Messages
114
Report is done #17681, In the import every picture I needed from this drive actually transfer so I just shutdown the NAS unplug the USB drive and power back up.

Thanks for the help I wasn't sure if it was a bug of just normal log as the importation goes.
 
Status
Not open for further replies.
Top