Core to Scale migrationerror: smb.synchronize_group_mappings

red66

Cadet
Joined
Jan 2, 2023
Messages
2
Just completed migration from Core to SCALE. Seemed to go well, except for one error. Under Jobs there is an error relating to "smb.synchronize_group_mappings". It appear after a reboot. I am using Active Directory.

The AD domain group memberships are visible using wbinfo -u/-g as expected.

Following some other forum post, I noticed that the output from the following command might be useful (although I'm not 100% sure what it does):

Code:
midclt call core.get_jobs '[["method", "=", "smb.synchronize_group_mappings"]]' | jq


The output is:

Code:
[
  {
    "id": 34,
    "method": "smb.synchronize_group_mappings",
    "arguments": [],
    "description": null,
    "abortable": false,
    "logs_path": null,
    "logs_excerpt": null,
    "progress": {
      "percent": 0,
      "description": "",
      "extra": null
    },
    "result": null,
    "error": "(6, 'WBC_ERR_WINBIND_NOT_AVAILABLE: wbcInterfaceDetails failed', '../../nsswitch/py_wbclient.c:1680')",
    "exception": "Traceback (most recent call last):\n  File \"/usr/lib/python3/dist-packages/middlewared/job.py\", line 426, in run\n    await self.future\n  File \"/usr/lib/python3/dist-packages/middlewared/job.py\", line 461, in __run_body\n    rv = await self.method(*([self] + args))\n  File \"/usr/lib/python3/dist-packages/middlewared/plugins/smb_/groupmap.py\", line 492, in synchronize_group_mappings\n    await self.sync_foreign_groups()\n  File \"/usr/lib/python3/dist-packages/middlewared/plugins/smb_/groupmap.py\", line 133, in sync_foreign_groups\n    domain_info = await self.middleware.call('idmap.domain_info',\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1306, in call\n    return await self._call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1266, in _call\n    return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1169, in run_in_executor\n    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))\n  File \"/usr/lib/python3.9/concurrent/futures/thread.py\", line 52, in run\n    result = self.fn(*self.args, **self.kwargs)\n  File \"/usr/lib/python3/dist-packages/middlewared/plugins/idmap.py\", line 343, in domain_info\n    return WBClient().domain_info()\n  File \"/usr/lib/python3/dist-packages/middlewared/plugins/idmap_/utils.py\", line 53, in __init__\n    self.ctx = wbclient.Ctx()\nwbclient.WBCError: (6, 'WBC_ERR_WINBIND_NOT_AVAILABLE: wbcInterfaceDetails failed', '../../nsswitch/py_wbclient.c:1680')\n",
    "exc_info": {
      "repr": "WBCError(6, 'WBC_ERR_WINBIND_NOT_AVAILABLE: wbcInterfaceDetails failed', '../../nsswitch/py_wbclient.c:1680')",
      "type": "WBCError",
      "extra": null
    },
    "state": "FAILED",
    "time_started": {
      "$date": 1672700269702
    },
    "time_finished": {
      "$date": 1672700271152
    }
  }
]


Can anyone point me in the right direction to fix this, please?

Richard
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
Not a clue here. I can tell you that AD does work in Bluefin
 

red66

Cadet
Joined
Jan 2, 2023
Messages
2
I reinstalled TrueNAS, and get the same error even before I reimport the dataset.

Bug raised in Jira.
 

johlc

Cadet
Joined
May 20, 2023
Messages
3
I am also getting this error. not sure what it means
Error: (6, 'WBC_ERR_WINBIND_NOT_AVAILABLE: wbcInterfaceDetails failed', '../../nsswitch/py_wbclient.c:1680')
 
Top