Errors after Upgrade to TrueNAS-13.0-U6.7

I upgrade from TrueNAS 12 to TrueNAS-13.0-U6.7
after reboot I lost all users on /etc/passwd and all SMB configuration
Manualy on shell command line I restored SMB configuraction and create users ang give SMB access with adduser and smbpasswd.
The big problem is that i can not manage users in graphic mode:
send this error:

Error: Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/middlewared/main.py”, line 141, in call_method
result = await self.middleware._call(message[‘method’], serviceobj, methodobj, params, app=self)
File “/usr/local/lib/python3.9/site-packages/middlewared/main.py”, line 1242, in _call
return await methodobj(*prepared_call.args)
File “/usr/local/lib/python3.9/site-packages/middlewared/schema.py”, line 981, in nf
return await f(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/middlewared/plugins/account.py”, line 209, in query
result = await self.middleware.call(
File “/usr/local/lib/python3.9/site-packages/middlewared/main.py”, line 1285, in call
return await self._call(
File “/usr/local/lib/python3.9/site-packages/middlewared/main.py”, line 1242, in _call
return await methodobj(*prepared_call.args)
File “/usr/local/lib/python3.9/site-packages/middlewared/schema.py”, line 981, in nf
return await f(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/middlewared/plugins/datastore/read.py”, line 164, in query
result = await self._queryset_serialize(
File “/usr/local/lib/python3.9/site-packages/middlewared/plugins/datastore/read.py”, line 214, in _queryset_serialize
result.append(await self._serialize(
File “/usr/local/lib/python3.9/site-packages/middlewared/plugins/datastore/read.py”, line 230, in _serialize
data = await self.middleware.call(extend, data, extend_context_value)
File “/usr/local/lib/python3.9/site-packages/middlewared/main.py”, line 1285, in call
return await self._call(
File “/usr/local/lib/python3.9/site-packages/middlewared/main.py”, line 1242, in _call
return await methodobj(*prepared_call.args)
File “/usr/local/lib/python3.9/site-packages/middlewared/plugins/account.py”, line 169, in user_extend
user[‘sshpubkey’] = await self.middleware.run_in_thread(self._read_authorized_keys, user[‘home’])
File “/usr/local/lib/python3.9/site-packages/middlewared/main.py”, line 1161, in run_in_thread
return await self.run_in_executor(self.thread_pool_executor, method, *args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/middlewared/main.py”, line 1158, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.9/site-packages/middlewared/plugins/account.py”, line 155, in _read_authorized_keys
with open(keysfile, ‘r’) as f:
NotADirectoryError: [Errno 20] Not a directory: ‘/nonexistent/.ssh/authorized_keys’

WHAT CAN I DO to solve this?

It looks like you have configured a user with the home directory /nonexistent and maybe set some authorized keys for it, which is of course an invalid configuration, but not a combination we were expecting. Try from shell mkdir -p /nonexistent/.ssh, then load up your users and fix your home directories. If someone needs SSH access, set a valid home directory.