Truenas cant find Users after upgrade to 25.04.0

I upgraded from EE to Fangtooth with no errors, however when I attempt to look at my local Truenas users, I see the following

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 515, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 562, in __run_body
    rv = await self.middleware.run_in_thread(self.method, *args)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 599, in run_in_thread
    return await self.run_in_executor(io_thread_pool_executor, method, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 596, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/smb_/passdb.py", line 89, in synchronize_passdb
    insert_passdb_entries(to_update)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/smb_/util_passdb.py", line 363, in insert_passdb_entries
    samu_data = _pack_pdb_entry(entry)
                ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/smb_/util_passdb.py", line 256, in _pack_pdb_entry
    data += _pack_samba_pascal_string(bytes.fromhex(entry.nt_pw))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: non-hexadecimal number found in fromhex() arg at position 0

If I roll back to EE, I can see the users in the UI. Any advice would be appreciated

I can find 1 similar bug schedule for 25.04.1 fix.
It applies when the users don’t have a home directory associated.

https://ixsystems.atlassian.net/browse/NAS-135012
(the ticket is private… but here for lookup by iX staff)

If that doesn’t smell right, report a bug.

If it does spell right… wait until May or test a nightly.

I believe this is due to one or more users having an empty string for a password. See this thread: SMB Authentication breaking after TrueNAS (FT) reboots - #2 by awalkerix.

I have this issue too.
When I run the command

midclt call user.query '[["smb", "=", true], ["unixhash", "=", "*"]]'

it returns an empty set of square braces

[]