Stream: committers
Topic: error pushing
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
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.
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?
Gino Canessa (Mar 03 2022 at 16:51):
That process is correct - which version of git are you using?
Anthony(Tony) Julian (Mar 03 2022 at 17:05):
git bash
Anthony(Tony) Julian (Mar 03 2022 at 17:05):
When I try to push I get a 403
Anthony(Tony) Julian (Mar 03 2022 at 17:06):
git version 2.35.1.windows.2
Anthony(Tony) Julian (Mar 03 2022 at 17:06):
I do have a PAT
John Moehrke (Mar 03 2022 at 17:10):
note that PAT will expire, so you need to get a new one occationally.
Anthony(Tony) Julian (Mar 03 2022 at 17:11):
I set it for 90 days.
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
Gino Canessa (Mar 03 2022 at 17:13):
Hmm... I have 2FA on so never see this :-/
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/'
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.
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
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.
Anthony(Tony) Julian (Mar 03 2022 at 19:46):
@Gino Canessa which GIT are you using
Gino Canessa (Mar 03 2022 at 19:48):
You should be able to see in ~\.git-credentials
Gino Canessa (Mar 03 2022 at 19:49):
Mine has both an https://{username}:{key}@github.com
and https://PersonalAccessToken:{key}@github.com
Anthony(Tony) Julian (Mar 03 2022 at 19:58):
doesnt look like I have a git-credentials.
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)
John Moehrke (Mar 03 2022 at 20:06):
I don't have that on either of my machines.
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
).
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
Anthony(Tony) Julian (Mar 03 2022 at 20:16):
[credential]
helper = C:/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-manager-core.exe
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
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.
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).
John Moehrke (Mar 03 2022 at 20:25):
waht is "GCM"?
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.
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 =)
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
.
John Moehrke (Mar 03 2022 at 20:30):
in english this time?
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.
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?
John Moehrke (Mar 03 2022 at 20:37):
so manager-core is GCM?
Gino Canessa (Mar 03 2022 at 20:43):
Yes
John Moehrke (Mar 03 2022 at 20:43):
ok, that was english.
John Moehrke (Mar 03 2022 at 20:44):
so, then on my misbehaving machine... I should run git credential-manager-core configure
?
Gino Canessa (Mar 03 2022 at 20:45):
Sure - it should then have the same process as the other one.
Anthony(Tony) Julian (Mar 03 2022 at 20:50):
If I figure this out I will document for 'dummies' - like me.
Gino Canessa (Mar 03 2022 at 21:16):
Sounds useful! I usually just tinker when something's broken until it is un-broken =)
Vassil Peytchev (Mar 03 2022 at 21:39):
Sounds like it is much easier to use SSH than HTTP based git communications.
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
Anthony(Tony) Julian (Mar 03 2022 at 21:41):
will give that a try
Anthony(Tony) Julian (Mar 04 2022 at 14:40):
@Lloyd McKenzie : Github client says I dont have write access. username: ajuliansr
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?
Gino Canessa (Mar 04 2022 at 15:52):
I don't know Lloyd, this "Tony" seems pretty suspect ;-)
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
Lloyd McKenzie (Mar 04 2022 at 16:12):
The presence of a beard is always a warning flag... ;)
Marc Duteau (Mar 04 2022 at 16:17):
I thought it was the other way around? ;D
Anthony(Tony) Julian (Mar 04 2022 at 19:09):
was it the beanie that gave me away?
David Pyke (Mar 04 2022 at 19:10):
Only a true standards geek would wear an HL7 beanie.
Lloyd McKenzie (Mar 04 2022 at 19:39):
(gazes fondly at his HL7 beany and accompanying photo...)
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.
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