Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-43223

Exporting from JIRA Cloud does not remove Directory Synchronisation Job resulting in Directory does not exist errors

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      Summary

      When migrating from Cloud to Server, the directory poller job is not removed for the previous Crowd User Directory (aka Horde).

      Steps to Reproduce

      1. Export from a JIRA Cloud instance.
      2. Import it into JIRA Server.

      Expected Results

      There are no noticeable errors.

      Actual Results

      The following exception is thrown:

      2015-05-04 10:45:36,829 atlassian-scheduler-quartz1.clustered_Worker-1 ERROR      [com.atlassian.scheduler.JobRunnerResponse] Unable to synchronise directory
      com.atlassian.crowd.exception.DirectoryNotFoundException: Directory <10000> does not exist
      	at com.atlassian.jira.crowd.embedded.JiraDirectorySynchroniser.runJob(JiraDirectorySynchroniser.java:71)
      	at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:136)
      	at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:101)
      	at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:80)
      	at com.atlassian.scheduler.quartz1.Quartz1Job.execute(Quartz1Job.java:32)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:223)
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
      

      Additionally viewing the Scheduler Administration page will present errors as per the attached screenshot.

      Workaround

      You can remove the orphaned job directly from the database as per our Directory Sync Throws Error "Directory <2> does not exist" KB article.

      Notes

      When this is fixed, please include an upgrade task to clean up existing records, or some provide some SQL as a workaround that can be used to fix the problem.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dcurrie@atlassian.com Dave C
              Votes:
              24 Vote for this issue
              Watchers:
              33 Start watching this issue

              Dates

                Created:
                Updated: