none
Build keeps on failing with Exception Message: The file exists RRS feed

  • Question

  • I have a build which keeps on failing on build server with the exception message as below. Any pointers on where to look for the issue. This started happening from yesterday, previous to that build were running fine. There has been no change in build process.

     1 error(s), 0 warning(s)
    $/Fred/NXT/STAGING/Services/FredNXTERXOnline.Interfaces/FredNXTServices.Interfaces.csproj - 1 error(s), 0 warning(s), View Log File
     CSC: An error occurred while writing the output file.
     $/Fred/NXT/STAGING/Services/FredNXTERXOnline.Interfaces/FredNXTServices.Interfaces.csproj compiled
    $/Fred/NXT/STAGING/Services/FredNXTERXOnline.Interfaces/FredNXTServices.Interfaces.csproj - 1 error(s), 0 warning(s), View Log File
     No Test Results
     No Code Coverage Results
    Other Errors and Warnings
     3 error(s), 0 warning(s)
     An error occurred while copying diagnostic activity logs to the drop location. Details: The file exists.

     Microsoft.TeamFoundation.Build.Workflow.Activities.BuildProcessTerminateException: MSBuild error 1 has ended this build. You can find more specific information about the cause of this error in above messages.
       at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
       at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
       at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
     Exception Message: The file exists.
     (type IOException)
    Exception Stack Trace:    at Microsoft.TeamFoundation.Framework.Common.AsyncOperation.EndT
       at Microsoft.TeamFoundation.Build.Workflow.Activities.FileContainerDropProvider.EndCopyDirectory(IAsyncResult result)
       at Microsoft.TeamFoundation.Build.Workflow.Activities.CopyDirectory.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
       at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

    Wednesday, August 7, 2019 3:05 AM

Answers

  • Thanks Dylan.

    I figured out issue was with temp folder on server being full.

    Regards,
    Keyur Shah

    • Marked as answer by Keyur S Wednesday, August 7, 2019 11:18 PM
    Wednesday, August 7, 2019 11:18 PM

All replies

  • Hi Keyur S,

    Thank you for posting here.

    According to your description, please check if the log file could be written, and please try to remove the log file then rebuild the process.

    Any feedback will be expected.

    Best Regards,

    Dylan 


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Wednesday, August 7, 2019 6:32 AM
  • Thanks Dylan.

    I figured out issue was with temp folder on server being full.

    Regards,
    Keyur Shah

    • Marked as answer by Keyur S Wednesday, August 7, 2019 11:18 PM
    Wednesday, August 7, 2019 11:18 PM