Matter server can't start properly

My server had a problem and stopped working during the night.
When I woke up and powered it again, the Matter server can’t work fine anymore.

Any ides on how to fix it?

2024-12-31 07:41:34.190 (MainThread) ERROR [matter_server.server] Error doing task: Task exception was never retrieved

Traceback (most recent call last):

  File "/usr/local/lib/python3.12/site-packages/matter_server/server/storage.py", line 169, in async_save

    await self.server.loop.run_in_executor(None, do_save)

  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 59, in run

    result = self.fn(*self.args, **self.kwargs)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/local/lib/python3.12/site-packages/matter_server/server/storage.py", line 159, in do_save

    shutil.copy(self.filename, self.filename_backup)

  File "/usr/local/lib/python3.12/shutil.py", line 435, in copy

    copyfile(src, dst, follow_symlinks=follow_symlinks)

  File "/usr/local/lib/python3.12/shutil.py", line 260, in copyfile

    with open(src, 'rb') as fsrc:

         ^^^^^^^^^^^^^^^

FileNotFoundError: [Errno 2] No such file or directory: '/data/100484431334657788.json'

I confirm that the file doesn’t exist…

I only have one device connected to it, so starting from scratch should be an option too…

There should be a backup file, you can try copy that.