Complete
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Andrew Walker
Andrew WalkerReporter
Alex
AlexLabels
Impact
Medium
Components
Fix versions
Affects versions
Priority
More fields
More fields
Katalon Platform
Katalon Platform
Created October 29, 2020 at 3:08 PM
Updated July 1, 2022 at 5:00 PM
Resolved November 4, 2020 at 5:48 PM
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.