Git-Credential-Manager-for-Windows icon indicating copy to clipboard operation
Git-Credential-Manager-for-Windows copied to clipboard

GCMW will not install

Open jbuedel opened this issue 5 years ago • 0 comments

So I've been unable to get GCMW to even act like it's installed at all. The exe installer completed with no errors. Running git commands gives no error messages, but my git passwords were never getting remembered either. I tried git credential-manager install. Running it gave a simple deployment failed. U_U. Eventually I discovered GCM_TRACE=1 and was able to see some errors.

So now I am at a point where I see install is failing because of a lock on a file. Far as I can tell, the install command itself is locking the file in question. I believe this because I deleted the file, ran the install again, and got a different error. I put the file back, and again received the "used by another process" error.

Here is a transcript of running the install command three times, where the second time the file C:\Program Files\Git\mingw64\libexec\git-core\AzureDevOps.Authentication.dll had been deleted.

I am unsure how to proceed here. Any help would be appreciated. Thanks.

C:\Users\jbuedel\Projects\Protocol.Parsers [app ≡]> git credential-manager install 
09:27:18.924173 ...\Common.cs:744       trace: [Main] git-credential-manager (v1.20.0) 'install'

Looking for Git installation(s)...
09:27:18.955175 ...\Git\Where.cs:348    trace: [FindGitInstallations] found 1 Git installation(s).
  C:\Program Files\Git

Deploying from 'C:\Program Files\Git\mingw64\libexec\git-core' to 'C:\Program Files\Git'.
09:27:18.959173 ...\Installer.cs:817    trace: [CleanFiles] clean 'C:\Program Files\Git\mingw64\libexec\git-core\AzureDevOps.Authentication.dll'.
09:27:18.960173 ...\Installer.cs:831    trace: [CleanFiles] clean of 'C:\Program Files\Git\mingw64\libexec\git-core' failed.
09:27:18.962173 ...\Installer.cs:852    trace: [CopyFiles] copy 'AzureDevOps.Authentication.dll' from 'C:\Program Files\Git\mingw64\libexec\git-core' to 'C:\Program Files\Git\mingw64\libexec\git-core'.
09:27:18.964173 ...\Installer.cs:863    trace: [CopyFiles] ! error: 'The process cannot access the file 'C:\Program Files\Git\mingw64\libexec\git-core\AzureDevOps.Authentication.dll' because it is being used by another process.'.
09:27:18.966173 ...\Installer.cs:875    trace: [CopyFiles] copy failed.
09:27:18.967173 ...\Common.cs:709       trace: [LogEvent] Deployment to 'C:\Program Files\Git' failed.
  deployment failed. U_U

Press any key to continue...
09:28:23.748905 ...\Program.cs:328      trace: [Deploy] Installer result = 'DeploymentFailed', exit code = 2.
C:\Users\jbuedel\Projects\Protocol.Parsers [app ≡]> git credential-manager install
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Microsoft.Alm.Cli.Program' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'AzureDevOps.Authentication, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
   at Microsoft.Alm.Cli.Program..cctor()
   --- End of inner exception stack trace ---
   at Microsoft.Alm.Cli.Program.Main(String[] args)
C:\Users\jbuedel\Projects\Protocol.Parsers [app ≡]> git credential-manager install 
09:29:51.376156 ...\Common.cs:744       trace: [Main] git-credential-manager (v1.20.0) 'install'

Looking for Git installation(s)...
09:29:51.409157 ...\Git\Where.cs:348    trace: [FindGitInstallations] found 1 Git installation(s).
  C:\Program Files\Git

Deploying from 'C:\Program Files\Git\mingw64\libexec\git-core' to 'C:\Program Files\Git'.
09:29:51.412156 ...\Installer.cs:817    trace: [CleanFiles] clean 'C:\Program Files\Git\mingw64\libexec\git-core\AzureDevOps.Authentication.dll'.
09:29:51.413157 ...\Installer.cs:831    trace: [CleanFiles] clean of 'C:\Program Files\Git\mingw64\libexec\git-core' failed.
09:29:51.415156 ...\Installer.cs:852    trace: [CopyFiles] copy 'AzureDevOps.Authentication.dll' from 'C:\Program Files\Git\mingw64\libexec\git-core' to 'C:\Program Files\Git\mingw64\libexec\git-core'.
09:29:51.417156 ...\Installer.cs:863    trace: [CopyFiles] ! error: 'The process cannot access the file 'C:\Program Files\Git\mingw64\libexec\git-core\AzureDevOps.Authentication.dll' because it is being used by another process.'.
09:29:51.417156 ...\Installer.cs:875    trace: [CopyFiles] copy failed.
09:29:51.418156 ...\Common.cs:709       trace: [LogEvent] Deployment to 'C:\Program Files\Git' failed.
  deployment failed. U_U

Press any key to continue...
09:29:58.153436 ...\Program.cs:328      trace: [Deploy] Installer result = 'DeploymentFailed', exit code = 2.
C:\Users\jbuedel\Projects\Protocol.Parsers [app ≡]>

jbuedel avatar Nov 05 '19 15:11 jbuedel