Unable to extract client root from Perforce

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Bamboo shows the error below when running a plan that checks out from a Perforce repository:

com.atlassian.bamboo.repository.RepositoryException: Unable to extract 
client root from Perforce, therefore could not evaluate where the source
 will be checked out to.
	at com.atlassian.bamboo.repository.perforce.PerforceManager.getClientRoot(PerforceManager.java:196)
	at com.atlassian.bamboo.repository.perforce.PerforceRepository.getSourceCodeDirectory(PerforceRepository.java:642)
...
Caused by: com.tek42.perforce.PerforceException: Failed to validate perforce client bamboo_android
	at com.atlassian.bamboo.repository.perforce.PerforceManager.ensureClientIsValid(PerforceManager.java:253)
	at com.atlassian.bamboo.repository.perforce.PerforceManager.getPerforceWorkspace(PerforceManager.java:219)
	at com.atlassian.bamboo.repository.perforce.PerforceManager.getClientRoot(PerforceManager.java:171)
	... 10 more
Caused by: com.tek42.perforce.PerforceException: The client 
'bamboo_android' was not found in the list of clients 
retrieved from the Perforce server using the 'clients' command
	at com.atlassian.bamboo.repository.perforce.PerforceManager.ensureClientIsValid(PerforceManager.java:248)
	... 12 more

Cause

The common causes are:

  1. The client root does not exist on the server or agent box.
  2. Bamboo cannot create this directory automatically.
  3. Perforce executable is missing on the Bamboo server and/or the agent machine.
  4. Bamboo is running as a service with an account that is not a local admin as recommended.

Resolution

  1. Ensure that the client root exists on the Bamboo server (or agent) machine. If necessary, create the directory locally for the Perforce client.
  2. If the build is running on a Windows remote agent that runs as a service, make sure to use a local admin account to run the service: Running Bamboo as the local user.
  3. Check if Perforce exists as a capability on both Bamboo server and agent machines with a correct path.
Last modified on Nov 2, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.