Comments (7)
I'm running into the same issue. I'm absolutely sure I'm entering the correct user/pass but still get:
Fatal: java.lang.Error encountered. Details:
/usr/bin/security exited with result 51.
stdOut:
stdErr: security: SecKeychainItemCreateFromContent (<default>): The user name or passphrase you entered is not correct.
add-generic-password: returned -25293
fatal: credential helper '!/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/bin/java -Ddebug=false -Djava.net.useSystemProxies=true -jar /usr/local/Cellar/git-credential-manager/2.0.4/libexec/git-credential-manager-2.0.4.jar' told us to quit
This is on:
uname -a
Darwin XXXX-MacBook-Pro.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64 i386 MacBookPro14,3 Darwin
from git-credential-manager-for-mac-and-linux.
This is likely related to issues with newer versions of Java, specifically 9+. Version 2.0.4 of Git Credential Manager was just released, it is available on Github and will be on Homebrew soon.
Let me know if you still see issues on Mojave with that new version.
from git-credential-manager-for-mac-and-linux.
Feel free to re-open this issue if the bug still exists in 2.0.4
from git-credential-manager-for-mac-and-linux.
@maxmilton thanks for the additional information. Would it be possible for you to run it again with the credential manager flag -Ddebug=true
?
from git-credential-manager-for-mac-and-linux.
Hi @novak,
I believe I'm getting a similar issue. While it still pulls correctly (I'm using Azure & a PAT) I get the same error thrown.
Darwin XXXXX 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64
When running git clone it prompts for a password. I enter my PAT and this is the following I get when I run it with debug on.
`Cloning into 'XXXX'...
Configuration::loadGitConfiguration
Configuration::ParseGitConfig
core.editor = vim
core.excludesfile = /Users/XXXX/.gitignore_global
credential.helper = !/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/bin/java -Ddebug=true -Djava.net.useSystemProxies=true -jar /usr/local/Cellar/git-credential-manager/2.0.4/libexec/git-credential-manager-2.0.4.jar
filter.lfs.clean = git-lfs clean -- %f
filter.lfs.process = git-lfs filter-process
filter.lfs.required = true
filter.lfs.smudge = git-lfs smudge -- %f
user.email = XXXX
user.name = XXXX
Program::loadOperationArguments
Configuration::tryGetEntry
Configuration::tryGetEntry
Configuration::tryGetEntry
Configuration::tryGetEntry
Configuration::tryGetEntry
Configuration::tryGetEntry
Program::EnableTraceLogging
Program::get
targetUri = https://dev.azure.com/
Program::ComponentFactory::createSecureStore
Getting a persistent token store that must be secure
Getting a persistent credential store that must be secure
Program::createAuthentication
detecting authority type
BaseVsoAuthentication::getAuthentication
BaseVsoAuthentication::detectAuthority
failed detection
authority is basic
BasicAuthentication::getCredentials
SecretStore::getTargetName
Secret::uriToName
target name = gcm4ml:git:https://dev.azure.com
SecretStore::readCredentials
SecretCache::readCredentials
SecretCache::_getTargetName
Secret::uriToName
target name = gcm4ml:git:https://dev.azure.com
BaseSecureStore::readCredentials
Password for 'https://[email protected]/':
Configuration::loadGitConfiguration
Configuration::ParseGitConfig
core.editor = vim
core.excludesfile = /Users/XXXX/.gitignore_global
credential.helper = !/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/bin/java -Ddebug=true -Djava.net.useSystemProxies=true -jar /usr/local/Cellar/git-credential-manager/2.0.4/libexec/git-credential-manager-2.0.4.jar
filter.lfs.clean = git-lfs clean -- %f
filter.lfs.process = git-lfs filter-process
filter.lfs.required = true
filter.lfs.smudge = git-lfs smudge -- %f
user.email = XXXX
user.name = XXXX
Program::loadOperationArguments
Configuration::tryGetEntry
Configuration::tryGetEntry
Configuration::tryGetEntry
Configuration::tryGetEntry
Configuration::tryGetEntry
Configuration::tryGetEntry
Program::EnableTraceLogging
Program::store
targetUri = https://dev.azure.com/
Program::ComponentFactory::createSecureStore
Getting a persistent token store that must be secure
Getting a persistent credential store that must be secure
Program::createAuthentication
detecting authority type
BaseVsoAuthentication::getAuthentication
BaseVsoAuthentication::detectAuthority
failed detection
authority is basic
BasicAuthentication::setCredentials
SecretStore::writeCredentials
SecretStore::getTargetName
Secret::uriToName
target name = gcm4ml:git:https://dev.azure.com
BaseSecureStore::writeCredential
Fatal error encountered. Details:
java.lang.Error: /usr/bin/security exited with result 51.
stdOut:
stdErr: security: SecKeychainItemCreateFromContent (): The user name or passphrase you entered is not correct.
add-generic-password: returned -25293
at com.microsoft.alm.storage.macosx.KeychainSecurityCliStore.checkResult(KeychainSecurityCliStore.java:325)
at com.microsoft.alm.storage.macosx.KeychainSecurityCliStore.write(KeychainSecurityCliStore.java:412)
at com.microsoft.alm.storage.macosx.KeychainSecurityCliStore.writeCredential(KeychainSecurityCliStore.java:421)
at com.microsoft.alm.storage.macosx.KeychainSecurityBackedCredentialStore.writeCredential(KeychainSecurityBackedCredentialStore.java:9)
at com.microsoft.alm.storage.macosx.KeychainSecurityBackedCredentialStore.add(KeychainSecurityBackedCredentialStore.java:19)
at com.microsoft.alm.storage.macosx.KeychainSecurityBackedCredentialStore.add(KeychainSecurityBackedCredentialStore.java:9)
at com.microsoft.alm.authentication.SecretStoreAdapter.writeCredential(SecretStoreAdapter.java:53)
at com.microsoft.alm.authentication.BaseSecureStore.writeCredential(BaseSecureStore.java:57)
at com.microsoft.alm.authentication.SecretStore.writeCredentials(SecretStore.java:153)
at com.microsoft.alm.authentication.BasicAuthentication.setCredentials(BasicAuthentication.java:83)
at com.microsoft.alm.gitcredentialmanager.Program.store(Program.java:437)
at com.microsoft.alm.gitcredentialmanager.Program.store(Program.java:428)
at com.microsoft.alm.gitcredentialmanager.Program.access$300(Program.java:63)
at com.microsoft.alm.gitcredentialmanager.Program$4.call(Program.java:414)
at com.microsoft.alm.gitcredentialmanager.Program$4.call(Program.java:411)
at com.microsoft.alm.gitcredentialmanager.Program.innerMain(Program.java:195)
at com.microsoft.alm.gitcredentialmanager.Program.main(Program.java:123)
remote: Azure Repos
remote: Found 9 objects to send. (158 ms)
Unpacking objects: 100% (9/9), done.`
Hope this helps.
from git-credential-manager-for-mac-and-linux.
git-credential-manager-2.0.4.jar would not open a browser for https://[organization]@dev.azure.com/[organization]... It kept trying to fall back to basic auth. But it did oauth and clone correctly when using the https://[organization].visualstudio.com/... url. Both urls were copied from the "Clone" https link.
from git-credential-manager-for-mac-and-linux.
I'd recommend trying GCM Core's macOS preview release
from git-credential-manager-for-mac-and-linux.
Related Issues (20)
- Ubuntu believes required packages are unused
- Java is Required for 'brew install' HOT 2
- Doesn't work with Linux Mint 19 Tara HOT 2
- Why do i need java to install a simple tool. HOT 4
- Unable to authenticate with GoDaddy managed Office 365 account
- Support for mainstream package managers.
- Fails when connected over SSH
- fatal: Authentication failed with GKR-message: received an invalid, unencryptable, or non-utf8 secret
- Secure storage unavailable on Ubuntu 18.04? HOT 19
- Web browser window doesn't open
- Fatal: java.lang.ExceptionInInitializerError encountered
- Cannot clone a repo - blank HOT 1
- Xcode Error When Installing From Brew HOT 1
- Better macOS support: GCM Core
- git-credential-manager on linux failed to get token HOT 1
- "gnome-keyring library not loadedjava.lang.UnsatisfiedLinkError: Unable to load library 'gnome-keyring': Native library (linux-x86-64/libgnome-keyring.so) not found in resource path" on Azure notebook. HOT 3
- support XDG Base Directory Specification
- Can't run credential manager with latest Mac updates
- YBS HOT 1
- Ios
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-credential-manager-for-mac-and-linux.