Uploaded image for project: 'Kopano Groupware Core'
  1. Kopano Groupware Core
  2. KC-340

backup: unable to backup user when primary store of that user does not exist

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 8.3.0, 8.2.0, 8.1.1
    • Component/s: None
    • Security Level: Public
    • Labels:
      None
    • Environment:
      KC 8.1.0 final

      Description

      It should be possible to backup orphaned stores, even though their formerly associated user has no store currently associated with it.

      The following trace shows what happens. The orphaned store also had a delegate defined, but it seems this was skipped anyways (which is good if non-resolvable).

      Traceback:

      kopano-backup -S 94ADBF63AC7842AEB6314B4DD2C1B7A5 -c /etc/kopano/admin.cfg -O /backup/gap/94ADBF63AC7842AEB6314B4DD2C1B7A5
      2016-11-16 19:53:01,651 - backup - INFO - starting backup
      2016-11-16 19:53:01,822 - backup - INFO - queued 1 store(s) for parallel backup (1 processes)
      2016-11-16 19:53:02,042 - backup - INFO - queue processed in 0.22 seconds (0 changes, ~0.00/sec, 1 errors)
      2016-11-16 19:53:02,040 - backup0 - ERROR - Traceback (most recent call last):
        File "/usr/lib/python2.7/dist-packages/kopano/__init__.py", line 4324, in log_exc
          try: yield
        File "/usr/lib/python2.7/dist-packages/kopano_backup/__init__.py", line 79, in main
          file(path+'/delegates', 'w').write(dump_delegates(user, server, stats, self.log))
        File "/usr/lib/python2.7/dist-packages/kopano_backup/__init__.py", line 570, in dump_delegates
          log.warning("skipping delegate user for unknown userid")
        File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
          self.gen.throw(type, value, traceback)
        File "/usr/lib/python2.7/dist-packages/kopano/__init__.py", line 4326, in log_exc
          log.error(traceback.format_exc(e))
      AttributeError: 'dict' object has no attribute 'error'
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mkromer Michael Kromer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: