com.atlassian.bamboo.repository.RepositoryException: Unable to extract client root from Perforce, therefore could not evaluate where the source will be checked out to.

Atlassian JIRA | Ulrich Kuhnhardt [Atlassian] | 8 years ago
  1. 0

    We check whether or not the build was run on the agent _after_ we try and retrieve the source code directory. Perforce throws an error if it can't find the directory (because it only exists on the remote agent) which is being passed to the user rather than the appropriate 'nice' error message. {quote}We are using Perforce and most of our plans are built on remote agents using Perforce clients which can be used only the agent's machine with the workspace not being managed by Bamboo. Whenever we try to display a plan's working files we get the error message 'An unexpected error has occurred' and the following is written in the server's log file INFO [http-8080-1] [CmdLineExecutor] Executing: c:/programs/Perforce/p4.exe clients INFO [http-8080-1] [CmdLineExecutor] Executing: c:/programs/Perforce/p4.exe client -o bamboo_07h122913_GenericPackage1.0_GenericPackage ERROR [http-8080-1] [ViewBuildFiles] Failed to calculate build file directory 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:172) at com.atlassian.bamboo.repository.perforce.PerforceRepository.getSourceCodeDirectory(PerforceRepository.java:638) at com.atlassian.bamboo.build.ViewBuildFiles.doExecute(ViewBuildFiles.java:53) When you execute the command 'p4.exe client -o ...' on a command line, however, the root directory is printed correctly. This directory does not exist on the server, but only on the agent machine. {quote}

    Atlassian JIRA | 8 years ago | Ulrich Kuhnhardt [Atlassian]
    com.atlassian.bamboo.repository.RepositoryException: Unable to extract client root from Perforce, therefore could not evaluate where the source will be checked out to.
  2. 0

    We check whether or not the build was run on the agent _after_ we try and retrieve the source code directory. Perforce throws an error if it can't find the directory (because it only exists on the remote agent) which is being passed to the user rather than the appropriate 'nice' error message. {quote}We are using Perforce and most of our plans are built on remote agents using Perforce clients which can be used only the agent's machine with the workspace not being managed by Bamboo. Whenever we try to display a plan's working files we get the error message 'An unexpected error has occurred' and the following is written in the server's log file INFO [http-8080-1] [CmdLineExecutor] Executing: c:/programs/Perforce/p4.exe clients INFO [http-8080-1] [CmdLineExecutor] Executing: c:/programs/Perforce/p4.exe client -o bamboo_07h122913_GenericPackage1.0_GenericPackage ERROR [http-8080-1] [ViewBuildFiles] Failed to calculate build file directory 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:172) at com.atlassian.bamboo.repository.perforce.PerforceRepository.getSourceCodeDirectory(PerforceRepository.java:638) at com.atlassian.bamboo.build.ViewBuildFiles.doExecute(ViewBuildFiles.java:53) When you execute the command 'p4.exe client -o ...' on a command line, however, the root directory is printed correctly. This directory does not exist on the server, but only on the agent machine. {quote}

    Atlassian JIRA | 8 years ago | Ulrich Kuhnhardt [Atlassian]
    com.atlassian.bamboo.repository.RepositoryException: Unable to extract client root from Perforce, therefore could not evaluate where the source will be checked out to.
  3. 0

    GitHub comment 12#7608609

    GitHub | 4 years ago | lukasz357
    java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: This seems to be a new install, please submit change to Gerrit before polling system.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 12#7453591

    GitHub | 4 years ago | lukasz357
    java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: This seems to be a new install, please submit change to Gerrit before polling system.
  6. 0

    [BAM-4517] svnkit authentication fails due to authentication file access problems to local cache on all platforms - Atlassian JIRA

    atlassian.com | 1 year ago
    com.atlassian.bamboo.repository.RepositoryException: Unable to retrieve source code to ' ' 'SECURITY-TRUNK': svn: Cannot read from 'C:\Documents and Settings\Default User\Application Data\Subversion\auth\svn.simple\2c897b0a1ee600f4f74b2ee6c4fe585b': C:\Documents and Settings\Default User\Application Data\Subversion\auth\svn.simple\2c897b0a1ee600f4f74b2ee6c4fe585b (The system cannot find the file specified)

    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. 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()
    2. com.atlassian.bamboo
      ViewBuildFiles.doExecute
      1. com.atlassian.bamboo.repository.perforce.PerforceManager.getClientRoot(PerforceManager.java:172)
      2. com.atlassian.bamboo.repository.perforce.PerforceRepository.getSourceCodeDirectory(PerforceRepository.java:638)
      3. com.atlassian.bamboo.build.ViewBuildFiles.doExecute(ViewBuildFiles.java:53)
      3 frames