Uploaded image for project: 'FreeNAS / TrueNAS'
  1. FreeNAS / TrueNAS
  2. NAS-101062

Fix traceback when cloning a snapshot

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Low
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 11.2-U4
    • Component/s: Middleware
    • Labels:
      None

      Description

      OS Version: FreeNAS-11.3-MASTER-201903011000 (Build Date: Mar 1, 2019 6:15) Processor: Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz (8 cores) Memory: 16 GiB When I clone a snapshot. I get no errors and it shows up in my UI in a pool where I placed it, but shows ZERO kb size. In the NEW ui if i click edit permissions, it shows as nop user or group and no checkmarks for any of the permissions. If i try to set permissions the error I get "list index out of range". In legacy UI if i go to set permissions i get this error:
      Request Method:	GET
      Request URL:	http://192.168.192.77/legacy/storage/mountpoint/permission/mnt/backups/external/external-auto-20190218.1100-2w-clone/
      Software Version:	FreeNAS-11.3-MASTER-201903011000 (ea8c4fc)
      Exception Type:	ClientException
      Exception Value:	
      [ENOENT] Path /mnt/backups/external/external-auto-20190218.1100-2w-clone not found
      Exception Location:	/usr/local/lib/python3.7/site-packages/middlewared/client/client.py in call, line 454
      Server time:	Fri, 1 Mar 2019 14:12:12 -0800
      
      and this for traceback:
      Environment:
      
      Software Version: FreeNAS-11.3-MASTER-201903011000 (ea8c4fc)
      Request Method: GET
      Request URL: http://192.168.192.77/legacy/storage/mountpoint/permission/mnt/backups/external/external-auto-20190218.1100-2w-clone/
      
      
      Traceback:
      File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
        42.             response = get_response(request)
      File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py" in _legacy_get_response
        249.             response = self._get_response(request)
      File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
        178.             response = middleware_method(request, callback, callback_args, callback_kwargs)
      File "./freenasUI/freeadmin/middleware.py" in process_view
        163.         return login_required(view_func)(request, *view_args, **view_kwargs)
      File "/usr/local/lib/python3.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
        23.                 return view_func(request, *args, **kwargs)
      File "./freenasUI/storage/views.py" in mp_permission
        472.         form = forms.MountPointAccessForm(initial={'path': path})
      File "./freenasUI/storage/forms.py" in __init__
        1637.                 self.fields['mp_group'].initial = stat['group']
      File "./freenasUI/storage/forms.py" in __init__
        1628.                 stat = c.call('filesystem.stat', path)
      File "/usr/local/lib/python3.7/site-packages/middlewared/client/client.py" in call
        454.             raise ClientException(c.error, c.errno, c.trace, c.extra)
      
      Exception Type: ClientException at /legacy/storage/mountpoint/permission/mnt/backups/external/external-auto-20190218.1100-2w-clone/
      Exception Value: [ENOENT] Path /mnt/backups/external/external-auto-20190218.1100-2w-clone not found
      
      Just on a chance that it was a permission issue i did try the following:
      replicator# chown root:wheel -R external-auto-20190218.1100-2w-clone
      chown: -R: No such file or directory
      chown: external-auto-20190218.1100-2w-clone: No such file or directory
      replicator# chmod 777 external-auto-20190218.1100-2w-clone
      chmod: external-auto-20190218.1100-2w-clone: No such file or directory
      

        Attachments

        1. snap1.png
          snap1.png
          73 kB
        2. snap2.png
          snap2.png
          48 kB

          Attachments

            Activity

              People

              Assignee:
              william William Grzybowski
              Reporter:
              bugclerk Bug Clerk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Summary Panel