Failed to resolve artifact dependency. downloading files to /usr/local/var/buildAgentRoot/buildAgent is prohibited
Hello.
I have build configuration for MAC build agent with artifact dependency by another build . After upgrade server (2017.1 -> 2018.1) and build agents this build configuration fails with error:
[2018-08-02 15:29:43,700] INFO - jetbrains.buildServer.AGENT - Resolving artifact dependencies...
[2018-08-02 15:29:43,700] INFO - jetbrains.buildServer.AGENT - Destination directory [/usr/local/var/buildAgentRoot/buildAgentWorkspace/work/bce427332fd7bec1/TradeApplet/build/libs] does not exist, will be created
[2018-08-02 15:29:43,702] DEBUG - jetbrains.buildServer.AGENT - Failed to resolve artifact dependency <CB / Desktop / JAR (run me first), build #2094 [id 9859977]>: downloading files to /usr/local/var/buildAgentRoot/buildAgent is prohibited (jetbrains.buildServer.artifacts.impl.SourcePathAwareResolvingFailedException)
jetbrains.buildServer.artifacts.impl.SourcePathAwareResolvingFailedException: downloading files to /usr/local/var/buildAgentRoot/buildAgent is prohibited
at jetbrains.buildServer.artifacts.impl.SingleDependencyProcessor.checkForIllegalRules(SingleDependencyProcessor.java:99)
at jetbrains.buildServer.artifacts.impl.SingleDependencyProcessor.process(SingleDependencyProcessor.java:59)
at jetbrains.buildServer.artifacts.impl.DependencyResolverImpl.resolve(DependencyResolverImpl.java:109)
at jetbrains.buildServer.agent.impl.buildStages.startStages.DownloadDependenciesStage.doStage(DownloadDependenciesStage.java:78)
at jetbrains.buildServer.agent.impl.buildStages.startStages.DownloadDependenciesStage.doRecoverableStage(DownloadDependenciesStage.java:51)
at jetbrains.buildServer.agent.impl.buildStages.startStages.RecoverableBuildStage.doBuildStage(RecoverableBuildStage.java:75)
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:75)
at jetbrains.buildServer.agent.impl.BuildRunActionImpl.runBuild(BuildRunActionImpl.java:55)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:300)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:54)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:264)
at java.lang.Thread.run(Thread.java:748)
[2018-08-02 15:29:43,706] INFO - jetbrains.buildServer.AGENT - Finished resolving artifacts
[2018-08-02 15:29:43,706] INFO - ages.BuildFinishStagesExecutor - Call finish stage jetbrains.buildServer.agent.impl.buildStages.finishStages.FlushBuildLogFStage
Other build configurations (Linux agents) with same dependencies are build fine
Please sign in to leave a comment.
Hi Konstantin,
From the error message, it looks like the user running the build agent process in your Mac does not have the permissions to write into the folder where the artifacts would be stored. Could you please check that?
Agent is running by user Admin:
And I don't understant one thing from log:
Agent create directory /usr/local/var/buildAgentRoot/buildAgentWorkspace/work/bce427332fd7bec1/TradeApplet/build/libs but download files to /usr/local/var/buildAgentRoot/buildAgent
Any ideas?
Was similar problem https://github.com/JetBrains/teamcity-caches-cleanup-plugin/issues/2
There seems to be an issue in our tracker with this specific error message as well, and some solutions suggested on the comments, please check them out: https://youtrack.jetbrains.com/issue/TW-55723
If they don't work, I'd recommend opening a new issue in the tracker, and specifying both the exact problem, and what exactly you have tried and didn't work.