Kopano-backup error when backup-target full

  • Hi guys,
    as mentioned in the topic: when it occurs that there is no free space on the target storage - backup failes of course. However, after freeing some space it does not resume. Following errors appear

    2020-06-24 23:02:18,645 - backup0 - 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 220, in main
        self.backup_hierarchy(path, stats, options, store, user, server, config)
      File "/usr/lib/python3/dist-packages/kopano_backup/__init__.py", line 287, in backup_hierarchy
        self.backup_folder(data_path, data_path, folder, subtree, config, options, stats, store, user, server)
      File "/usr/lib/python3/dist-packages/kopano_backup/__init__.py", line 325, in backup_folder
      File "/usr/lib/python3/dist-packages/kopano_backup/__init__.py", line 398, in commit
        item_db[sourcekey.encode('ascii')] = data
      File "/usr/lib/python3/dist-packages/bsddb3/__init__.py", line 248, in __setitem__
        _DeadlockWrap(wrapF)  # self.db[key] = value
      File "/usr/lib/python3/dist-packages/bsddb3/dbutils.py", line 67, in DeadlockWrap
        return function(*_args, **_kwargs)
      File "/usr/lib/python3/dist-packages/bsddb3/__init__.py", line 247, in wrapF
        self.db[key] = value
    bsddb3.db.DBPageNotFoundError: (-30986, 'BDB0075 DB_PAGE_NOTFOUND: Requested page not found') 

    My only solution is to delete the contents of the backup folder and restart the backup. Is there any another possibility?

  • Kopano

    Hi @KaBi,

    the actual backup data is stored in Berkeley DB files, which probably were corrupted when your disk ran out of space. Berkeleydb is a well used technique and there are external tools to inspect and repair these files.