从服务器到云端的 JIRA 迁移:"Error importing data: {0}"

JIRA Migration from Server to Cloud: "Error importing data: {0}"

我正在执行 JIRA 服务器 -> 云迁移,并且在导入过程中不断收到此奇怪的错误消息:"Error importing data: {0}".

我使用以下方法制作了我的 JIRA Server (v7.5) 备份 zip:

系统 > 进出口 > 备份系统

我还手动将我的 "data" 文件夹添加到存档中,因此它看起来像这样:

JIRA-backup-zip-file
├── activeobjects.xml
├── entities.xml
├── data
│   ├── attachments
│   └── avatars
└── logos

(来源:https://confluence.atlassian.com/adminjiracloud/importing-issues-776636788.html

最后,我使用以下方法将此备份导入到 JIRA Cloud:

系统 > 进出口 > 还原系统

我仍在使用 JIRA Server 和 JIRA Cloud 的试用版。有没有其他人经历过类似的事情?我做错了什么?

我也遇到了同样的问题,我尝试了不带附件的恢复,但是错误依旧。

编辑

我发了一张支持票,他告诉我:

检查日志,由于此异常错误导致导入失败:

eventtype="micros_jira*" env="prod*" "ext.jira.tenant.id"="66c2183b-e7b4-48df-a29c-9945b0ea5b05" NOT (message="*provisioning*" OR message="*product*") logger=com.atlassian.jira.bc.dataimport.CloudImportTaskRunner* OR logger=com.atlassian.jira.bc.dataimport* OR logger=com.atlassian.jira.internal.rest.ProvisioningResource* (level="WARN" OR level="ERROR")  message="Exception importing entity: org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:ClusteredJob][cronExpression,0 0 7/12 * * ?][jobId,com.atlassian.jira.service.JiraService:10001][jobRunnerKey,com.atlassian.jira.service.DefaultServiceManager][id,10000][schedType,C][version,428][parameters,[B@21a97660][nextRun,1507680000000] (SQL Exception while executing the following:INSERT INTO public.clusteredjob (ID, JOB_ID, JOB_RUNNER_KEY, SCHED_TYPE, INTERVAL_MILLIS, FIRST_RUN, CRON_EXPRESSION, TIME_ZONE, NEXT_RUN, VERSION, PARAMETERS) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: duplicate key value violates unique constraint \"pk_clusteredjob\"
  Detail: Key (id)=(10000) already exists.))"

为了更正此问题,请解压缩您的 JIRA 备份并编辑 entities.xml 文件并更改以下行:

<ClusteredJob id="10000" 

到一个更高的未使用的ID,例如

ClusteredJob id="99999" 

保存 entites.xml 文件并重新压缩所有文件。然后您应该可以导入。

这在此处的错误中有所概述:

https://jira.atlassian.com/browse/JRACLOUD-67644