java.lang.RuntimeException: Error occurred while resolving published or build dependencies: Failed to retrieve build artifacts report: HTTP/1.1 301 Moved Permanently

JFrog JIRA | Martin Melka | 1 year ago
  1. 0

    When connecting to an Artifactory server behind a proxy (such as nginx), redirect is not handled well. Ex. nginx redirects incoming connections from port 80 to port 81 by returning a 301 redirect. Port 81 proxies connection to localhost:8081 where Artifactory listens. When a build is run, dependencies are correctly resolved and downloaded, however, build artifact report fails. Error log below: Step 4/5: Set permissions (Command Line) [10:59:55][Step 4/5] Beginning to resolve Build Info published dependencies. [10:59:55][Step 4/5] Resolving published dependencies with pattern UNIX-SDK:mac_10.9_builds/build/sdk/protobuf/build-protobuf.log [10:59:55][Step 4/5] Found 1 dependencies by doing a pattern search. [10:59:55][Step 4/5] Target directory: /mnt/data/home/teamcity/agent/ci-worker-l01.srv.int.avast.com-01/work/d6dd50479f4d9106/mac_10.9_builds/build/sdk/protobuf/build-protobuf.log [10:59:55][Step 4/5] Downloading 'http://artifactory.srv.int.avast.com:81/artifactory/UNIX-SDK/mac_10.9_builds/build/sdk/protobuf/build-protobuf.log'; ... [10:59:55][Step 4/5] Successfully downloaded 'http://artifactory.srv.int.avast.com:81/artifactory/UNIX-SDK/mac_10.9_builds/build/sdk/protobuf/build-protobuf.log'; to '/mnt/data/home/teamcity/agent/ci-worker-l01.srv.int.avast.com-01/work/d6dd50479f4d9106/mac_10.9_builds/build/sdk/protobuf/build-protobuf.log' [10:59:55][Step 4/5] Target directory: /mnt/data/home/teamcity/agent/ci-worker-l01.srv.int.avast.com-01/work/d6dd50479f4d9106/mac_10.9_builds/build/sdk/protobuf/build-protobuf.log [10:59:55][Step 4/5] Finished resolving Build Info published dependencies. [10:59:55][Step 4/5] Beginning to resolve Build Info build dependencies. [10:59:55][Step 4/5] Error occurred while resolving published or build dependencies: Failed to retrieve build artifacts report: HTTP/1.1 301 Moved Permanently [10:59:55] [Step 4/5] java.io.IOException: Failed to retrieve build artifacts report: HTTP/1.1 301 Moved Permanently at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.readResponse(ArtifactoryDependenciesClient.java:165) at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.retrievePatternArtifacts(ArtifactoryDependenciesClient.java:98) at org.jfrog.build.extractor.clientConfiguration.util.BuildDependenciesHelper.retrieveBuildDependencies(BuildDependenciesHelper.java:73) at org.jfrog.teamcity.agent.DependenciesResolver.retrieveBuildDependencies(DependenciesResolver.java:58) at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.retrievePublishedAndBuildDependencies(AgentListenerBuildInfoHelper.java:100) at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.beforeRunnerStart(AgentListenerBuildInfoHelper.java:84) at org.jfrog.teamcity.agent.ArtifactoryAgentListener.beforeRunnerStart(ArtifactoryAgentListener.java:80) at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:120) at jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:67) at com.sun.proxy.$Proxy6.beforeRunnerStart(Unknown Source) at jetbrains.buildServer.agent.impl.buildStages.runnerStages.start.FireBeforeRunnerStartedStage.fireEvent(FireBeforeRunnerStartedStage.java:27) at jetbrains.buildServer.agent.impl.buildStages.runnerStages.start.FireEventRunnerStageBase.doBuildStage(FireEventRunnerStageBase.java:29) at jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor$1.callStage(RunnerStagesExecutor.java:25) at jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor$1.callStage(RunnerStagesExecutor.java:18) 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.RunnerStagesExecutor.doStages(RunnerStagesExecutor.java:18) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.callRunnerStages(RunnerContextExecutor.java:43) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.processNextStep(StepExecutor.java:25) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeRunnerStep(ForEachBuildRunnerStage.java:138) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.runStep(ForEachBuildRunnerStage.java:123) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeBuildRunners(ForEachBuildRunnerStage.java:83) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.doBuildStage(ForEachBuildRunnerStage.java:44) 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.BuildRunActionImpl.doStages(BuildRunActionImpl.java:70) at jetbrains.buildServer.agent.impl.BuildRunActionImpl.runBuild(BuildRunActionImpl.java:50) at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:284) at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:52) at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:248) at java.lang.Thread.run(Thread.java:745) [10:59:55][Step 4/5] Error occurred while resolving published or build dependencies: Failed to retrieve build artifacts report: HTTP/1.1 301 Moved Permanently [10:59:55] [Step 4/5] java.lang.RuntimeException: Error occurred while resolving published or build dependencies: Failed to retrieve build artifacts report: HTTP/1.1 301 Moved Permanently at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.retrievePublishedAndBuildDependencies(AgentListenerBuildInfoHelper.java:107) at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.beforeRunnerStart(AgentListenerBuildInfoHelper.java:84) at org.jfrog.teamcity.agent.ArtifactoryAgentListener.beforeRunnerStart(ArtifactoryAgentListener.java:80) at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:120) at jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:67) at com.sun.proxy.$Proxy6.beforeRunnerStart(Unknown Source) at jetbrains.buildServer.agent.impl.buildStages.runnerStages.start.FireBeforeRunnerStartedStage.fireEvent(FireBeforeRunnerStartedStage.java:27) at jetbrains.buildServer.agent.impl.buildStages.runnerStages.start.FireEventRunnerStageBase.doBuildStage(FireEventRunnerStageBase.java:29) at jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor$1.callStage(RunnerStagesExecutor.java:25) at jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor$1.callStage(RunnerStagesExecutor.java:18) 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.RunnerStagesExecutor.doStages(RunnerStagesExecutor.java:18) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.callRunnerStages(RunnerContextExecutor.java:43) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.processNextStep(StepExecutor.java:25) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeRunnerStep(ForEachBuildRunnerStage.java:138) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.runStep(ForEachBuildRunnerStage.java:123) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeBuildRunners(ForEachBuildRunnerStage.java:83) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.doBuildStage(ForEachBuildRunnerStage.java:44) 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.BuildRunActionImpl.doStages(BuildRunActionImpl.java:70) at jetbrains.buildServer.agent.impl.BuildRunActionImpl.runBuild(BuildRunActionImpl.java:50) at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:284) at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:52) at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:248) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: Failed to retrieve build artifacts report: HTTP/1.1 301 Moved Permanently at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.readResponse(ArtifactoryDependenciesClient.java:165) at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.retrievePatternArtifacts(ArtifactoryDependenciesClient.java:98) at org.jfrog.build.extractor.clientConfiguration.util.BuildDependenciesHelper.retrieveBuildDependencies(BuildDependenciesHelper.java:73) at org.jfrog.teamcity.agent.DependenciesResolver.retrieveBuildDependencies(DependenciesResolver.java:58) at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.retrievePublishedAndBuildDependencies(AgentListenerBuildInfoHelper.java:100) ... 32 more [10:59:55][Step 4/5] Error occurred while resolving published or build dependencies: Failed to retrieve build artifacts report: HTTP/1.1 301 Moved Permanently [10:59:55][Step 4/5] Step Set permissions (Command Line) interrupted

    JFrog JIRA | 1 year ago | Martin Melka
    java.lang.RuntimeException: Error occurred while resolving published or build dependencies: Failed to retrieve build artifacts report: HTTP/1.1 301 Moved Permanently
  2. 0

    When connecting to an Artifactory server behind a proxy (such as nginx), redirect is not handled well. Ex. nginx redirects incoming connections from port 80 to port 81 by returning a 301 redirect. Port 81 proxies connection to localhost:8081 where Artifactory listens. When a build is run, dependencies are correctly resolved and downloaded, however, build artifact report fails. Error log below: Step 4/5: Set permissions (Command Line) [10:59:55][Step 4/5] Beginning to resolve Build Info published dependencies. [10:59:55][Step 4/5] Resolving published dependencies with pattern UNIX-SDK:mac_10.9_builds/build/sdk/protobuf/build-protobuf.log [10:59:55][Step 4/5] Found 1 dependencies by doing a pattern search. [10:59:55][Step 4/5] Target directory: /mnt/data/home/teamcity/agent/ci-worker-l01.srv.int.avast.com-01/work/d6dd50479f4d9106/mac_10.9_builds/build/sdk/protobuf/build-protobuf.log [10:59:55][Step 4/5] Downloading 'http://artifactory.srv.int.avast.com:81/artifactory/UNIX-SDK/mac_10.9_builds/build/sdk/protobuf/build-protobuf.log'; ... [10:59:55][Step 4/5] Successfully downloaded 'http://artifactory.srv.int.avast.com:81/artifactory/UNIX-SDK/mac_10.9_builds/build/sdk/protobuf/build-protobuf.log'; to '/mnt/data/home/teamcity/agent/ci-worker-l01.srv.int.avast.com-01/work/d6dd50479f4d9106/mac_10.9_builds/build/sdk/protobuf/build-protobuf.log' [10:59:55][Step 4/5] Target directory: /mnt/data/home/teamcity/agent/ci-worker-l01.srv.int.avast.com-01/work/d6dd50479f4d9106/mac_10.9_builds/build/sdk/protobuf/build-protobuf.log [10:59:55][Step 4/5] Finished resolving Build Info published dependencies. [10:59:55][Step 4/5] Beginning to resolve Build Info build dependencies. [10:59:55][Step 4/5] Error occurred while resolving published or build dependencies: Failed to retrieve build artifacts report: HTTP/1.1 301 Moved Permanently [10:59:55] [Step 4/5] java.io.IOException: Failed to retrieve build artifacts report: HTTP/1.1 301 Moved Permanently at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.readResponse(ArtifactoryDependenciesClient.java:165) at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.retrievePatternArtifacts(ArtifactoryDependenciesClient.java:98) at org.jfrog.build.extractor.clientConfiguration.util.BuildDependenciesHelper.retrieveBuildDependencies(BuildDependenciesHelper.java:73) at org.jfrog.teamcity.agent.DependenciesResolver.retrieveBuildDependencies(DependenciesResolver.java:58) at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.retrievePublishedAndBuildDependencies(AgentListenerBuildInfoHelper.java:100) at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.beforeRunnerStart(AgentListenerBuildInfoHelper.java:84) at org.jfrog.teamcity.agent.ArtifactoryAgentListener.beforeRunnerStart(ArtifactoryAgentListener.java:80) at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:120) at jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:67) at com.sun.proxy.$Proxy6.beforeRunnerStart(Unknown Source) at jetbrains.buildServer.agent.impl.buildStages.runnerStages.start.FireBeforeRunnerStartedStage.fireEvent(FireBeforeRunnerStartedStage.java:27) at jetbrains.buildServer.agent.impl.buildStages.runnerStages.start.FireEventRunnerStageBase.doBuildStage(FireEventRunnerStageBase.java:29) at jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor$1.callStage(RunnerStagesExecutor.java:25) at jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor$1.callStage(RunnerStagesExecutor.java:18) 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.RunnerStagesExecutor.doStages(RunnerStagesExecutor.java:18) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.callRunnerStages(RunnerContextExecutor.java:43) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.processNextStep(StepExecutor.java:25) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeRunnerStep(ForEachBuildRunnerStage.java:138) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.runStep(ForEachBuildRunnerStage.java:123) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeBuildRunners(ForEachBuildRunnerStage.java:83) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.doBuildStage(ForEachBuildRunnerStage.java:44) 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.BuildRunActionImpl.doStages(BuildRunActionImpl.java:70) at jetbrains.buildServer.agent.impl.BuildRunActionImpl.runBuild(BuildRunActionImpl.java:50) at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:284) at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:52) at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:248) at java.lang.Thread.run(Thread.java:745) [10:59:55][Step 4/5] Error occurred while resolving published or build dependencies: Failed to retrieve build artifacts report: HTTP/1.1 301 Moved Permanently [10:59:55] [Step 4/5] java.lang.RuntimeException: Error occurred while resolving published or build dependencies: Failed to retrieve build artifacts report: HTTP/1.1 301 Moved Permanently at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.retrievePublishedAndBuildDependencies(AgentListenerBuildInfoHelper.java:107) at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.beforeRunnerStart(AgentListenerBuildInfoHelper.java:84) at org.jfrog.teamcity.agent.ArtifactoryAgentListener.beforeRunnerStart(ArtifactoryAgentListener.java:80) at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:120) at jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:67) at com.sun.proxy.$Proxy6.beforeRunnerStart(Unknown Source) at jetbrains.buildServer.agent.impl.buildStages.runnerStages.start.FireBeforeRunnerStartedStage.fireEvent(FireBeforeRunnerStartedStage.java:27) at jetbrains.buildServer.agent.impl.buildStages.runnerStages.start.FireEventRunnerStageBase.doBuildStage(FireEventRunnerStageBase.java:29) at jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor$1.callStage(RunnerStagesExecutor.java:25) at jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor$1.callStage(RunnerStagesExecutor.java:18) 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.RunnerStagesExecutor.doStages(RunnerStagesExecutor.java:18) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.callRunnerStages(RunnerContextExecutor.java:43) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.processNextStep(StepExecutor.java:25) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeRunnerStep(ForEachBuildRunnerStage.java:138) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.runStep(ForEachBuildRunnerStage.java:123) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeBuildRunners(ForEachBuildRunnerStage.java:83) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.doBuildStage(ForEachBuildRunnerStage.java:44) 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.BuildRunActionImpl.doStages(BuildRunActionImpl.java:70) at jetbrains.buildServer.agent.impl.BuildRunActionImpl.runBuild(BuildRunActionImpl.java:50) at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:284) at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:52) at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:248) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: Failed to retrieve build artifacts report: HTTP/1.1 301 Moved Permanently at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.readResponse(ArtifactoryDependenciesClient.java:165) at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.retrievePatternArtifacts(ArtifactoryDependenciesClient.java:98) at org.jfrog.build.extractor.clientConfiguration.util.BuildDependenciesHelper.retrieveBuildDependencies(BuildDependenciesHelper.java:73) at org.jfrog.teamcity.agent.DependenciesResolver.retrieveBuildDependencies(DependenciesResolver.java:58) at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.retrievePublishedAndBuildDependencies(AgentListenerBuildInfoHelper.java:100) ... 32 more [10:59:55][Step 4/5] Error occurred while resolving published or build dependencies: Failed to retrieve build artifacts report: HTTP/1.1 301 Moved Permanently [10:59:55][Step 4/5] Step Set permissions (Command Line) interrupted

    JFrog JIRA | 1 year ago | Martin Melka
    java.lang.RuntimeException: Error occurred while resolving published or build dependencies: Failed to retrieve build artifacts report: HTTP/1.1 301 Moved Permanently
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    proxy with a endpoint returning a 301 fails to follow the redirect

    GitHub | 3 months ago | avasseur-pivotal
    java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 301 Moved Permanently"
  5. 0

    GitHub comment 83#246111196

    GitHub | 3 months ago | avasseur-pivotal
    java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 301 Moved Permanently"

    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 retrieve build artifacts report: HTTP/1.1 301 Moved Permanently

      at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.readResponse()
    2. org.jfrog.build
      BuildDependenciesHelper.retrieveBuildDependencies
      1. org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.readResponse(ArtifactoryDependenciesClient.java:165)
      2. org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.retrievePatternArtifacts(ArtifactoryDependenciesClient.java:98)
      3. org.jfrog.build.extractor.clientConfiguration.util.BuildDependenciesHelper.retrieveBuildDependencies(BuildDependenciesHelper.java:73)
      3 frames
    3. org.jfrog.teamcity
      ArtifactoryAgentListener.beforeRunnerStart
      1. org.jfrog.teamcity.agent.DependenciesResolver.retrieveBuildDependencies(DependenciesResolver.java:58)
      2. org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.retrievePublishedAndBuildDependencies(AgentListenerBuildInfoHelper.java:100)
      3. org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.beforeRunnerStart(AgentListenerBuildInfoHelper.java:84)
      4. org.jfrog.teamcity.agent.ArtifactoryAgentListener.beforeRunnerStart(ArtifactoryAgentListener.java:80)
      4 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:483)
      3 frames
    5. TeamCity Build Server
      EventDispatcher$2.invoke
      1. jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:120)
      2. jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:67)
      2 frames
    6. com.sun.proxy
      $Proxy6.beforeRunnerStart
      1. com.sun.proxy.$Proxy6.beforeRunnerStart(Unknown Source)
      1 frame
    7. jetbrains.buildServer.agent
      FireEventRunnerStageBase.doBuildStage
      1. jetbrains.buildServer.agent.impl.buildStages.runnerStages.start.FireBeforeRunnerStartedStage.fireEvent(FireBeforeRunnerStartedStage.java:27)
      2. jetbrains.buildServer.agent.impl.buildStages.runnerStages.start.FireEventRunnerStageBase.doBuildStage(FireEventRunnerStageBase.java:29)
      2 frames
    8. TeamCity Build Server
      BuildStagesExecutor.doStages
      1. jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor$1.callStage(RunnerStagesExecutor.java:25)
      2. jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor$1.callStage(RunnerStagesExecutor.java:18)
      3. jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78)
      4. jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37)
      5. jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor.doStages(RunnerStagesExecutor.java:18)
      6. jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.callRunnerStages(RunnerContextExecutor.java:43)
      7. jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.processNextStep(StepExecutor.java:25)
      8. jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeRunnerStep(ForEachBuildRunnerStage.java:138)
      9. jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.runStep(ForEachBuildRunnerStage.java:123)
      10. jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeBuildRunners(ForEachBuildRunnerStage.java:83)
      11. jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.doBuildStage(ForEachBuildRunnerStage.java:44)
      12. jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:31)
      13. jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:24)
      14. jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78)
      15. jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37)
      16. jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24)
      16 frames
    9. JetBrains buildServer
      BuildAgentImpl$1.run
      1. jetbrains.buildServer.agent.impl.BuildRunActionImpl.doStages(BuildRunActionImpl.java:70)
      2. jetbrains.buildServer.agent.impl.BuildRunActionImpl.runBuild(BuildRunActionImpl.java:50)
      3. jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:284)
      4. jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:52)
      5. jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:248)
      5 frames
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame