The patch of https://forum.kopano.io/topic/1849/kopano-search-unable-to-create-new-sync-state didn’t work to solve one of the exceptions.
2020-06-01 13:45:03,513 - search - WARNING - Sync state does not exist on server (anymore); requesting new one
2020-06-01 13:45:03,515 - search - ERROR - Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kopano/ics.py", line 290, in sync
exporter.Config(stream, flags, importer, restriction, None, None, 0)
File "/usr/lib/python3/dist-packages/MAPICore.py", line 1585, in Config
return _MAPICore.IExchangeExportChanges_Config(self, lpStream, ulFlags, lpUnk, lpRestriction, lpIncludeProps, lpExcludeProps, ulBufferSize)
MAPI.Struct.MAPIErrorNotFound: MAPI error 8004010F (MAPI_E_NOT_FOUND)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kopano/log.py", line 102, in log_exc
try: yield
File "/usr/lib/python3/dist-packages/kopano_search/__init__.py", line 358, in incremental_sync
new_state = self.server.sync(importer, self.state, log=self.log)
File "/usr/lib/python3/dist-packages/kopano/server.py", line 1070, in sync
return _ics.sync(self, self.mapistore, importer, state, max_changes,
File "/usr/lib/python3/dist-packages/kopano/ics.py", line 297, in sync
syncid, changeid = struct.unpack('<II', _bdec(state))
struct.error: unpack requires a buffer of 8 bytes
But at least after running
kopano-search --reindex -u myuser
the search returns also newer mails.
The exception above is still there nd mails arriving after the reindex are not found.