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

External system import fails when there is a project without Permission Scheme

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 7.3.6, 7.13.5, 8.13.4, 8.20.10, 9.12.15
    • Jira Importers Plugin
    • None

      Summary

      External System import fails when there is a project without Permission Scheme associated. It happens if the instance has at least 1 project without permission scheme, no matter which one. Which means, it’ll happen even if the project without permission scheme is not the one where you’re performing the import.

      Environment

      An instance which has a project without permission Scheme associated.

      Steps to Reproduce

      1. In an instance which has a project without Permission Scheme associated
      2. Perform an external system import. (CSV, Redmine...)

      Expected Results

      The import should be completed and issues should be imported

      Actual Results

      Different errors can be seen in the logs depending upon when this error is faced during the import.

      In the below case, the error can be seen after finishing the Issues import

       

      2017-04-14 14:29:06,867 INFO - Import started by user using com.atlassian.jira.plugins.importer.redmine.RedmineDataBean
      2017-04-14 14:29:06,869 INFO - ------------------------------
      2017-04-14 14:29:06,870 INFO - Importing: Users
      2017-04-14 14:29:06,870 INFO - ------------------------------
      2017-04-14 14:29:06,871 INFO - Only new items will be imported
      2017-04-14 14:29:38,212 INFO - 558 users associated with import. All of them imported as inactive, this can be changed after import in User Access step.
      2017-04-14 14:29:38,214 INFO - ------------------------------
      2017-04-14 14:29:38,214 INFO - Finished Importing : Users
      2017-04-14 14:29:38,214 INFO - ------------------------------
      2017-04-14 14:29:38,215 INFO - 0 users successfully created.
      2017-04-14 14:29:38,218 INFO - Retrieving projects...
      2017-04-14 14:29:38,219 INFO - Project ExternalProject
      {id='352', key='XXX', externalName='Project name', name='Project name'}
      exists and found correctly.
      2017-04-14 14:30:08,555 INFO - ------------------------------
      2017-04-14 14:30:08,556 INFO - Importing: Versions
      2017-04-14 14:30:08,557 INFO - ------------------------------
      2017-04-14 14:30:08,557 INFO - Only new items will be imported
      2017-04-14 14:30:08,817 INFO - ------------------------------
      2017-04-14 14:30:08,836 INFO - Finished Importing : Versions
      2017-04-14 14:30:08,838 INFO - ------------------------------
      2017-04-14 14:30:08,840 INFO - ------------------------------
      2017-04-14 14:30:08,841 INFO - Importing: Components
      2017-04-14 14:30:08,841 INFO - ------------------------------
      2017-04-14 14:30:08,842 INFO - Only new items will be imported
      2017-04-14 14:30:08,946 INFO - ------------------------------
      2017-04-14 14:30:08,947 INFO - Finished Importing : Components
      2017-04-14 14:30:08,948 INFO - ------------------------------
      2017-04-14 14:30:08,948 INFO - Retrieving custom fields...
      2017-04-14 14:30:08,958 INFO - ------------------------------
      2017-04-14 14:30:08,959 INFO - Importing: Issues
      2017-04-14 14:30:08,959 INFO - ------------------------------
      2017-04-14 14:30:08,960 INFO - Only new items will be imported
      2017-04-14 14:30:08,967 INFO - ------------------------------
      2017-04-14 14:30:08,967 INFO - Finished Importing : Issues
      2017-04-14 14:30:08,968 INFO - ------------------------------
      2017-04-14 14:30:08,968 ERROR - Unexpected failure occurred. Importer will stop immediately. Data may be in an unstable state
      2017-04-14 14:30:08,970 INFO - No issues need to be reindexed.
      

       

      Here, we can see the error during Importing: Issue Links & Subtasks after Issues import is successful

      2021-11-09 14:50:30,416+0000 JiraTaskExecutionThread-749 INFO G01042158 876x4695463x1 1wcfi7k 26.8.80.78 /secure/admin/ImporterLogsPage%21import.jspa [c.a.j.p.i.i.i.i.AbstractDataImporter$1Thread[https-jsse-nio-8443-exec-93 url:/secure/admin/I...Page%21import.jspa username:G01042158,5,main]] 1569 issues successfully created
      2021-11-09 14:50:30,416+0000 JiraTaskExecutionThread-749 INFO G01042158 876x4695463x1 1wcfi7k 26.8.80.78 /secure/admin/ImporterLogsPage%21import.jspa [c.a.j.p.i.i.i.i.AbstractDataImporter$1Thread[https-jsse-nio-8443-exec-93 url:/secure/admin/I...Page%21import.jspa username:G01042158,5,main]] ------------------------------
      2021-11-09 14:50:30,416+0000 JiraTaskExecutionThread-749 INFO G01042158 876x4695463x1 1wcfi7k 26.8.80.78 /secure/admin/ImporterLogsPage%21import.jspa [c.a.j.p.i.i.i.i.AbstractDataImporter$1Thread[https-jsse-nio-8443-exec-93 url:/secure/admin/I...Page%21import.jspa username:G01042158,5,main]] Finished Importing : Issues
      2021-11-09 14:50:30,416+0000 JiraTaskExecutionThread-749 INFO G01042158 876x4695463x1 1wcfi7k 26.8.80.78 /secure/admin/ImporterLogsPage%21import.jspa [c.a.j.p.i.i.i.i.AbstractDataImporter$1Thread[https-jsse-nio-8443-exec-93 url:/secure/admin/I...Page%21import.jspa username:G01042158,5,main]] ------------------------------
      2021-11-09 14:50:30,439+0000 JiraTaskExecutionThread-749 INFO G01042158 876x4695463x1 1wcfi7k 26.8.80.78 /secure/admin/ImporterLogsPage%21import.jspa [c.a.j.p.i.i.i.i.AbstractDataImporter$1Thread[https-jsse-nio-8443-exec-93 url:/secure/admin/I...Page%21import.jspa username:G01042158,5,main]] ------------------------------
      2021-11-09 14:50:30,439+0000 JiraTaskExecutionThread-749 INFO G01042158 876x4695463x1 1wcfi7k 26.8.80.78 /secure/admin/ImporterLogsPage%21import.jspa [c.a.j.p.i.i.i.i.AbstractDataImporter$1Thread[https-jsse-nio-8443-exec-93 url:/secure/admin/I...Page%21import.jspa username:G01042158,5,main]] Importing: Issue Links & Subtasks
      2021-11-09 14:50:30,439+0000 JiraTaskExecutionThread-749 INFO G01042158 876x4695463x1 1wcfi7k 26.8.80.78 /secure/admin/ImporterLogsPage%21import.jspa [c.a.j.p.i.i.i.i.AbstractDataImporter$1Thread[https-jsse-nio-8443-exec-93 url:/secure/admin/I...Page%21import.jspa username:G01042158,5,main]] ------------------------------
      2021-11-09 14:50:30,439+0000 JiraTaskExecutionThread-749 INFO G01042158 876x4695463x1 1wcfi7k 26.8.80.78 /secure/admin/ImporterLogsPage%21import.jspa [c.a.j.p.i.i.i.i.AbstractDataImporter$1Thread[https-jsse-nio-8443-exec-93 url:/secure/admin/I...Page%21import.jspa username:G01042158,5,main]] Only new items will be imported
      2021-11-09 14:50:30,440+0000 JiraTaskExecutionThread-749 ERROR G01042158 876x4695463x1 1wcfi7k 26.8.80.78 /secure/admin/ImporterLogsPage%21import.jspa [c.a.j.p.i.i.i.i.AbstractDataImporter$1Thread[https-jsse-nio-8443-exec-93 url:/secure/admin/I...Page%21import.jspa username:G01042158,5,main]] Unable to link issue from 118941165664 to 118941164304 with link named 'Link': Cannot find imported issue key for external id '118941164304'
      2021-11-09 14:50:30,440+0000 JiraTaskExecutionThread-749 ERROR G01042158 876x4695463x1 1wcfi7k 26.8.80.78 /secure/admin/ImporterLogsPage%21import.jspa [c.a.j.p.i.i.i.i.AbstractDataImporter$1Thread[https-jsse-nio-8443-exec-93 url:/secure/admin/I...Page%21import.jspa username:G01042158,5,main]] Unable to link issue from 118941924896 to 118941922652 with link named 'Link': Cannot find imported issue key for external id '118941922652'
      2021-11-09 14:50:30,441+0000 JiraTaskExecutionThread-749 ERROR G01042158 876x4695463x1 1wcfi7k 26.8.80.78 /secure/admin/ImporterLogsPage%21import.jspa [c.a.j.p.i.i.i.i.AbstractDataImporter$1Thread[https-jsse-nio-8443-exec-93 url:/secure/admin/I...Page%21import.jspa username:G01042158,5,main]] Unable to link issue from 130988881504 to 118941922652 with link named 'Link': Cannot find imported issue key for external id '118941922652'

       
      And also in the logs, we should see the below message irrespective of the stage when the error occurred during the import process

      2017-05-11 12:18:21.702329500 2017-05-11 12:18:21,702 JiraTaskExectionThread-2 WARN sysadmin 738x9424x1  193.240.188.96 /secure/admin/ImporterLogsPage!import.jspa [c.a.jira.permission.DefaultPermissionSchemeManager] No permission scheme is associated with project 'XXX'

       

      Workaround

      Contact Atlassian Support in order to fix the Permission Scheme issue using this KB

              Unassigned Unassigned
              aradmann aradmann (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated: