Whenever I go to create an SMB share it gives me this error...

HTWingNut

Cadet
Joined
Mar 31, 2022
Messages
2
How can I resolve this? Thanks.

Error Message image:
Error Message:

Code:
[EFAULT] net conf addshare [['net', '--json', 'conf', 'addshare', '{"service": "test", "parameters": {"vfs objects": {"parsed": ["streams_xattr", "shadow_copy_zfs", "acl_xattr", "zfs_core", "io_uring"], "raw": "streams_xattr shadow_copy_zfs acl_xattr zfs_core io_uring"}, "ea support": {"parsed": false, "raw": "False"}, "path": {"parsed": "/mnt/blah/test", "raw": "/mnt/blah/test"}, "tn:purpose": {"parsed": "DEFAULT_SHARE", "raw": "DEFAULT_SHARE"}, "comment": {"parsed": "", "raw": ""}, "available": {"parsed": true, "raw": "True"}, "guest ok": {"parsed": true, "raw": "True"}, "fruit:time machine max size": {"parsed": 0, "raw": "0"}, "tn:path_suffix": {"parsed": "", "raw": ""}, "tn:home": {"parsed": false, "raw": "False"}, "read only": {"parsed": false, "raw": "False"}, "browseable": {"parsed": true, "raw": "True"}, "fruit:time machine": {"parsed": false, "raw": "False"}, "access based share enum": {"parsed": false, "raw": "False"}, "hosts allow": {"parsed": [], "raw": ""}, "hosts deny": {"parsed": [], "raw": ""}, "posix locking": {"parsed": false, "raw": "False"}, "kernel oplocks": {"parsed": false, "raw": "False"}, "smbd max xattr size": {"parsed": 2097152, "raw": "2097152"}, "tn:vuid": {"parsed": "", "raw": ""}}}']] failed with error: directory_create_or_exist: mkdir failed on directory /var/db/system/samba4/private/msg.sock: No such file or directory Unable to initialize messaging context!
    
    
    Error: Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/middlewared/main.py", line 201, 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 1342, in _call
        return await methodobj(*prepared_call.args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/middlewared/service/crud_service.py", line 172, in create
        return await self.middleware._call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1342, in _call
        return await methodobj(*prepared_call.args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/middlewared/service/crud_service.py", line 197, in nf
        rv = await func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 44, in nf
        res = await f(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 177, in nf
        return await func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/middlewared/plugins/smb.py", line 1036, in do_create
        await self.middleware.call('sharing.smb.reg_addshare', data)
      File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1399, in call
        return await self._call(
               ^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1342, in _call
        return await methodobj(*prepared_call.args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/middlewared/plugins/smb_/registry_share.py", line 127, in reg_addshare
        await self.netconf(
      File "/usr/lib/python3/dist-packages/middlewared/plugins/smb_/registry_share.py", line 84, in netconf
        raise CallError(
    middlewared.service_exception.CallError: [EFAULT] net conf addshare [['net', '--json', 'conf', 'addshare', '{"service": "test", "parameters": {"vfs objects": {"parsed": ["streams_xattr", "shadow_copy_zfs", "acl_xattr", "zfs_core", "io_uring"], "raw": "streams_xattr shadow_copy_zfs acl_xattr zfs_core io_uring"}, "ea support": {"parsed": false, "raw": "False"}, "path": {"parsed": "/mnt/blah/test", "raw": "/mnt/blah/test"}, "tn:purpose": {"parsed": "DEFAULT_SHARE", "raw": "DEFAULT_SHARE"}, "comment": {"parsed": "", "raw": ""}, "available": {"parsed": true, "raw": "True"}, "guest ok": {"parsed": true, "raw": "True"}, "fruit:time machine max size": {"parsed": 0, "raw": "0"}, "tn:path_suffix": {"parsed": "", "raw": ""}, "tn:home": {"parsed": false, "raw": "False"}, "read only": {"parsed": false, "raw": "False"}, "browseable": {"parsed": true, "raw": "True"}, "fruit:time machine": {"parsed": false, "raw": "False"}, "access based share enum": {"parsed": false, "raw": "False"}, "hosts allow": {"parsed": [], "raw": ""}, "hosts deny": {"parsed": [], "raw": ""}, "posix locking": {"parsed": false, "raw": "False"}, "kernel oplocks": {"parsed": false, "raw": "False"}, "smbd max xattr size": {"parsed": 2097152, "raw": "2097152"}, "tn:vuid": {"parsed": "", "raw": ""}}}']] failed with error: directory_create_or_exist: mkdir failed on directory /var/db/system/samba4/private/msg.sock: No such file or directory
    Unable to initialize messaging context!
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Check the system dataset settings. Possibly switch to a different pool and then back to the desired one. Also possibly reboot.
 
Top