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

spamd: daemon should try to reconnect when kopano-server isn't reachable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: To Do
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 8.7.x
    • Component/s: None
    • Security Level: Public
    • Labels:
      None
    • Environment:
      8.7.0

      Description

      currently kopano-spamd directly stops when kopano-server isn't reachable. Before giving up the service should try to reconnect.

      $ tail -f /var/log/kopano/spamd.log &
      [1] 31251
      
      $ 2019-03-26 20:41:06,935 - spamd - INFO - starting spamd
      
      $ systemctl restart kopano-server
      2019-03-26 20:41:37,120 - spamd - 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_spamd/__init__.py", line 41, in main
          state = server.sync(importer, state)
        File "/usr/lib/python3/dist-packages/kopano/server.py", line 853, in sync
          return _ics.sync(self, self.mapistore, importer, state, max_changes, window=window, begin=begin, end=end, stats=stats)
        File "/usr/lib/python3/dist-packages/kopano/ics.py", line 253, in sync
          exporter.Config(stream, flags, importer, restriction, None, None, 0)
        File "/usr/lib/python3/dist-packages/MAPICore.py", line 1906, in Config
          return _MAPICore.IExchangeExportChanges_Config(self, lpStream, ulFlags, lpUnk, lpRestriction, lpIncludeProps, lpExcludeProps, ulBufferSize)
      MAPI.Struct.MAPIErrorNetworkError: MAPI error 80040115 (MAPI_E_NETWORK_ERROR)
      
      2019-03-26 20:41:37,985 - spamd - INFO - stopping spamd
      

        Attachments

          Activity

            People

            Assignee:
            mdufour Mark Dufour
            Reporter:
            fbartels Felix Bartels
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: