Kopano-migration-pst Python error

Hi,

I’m using UCS 4.4-2 errata 322 and Kopano 8.7.1.0.
When I try to import a pst file with kopano-migration-pst locally on the UCS server, I always get the following error messages:

2019-10-30 10:29:48,369 - migration-pst - ERROR - unpack requires a bytes object of length 24
2019-10-30 10:29:48,374 - migration-pst - ERROR - Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/kopano_migration_pst/pst.py”, line 956, in init
pc_prop.value = EntryID(pc_prop.value)
File “/usr/lib/python3/dist-packages/kopano_migration_pst/pst.py”, line 1238, in init
self.rgbFlags, self.uid, self.nid = struct.unpack(‘4s16s4s’, bytes)
struct.error: unpack requires a bytes object of length 24

2019-10-30 10:29:48,375 - migration-pst - ERROR - unpack requires a bytes object of length 24
2019-10-30 10:29:48,375 - migration-pst - ERROR - Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/kopano_migration_pst/pst.py”, line 956, in init
pc_prop.value = EntryID(pc_prop.value)
File “/usr/lib/python3/dist-packages/kopano_migration_pst/pst.py”, line 1238, in init
self.rgbFlags, self.uid, self.nid = struct.unpack(‘4s16s4s’, bytes)
struct.error: unpack requires a bytes object of length 24

2019-10-30 10:29:48,376 - migration-pst - ERROR - unpack requires a bytes object of length 24
2019-10-30 10:29:48,377 - migration-pst - ERROR - Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/kopano_migration_pst/pst.py”, line 956, in init
pc_prop.value = EntryID(pc_prop.value)
File “/usr/lib/python3/dist-packages/kopano_migration_pst/pst.py”, line 1238, in init
self.rgbFlags, self.uid, self.nid = struct.unpack(‘4s16s4s’, bytes)
struct.error: unpack requires a bytes object of length 24

The pst file itself is okay, I can access it with Outlook.

Any idea why this fails?

Thanks

Hi @neoc,

when we last encountered this, it was because of a single corrupt item inside of the pst file, doing another export to pst fixed the issue for the customer back then.

If I read the support case right we also made some changes to the import tool to skip such items, so you could try upgrading to a newer version (customers with a valid subscription can meanwhile upgrade to 8.7.5).

Okay, I will try a new pst file export first. Many thanks for the quick response.

Just a quick update, the tool actually imported all items, it just showed a couple of error messages during the import.