Jira Redmine Importer Plugin error

Hello,

I keep getting the following error when trying to use the redmine importer plugin:

Cannot login to Redmine site: Authorization error. Please check if you provided a valid API access key or Login and Password and REST API service is enabled on the server.

I have turned on rest API on redmine, the credentials work, can anyone tell me what i'm doing wrong, or at least where I can find errors?

Thanks,

Nadia

14 answers

1 accepted

1 vote

Please update JIRA Redmine importer plugin to version 1.0.2

Nice, works for me! Tnx!

Thanks a bunch, it works!

Same error here. It looks like Jira doesn't use the credentials to login into Redmine. I one see HTTP 401 requests in the http log.

Hi, I have the same issue as above.

I'm getting this error:

Cannot login to Redmine site: javax/security/auth/x500/X500Principal

Maybe SSL cert is the problem on Redimine site?

0 vote

If you are using certificate that is not trusted (eg. self signed ) you must import it to java certs using keytool.

Thank you, but it didn't solve the issue completely. The importer goes through all the steps, but no issues created. Please note, that the users in both Redmine & Jira overlap. Here is the importer log:

2012-11-06 09:07:01,641 INFO - Import started by rustam using com.atlassian.jira.plugins.importer.redmine.RedmineDataBean
2012-11-06 09:07:01,641 INFO - ------------------------------
2012-11-06 09:07:01,641 INFO - Importing: Users
2012-11-06 09:07:01,641 INFO - ------------------------------
2012-11-06 09:07:01,641 INFO - Only new items will be imported
2012-11-06 09:07:33,888 WARN - 23 users associated with import. 9 will be imported as active due to license limits. Check log for details.
2012-11-06 09:07:33,892 INFO - ------------------------------
2012-11-06 09:07:33,892 INFO - Finished Importing : Users
2012-11-06 09:07:33,892 INFO - ------------------------------
2012-11-06 09:07:33,892 INFO - 0 users successfully created.
2012-11-06 09:07:33,893 INFO - Retrieving projects...
2012-11-06 09:07:33,893 INFO - Project ExternalProject[jiraId=<null>,id=1,externalName=????2,name=KK Lite,key=LITE,url=,lead=<null>,description=????????? ????? ??? ?????????? ????? ???? v.2.,projectCategoryName=<null>,avatarUrl=<null>,assigneeType=<null>,versions=<null>,components=<null>,issues=<null>,workflowSchemeName=<null>] already exists. Not imported
2012-11-06 09:07:33,893 INFO - ------------------------------
2012-11-06 09:07:33,893 INFO - Importing: Versions
2012-11-06 09:07:33,893 INFO - ------------------------------
2012-11-06 09:07:33,893 INFO - Only new items will be imported
2012-11-06 09:07:33,977 INFO - ------------------------------
2012-11-06 09:07:33,977 INFO - Finished Importing : Versions
2012-11-06 09:07:33,977 INFO - ------------------------------
2012-11-06 09:07:33,977 INFO - ------------------------------
2012-11-06 09:07:33,977 INFO - Importing: Components
2012-11-06 09:07:33,977 INFO - ------------------------------
2012-11-06 09:07:33,977 INFO - Only new items will be imported
2012-11-06 09:07:33,977 INFO - ------------------------------
2012-11-06 09:07:33,977 INFO - Finished Importing : Components
2012-11-06 09:07:33,977 INFO - ------------------------------
2012-11-06 09:07:33,977 INFO - Retrieving custom fields...
2012-11-06 09:07:33,977 INFO - ------------------------------
2012-11-06 09:07:33,977 INFO - Importing: Issues
2012-11-06 09:07:33,977 INFO - ------------------------------
2012-11-06 09:07:33,977 INFO - Only new items will be imported
2012-11-06 09:07:34,307 INFO - ------------------------------
2012-11-06 09:07:34,307 INFO - Finished Importing : Issues
2012-11-06 09:07:34,308 INFO - ------------------------------
2012-11-06 09:07:34,308 ERROR - Unexpected failure occurred. Importer will stop immediately. Data maybe in an unstable state
java.lang.NullPointerException
	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187)
	at com.google.common.collect.Lists$TransformingSequentialList.<init>(Lists.java:355)
	at com.google.common.collect.Lists.transform(Lists.java:338)
	at com.atlassian.jira.plugins.importer.redmine.transformer.IssueTransformer.apply(IssueTransformer.java:64)
	at com.atlassian.jira.plugins.importer.redmine.transformer.IssueTransformer.apply(IssueTransformer.java:28)
	at com.google.common.collect.Iterators$8.next(Iterators.java:730)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importIssues(DefaultJiraDataImporter.java:750)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:354)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
	at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
	at $Proxy2486.doImport(Unknown Source)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:27)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:16)
	at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:359)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at com.atlassian.multitenant.impl.DefaultMultiTenantManager.runForTenant(DefaultMultiTenantManager.java:61)
	at com.atlassian.multitenant.juc.MultiTenantExecutors$WrappedRunnable.run(MultiTenantExecutors.java:160)
	at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:249)
	at java.lang.Thread.run(Thread.java:679)
2012-11-06 09:07:34,310 INFO - No issues need to be reindexed.

I had to upgrade our Redmine version to 1.4 and then it worked; I believe if you have an older version of redmine it might not work (less than 1.3). Perhaps you need an upgrade?

thanks but we are on the latest version of redmine. I have successfully migrated from Jira to Redmine using a sql script I modified. https://github.com/jbankston/redmine2jira It works but its dirty. I was hoping the Jira solution would transfer all of our data, attachments and comments all in one step.

I am using Redmine 2.0.3

I get the same error as well.

0 vote

If you get the NullPointerException as above please upgrade your Redmine Importer Plugin to version 1.0.3

Thanks, upgraded to 1.0.3, but there is a new error now:

2012-11-07 09:37:42,413 INFO - Import started by rustam using com.atlassian.jira.plugins.importer.redmine.RedmineDataBean
2012-11-07 09:37:42,413 INFO - ------------------------------
2012-11-07 09:37:42,413 INFO - Importing: Users
2012-11-07 09:37:42,413 INFO - ------------------------------
2012-11-07 09:37:42,413 INFO - Only new items will be imported
2012-11-07 09:38:14,596 WARN - 23 users associated with import. 9 will be imported as active due to license limits. Check log for details.
2012-11-07 09:38:14,601 INFO - ------------------------------
2012-11-07 09:38:14,601 INFO - Finished Importing : Users
2012-11-07 09:38:14,601 INFO - ------------------------------
2012-11-07 09:38:14,601 INFO - 0 users successfully created.
2012-11-07 09:38:14,601 INFO - Retrieving projects...
2012-11-07 09:38:14,601 INFO - Project ExternalProject[jiraId=<null>,id=1,externalName=????2,name=KK Lite,key=LITE,url=,lead=<null>,description=????????? ????? ??? ?????????? ????? ???? v.2.,projectCategoryName=<null>,avatarUrl=<null>,assigneeType=<null>,versions=<null>,components=<null>,issues=<null>,workflowSchemeName=<null>] already exists. Not imported
2012-11-07 09:38:14,601 INFO - ------------------------------
2012-11-07 09:38:14,601 INFO - Importing: Versions
2012-11-07 09:38:14,601 INFO - ------------------------------
2012-11-07 09:38:14,601 INFO - Only new items will be imported
2012-11-07 09:38:14,690 INFO - ------------------------------
2012-11-07 09:38:14,690 INFO - Finished Importing : Versions
2012-11-07 09:38:14,690 INFO - ------------------------------
2012-11-07 09:38:14,690 INFO - ------------------------------
2012-11-07 09:38:14,690 INFO - Importing: Components
2012-11-07 09:38:14,690 INFO - ------------------------------
2012-11-07 09:38:14,690 INFO - Only new items will be imported
2012-11-07 09:38:14,690 INFO - ------------------------------
2012-11-07 09:38:14,690 INFO - Finished Importing : Components
2012-11-07 09:38:14,690 INFO - ------------------------------
2012-11-07 09:38:14,690 INFO - Retrieving custom fields...
2012-11-07 09:38:14,690 INFO - ------------------------------
2012-11-07 09:38:14,690 INFO - Importing: Issues
2012-11-07 09:38:14,690 INFO - ------------------------------
2012-11-07 09:38:14,690 INFO - Only new items will be imported
2012-11-07 09:38:14,965 INFO - Importing issue: ExternalIssue{externalId=453, summary=???????? ????? ???????, issueType=1}
2012-11-07 09:38:14,965 INFO - ------------------------------
2012-11-07 09:38:14,965 INFO - Finished Importing : Issues
2012-11-07 09:38:14,965 INFO - ------------------------------
2012-11-07 09:38:14,965 ERROR - Unexpected failure occurred. Importer will stop immediately. Data maybe in an unstable state
java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
	at com.atlassian.jira.plugins.importer.external.beans.ExternalIssue.getLabels(ExternalIssue.java:121)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.ExternalUtils.convertExternalIssueToIssue(ExternalUtils.java:525)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.createIssue(DefaultJiraDataImporter.java:845)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importIssues(DefaultJiraDataImporter.java:762)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:354)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
	at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
	at $Proxy2497.doImport(Unknown Source)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:27)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.ImporterCallable.call(ImporterCallable.java:16)
	at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:359)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at com.atlassian.multitenant.impl.DefaultMultiTenantManager.runForTenant(DefaultMultiTenantManager.java:61)
	at com.atlassian.multitenant.juc.MultiTenantExecutors$WrappedRunnable.run(MultiTenantExecutors.java:160)
	at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:249)
	at java.lang.Thread.run(Thread.java:679)
2012-11-07 09:38:14,967 INFO - No issues need to be reindexed.

I think that you are using JIM (JIRA Importers Plugin) in version 5.0

Please upgrade JIM to version 5.0.2

I am using 5.0.2 (although, 2 JSON module of it are disabled), screen attached

Which version of JIRA are you using?

Can we update to 5.0.2 if our maintenance period expired?

We have some compatibility issues with JIM. It will work only with jira 5.0.2+

0 vote

I'm not sure but I think you can upgrade to any version released before end of your maintenance period.

Unfortunately between JIRA 5.0 and 5.0.2 there was Google guava dependencies changed that makes our plugin incompatible with 5.0, I'm sorry for that.

This could be caused by this Redmine issue: http://www.redmine.org/issues/8589

See http://www.redmine.org/boards/2/topics/16770?r=24559 for a possible workaround.

This could be caused by this Redmine issue: http://www.redmine.org/issues/8589

See http://www.redmine.org/boards/2/topics/16770?r=24559 for a possible workaround. At least it helped for me.

For anyone stuck on the first step: JIRA unable to authenticate with Redmine. The solution is likely this one below.

From How to configure Apache2+fcid for Basic Auth / REST API
http://www.redmine.org/boards/2/topics/16770?r=24559

Solution add this to the Redmine, .htaccess to enable authentication credentials to be passed to the FCGI script.

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [E=X-HTTP_AUTHORIZATION:%{HTTP:Authorization},QSA,L]

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 16 hours ago in Off-topic

Get to know our Atlassian User Group Leaders from Bengaluru, India

Meet @Dinesh Dhinakaran, @Vishnu Vasudeva, @Rajeev Verma, and Jamshid Nalakath: Our extraordinary AUG leaders from Bengaluru, India. These four work together to strengthen the bonds of their local co...

116 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you