Skip to content

Cannot spawn the ask-pass-trampoline #1916

Closed

Description

@richvoronov

Hi

Description

When i try send my project on GitHub i get error:

error: cannot spawn C:\Users\Admin\AppData\Local\GitHubDesktop\app-0.5.9\resources\app\static\ask-pass-trampoline.bat: No such file or directory
fatal: could not read Username for 'https://github.com': terminal prompts disabled

error

Version

GitHub Desktop version: 0.5.9

OS version: Windows Version 10.0.15063

Steps to Reproduce

  1. Create repository
    screenshot_2
  2. Add the first commit
    screenshot_3
  3. Trying to send my file on GitHub
    screenshot_4
  4. Click Publish repository and get an error
    error

Expected behaviour: Wanted to see my index.html on GitHub repository "richred/richred.github.io"

Actual behaviour: i get error

Reproduces how often: all time

  1. GIF. Error
    bandicam-2017-06-06-22-10-48-544

  2. GIF. The repository is created on GitHub
    bandicam-2017-06-06-22-13-40-592

Thank for help!

Activity

  1. shiftkey commented on Jun 7, 2017

    @shiftkey
    Member

    We had #1873 reported earlier which feels similar, but you've provided more detail here for us to work with so I'm going to close that one in favour of this.

    So there's two things to distinguish here in the "Publish Repository" flow:

    • creating the repository using the GItHub API - this seems to have succeeded
    • publishing the commits on your current branch - this is the error you're seeing

    The latter requires us to set up a GIT_ASKPASS environment which passes your credentials to git.exe as part of the git push. I'm not entirely sure why this is happening, but that's some context to help start things off!

  2. richvoronov commented on Jun 7, 2017

    @richvoronov
    Author

    I will wait for update that solves the problem. Thanks!

  3. added
    bug
    investigation-needed
    on Jun 7, 2017
  4. joshaber commented on Jun 7, 2017

    @joshaber
    Contributor

    @Richred Can you check to see if C:\Users\Admin\AppData\Local\GitHubDesktop\app-0.5.9\resources\app\static\ask-pass-trampoline.bat exists on your machine?

    I almost wonder if this is a Squirrel problem. If that file doesn't exist, it sure sounds like installation failed.

  5. richvoronov commented on Jun 7, 2017

    @richvoronov
    Author

    @joshaber I've checked this before. I reinstalled the program several times

    screenshot_1

  6. added this to the M5: Post-Beta Bougie milestone on Jun 8, 2017
  7. changed the title [-]cannot spawn [/-] [+]Cannot spawn the ask-ass-trampoline[/+] on Jun 9, 2017
  8. changed the title [-]Cannot spawn the ask-ass-trampoline[/-] [+]Cannot spawn the ask-pass-trampoline[/+] on Jun 9, 2017
  9. richvoronov commented on Jun 11, 2017

    @richvoronov
    Author

    @joshaber, @shiftkey After a while, I had problems with the nodejs, and I decided to reinstall Windows. And now GitHub Desktop works.
    Thank you very much for participating in solving the problem!

  10. joshaber commented on Jun 13, 2017

    @joshaber
    Contributor

    Great, thanks for letting us know!

  11. locked as resolved and limited conversation to collaborators on Jul 21, 2018
  12. unlocked this conversation on Sep 27, 2018
  13. whocaresorz commented on Jun 6, 2019

    @whocaresorz

    what do i have to do,when i face that

    bug

  14. steveward commented on Jun 6, 2019

    @steveward
    Contributor

    @cjingcheng we have seen a few causes of this error. One common one has been the modification of the following registry entry:

    HKEY_CURRENT_USER\Software\Microsoft\Command Processor\autorun

    Could you check to see if this registry entry has possibly been modified on your machine?

    We've also seen special characters in Windows user account names cause this, but that does not look like it would be an issue in this instance. It would also be helpful to know if you are running any antivirus/security software that could be interfering with GitHub Desktop.

  15. whocaresorz commented on Jun 9, 2019

    @whocaresorz
  16. AnokhinaM commented on Jul 25, 2019

    @AnokhinaM

    Hello, I have the same issue.
    Have you solved it?
    Do you need any screenshots or any other information?

    I've reinstalled GitHub several times, now I have versions installed: 2.1.0, 2.0.4, 2.03 - all of them gives the error.

    In my registry I don't have such registry entry at all:
    HKEY_CURRENT_USER\Software\Microsoft\Command Processor\autorun

  17. AnokhinaM commented on Jul 25, 2019

    @AnokhinaM

    Hello, I have the same issue.
    Have you solved it?
    Do you need any screenshots or any other information?

    I've reinstalled GitHub several times, now I have versions installed: 2.1.0, 2.0.4, 2.03 - all of them gives the error.

    In my registry I don't have such registry entry at all:
    HKEY_CURRENT_USER\Software\Microsoft\Command Processor\autorun

    in 2.0.4 version I click the button "Push" and get the error:
    image

    in 2.1.0 version I click the button "Push" and get the error:
    image

  18. whocaresorz commented on Jul 25, 2019

    @whocaresorz
  19. steveward commented on Jul 25, 2019

    @steveward
    Contributor

    @AnokhinaM and @cjingcheng the registry entry can also be modified in the following location:

    HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Command Processor \ AutoRun

    I would check there as well to see if that has been modified.

  20. Sameedahmad commented on Dec 3, 2019

    @Sameedahmad

    @Richred Can you check to see if C:\Users\Admin\AppData\Local\GitHubDesktop\app-0.5.9\resources\app\static\ask-pass-trampoline.bat exists on your machine?

    I almost wonder if this is a Squirrel problem. If that file doesn't exist, it sure sounds like installation failed.

    My file doesnot exist what should i do i have re-installed it already;

  21. markc-dsoft commented on Mar 31, 2020

    @markc-dsoft

    What should the value of the AutoRun entry be?

  22. steveward commented on Apr 1, 2020

    @steveward
    Contributor

    @markc-dsoft I'd recommend leaving it empty/deleting it -- see this blog for some interesting insights into how it can affect your system.

  23. markc-dsoft commented on Apr 2, 2020

    @markc-dsoft

    @steveward - Do we have a better solution here than "reinstall Windows"? My error is slightly different in that it says "No error" after ask-pass-trampoline.bat instead of "No such file or directory". I've uninstalled and reinstalled Github Desktop, rolled back settings, gone back to all available System Restore Points, etc.

  24. markc-dsoft commented on Apr 2, 2020

    @markc-dsoft

    @Richred Can you check to see if C:\Users\Admin\AppData\Local\GitHubDesktop\app-0.5.9\resources\app\static\ask-pass-trampoline.bat exists on your machine?
    I almost wonder if this is a Squirrel problem. If that file doesn't exist, it sure sounds like installation failed.

    @Sameedahmad replied:

    My file doesnot exist what should i do i have re-installed it already;

    If you're not using version 0.5.9, substitute your actual version # in the path when you look for the ask-pass-trampoline.bat file

  25. markc-dsoft commented on Apr 9, 2020

    @markc-dsoft

    Here's a solution: put the username and password/token in the URL

     https://name:[email protected]/username/repo.git
    

    more discussion and solutions here (stackoverflow.com)

  26. Coloured-glaze commented on Sep 25, 2021

    @Coloured-glaze

    I re-install him and the problem was solved.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions