JIRA import - java.io.IOException: Response size limit exceeded

Completed

Hello, I'm trying to import issues from JIRA to self-hosted YouTrack 2018.1.

 

Import is running, but after some issues are imported I get this error:

Script failed with error: ISSUEID-85:field:attachment:conversion failed. Check that YouTrack has no corresponding field of different type. java.io.IOException: Response size limit exceeded: 52428800
org.mozilla.javascript.JavaScriptException: JavaException: ISSUEID-85:field:attachment:conversion failed. Check that YouTrack has no corresponding field of different type. java.io.IOException: Response size limit exceeded: 52428800 (jetbrains/youtrack/imports/jira/entityConverters#188)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_entityConverters_1168._c_anonymous_7(jetbrains/youtrack/imports/jira/entityConverters:188)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_entityConverters_1168.call(jetbrains/youtrack/imports/jira/entityConverters)
at org.mozilla.javascript.NativeArray.iterativeMethod(NativeArray.java:1619)
at org.mozilla.javascript.NativeArray.execIdCall(NativeArray.java:336)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:101)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_entityConverters_1168._c_anonymous_6(jetbrains/youtrack/imports/jira/entityConverters:159)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_entityConverters_1168.call(jetbrains/youtrack/imports/jira/entityConverters)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_1132._c_anonymous_8(jetbrains/youtrack/imports/jira/import:87)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_1132.call(jetbrains/youtrack/imports/jira/import)
at org.mozilla.javascript.NativeArray.iterativeMethod(NativeArray.java:1619)
at org.mozilla.javascript.NativeArray.execIdCall(NativeArray.java:336)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:101)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_1132._c_anonymous_6(jetbrains/youtrack/imports/jira/import:86)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_1132.call(jetbrains/youtrack/imports/jira/import)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_jira_1144._c_anonymous_37(jetbrains/youtrack/imports/jira/jira:217)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_jira_1144.call(jetbrains/youtrack/imports/jira/jira)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_jira_1144._c_anonymous_33(jetbrains/youtrack/imports/jira/jira:191)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_jira_1144.call(jetbrains/youtrack/imports/jira/jira)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_1132._c_anonymous_5(jetbrains/youtrack/imports/jira/import:80)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_1132.call(jetbrains/youtrack/imports/jira/import)
at org.mozilla.javascript.NativeArray.iterativeMethod(NativeArray.java:1619)
at org.mozilla.javascript.NativeArray.execIdCall(NativeArray.java:336)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:101)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_1132._c_script_0(jetbrains/youtrack/imports/jira/import:112)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_1132.call(jetbrains/youtrack/imports/jira/import)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:399)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3452)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_1132.call(jetbrains/youtrack/imports/jira/import)
at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_1132.exec(jetbrains/youtrack/imports/jira/import)
at org.mozilla.javascript.commonjs.module.Require.executeModuleScript(Require.java:342)
at org.mozilla.javascript.commonjs.module.Require.getExportedModuleInterface(Require.java:290)
at org.mozilla.javascript.commonjs.module.Require.requireMain(Require.java:137)
at jetbrains.youtrack.scripts.persistence.AbstractScriptRunner.run(AbstractScriptRunner.java:54)
at jetbrains.youtrack.imports.persistent.ImportScriptRunner.run(ImportScriptRunner.java:36)
at jetbrains.youtrack.jira.oldImport.JiraRestApi$5.run(JiraRestApi.java:177)
at jetbrains.charisma.scheduling.QuartzJobProcessorKt$asLocalRunnable$1$$special$$inlined$transactional$1.invoke(LegacySupport.kt:40)
at jetbrains.charisma.scheduling.QuartzJobProcessorKt$asLocalRunnable$1$$special$$inlined$transactional$1.invoke(LegacySupport.kt)
at com.jetbrains.teamsys.dnq.database.TransientEntityStoreExt.transactional(TransientEntityStoreExt.kt:51)
at com.jetbrains.teamsys.dnq.database.TransientEntityStoreImpl.transactional(TransientEntityStoreImpl.kt:95)
at jetbrains.exodus.database.TransientEntityStore$DefaultImpls.transactional$default(TransientEntityStore.kt:84)
at jetbrains.charisma.scheduling.QuartzJobProcessorKt$asLocalRunnable$1.run(QuartzJobProcessor.kt:72)
at jetbrains.exodus.core.execution.RunnableJob.execute(RunnableJob.java:41)
at jetbrains.exodus.core.execution.Job.run(Job.java:99)
at jetbrains.exodus.core.execution.ThreadJobProcessor.executeJob(ThreadJobProcessor.java:133)
at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.doExecuteJob(JobProcessorQueueAdapter.java:243)
at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.doJobs(JobProcessorQueueAdapter.java:161)
at jetbrains.exodus.core.execution.ThreadJobProcessor.run(ThreadJobProcessor.java:111)
at jetbrains.exodus.core.execution.ThreadJobProcessor$1.run(ThreadJobProcessor.java:43)
at java.lang.Thread.run(Thread.java:748)

 

How to configure my self-hosted instance to accept larger imports??

0
3 comments

I found that problem is during downloading attachment from JIRA that have 62 Mb:
https://XXXXX.atlassian.net/secure/attachment/20400/Logy_2.zip

 

But I didn't find any solution how to configure YouTrack to allow import larger files from JIRA.

0

parameter: -Djetbrains.youtrack.scripts.maxHttpResponseSize=1000000000

0

Hi Michal,

Does this parameter work for you? 

You can also increase the size of the imported files on the Settings -> Global Settings page, System section, Max Upload File Size field. 

Hope it helps. 

0

Please sign in to leave a comment.