Skip to content

Unable to read askpass response from ask-pass-trampoline.bat #2623

Closed

Description

@AlcaDesign

Description

Attempting to push commits to my GitHub using the Desktop client results in this message:

The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-0.8.0\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

No changes occur.

Similar issue as #1916.

Version

GitHub Desktop version: 0.8.0

OS version: Windows 7 (6.1.7601 SP1)

Steps to Reproduce

  1. Make a commit.
  2. Push the commit.
  3. Error message pops up.

image

Expected behavior: The commit should be pushed.

Actual behavior: The aforementioned error message pops up.

Reproduces how often: 100% of the time.

Logs

2017-09-06T06:15:40.333Z - error: [ui] `git -c credential.helper= push origin master:master --progress` exited with an unexpected code: 128.
The system cannot find the path specified.
error: unable to read askpass response from 'C:\Users\Alca\AppData\Local\GitHubDesktop\app-0.8.0\resources\app\static\ask-pass-trampoline.bat'
fatal: could not read Username for 'https://github.com': terminal prompts disabled

Additional Information

The file at that location most definitely does exist. It has persisted through multiple versions of Desktop.

I've tried commenting out core.askpass=git-gui--askpass from my git config.

Issue created by request of Stacey Burns @staceb

Activity

  1. niik commented on Sep 6, 2017

    @niik
    Member

    Hey @AlcaDesign,

    I don't know what could cause that error but I figure we should start by eliminating some things and take it from there.

    Could you please open a command prompt and run set PATH and copy the output here?

    Do you have any anti-virus software running on your machine, and if so, could you temporarily disable it and try again?

    Have you ever been able to use any older versions of GitHub Desktop to push?

  2. added
    more-info-needed
    on Sep 6, 2017
  3. AlcaDesign commented on Sep 6, 2017

    @AlcaDesign
    Author

    Path

    Path=C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\cURL\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\Alca\AppData\Roaming\npm;C:\Program Files\nim\bin;C:\cygwin64\bin;C:\Program Files\nodejs\;C:\Users\Alca\AppData\Local\atom\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\cURL\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Python27\;C:\Program Files\7-Zip
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY
    

    Formatted:

    C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler
    C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live
    C:\ProgramData\Oracle\Java\javapath
    C:\Windows\system32
    C:\Windows
    C:\Windows\System32\Wbem
    C:\Windows\System32\WindowsPowerShell\v1.0\
    c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\
    c:\Program Files\Microsoft SQL Server\100\Tools\Binn\
    c:\Program Files\Microsoft SQL Server\100\DTS\Binn\
    C:\Program Files\cURL\bin
    C:\Program Files\Microsoft SQL Server\110\Tools\Binn\
    C:\Program Files\Microsoft SQL Server\120\Tools\Binn\
    C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
    C:\Users\Alca\AppData\Roaming\npm
    C:\Program Files\nim\bin
    C:\cygwin64\bin
    C:\Program Files\nodejs\
    C:\Users\Alca\AppData\Local\atom\bin
    C:\Program Files\Git\cmd
    C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler
    C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live
    C:\ProgramData\Oracle\Java\javapath
    C:\Windows\system32
    C:\Windows
    C:\Windows\System32\Wbem
    C:\Windows\System32\WindowsPowerShell\v1.0\
    c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\
    c:\Program Files\Microsoft SQL Server\100\Tools\Binn\
    c:\Program Files\Microsoft SQL Server\100\DTS\Binn\
    C:\Program Files\cURL\bin
    C:\Program Files\Microsoft SQL Server\110\Tools\Binn\
    C:\Program Files\Microsoft SQL Server\120\Tools\Binn\
    C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
    C:\Program Files\Git\cmd
    C:\Program Files\nodejs\
    C:\Program Files\Common Files\Microsoft Shared\Windows Live
    C:\Python27\
    C:\Program Files\7-Zip
    

    I went through and removed paths that didn't exist any longer from the path.

    Anti-virus?

    Nope

    Old Version of GitHub Desktop?

    Yes, before I switched to the "beta" pushing worked.

  4. jbtule commented on Sep 12, 2017

    @jbtule

    This also started happening to me last week. I just used the command prompt to get around it, but now it's getting annoying, I've been using GitHub Desktop for months without problems, I don't know if 0.8.0 started it, since updates happen so transparently. But 0.8.0 what I was running when I noticed the problem, and I've also manually downloaded and reinstalled with 0.8.2 and still have the issue.

    GitHub Desktop version: 0.8.0/0.8.2
    OS version: Windows 7 (6.1.7601)

    Log:

    2017-09-12T19:27:06.117Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 5.941s)
    2017-09-12T19:27:08.800Z - error: [ui] `git -c credential.helper= push origin master:master --progress` exited with an unexpected code: 128.
    The system cannot find the path specified.
    error: unable to read askpass response from 'C:\Users\jayt\AppData\Local\GitHubDesktop\app-0.8.2\resources\app\static\ask-pass-trampoline.bat'
    fatal: could not read Username for 'https://github.com': terminal prompts disabled
    
    
    2017-09-12T19:29:00.786Z - error: [ui] `git -c credential.helper= push origin master:master --progress` exited with an unexpected code: 128.
    The system cannot find the path specified.
    error: unable to read askpass response from 'C:\Users\jayt\AppData\Local\GitHubDesktop\app-0.8.2\resources\app\static\ask-pass-trampoline.bat'
    fatal: could not read Username for 'https://github.com': terminal prompts disabled
    
  5. self-assigned this
    on Oct 1, 2017
  6. shiftkey commented on Oct 1, 2017

    @shiftkey
    Member

    I have some fresh theories on this, mostly due to this clue from the malformed characters from a more recent report:

    'C:\Users\TiagoMagalhaes' is not recognized as an internal or external command,
    operable program or batch file.
    error: unable to read askpass response from 'C:\Users\TiagoMagalhães(11506\AppData\Local\GitHubDesktop\app-1.0.2\resources\app\static\ask-pass-trampoline.bat'
    

    The error message The system cannot find the path specified. is self-explanatory, but without more context I'd say we're passing some unicode characters into %DESKTOP_PATH% and cmd can't resolve it due to code pages.

    @echo off
    setlocal
    set ELECTRON_RUN_AS_NODE=1
    set ELECTRON_NO_ATTACH_CONSOLE=1
    "%DESKTOP_PATH%" "%DESKTOP_ASKPASS_SCRIPT%" %*
    endlocal

    This feels a lot like #2624 but in a different location.

  7. Antypurus commented on Oct 1, 2017

    @Antypurus

    hello i have tried to clone into C:\Dev but it didn't work either , so sure to what degree its some Unicode issue , i have also tried disabling avast but to no avail , to be added that you can still be right .

    this is happening on my laptop where i use a college version of W10 so my name and school number is my account name. However on my desktop my name has no Unicode characters and i did not encounter this issue.

  8. jbtule commented on Oct 4, 2017

    @jbtule

    For myself. I've solved it, it was not github desktop. Another program had added something stupid to the registry HKEY_CURRENT_USER\Software\Microsoft\Command Processor\autorun

  9. shiftkey commented on Oct 5, 2017

    @shiftkey
    Member

    @jbtule that's weird - thanks for reporting back!

    @tiagojosemagalhaes @AlcaDesign can you check that registry entry too and see if something unexpected is registered there?

  10. AlcaDesign commented on Oct 5, 2017

    @AlcaDesign
    Author

    @shiftkey There's no "autorun" entry at that location.

  11. removed their assignment
    on Oct 5, 2017
  12. added
    bug
    on Oct 5, 2017
  13. shiftkey commented on Oct 5, 2017

    @shiftkey
    Member

    Dropping myself off this while I don't have access to Windows hardware, in case someone else wants to take a swing at this.

  14. Antypurus commented on Oct 5, 2017

    @Antypurus

    @AlcaDesign @shiftkey i don´t have any autorun entry at that location either.

  15. self-assigned this
    on Oct 10, 2017
  16. 59 remaining items

  17. elalexel commented on Apr 22, 2020

    @elalexel

    Just wanted to comment that a previous installation of Miniconda had created a AutoRun key at HKEY_CURRENT_USER\Software\Microsoft\Command Processor\

    Deleting the key fixed this problem for me.

    Had the same problem! they should fix this on conda's side...

  18. shivanshu-semwal commented on Jul 5, 2020

    @shivanshu-semwal

    Anyone unable to find "Command Processor" tab under HKEY_CURRENT_USER\Software\Microsoft?

    I was also unable to find that key. But i found that in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor . It was there maybe because I installed it conda for all users and not just for me. And after deleting that autorun key my issue was solved.

  19. SuperHarmony910 commented on Aug 9, 2020

    @SuperHarmony910

    I had to reinstall GitHub Desktop to fix this problem; the registry key Autorun was absent in both presented locations.

  20. SuperHarmony910 commented on Aug 27, 2020

    @SuperHarmony910

    Forgot to mention, this has disassociated with the SSH protocol not working; it is now singularly focused on askpass.bat, as I am lazy to create a new issue.

  21. Onoshe commented on Oct 1, 2020

    @Onoshe

    Just wanted to comment that a previous installation of Miniconda had created an AutoRun key at HKEY_CURRENT_USER\Software\Microsoft\Command Processor
    (Another user has stated Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor was where it was located for them. It may be different depending on how Miniconda was installed.
    Deleting the key fixed this problem for me.

    Please, I have the same issue which I have been trying to resolve.
    I opened Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
    but can't find AutoRun Key.
    What I have there are:
    (Default)
    CompletionChar
    DefaultColor
    EnableExtensions
    PathCompletionChar
    (I don't know which of them is AutoRun key)
    Cprocessor

  22. DLionApps commented on Oct 1, 2020

    @DLionApps

    @Onoshe same problem here. mine also no any autorun

  23. DLionApps commented on Oct 1, 2020

    @DLionApps

    I updated the Github desktop to latest version. then error was gone. now i'm able to push the code

  24. SuperHarmony910 commented on Oct 2, 2020

    @SuperHarmony910

    @Onoshe I've been suffering the same problem, have you tried looking through the help document! Hopefully, the help document can be of assistance. If not, try joining our open issue at #10363!

  25. Onoshe commented on Oct 2, 2020

    @Onoshe

    @DLionApps I'm already using the latest version. I tried everything but the problem still persist. Am just 😫
    @SuperHarmony910 Alright. I will try and join.
    Thanks all of you.

  26. SuperHarmony910 commented on Oct 3, 2020

    @SuperHarmony910

    @Onoshe I am also on the latest version (2.5.6). You should try everything that @steveward told me in the comments of #10363
    In the meantime, I would recommend you install Git Bash, the official one that GitHub is compatible with, from https://git-scm.com and download the latest version based upon your computer processor. If you have a 32-bit system, the download won't work unless you click "32-bit Git for Windows Setup". After you've installed it, go to your repository folder, right-click anywhere within File Explorer, and click on "Git Bash Here". Now that you have a working copy of Git, you should toy around with the commands git commit -a & git push! They are great first commands to learn, and basically, its committing and pushing the long way using Git!

  27. DawonChoi commented on Oct 7, 2020

    @DawonChoi

    In the registry editor(pc\HKEY_CURRENT_USER\Software\Microsoft\Command Processor), just remove all the custom string value.
    In the case of me, "doskey" command for Linux macro was causing problems.

  28. SuperHarmony910 commented on Oct 7, 2020

    @SuperHarmony910

    I currently cannot view that registry entry for some reason, it does not exist on my file system, Command Processor. Although it may be a 'view permissions' thing. Who knows?

  29. shahnitav commented on Nov 1, 2020

    @shahnitav

    For myself. I've solved it, it was not github desktop. Another program had added something stupid to the registry HKEY_CURRENT_USER\Software\Microsoft\Command Processor\autorun

    Thanks, I just removed the Autorun entry that was created by Conda and it is working correctly now

  30. denisdrga commented on Dec 8, 2020

    @denisdrga

    For myself. I've solved it, it was not github desktop. Another program had added something stupid to the registry HKEY_CURRENT_USER\Software\Microsoft\Command Processor\autorun

    Thanks, I just removed the Autorun entry that was created by Conda and it is working correctly now

    Geez, I had this issue couple a days now and this actually helped. Also Conda Autorun entry in the registry removed and works like heaven now. Thanks

  31. Ofa234 commented on Jan 23, 2024

    @Ofa234

    Delete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buginvestigation-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions