JIRA从服务器迁移到云:“导入数据时出错:{0}”

时间:2017-10-09 12:43:22

标签: migration cloud jira

我在做JIRA服务器 - >云迁移,我在导入过程中不断收到此奇怪的错误消息:“导入数据时出错:{0}”

enter image description here

我使用:

创建了我的JIRA Server(v7.5)备份zip

系统>进口和出口>备份系统

我还手动将我的“数据”文件夹添加到存档中,所以它看起来像这样:

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的试用版。还有其他人经历过类似的事吗?我做错了什么?

1 个答案:

答案 0 :(得分:1)

我遇到同样的问题,我试图恢复没有附件,但错误仍然存​​在。

修改

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

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

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