FHIR Chat · error pushing · committers

Stream: committers

Topic: error pushing


view this post on Zulip Anthony(Tony) Julian (Feb 28 2022 at 17:22):

$ git push --set-upstream origin 20220215_FHIR-20522
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/hl7/fhir/'
Am I doing this wrong, or does it require additional setup

view this post on Zulip Scott Fradkin (Mar 02 2022 at 04:09):

Here's a better how-to for creating a PAT: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token. You'll want to follow that and then you use the PAT in place of your password from the CLI.

view this post on Zulip Anthony(Tony) Julian (Mar 03 2022 at 16:49):

Our local procedure for repositories is:
git clone https://github.com/HL7/fhir
execute publish.bat
git checkout -b mybranch-FHIRnnnn
do the coding

git commit -a -m 'changed endpoints to 0..1"
git push (adds the branch to Main)
create pull request for branch
once reviewed, the branch is merged to master by the admin

What is the procedure for fhir?

view this post on Zulip Gino Canessa (Mar 03 2022 at 16:51):

That process is correct - which version of git are you using?

view this post on Zulip Anthony(Tony) Julian (Mar 03 2022 at 17:05):

git bash

view this post on Zulip Anthony(Tony) Julian (Mar 03 2022 at 17:05):

When I try to push I get a 403

view this post on Zulip Anthony(Tony) Julian (Mar 03 2022 at 17:06):

git version 2.35.1.windows.2

view this post on Zulip Anthony(Tony) Julian (Mar 03 2022 at 17:06):

I do have a PAT

view this post on Zulip John Moehrke (Mar 03 2022 at 17:10):

note that PAT will expire, so you need to get a new one occationally.

view this post on Zulip Anthony(Tony) Julian (Mar 03 2022 at 17:11):

I set it for 90 days.

view this post on Zulip John Moehrke (Mar 03 2022 at 17:11):

I have one machine that requires PAT, the other does not. I have no idea why. I just do the security thing when asked

view this post on Zulip Gino Canessa (Mar 03 2022 at 17:13):

Hmm... I have 2FA on so never see this :-/

view this post on Zulip Anthony(Tony) Julian (Mar 03 2022 at 19:39):

So I did the above, then
$ git push --set-upstream origin 20220303-FHIR-20522
entered username for user, and PAT for password.
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/HL7/fhir/'

view this post on Zulip John Moehrke (Mar 03 2022 at 19:43):

I was going to try, but have not done so, uninstalling tortoise and git... and re-installing. My main machine never does this.

view this post on Zulip Anthony(Tony) Julian (Mar 03 2022 at 19:43):

I can give that a shot. Im not using tortise, so that may be a difference

view this post on Zulip Gino Canessa (Mar 03 2022 at 19:46):

I wonder if you have something else saved cached. Either in the cli (e.g., git auth login) or credential manager.

view this post on Zulip Anthony(Tony) Julian (Mar 03 2022 at 19:46):

@Gino Canessa which GIT are you using

view this post on Zulip Gino Canessa (Mar 03 2022 at 19:48):

You should be able to see in ~\.git-credentials

view this post on Zulip Gino Canessa (Mar 03 2022 at 19:49):

Mine has both an https://{username}:{key}@github.com and https://PersonalAccessToken:{key}@github.com

view this post on Zulip Anthony(Tony) Julian (Mar 03 2022 at 19:58):

doesnt look like I have a git-credentials.

view this post on Zulip Gino Canessa (Mar 03 2022 at 20:04):

It comes with git, so should be installed (git credential-manager-core -h), though it may not be configured. If it isn't, you can install it manually. Should just be able to run git credential-manager-core configure to start using it (will then cache credentials in that file I mentioned)

view this post on Zulip John Moehrke (Mar 03 2022 at 20:06):

I don't have that on either of my machines.

view this post on Zulip Gino Canessa (Mar 03 2022 at 20:11):

(sorry, trying to remember all this stuff as we go =). If you look in ~\.gitconfig, it should say which credential store you are using. On windows it could be GCM ([credential] helper=store) or wincred ([credential] helper=wincred).

view this post on Zulip Gino Canessa (Mar 03 2022 at 20:13):

IIRC, wincred is configured using git --credentials? It has been too long since I've used it to properly remember

view this post on Zulip Anthony(Tony) Julian (Mar 03 2022 at 20:16):

[credential]
helper = C:/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-manager-core.exe

view this post on Zulip John Moehrke (Mar 03 2022 at 20:19):

found that... on the machine that is not being a jerk, I have helper = manager-core. On the machine that keeps asking for new credential I have helper = manager

view this post on Zulip Gino Canessa (Mar 03 2022 at 20:23):

So, I am confident that the issues are with the various credential 'helpers'. GCM Core feels like the most recent/maintained one on windows.

view this post on Zulip John Moehrke (Mar 03 2022 at 20:24):

so what does that mean? (Note I am not having any problems with my manager-core machine).

view this post on Zulip John Moehrke (Mar 03 2022 at 20:25):

waht is "GCM"?

view this post on Zulip Anthony(Tony) Julian (Mar 03 2022 at 20:26):

I assume that it is git-credentials-manager. I am going to scrub all versions of GIT, and start over.

view this post on Zulip Gino Canessa (Mar 03 2022 at 20:28):

GCM is git credential manager - note this link is to the 'core' version (cross-platform, so named for .Net Core), which supersedes the platform-specific GCM before it =)

view this post on Zulip Gino Canessa (Mar 03 2022 at 20:29):

You can also standalone install GCM core (has platform-specific installers on the GH page), and set it to be the credential manager via git credential-manager-core configure.

view this post on Zulip John Moehrke (Mar 03 2022 at 20:30):

in english this time?

view this post on Zulip Anthony(Tony) Julian (Mar 03 2022 at 20:32):

'mother' conveniently mounts my 'home' share free of charge. I used it to cache some of my work repositories - so I have a slew of .gitconfig files. I am dumping all of them. - as well as git. Then I will boot, scrub again, then re-install git.

view this post on Zulip Gino Canessa (Mar 03 2022 at 20:36):

  • the git client supports 'pluggable' credential managers for flexibility
  • one credential manager is called Git Credential Manager (GCM for short). It had platform-specific implementations (GCM for Windows and Java GCM for others).
  • when .Net Core was released as cross-platform, the team made a new, single version (still called GCM), but labeled the 'helper' in git as manager-core to differentiate.
  • if you want to use GCM, you need it installed, but can then run its configuration command, e.g., git credential-manager-core configure. That will set it as the 'current' credential manager for git.

Slightly less 'English', but clearer?

view this post on Zulip John Moehrke (Mar 03 2022 at 20:37):

so manager-core is GCM?

view this post on Zulip Gino Canessa (Mar 03 2022 at 20:43):

Yes

view this post on Zulip John Moehrke (Mar 03 2022 at 20:43):

ok, that was english.

view this post on Zulip John Moehrke (Mar 03 2022 at 20:44):

so, then on my misbehaving machine... I should run git credential-manager-core configure?

view this post on Zulip Gino Canessa (Mar 03 2022 at 20:45):

Sure - it should then have the same process as the other one.

view this post on Zulip Anthony(Tony) Julian (Mar 03 2022 at 20:50):

If I figure this out I will document for 'dummies' - like me.

view this post on Zulip Gino Canessa (Mar 03 2022 at 21:16):

Sounds useful! I usually just tinker when something's broken until it is un-broken =)

view this post on Zulip Vassil Peytchev (Mar 03 2022 at 21:39):

Sounds like it is much easier to use SSH than HTTP based git communications.

view this post on Zulip Vassil Peytchev (Mar 03 2022 at 21:40):

Use git bash and the instructions at https://docs.github.com/en/authentication/connecting-to-github-with-ssh

view this post on Zulip Anthony(Tony) Julian (Mar 03 2022 at 21:41):

will give that a try

view this post on Zulip Anthony(Tony) Julian (Mar 04 2022 at 14:40):

@Lloyd McKenzie : Github client says I dont have write access. username: ajuliansr

view this post on Zulip Lloyd McKenzie (Mar 04 2022 at 14:48):

Hi Tony, can you send me an email confirming you've read and agree to abide by Chapter 9 of the GOM and have signed up for and agree to actively monitor #committers/announce?

view this post on Zulip Gino Canessa (Mar 04 2022 at 15:52):

I don't know Lloyd, this "Tony" seems pretty suspect ;-)

view this post on Zulip David Pyke (Mar 04 2022 at 16:04):

I'm willing to vouch for him. Assuming he's the one that is in the picture. If not, all bets are off

view this post on Zulip Lloyd McKenzie (Mar 04 2022 at 16:12):

The presence of a beard is always a warning flag... ;)

view this post on Zulip Marc Duteau (Mar 04 2022 at 16:17):

I thought it was the other way around? ;D

view this post on Zulip Anthony(Tony) Julian (Mar 04 2022 at 19:09):

was it the beanie that gave me away?

view this post on Zulip David Pyke (Mar 04 2022 at 19:10):

Only a true standards geek would wear an HL7 beanie.

view this post on Zulip Lloyd McKenzie (Mar 04 2022 at 19:39):

(gazes fondly at his HL7 beany and accompanying photo...)

view this post on Zulip Anthony(Tony) Julian (Mar 04 2022 at 22:49):

so after a week of dinking around, I finally determined that sometime along the way I was dropped as a committer. Sigh. I need to remember KISS.

view this post on Zulip Lloyd McKenzie (Mar 05 2022 at 02:17):

I put you back on the committer's list this morning...


Last updated: Apr 12 2022 at 19:14 UTC