-
Notifications
You must be signed in to change notification settings - Fork 8
fatal: could not read Username for 'https://github.com': No such device or address #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Do you have SSH remotes configured? If not, this could be happening because it looks for a way for the user to enter a password but can't find one. This SO post explains it better: https://stackoverflow.com/questions/40274484/fatal-could-not-read-username-for-https-github-com-device-not-configured?noredirect=1&lq=1 I am not sure why it works from the Source Control menu but not from the WebUI. I will have to look at that in more detail. |
Hmm yea it's the latter part that threw me off but it may be because my 'cacheusr' 's local .gitconfig has a credential helper now that I think about it (byproduct of me rolling by own for awhile) - and maybe the Web GUI isn't respecting it. But that's a-ok - you're probably spot on, so let me check my remote setup and I'll close this out if so. |
In our testing, regardless of whether a user has a credential helper, something that requires interaction with the remote does not reliably work with HTTPS based authentication.
That's why we recommend using SSH for any interaction with the remote repository. A note on the SSH remote setup: Depending on how your firewall is configured, the SSH URL from GitHub might not work even after you have the keys set up correctly. In that case, these steps worked for me and Tim:
|
In terms of authentication modes, I do think we'll want to (sooner or later) support the approach that @CraigRegester graciously gave us some code for in addition to ssh. |
That was it - I had a special credential heloer built (it's in my code @isc-tleavitt mentioned) that would pull the OAuth access token from a global and connect, so explains why it partially worked. (I removed this credential helper from cacheusr's .gitconfig to take it out of any further issue equations.) Unfortunately not entirely out of the woods though just yet.... on the command line, I had to do the following to get the remote added:
That's all well and good. So I jump to the Web UI in the Management Portal to try and checkout the dev branch.... And it gives this error now"
DevTools show it's trying to do fetch origin dev followed by The only thing I have in the repo right now is a README.md and I can see it pulled down so it did work somewhat. But the error is definitely not very nice. |
Just to confirm, have you updated the path to your private key in the Settings page? Additionally do you have OpenSSH >= 7.6? The accept-new option for StrictHostKeyChecking was added in 7.6 (release notes). We use it here to automatically accept new keys. |
Yes on the private key. OpenSSH 7.5p1 :( I see 8.1.x is available for AIX 7.2 so I'll inquire with my system guys if they have any concerns upgrading |
@isc-svelury let's just document the OpenSSH requirement and call it a day on this one. |
Appears to be an issue in the WebUIDriver.cls with HSUCR 2021.2. Clicking the refresh button next to the remote branches in the Git Web UI leads to this error (though if I run a fetch from the Source Control menu, that works fine)
fatal: could not read Username for 'https://github.com': No such device or address
Opened up the Developer Tools in the browser and I see this:
Form Data:
fetch --prune
Response:
fatal: could not read Username for 'https://github.com': No such device or address
Git-Stderr-Length: 83
Git-Return-Code: 128
Those latter two lines led me to WebUIDriver.cls as they're in the HandleRequest ClassMethod.
Not clear what path it is inspecting to determine the if/elseif logic in that method but happy to give more info if I know what I'm after. I think it may be this but unsure:
POST /ucr/isc/studio/usertemplates/gitsourcecontrol/webuidriver.csp/MYLIB/MYUCR.Productions.MYLIB.CLS/git HTTP/1.1
The text was updated successfully, but these errors were encountered: