gitui icon indicating copy to clipboard operation
gitui copied to clipboard

Pushing to Repos Now Failing

Open akagno-ent opened this issue 1 year ago • 7 comments

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 avatar May 23 '24 14:05 akagno-ent

Same for me

apex-woot avatar May 30 '24 10:05 apex-woot

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

extrawurst avatar May 30 '24 14:05 extrawurst

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

apex-woot avatar May 30 '24 14:05 apex-woot

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?

emirror-de avatar Jun 25 '24 09:06 emirror-de

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

akagno-ent avatar Jun 25 '24 16:06 akagno-ent

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.

ehjmx avatar Jun 30 '24 17:06 ehjmx

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.

alexcatanzaro avatar Sep 13 '24 17:09 alexcatanzaro