Gerald O Posted November 9, 2017 Report Share Posted November 9, 2017 My build system consists of two Linux servers and one Windows server. One of the Linux servers runs the Atlassian Bamboo service (master). The other two machines (one Linux and one Windows) run Bamboo Remote Agents. Bamboo ist set up to run PlasticSCM operations (Check out, Branch handling) and works fine on the two Linux machines. When I run a build plan on the Windows remote agent then I get an error: simple 09-Nov-2017 10:40:07 Remote agent on host DESKTOP-B0AIIQS simple 09-Nov-2017 10:40:07 Build working directory is C:\bamboo-agent-home\xml-data\build-dir\OGS-CTP-JOB1 simple 09-Nov-2017 10:40:07 Executing build Ognerisk - ConfigToolPrototype - Default Job #45 (OGS-CTP-JOB1-45) simple 09-Nov-2017 10:40:07 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout' simple 09-Nov-2017 10:40:07 Updating source code to revision: 208 simple 09-Nov-2017 10:40:07 Updating source code to revision: 208 simple 09-Nov-2017 10:40:08 Updating source code to revision: 208 error 09-Nov-2017 10:40:08 Error occurred while running Task 'Checkout Default Repository(1)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout. error 09-Nov-2017 10:40:08 java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Error creating workspace name OGS-CTP-JOB1_67868698-0adc-40a9-b0c2-a070644d4697 at C:\bamboo-agent-home\xml-data\build-dir\OGS-CTP-JOB1: There was a problem between the IDE and Plastic SCM communication through the console. Cannot run program "cm": CreateProcess error=2, Das System kann die angegebene Datei nicht finden error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:144) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:203) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:188) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:127) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:317) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:246) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:317) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:93) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:77) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:216) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:139) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:130) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:221) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:129) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:138) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:51) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) error 09-Nov-2017 10:40:08 at java.lang.Thread.run(Unknown Source) error 09-Nov-2017 10:40:08 Caused by: com.atlassian.bamboo.repository.RepositoryException: Error creating workspace name OGS-CTP-JOB1_67868698-0adc-40a9-b0c2-a070644d4697 at C:\bamboo-agent-home\xml-data\build-dir\OGS-CTP-JOB1: There was a problem between the IDE and Plastic SCM communication through the console. Cannot run program "cm": CreateProcess error=2, Das System kann die angegebene Datei nicht finden error 09-Nov-2017 10:40:08 at com.codicesoftware.plugins.bamboo40.changesproviders.WorkspaceManager.doCreateWorkspace(WorkspaceManager.java:90) error 09-Nov-2017 10:40:08 at com.codicesoftware.plugins.bamboo40.changesproviders.WorkspaceManager.createWorkspace(WorkspaceManager.java:65) error 09-Nov-2017 10:40:08 at com.codicesoftware.plugins.bamboo40.changesproviders.PlasticContinuousIntegrationMode$1.call(PlasticContinuousIntegrationMode.java:94) error 09-Nov-2017 10:40:08 at com.codicesoftware.plugins.bamboo40.changesproviders.PlasticContinuousIntegrationMode$1.call(PlasticContinuousIntegrationMode.java:91) error 09-Nov-2017 10:40:08 at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:312) error 09-Nov-2017 10:40:08 at com.codicesoftware.plugins.bamboo40.changesproviders.PlasticContinuousIntegrationMode.updateWorkspace(PlasticContinuousIntegrationMode.java:90) error 09-Nov-2017 10:40:08 at com.codicesoftware.plugins.bamboo40.PlasticRepository.retrieveSourceCode(PlasticRepository.java:131) error 09-Nov-2017 10:40:08 at com.codicesoftware.plugins.bamboo40.PlasticRepository.retrieveSourceCode(PlasticRepository.java:114) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.vcs.configuration.legacy.LegacyWorkingCopyManager.retrieveSourceCode(LegacyWorkingCopyManager.java:137) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.fillWorkingDirFromVcs(VcsCheckoutTask.java:228) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$000(VcsCheckoutTask.java:53) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:132) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:128) error 09-Nov-2017 10:40:08 at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108) error 09-Nov-2017 10:40:08 ... 20 more error 09-Nov-2017 10:40:08 Failed to prepare the build 'Ognerisk - ConfigToolPrototype - Default Job #45 (OGS-CTP-JOB1-45)' simple 09-Nov-2017 10:46:05 Running on server: post build plugin 'NCover Results Collector' simple 09-Nov-2017 10:46:05 Running on server: post build plugin 'Build Hanging Detection Configuration' simple 09-Nov-2017 10:46:05 Running on server: post build plugin 'Clover Delta Calculator' simple 09-Nov-2017 10:46:05 Running on server: post build plugin 'Maven Dependencies Postprocessor' simple 09-Nov-2017 10:46:05 All post build plugins have finished simple 09-Nov-2017 10:46:05 Generating build results summary... simple 09-Nov-2017 10:46:05 Saving build results to disk... simple 09-Nov-2017 10:46:05 Logging substituted variables... simple 09-Nov-2017 10:46:05 Indexing build results... simple 09-Nov-2017 10:46:05 Finished building OGS-CTP-JOB1-45. I tried several suolution attempts regarding the path to the cm.exe (full path a.s.o.). cm.exe and the program folder are accessible by local system (bamboo agent service runs as local system). EDIT: Bamboo Version 5.15.3; PlastiscSCM: 5.4.16-802; Plugin 5.10.1 Link to comment Share on other sites More sharing options...
manu Posted November 9, 2017 Report Share Posted November 9, 2017 Hello @Gerald O, The following error: There was a problem between the IDE and Plastic SCM communication through the console. Cannot run program "cm": CreateProcess error=2, Das System kann die angegebene Datei nicht finden makes me think the "cm" tool cannot be found/executed. Das System kann die angegebene Datei nicht finden => The system can not find the specified file. Can you please try the following: 1) Triple check the "cm" tool is available at the PATH for the user running the banboo agent service. 2) Make sure the "cm" is configured for the user running the bamboo agent service. A really fast way to configure Plastic to all the users at the same time is placing a proper "client.conf" file inside the "C:\Program Files\PlasticSCM5\client" directory. The "client.conf" is inside the user "appdata\local\plastic4" directory, you can take it from there. Link to comment Share on other sites More sharing options...
Gerald O Posted November 10, 2017 Author Report Share Posted November 10, 2017 Thanks for the reply. PATH contains C:\Program Files\PlasticSCM5\client (system wide) I tied to run the service as a different user I copied the client.conf from the user space to the Program Files. Still same error. Link to comment Share on other sites More sharing options...
zaidmd Posted October 29, 2021 Report Share Posted October 29, 2021 To determine if the problem is connected to permissions, try stopping the Bamboo service (Start Menu >> Run... > services.msc) manually starting Bamboo (BAMBOO INSTALL/BambooConsole.bat) and running the plan again. If the plan was successfully produced, please check the Bamboo service >> 'Properties' menu >> 'Log On' tab to see if the account configured has permission to run the file. Please double-check that the service does not use the USERNAME or SYSADMIN variables. It must be a genuine username. To get more information on Bamboo then go for Atlassion Bamboo certification. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now