Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-3653

Jira Service Desk stops processing email following any connectivity issues between the instance and database

    • Icon: Bug Bug
    • Resolution: Tracked Elsewhere
    • Icon: Medium Medium
    • None
    • 3.0.10, 3.1.4
    • Email - Incoming

      Summary

      After configuring Receiving request by email , performing the test in Application > Email Request returns 'No problems found with email settings configuration.Successfully connected to the specified email server.', however, when click on 'View Log' , nothing is showing in connectivity log tab and processing log tab.

      Steps to Reproduce

      This can happen if any abrupt interruption occurs towards the database/JIRA itself.

      • network issue towards DB
      • Database server is restarted.
      • Database server is upgraded.

      Expected Results

      Emails are able to be retrieved by JSD
      Scheduled Service should be clever enough to perform a retry

      Actual Results

      Emails are not able to be retrieved
      Scheduled Service are stuck

      Notes

      Looking at the Scheduled Jobs, the scheduled jobs seems to hangs and is not running (by referring to 'Next Run' date, compare with the real time of the server. The next run date/time will be backdated)

      A Number of Root Cause investigation based on the error:
      Fixing below issue can help to solve the issue as well (as a workaround)

      Caused by: org.ofbiz.core.entity.GenericDataSourceException: SQL Exception while executing the following:SELECT ID, JOB_ID, JOB_RUNNER_KEY, SCHED_TYPE, INTERVAL_MILLIS, FIRST_RUN, CRON_EXPRESSION, TIME_ZONE, NEXT_RUN, VERSION, PARAMETERS FROM public.clusteredjob WHERE JOB_ID=? (FATAL: terminating connection due to administrator command)
      
      
      com.atlassian.jira.exception.DataAccessException: org.ofbiz.core.entity.GenericDataSourceException: Unable to establish a connection with the database. (IO Error: The Network Adapter could not establish the connection)
      
      
      • This is due to DB is restarted/lost connection temporarily and JIRA was not restart together afterwards
      Caused by: org.ofbiz.core.entity.GenericDataSourceException: Unable to establish a connection with the database. (Unknown server host name 'xxx.yyy.corp.com'.)
      	at org.ofbiz.core.entity.jdbc.SQLProcessor.getConnection(SQLProcessor.java:399)
      	at org.ofbiz.core.entity.jdbc.SQLProcessor.prepareStatement(SQLProcessor.java:543)
      	at org.ofbiz.core.entity.GenericDAO.createEntityListIterator(GenericDAO.java:960)
      	at org.ofbiz.core.entity.GenericDAO.selectListIteratorByCondition(GenericDAO.java:883)
      	at org.ofbiz.core.entity.GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java:194)
      	at com.atlassian.jira.ofbiz.DefaultOfBizDelegator.findListIteratorByCondition(DefaultOfBizDelegator.java:398)
      
      
      • There are DNS/routing/network issue from JIRA to Database

      Workaround

      Restart JIRA

          Form Name

            [JSDSERVER-3653] Jira Service Desk stops processing email following any connectivity issues between the instance and database

            Jakub Reczycki made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 703428 ]
            set-jac-bot made changes -
            Summary Original: JIRA Service Desk stops creating issues from E-mails after a database connectivity problem New: Jira Service Desk stops processing email following any connectivity issues between the instance and database
            Owen made changes -
            Workflow Original: JSD Bug Workflow v5 - TEMP [ 2304004 ] New: JAC Bug Workflow v3 [ 3124906 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 [ 2057965 ] New: JSD Bug Workflow v5 - TEMP [ 2304004 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 - TEMP [ 2055432 ] New: JSD Bug Workflow v5 [ 2057965 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 [ 1955183 ] New: JSD Bug Workflow v5 - TEMP [ 2055432 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v4 [ 1614781 ] New: JSD Bug Workflow v5 [ 1955183 ]
            Confluence Escalation Bot (Inactive) made changes -
            Labels Original: cqt New: affects-server cqt
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v2 [ 1602053 ] New: JSD Bug Workflow v4 [ 1614781 ]
            crf made changes -
            Remote Link New: This issue links to "Caesium #13 (Web Link)" [ 210692 ]

              Unassigned Unassigned
              amasut Azfar Masut (Inactive)
              Affected customers:
              2 This affects my team
              Watchers:
              15 Start watching this issue

                Created:
                Updated:
                Resolved: