Scale 27.0.0-RC.1 Authentication Timeout Error

I’m running into a weird issue on my home NAS running TrueNAS Scale 27.0.0-RC.1 (early adopter) where most of the time everything works as expected, but I occasionally (once a week maybe?) try to log in to the web interface (I use firefox and log in as Admin) and get an error that my authentication token has expired. At this point, I cannot login via SSH either- the session closes immediately.

When I try to restart the system manually from the console, it fails and I see this error (below) flash repeatedly on screen. I end up having to power it off fully and power it back on, at which point everything seems to work again.

I’m going to try to remember to explicitly log out from the web interface in the future, rather than just closing the browser. If that stops this from happening, I’ll update the issue.

Here is the error that flashes on the screen. I transcribed it from a screenshot, so any typos are my fault.

Traceback (most recent call last):
  File "/usr/bin/cli", line 33, in <module>
    sys.exit(load_entry_point('midcli==0.0.0', 'console_scripts', 'cli')())

  File "/usr/lib/python3/dist-packages/midcli/__main__.py", line313, in main
    cli=CLI(**args.__dict__)
  File "/usr/lib/python3/dist-packages/midcli/__main__.py", lin 52, in __init__
    self.context = Context(self, url=url, user=user, password=password, timeout=timeout,
                   ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                           editor=editor, menu=menu, menu_item=menu_item, mode=mode, stacks=stacks)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/midcli/context.py", line 194, in __init__
    self.reload()
    ~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/midcli/context.py", line 248, in reload
    self.hostname = c.call('system.hostname')
                    ~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/truenas_api_client/__init__.py", line 869, in call
    return self.wait(c, callback=callback, job=job, timeout=timeout,
           ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                     _log_py_enotauthenticated=_log_py_enotauthenticated)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/truenas_api_client/__init__.py", line 916, in wait
    raise c.error
truenas_api_client.exc.ClientException: [ENOTAUTHENTICATED] Not authenticated