Errors during restore with kopano-backup



  • Hi there,

    after having several problems with my kopano database I decided to re-build it by backing up all users, recreating the kopano mysql database, recreating the users and restoring the backups. I used kopano-backup without arguments to have all users backed up.

    During backup, I received a few warnings about missing attachments and one about a rule target:

    2019-08-12 10:03:01,588 - backup - WARNING - no data found for attachment of item with entryid 0000000066221B848FD243ED968D4888108E765701000000050000002F621CDA04C6AE48BA4FB8F144C1762700000000
    2019-08-12 11:16:28,627 - backup0 - WARNING - could not resolve rule target: encoding with 'ascii' codec failed (TypeError: ascii_encode() argument 1 must be str, not None)
    

    Besides that backup seemed to continue successfully. Since I had some database problems as mentioned above (i.e. phone numbers in contacts not deletable via z-push and not even shown in webapp) I was not expecting a completely clean backup process.

    But what makes my worry a little bit is that during restore kopano-backup logged several of these errors:

    2019-08-12 13:00:40,348 - backup - ERROR - Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/kopano/log.py", line 103, in log_exc
        try: yield
      File "/usr/lib/python3/dist-packages/kopano_backup/__init__.py", line 744, in restore_folder
        item = folder.create_item(loads=data, attachments=not self.options.skip_attachments)
      File "/usr/lib/python3/dist-packages/kopano/folder.py", line 483, in create_item
        item = _item.Item(self, eml=eml, ics=ics, vcf=vcf, load=load, loads=loads, attachments=attachments, create=True, save=save)
      File "/usr/lib/python3/dist-packages/kopano/item.py", line 206, in __init__
        self.loads(loads, attachments=attachments)
      File "/usr/lib/python3/dist-packages/kopano/item.py", line 1198, in loads
        self._load(_pickle_loads(s), attachments)
      File "/usr/lib/python3/dist-packages/kopano/item.py", line 1188, in _load
        stream.Write(data)
      File "/usr/lib/python3/dist-packages/MAPICore.py", line 229, in Write
        return _MAPICore.ISequentialStream_Write(self, pv)
    TypeError: in method 'ISequentialStream_Write', argument 2 of type 'void const *'
    

    The number of warnings during backup does not correspond to the number of errors during restore. I guess a few items have not been (cleanly) restored. I wonder if it might be possible to find out which items are missing now.

    Does anybody experienced a similar behaviour or has an idea how to solve this?

    Kopano 8.7.5 with MySQL 5.7.27 on Ubuntu 18.04.1


Log in to reply