Github push error. unable to read askpass & could not read Username
Asked Answered
A

10

24

I am trying to push within Aptana but am getting the following error. I have successfully pulled, but can't figure out why my push won't work.

/home/jeni/apps/Aptana_Studio_3/plugins/com.aptana.git.core_3.0.0.1350339960/os/linux/askpass.    tcl: 3: exec: wish: not found
error: unable to read askpass response from     '/home/jeni/apps/Aptana_Studio_3/plugins/com.aptana.git.core_3.0.0.1350339960/os/linux/askpass.tcl'
fatal: could not read Username for 'https://github.com': No such device or address
Alluring answered 18/2, 2013 at 13:29 Comment(4)
I personally prefer to always work with SSH urls + my SSH key. Then there aren't issues when I change my GitHub password...Silvern
@jenia did you fixed?Zadazadack
This question is poorly written. You should provide the steps that you took to configure Aptana.Cobnut
This is happening with Android Studio for me right now. Aptana is Eclipse based while Android Studio is an IntelliJ. so I'm thinking this might be something Linux system-wise, like something with the default keyring is wrong.Wallywalnut
S
21

I solved the issue with "Credential Helper". Navigate from Android Studio -> Preferences -> Version Control -> Git, then tick the check box of "Credential Helper" -> Ok. Now, try to push again

Script answered 16/7, 2022 at 4:9 Comment(0)
C
13

When this error occurs try git push from the terminal and you will be prompted a username and a password for your git config credentials and upon that a successful git push would happen

Chemar answered 1/3, 2022 at 17:24 Comment(1)
What should I do if credentials are not saved? If I try again username and password are asked again...Aureus
S
4

I have had the same problem.

I am using Ubuntu 12.04, Eclipse with Aptana plug-in. Through Aptana's Git I was having the same problem.

I solved it by installing TK and TCL packages. It then was able to read the askpass.tcl file.

sudo apt-get install tcl
sudo apt-get install tk

Hope this helps

Swatow answered 21/7, 2014 at 17:52 Comment(1)
Thanks @Seborreia it woked for me in linux mint.Demagnetize
D
3

The message "error: unable to read askpass response from '/tmp/git-askpass-0.sh'" was shown to me when I used Git from Intellij, but git worked fine from the terminal.

I tried Seborreia's method but it did not work

Someone suggested rebooting the computer.

Later on I realized that my jre/bin folder did not have appropriate permissions. Adding +x permissions fixed the issue.

Deese answered 10/8, 2015 at 6:34 Comment(0)
S
3

I had the same error:

error: unable to read askpass response from...

I solved it by running:

unset SSH_ASKPASS

tried to pull again and everything works fine.

The solution is discussed here: https://community.atlassian.com/t5/Bitbucket-questions/git-login-issue-from-linux-command-line/qaq-p/716269

Simulated answered 3/6, 2020 at 12:49 Comment(1)
before this solution work you should check your environmental variables. env | grep SSH_ASKPASSCondemn
R
2

In my case just restarting machine did work.

Riverside answered 26/9, 2023 at 20:21 Comment(0)
P
0

If this error message occurs when cloning Repository, then try to use the SSH url in the clone command instead of the HTTPS url (provided by your repo).

Of course assuming the following already done on your shell ( Git bash for my case ):

eval "$(ssh-agent -s)"  # starts agent
ssh-add ~/.ssh/id_githubPrivateKey  # add the key
Piles answered 19/7, 2022 at 13:21 Comment(0)
O
0

In my case, there was a conflict between Android Studio Git and manually installed Git. So removing installed helped.

Optic answered 27/7, 2022 at 14:4 Comment(0)
S
0

In my case, the same error was occurring because I was giving the wrong URL for the 'git clone' command.

I was incorrectly using the HTTPS url whereas I needed to use the SSH url which is of the format 'git clone [email protected]:HEAD/reponame.git'

Swingletree answered 26/2 at 6:18 Comment(0)
G
-1

In Android Studio File -> Settings -> Git -> Credentials Helper(check this option)

If its not working even after checking 'Credentials helper' in settings then only restart the Android Studio and try to push code again.

Galley answered 19/8, 2022 at 8:51 Comment(1)
This is literally a copy paste from the answer, shame on youBenge

© 2022 - 2024 — McMap. All rights reserved.