Skip to content
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

Pushing to Repos Now Failing #2245

Open
akagno-ent opened this issue May 23, 2024 · 7 comments
Open

Pushing to Repos Now Failing #2245

akagno-ent opened this issue May 23, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@akagno-ent
Copy link

Describe the bug
I'm not sure what's changed, but I was hoping to figured out some information for how to troubleshoot this on my end further.

To Reproduce
Steps to reproduce the behavior:

  1. Make commit using gitui
  2. Push using gitui
  3. See Error
  4. Push using CLI git works

Expected behavior
I can push to my repos using gitui

Screenshots
image

Context (please complete the following information):

  • OS/Distro + Version: macOS 14.5
  • GitUI Version: gitui nightly 2024-05-22 ()
  • Rust version: rustc 1.78.0 (9b00956e5 2024-04-29) (Homebrew)

Additional context
I believe it's possibly my keychain provider has changed somehow? Upon first push to a new remote (GitHub or ADO), I get a keychain access request. Upon providing the credential and "Always Allow," this happens without a keychain access prompt. If I just hit "Allow" the same error occurs but I need to input my computer password repeatedly.

@akagno-ent akagno-ent added the bug Something isn't working label May 23, 2024
@akagno-ent akagno-ent changed the title Pushing to Azure DevOps Now Failing Pushing to Repos Now Failing May 23, 2024
@vkohutid
Copy link

Same for me

@extrawurst
Copy link
Owner

@vkohutid also mac? can you share more details on how you authenticate?

@vkohutid
Copy link

Firstly, I authenticated withusername and password that I got from printf "protocol=https\nhost=github.com\n" | git credential fill command.

Yesterday I was searching for a solution and found this issue with a solution by running a command git config --global credential.helper osxkeychain

@emirror-de
Copy link

This may be not the identical issue, but related to it.
I am not able to either fetch or push using gitui on Mac Sonoma 14.5 using ssh authentication. Using git pull or push works fine. The repository is freshly cloned with ssh. Following error message is shown by gitui:
git error:remote rejected authentication: Failed getting response; class=Ssh (23); code=Auth (-16)

I tried the solution suggested by @vkohutid above, but it does not fix this issue. Are there any suggestions on what else to try? What information do you need additionally?

@akagno-ent
Copy link
Author

This may be not the identical issue, but related to it. I am not able to either fetch or push using gitui on Mac Sonoma 14.5 using ssh authentication. Using git pull or push works fine. The repository is freshly cloned with ssh. Following error message is shown by gitui: git error:remote rejected authentication: Failed getting response; class=Ssh (23); code=Auth (-16)

I tried the solution suggested by @vkohutid above, but it does not fix this issue. Are there any suggestions on what else to try? What information do you need additionally?

Yeah, I tried this fix as well, but I'm getting the same error:

image

@ehjmx
Copy link

ehjmx commented Jun 30, 2024

I had similar issues in my test vm and on a test mac mini. I tried the git config --global credential.helper osxkeychain to no luck and wondered why the same error wouldn't occur on my production mac. I went through all the differences I was aware off. The first and most obvious one being that in my test environments I used brew to install gitui and on my productive mac I used macports to install git and gitui.
I cloned the VM, removed brew, installed macports, installed gitui via macports and could commit. I don't know what macports does different compared to brew when building and/or installing gitui from a binary. I admit I haven't tested the gitui from the releases section on github.

For convenience I added /usr/bin/ssh-add --apple-use-keychain ~/.ssh/id_edxxxx to my .bashrc

This is macOS 14.5
gitui nightly 2024-05-18 () installed via macports
currently no rust installed but version 1.78 is available via macports and is listed as build dependency.

@alexcatanzaro
Copy link

I had similar issues in my test vm and on a test mac mini. I tried the git config --global credential.helper osxkeychain to no luck and wondered why the same error wouldn't occur on my production mac. I went through all the differences I was aware off. The first and most obvious one being that in my test environments I used brew to install gitui and on my productive mac I used macports to install git and gitui. I cloned the VM, removed brew, installed macports, installed gitui via macports and could commit. I don't know what macports does different compared to brew when building and/or installing gitui from a binary. I admit I haven't tested the gitui from the releases section on github.

For convenience I added /usr/bin/ssh-add --apple-use-keychain ~/.ssh/id_edxxxx to my .bashrc

This is macOS 14.5 gitui nightly 2024-05-18 () installed via macports currently no rust installed but version 1.78 is available via macports and is listed as build dependency.

for anyone else running into a failed authentication issue (fine when using git push) -- doing this alleviated the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants