Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-109085

Error trying to access Sharing -> Windows Shares (SMB) in GUI

    XMLWordPrintable

    Details

    • Impact:
      Medium

      Description

      This could be related to the bug I reported yesterday, NAS-109079.

      I noticed my Android phone couldn't access my Samba share anymore, saying "Bad network name, check share permissions". According to /var/log/samba4/auth_audit.log the authentication went fine (NT_STATUS_OK).

      So I wanted to check in the GUI if I needed to change some configuration setting efter installing 12.0-U1.1.

      Clicking Sharing -> Windows Shares (SMB) gives me an error popup with heading "ValueError", message "no path specified", and  clicking "More info..." gives this:

        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, in _call
          return await methodobj(*prepared_call.args)
        File "/usr/local/lib/python3.8/site-packages/middlewared/service.py", line 591, in sharing_task_determine_locked
          return await self.middleware.call(
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1238, in call
          return await self._call(
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1206, in _call
          return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1110, in run_in_executor
          return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
        File "/usr/local/lib/python3.8/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
          result = self.fn(*self.args, **self.kwargs)
        File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/pool.py", line 2686, in path_in_locked_datasets
          return any(is_child(path, d['mountpoint']) for d in locked_datasets if d['mountpoint'])
        File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/pool.py", line 2686, in <genexpr>
          return any(is_child(path, d['mountpoint']) for d in locked_datasets if d['mountpoint'])
        File "/usr/local/lib/python3.8/site-packages/middlewared/utils/path.py", line 11, in is_child
          rel = os.path.relpath(child, parent)
        File "/usr/local/lib/python3.8/posixpath.py", line 453, in relpath
          raise ValueError("no path specified")
      ValueError: no path specified
      

      Reminds me of NAS-109079, where the trace also complains about "no path specified".

      Going to Sharing -> Unix Shares (NFS) works fine, I see my shares (and I can mount them from other machines).

        Attachments

          Attachments

            JEditor

              Issue Links

                Activity

                  People

                  Assignee:
                  releng Release Council
                  Reporter:
                  H T
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved: