Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-5307

Unable to upload large artifact (Failed to deploy file: HTTP response code: 413. HTTP response message: Request Entity Too Large)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Not a Bug
    • Affects Version/s: 2.6.5
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      Gentoo Linux, Oracle JDK 1.7.0_09, Artifactory 2.6.5, TeamCity 7.1.2, TeamCity Artifactory Plugin 2.1.4

    • Severity:
      Critical

      Description

      Hi! I'm not sure I'm posting to right project. Anyway... We are using teamcity plugin to deploy our artifacts. Today we found our builds starts to fail with stack like this:

      java.lang.RuntimeException: Error deploying artifact: /opt/teamcity/buildAgent/work/48555869d50ef6eb/<path_to_project>/target/<project>.war.
       Skipping deployment of remaining artifacts (if any) and build info.
      java.lang.RuntimeException: Error deploying artifact: /opt/teamcity/buildAgent/work/48555869d50ef6eb/<path_to_project>/target/<project>.war.
       Skipping deployment of remaining artifacts (if any) and build info.
      	at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.runnerFinished(AgentListenerBuildInfoHelper.java:157)
      	at org.jfrog.teamcity.agent.ArtifactoryAgentListener.runnerFinished(ArtifactoryAgentListener.java:108)
      	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:601)
      	at jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:115)
      	at jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:67)
      	at $Proxy8.runnerFinished(Unknown Source)
      	at jetbrains.buildServer.agent.impl.buildStages.runnerStages.finish.FireRunnerFinishedFStage.doFinishStage(FireRunnerFinishedFStage.java:29)
      	at jetbrains.buildServer.agent.impl.buildStages.RunnerFinishStagesExecutor.runFinishStage(RunnerFinishStagesExecutor.java:32)
      	at jetbrains.buildServer.agent.impl.buildStages.RunnerFinishStagesExecutor.doBuildFinishStages(RunnerFinishStagesExecutor.java:23)
      	at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.safeCallFinishStages(RunnerContextExecutor.java:65)
      	at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.callRunnerStages(RunnerContextExecutor.java:56)
      	at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.doProcessNextStep(StepExecutor.java:89)
      	at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.processNextStep(StepExecutor.java:44)
      	at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.doBuildStage(ForEachBuildRunnerStage.java:77)
      	at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:31)
      	at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:24)
      	at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78)
      	at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37)
      	at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24)
      	at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:70)
      	at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:50)
      	at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:247)
      	at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:48)
      	at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:220)
      	at java.lang.Thread.run(Thread.java:722)
      Caused by: java.io.IOException: Failed to deploy file: HTTP response code: 413. HTTP response message: Request Entity Too Large
      	at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:642)
      	at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:517)
      	at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:292)
      	at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.runnerFinished(AgentListenerBuildInfoHelper.java:155)
      	... 27 more
      

      War file is about 64M. We already tried to tweak jetty settings (i.e requestBufferSize/headerBufferSize) but without any hope. Maybe we are missing something? Could Artifactory somehow restrict file size?

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              vsevolod.minkov Vsevolod Minkov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-5307 -
                  SYNCHRONIZED
                  • Last Sync Date: