Team Build failing in Beta 3.

I'm trying to create a team build for a team project, specifying the same server that TFS is installed on as the build location.  I get the following error message:

TF42004:  Team Build failed to open folder "xxx".  The system cannot find the path specified.

If I explicitly create the server directory in "xxx" I then get a message saying the folder already exists, so the problem seems to be some kind of rights issue with the build account being unable to create directories on that server.  The build account is an administrator on the server, in Sharepoint, and in TFS, and it has been given "Log on as Service" privilege.  I have no problem creating directories directly on the server when logged in with that account.  What kind of configuration issue may I be running into here



Answer this question

Team Build failing in Beta 3.

  • Amytdev

    Yes - we had encountered a similar issue where the drop location was not accessible from the build machine but was accessible from the client due to name resolving issues. Which is why as I mentioned above, the fastest way to figure out if this is a problem would be to log on to the build machine as the build service account and then try to write into drop location.

    Please let us know if you have any more issues.


  • kittu123

    A build log file will be helpful to debug this issue. You can find it at Build Directory\Team Project Name\Build Type Name\Build Types\BuildLog.txt on the build machine.

    Also, would you please double check trying to write any file into the share having logged on as the build service account


  • Sudipta Banerjee

    deleted


  • Zoran Bebic

    The contents of the build log are:

    Build started 10/13/2005 11:59:15 AM.
    __________________________________________________
    Project "d:\builds\NavigationPrototype\NavPrototypeDev\BuildType\TFSBuild.proj" (EndToEndIteration target(s)):

    Target InitializeEndToEndIteration:
       
    Target InitializeBuild:
        Creating directory "d:\builds\NavigationPrototype\NavPrototypeDev\BuildType\..\Sources".
        Creating directory "\\acmonapdb20p\builds\NavPrototypeDev_20051013.1".
        C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(238,5): error MSB3191: Unable to create directory "\\acmonapdb20p\builds\NavPrototypeDev_20051013.1". Access to the path '\\acmonapdb20p\builds\NavPrototypeDev_20051013.1' is denied.
    Done building target "InitializeBuild" in project "TFSBuild.proj" -- FAILED.

    Done building project "TFSBuild.proj" -- FAILED.

    Build FAILED.
    C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(238,5): error MSB3191: Unable to create directory "\\acmonapdb20p\builds\NavPrototypeDev_20051013.1". Access to the path '\\acmonapdb20p\builds\NavPrototypeDev_20051013.1' is denied.
        0 Warning(s)
        1 Error(s)

    Time Elapsed 00:00:00.16

    As you can see I'm getting an access denied error.  There are no firewalls involved and I'm able to map to the directory \\acmonapdb20p\builds from another machine using the build account and create a folder manually.  The build account has admin rights on the server and log on as service privilege.


  • Kristian Kjærgaard

    I only created the drop folder as a test to verify that Team Build can see this directory.  My share location has no subfolders - the error message says that \\myserver\myshare\<buildnumber>  cannot be opened and the path cannot be found.  Where do I find the "build log file"
  • JardaJ

    It is the drop location and the directory is set up as a full share on the server with full permissions.  The message appears at the start of the build process (the build type is already created).
  • Apparel1

    Does the drop location contain any subfolder, I mean, is it something like \\myserver\myshare\foobar If so, you will need to create this folder before starting the build. You seemed to have created the entire build drop folder with build name (similar to \\myserver\myshare\foobar\<buildnumber>), which could be the reason for this error. Try creating only the folder as I mentioned above and build again. Please post the build log file in case it does not solve the problem.< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

     

    Thank you,

    Nagaraju

    VSTS-TeamBuild



  • Rinoa

    We discovered that we get different results from different machines - we apparenly have issues with resolving names/permissions across different domains.  Our network people are resolving this.
  • asiaenforcer

    Can you provide the following information to understand the exact problem < xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

    1.       Is ‘xxx’ the build directory or the drop location

    2.       When are you seeing this message Is it while creating the build type Or, while performing the build Or, is it while opening the build report

    This seems to be drop location to me. If so, it needs to be a UNC share, something like \\myserver\myshare and the team build service account needs to have full permissions to it.

    Thanks
    Nagaraju
    VSTS-TeamBuild

     



  • Team Build failing in Beta 3.