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.

JFrog JIRA | Vsevolod Minkov | 4 years ago
  1. 0

    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: {noformat} 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 {noformat} 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?

    JFrog JIRA | 4 years ago | Vsevolod Minkov
    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.
  2. 0

    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: {noformat} 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 {noformat} 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?

    JFrog JIRA | 4 years ago | Vsevolod Minkov
    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.
  3. 0

    Publishing to artifactory with bad characters in maven step name

    YouTrack | 5 years ago
    java.lang.RuntimeException: Error deploying artifact: /home/teamcity/work/88c29fc971d40868/pom.xml. Skipping deployment of remaining artifacts (if any) and build info.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hi I'm neophyte in Artifactory and I'm trying publish a file from a Jenkins job into an Artifactory repo, I receive the error message below and I don't know which could be the issue, I've checked that the server address is ok an accessible and the user has enough permissions to publish, any clue? Thanks a lot. For pattern: /var/lib/jenkins/workspace/Rallydevtest/rally-test.sh 1 artifacts were found Deploying artifact: http://artifactory.edegem.eu.thmulti.com/buildmgm-queue-local/rally-test.sh ERROR: Failed to deploy file: HTTP response code: 302. HTTP response message: Found java.io.IOException: Failed to deploy file: HTTP response code: 302. HTTP response message: Found 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.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.deploy(GenericArtifactsDeployer.java:182) at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:154) at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:122) at hudson.FilePath.act(FilePath.java:904) at hudson.FilePath.act(FilePath.java:877) at org.jfrog.hudson.generic.GenericArtifactsDeployer.deploy(GenericArtifactsDeployer.java:82) at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator$1.tearDown(ArtifactoryGenericConfigurator.java:287) at hudson.model.Build$BuildExecution.doRun(Build.java:171) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:584) at hudson.model.Run.execute(Run.java:1575) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) [PostBuildScript] - Execution post build scripts. [PostBuildScript] Build is not success : do not execute script

    JFrog JIRA | 4 years ago | Alfonso Ruiz Falcon
    java.io.IOException: Failed to deploy file: HTTP response code: 302. HTTP response message: Found
  6. 0

    Hi I'm neophyte in Artifactory and I'm trying publish a file from a Jenkins job into an Artifactory repo, I receive the error message below and I don't know which could be the issue, I've checked that the server address is ok an accessible and the user has enough permissions to publish, any clue? Thanks a lot. For pattern: /var/lib/jenkins/workspace/Rallydevtest/rally-test.sh 1 artifacts were found Deploying artifact: http://artifactory.edegem.eu.thmulti.com/buildmgm-queue-local/rally-test.sh ERROR: Failed to deploy file: HTTP response code: 302. HTTP response message: Found java.io.IOException: Failed to deploy file: HTTP response code: 302. HTTP response message: Found 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.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.deploy(GenericArtifactsDeployer.java:182) at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:154) at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:122) at hudson.FilePath.act(FilePath.java:904) at hudson.FilePath.act(FilePath.java:877) at org.jfrog.hudson.generic.GenericArtifactsDeployer.deploy(GenericArtifactsDeployer.java:82) at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator$1.tearDown(ArtifactoryGenericConfigurator.java:287) at hudson.model.Build$BuildExecution.doRun(Build.java:171) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:584) at hudson.model.Run.execute(Run.java:1575) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) [PostBuildScript] - Execution post build scripts. [PostBuildScript] Build is not success : do not execute script

    JFrog JIRA | 4 years ago | Alfonso Ruiz Falcon
    java.io.IOException: Failed to deploy file: HTTP response code: 302. HTTP response message: Found

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. org.jfrog.build
      ArtifactoryBuildInfoClient.deployArtifact
      1. org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:642)
      2. org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:517)
      3. org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:292)
      3 frames
    3. org.jfrog.teamcity
      ArtifactoryAgentListener.runnerFinished
      1. org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.runnerFinished(AgentListenerBuildInfoHelper.java:155)
      2. org.jfrog.teamcity.agent.ArtifactoryAgentListener.runnerFinished(ArtifactoryAgentListener.java:108)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:601)
      4 frames
    5. TeamCity Build Server
      EventDispatcher$2.invoke
      1. jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:115)
      2. jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:67)
      2 frames
    6. Unknown
      $Proxy8.runnerFinished
      1. $Proxy8.runnerFinished(Unknown Source)
      1 frame
    7. jetbrains.buildServer.agent
      FireRunnerFinishedFStage.doFinishStage
      1. jetbrains.buildServer.agent.impl.buildStages.runnerStages.finish.FireRunnerFinishedFStage.doFinishStage(FireRunnerFinishedFStage.java:29)
      1 frame
    8. TeamCity Build Server
      BuildStagesExecutor.doStages
      1. jetbrains.buildServer.agent.impl.buildStages.RunnerFinishStagesExecutor.runFinishStage(RunnerFinishStagesExecutor.java:32)
      2. jetbrains.buildServer.agent.impl.buildStages.RunnerFinishStagesExecutor.doBuildFinishStages(RunnerFinishStagesExecutor.java:23)
      3. jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.safeCallFinishStages(RunnerContextExecutor.java:65)
      4. jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.callRunnerStages(RunnerContextExecutor.java:56)
      5. jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.doProcessNextStep(StepExecutor.java:89)
      6. jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.processNextStep(StepExecutor.java:44)
      7. jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.doBuildStage(ForEachBuildRunnerStage.java:77)
      8. jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:31)
      9. jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:24)
      10. jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78)
      11. jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37)
      12. jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24)
      12 frames
    9. JetBrains buildServer
      BuildAgentImpl$1.run
      1. jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:70)
      2. jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:50)
      3. jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:247)
      4. jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:48)
      5. jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:220)
      5 frames
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:722)
      1 frame