Git Product home page Git Product logo

Comments (19)

tometchy avatar tometchy commented on May 24, 2024 5

It's the same problem which I had on my Linux Mint 19 Tara and reported in issue #108 more than two months ago. Because there is still no answer, I have described alternative solution on my blog - installing credential helper which is based on libsecret. That's really simple and does the job, so I recommend trying it - softwaredeveloper.blog/git-credential-storage-libsecret :)

from git-credential-manager-for-mac-and-linux.

novak avatar novak commented on May 24, 2024 2

I have also been able to reproduce this issue. I'm going to investigate a bit more and report back here.

from git-credential-manager-for-mac-and-linux.

davidobrien1985 avatar davidobrien1985 commented on May 24, 2024 2

I am also having issues with GCM on my Ubuntu 18.04 when using multiple Azure DevOps orgs.
It just won't store my PAT. It never prompted me with a browser but went straight to

git push origin                      
Password for 'https://<orgName>@dev.azure.com/': 

I enter my PAT and it pushes. I work on a different repo in a different org and push and auth fails (it tries to use the PAT from the first org). I provide the correct PAT and then it works, but I now can't push to the first org.

git config --global credential.helper
!/home/linuxbrew/.linuxbrew/Cellar/openjdk/1.8.0-181/jre/bin/java -Ddebug=false -Djava.net.useSystemProxies=true -jar /home/linuxbrew/.linuxbrew/Cellar/git-credential-manager/2.0.4/libexec/git-credential-manager-2.0.4.jar

from git-credential-manager-for-mac-and-linux.

kirill-d-lappo avatar kirill-d-lappo commented on May 24, 2024 1

@tango4567

So I tried cloning on Windows system then there everything is working properly.
Why Ubuntu is having issues?

Windows version also has some issues, it's not ideal at all =)

from git-credential-manager-for-mac-and-linux.

borgmanJeremy avatar borgmanJeremy commented on May 24, 2024

I'd like to post feedback that this issue is also causing problems for me. I am having issues using lib-secret behind a proxy as well.

from git-credential-manager-for-mac-and-linux.

jazzdelightsme avatar jazzdelightsme commented on May 24, 2024

Thank you @tometchy. But I'm guessing that libsecret solution does not handle the 2FA stuff required by AzDO, right?

@leantk , @novak : what can I do to troubleshoot why GCMML is not finding gnome-keyring?

from git-credential-manager-for-mac-and-linux.

tometchy avatar tometchy commented on May 24, 2024

I haven't try with Azure 2FA but as far as I know libsecret is not meant for such purpose. I came here because I used to use Git Credential Manager for Windows (just for secure credentials storage) and after switching to Linux I was looking for similar solution. Libsecret is enough in my case.

from git-credential-manager-for-mac-and-linux.

marcoboffi avatar marcoboffi commented on May 24, 2024

I have also been able to reproduce this issue. I'm going to investigate a bit more and report back here.

@novak do you have news about your topic? Do you find anything? Regards

from git-credential-manager-for-mac-and-linux.

tarikguney avatar tarikguney commented on May 24, 2024

Any luck here? I have been trying to run this on Windows Subsystem for Linux but no luck!

from git-credential-manager-for-mac-and-linux.

tango4567 avatar tango4567 commented on May 24, 2024

I followed this documentation steps for installing Linux Git Credential Manager.
I'm also facing the same problem.
I'm using the latest version of Ubuntu 19.04 "Disco Dingo"

Even I'm inputting the correct password still it's showing
Permission denied, please try again.

[email protected]'s password: 
Permission denied, please try again.

So I tried cloning on Windows system then there everything is working properly.
Why Ubuntu is having issues?
This is so weird behavior. :'(

from git-credential-manager-for-mac-and-linux.

kirill-d-lappo avatar kirill-d-lappo commented on May 24, 2024

@jazzdelightsme could you update your debug config to true in ~/.gitconfig file

[credential]
        helper = !java -Ddebug=true -Djava.net.useSystemProxies=false //...

so devs there could see error messages? Because the issue may be connected with this one: #122

PS I'm not a dev, I am just passing by =)

from git-credential-manager-for-mac-and-linux.

akonyer avatar akonyer commented on May 24, 2024

I'm having the exact same issue as above and figured I'd post my logs here in case it helps anyone.

Configuration::loadGitConfiguration
Configuration::ParseGitConfig
credential.helper = !/usr/lib/jvm/java-8-openjdk/jre/bin/java -Ddebug=true -Djava.net.useSystemProxies=true -jar /home/linuxbrew/.linuxbrew/Cellar/git-credential-manager/2.0.4/libexec/git-credential-manager-2.0.4.jar
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
gnome-keyring library loaded, creating a password SCHEMA
Try access gnome-keyring with dummy data to make sure it's accessible...
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 = git:https://dev.azure.com
SecretStore::readCredentials
SecretCache::readCredentials
SecretCache::_getTargetName
Secret::uriToName
target name = git:https://dev.azure.com
BaseSecureStore::readCredentials
Getting Credential for git:https://dev.azure.com
Could not retrieve secret from storage.
Return code: 9 description: No matching results

from git-credential-manager-for-mac-and-linux.

djee-ms avatar djee-ms commented on May 24, 2024

Ping @novak what about your investigation from March 2019? Is anyone maintaining this repository? Can someone please look at this issue? There is no point writing and promoting a credential manager app if what it does is essentially store your password in a plain text file; this is in fact even worse as it gives users a false sense of security.

from git-credential-manager-for-mac-and-linux.

akonyer avatar akonyer commented on May 24, 2024

I should have mentioned this long ago when I resolved this problem.

I found the solution on this thread: https://developercommunity.visualstudio.com/content/problem/344874/git-credential-manager-with-devazurecom.html

The gist of the issue is that the URL to clone from Azure Dev Ops is wrong. You need to modify the URL to look like this when cloning the repository:

https://{account}.visualstudio.com/{project}/_git/{repo}

This is what it looks like in ADO and it does not work:
https://{acount}@dev.azure.com/{account}/{project}/_git/{repo}

from git-credential-manager-for-mac-and-linux.

djee-ms avatar djee-ms commented on May 24, 2024

Thanks @akonyer but the issue is about "Secure storage unavailable on Ubuntu 18.04?" and we're not using ADO in this case, so that won't help. The problem persist: GCM complains that secure storage is not available on Linux.

from git-credential-manager-for-mac-and-linux.

akonyer avatar akonyer commented on May 24, 2024

Ahh, I am sorry. I think I found this thread because I was having the exact same issue as @tango4567 and I was able to resolve it by using the method I posted above.

from git-credential-manager-for-mac-and-linux.

djee-ms avatar djee-ms commented on May 24, 2024

No worry @akonyer, but just to keep things clear for devs that even though there might be additional complications like the one you mentioned, the core of the issue is unrelated to ADO. Of course as @jazzdelightsme pointed since some workarounds posted do not work with ADO's 2FA that makes this bug even more annoying for those use cases.

from git-credential-manager-for-mac-and-linux.

Nashluffy avatar Nashluffy commented on May 24, 2024

Yeah.. this is next to useless with the suggested workaround

git config --global credential.canFallBackToInsecureStore true

and if I weren't on a personal laptop and this weren't managing my personal GitHub account, I 100% would not use this.

from git-credential-manager-for-mac-and-linux.

tseifried avatar tseifried commented on May 24, 2024

I have the same issue and following the breadcrumbs I think the real issue is that the package libgnome-keyring0 is not available anymore, since it has been deprecated for a while already. There is actually a issue in the library that causes this issue (also hosted by MS).

microsoft/vsts-authentication-library-for-java#27

from git-credential-manager-for-mac-and-linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.