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

[SCALE] Shares cannot support both NFS and SMB

    XMLWordPrintable

    Details

    • Impact:
      Medium

      Description

      Within TrueNAS SCALE 12.10, enabling a dataset for export over NFS and then trying to export that same dataset over SMB throws up an error prompt saying "TypeError: string indices must be integers" and the following traceback:

       

      Error: Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 136, in call_method
          result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1196, in _call
          return await methodobj(*prepared_call.args)
        File "/usr/lib/python3/dist-packages/middlewared/service.py", line 459, in create
          rv = await self.middleware._call(
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1196, in _call
          return await methodobj(*prepared_call.args)
        File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 991, in nf
          return await f(*args, **kwargs)
        File "/usr/lib/python3/dist-packages/middlewared/plugins/smb.py", line 809, in do_create
          await self.middleware.call('sharing.smb.reg_addshare', data)
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1238, in call
          return await self._call(
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1196, in _call
          return await methodobj(*prepared_call.args)
        File "/usr/lib/python3/dist-packages/middlewared/plugins/smb_/registry.py", line 73, in reg_addshare
          conf = await self.share_to_smbconf(data)
        File "/usr/lib/python3/dist-packages/middlewared/plugins/smb_/registry.py", line 367, in share_to_smbconf
          await self.add_multiprotocol_conf(conf, gl, data['name'])
        File "/usr/lib/python3/dist-packages/middlewared/plugins/smb_/registry.py", line 237, in add_multiprotocol_conf
          "Applying parameters for mixed-protocol share.", data['name'])
      TypeError: string indices must be integers


      The SMB share SEEMS to be created once you close the error prompt. But after testing, it is not visible from Windows Explorer when browsing the server over SMB like \\server_name\.

       

      The share can be created properly if SMB is exported first and then NFS, but the SMB share settings cannot be modified after NFS is enabled; The same error as above appears.

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                awalker Andrew Walker
                Reporter:
                manetheren Alex
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: