-
Notifications
You must be signed in to change notification settings - Fork 663
Closed
Milestone
Description
I have just upgraded my build server (TeamCity) to use the latest release of GitVersion.Portable from Chocolatey.org, and I am now seeing this failure in the TeamCity Build Log:
[07:37:01][Step 1/5] Step 1/1: GitVersion (Powershell) (1s)
[07:37:01][Step 1/1] Starting: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive -ExecutionPolicy ByPass -File C:\TeamCity\buildAgent\temp\buildTmp\powershell6252309034209318036.ps1
[07:37:01][Step 1/1] in directory: C:\TeamCity\buildAgent\work\a52e278acd0e90b
[07:37:01][Step 1/1] Chocolatey already installed
[07:37:01][Step 1/1] GitVersion already installed
[07:37:01][Step 1/1] Running: C:\ProgramData\chocolatey\bin\gitversion.exe "C:\TeamCity\buildAgent\work\a52e278acd0e90b" /output "buildserver"
[07:37:01][Step 1/1] Working directory: C:\TeamCity\buildAgent\work\a52e278acd0e90b
[07:37:01][Step 1/1] Applicable build agent found: 'TeamCity'.
[07:37:02][Step 1/1] One remote found (origin -> '****.git').
[07:37:02][Step 1/1] Fetching from remote 'origin' using the following refspecs: +refs/heads/*:refs/remotes/origin/*.
[07:37:02][Step 1/1] An unexpected error occurred:
[07:37:02][Step 1/1] LibGit2Sharp.LibGit2SharpException: Failed to mmap. Invalid handle value: The volume for a file has been externally altered so that the opened file is no longer valid.
[07:37:02][Step 1/1]
[07:37:02][Step 1/1] at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
[07:37:02][Step 1/1] at LibGit2Sharp.Core.Proxy.git_remote_fetch(RemoteSafeHandle remote, Signature signature, String logMessage)
[07:37:02][Step 1/1] at LibGit2Sharp.Network.DoFetch(RemoteSafeHandle remoteHandle, FetchOptions options, Signature signature, String logMessage)
[07:37:02][Step 1/1] at LibGit2Sharp.Network.Fetch(Remote remote, FetchOptions options, Signature signature, String logMessage)
[07:37:02][Step 1/1] at GitVersion.GitHelper.NormalizeGitDirectory(String gitDirectory, Authentication authentication, String branch) in c:\BuildAgent\work\5e0d79a4e3943b17\GitVersionCore\BuildServers\GitHelper.cs:line 26
[07:37:02][Step 1/1] at GitVersion.Program.Main() in c:\BuildAgent\work\5e0d79a4e3943b17\GitVersionExe\Program.cs:line 60
[07:37:02][Step 1/1] Working directory: C:\TeamCity\buildAgent\work\a52e278acd0e90b
[07:37:02][Step 1/1] Applicable build agent found: 'TeamCity'.
[07:37:02][Step 1/1] One remote found (origin -> '****.git').
[07:37:02][Step 1/1] Fetching from remote 'origin' using the following refspecs: +refs/heads/*:refs/remotes/origin/*.
[07:37:02][Step 1/1] An unexpected error occurred:
[07:37:02][Step 1/1] LibGit2Sharp.LibGit2SharpException: Failed to mmap. Invalid handle value: The volume for a file has been externally altered so that the opened file is no longer valid.
[07:37:02][Step 1/1]
[07:37:02][Step 1/1] at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
[07:37:02][Step 1/1] at LibGit2Sharp.Core.Proxy.git_remote_fetch(RemoteSafeHandle remote, Signature signature, String logMessage)
[07:37:02][Step 1/1] at LibGit2Sharp.Network.DoFetch(RemoteSafeHandle remoteHandle, FetchOptions options, Signature signature, String logMessage)
[07:37:02][Step 1/1] at LibGit2Sharp.Network.Fetch(Remote remote, FetchOptions options, Signature signature, String logMessage)
[07:37:02][Step 1/1] at GitVersion.GitHelper.NormalizeGitDirectory(String gitDirectory, Authentication authentication, String branch) in c:\BuildAgent\work\5e0d79a4e3943b17\GitVersionCore\BuildServers\GitHelper.cs:line 26
[07:37:02][Step 1/1] at GitVersion.Program.Main() in c:\BuildAgent\work\5e0d79a4e3943b17\GitVersionExe\Program.cs:line 60
[07:37:02][Step 1/1] ##teamcity[buildStatus text='Error running GitVersion' status='FAILURE']
[07:37:02][Step 1/1] Error running GitVersion
I should mention that I am using the MetaRunner for GitVersion that was created by @robdmoore, but I don't think that this is the issue.
Based on the error message, I thought it could be an issue with a modification to the AssemblyInfo files causing a problem, so I removed that as a test, but I get the same error for both.
Any thoughts on what could be going on here?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels