-
Notifications
You must be signed in to change notification settings - Fork 224
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
heroku login does not work with cygwin or git bash #84
Comments
This is inconsistent. I installed Heroku into Cygwin using the standalone installer (https://toolbelt.heroku.com/install.sh) which worked fine (once I removed all the
pointing to this issue. Because I installed the toolbelt using Cygwin, to run it using
|
I get this error since I enabled 2fa on my account |
I have installed newest Git... It may be certificates? |
Any update here? |
Sorry, I dont get it, what the solution here? |
whats the solution? |
It works with ZSH. |
|
Need this fixed. Cannot run
Tried
|
This message was a little unclear for me, so in case anyone is in a similar situation (after I activate 2FA, I received this error), here is what worked for me. I closed out Git Bash then opened the command prompt. From there, I was able to successfully login to heroku through "heroku login". I then closed the command prompt and re-launched Git Bash and everything worked fine. In regards to @starrychloe issue, running cmd within Bash/Cygwin probably won't work either. You may need to close Cygwin and open a fresh command prompt and then login from there. |
@eappleby suggestion is the preferred solution right now, run |
@CMCDragonkai, nice one :) Even better, just run What I really don't understand about this issue though is that other programs like ssh work fine hiding the password. |
@rbashish It appears that you did not enter your email or password correctly. I have been able to login successfully via cmd.exe. Could you please try again? |
@ransombriggs Thank you for replying. Apparently I have stated the reason that login will not work in Git Bash and it will work on cmd.exe. Please read the second line. And Intentionally, I have input the wrong email id and password to show that it does not give error as it used to give in Git bash. |
@velo Try using "cmd prompt". If you get the same error then there might be some problems with the dependent software - try reinstalling it. |
@velo Could you open a separate issue? Could you include how you configured |
It would be nice if this would get fixed, but in the mean time, the best way to launch a cmd prompt from a different (cygwin/git bash/etc.) shell is to run
|
We've looked at this a few times and haven't found a way to actually make this work in git bash. It would probably involve some low level API calls. With windows bash (and given there is already an easy workaround) on the horizon, it's unlikely we'll put much effort into this. If anyone want to submit a PR I would happily review it though. |
To expand upon what @dickeyxxx said, the underlying problem is that stdin in Git Bash is not actually a tty, and therefore the standard way of silencing it for reading a password does not work properly. This command is written in Go, and we looked in vain for solutions to this previously, but if someone knows of a package that can accomplish this, that would also be helpful as well. |
@dickeyxxx Yeah, will be awesome to have this feature! ;) |
On windows, click the start icon and in the search type heroku. The first result should be heroku command prompt , just click Run command - this command prompt will allow you to log in by typing your username and password without the error messages. |
But I'm already logged in through Windows CMD.EXE!
Why not just turn off echo? http://stackoverflow.com/questions/2338889/how-to-hide-password-input-from-terminal-in-ruby-script |
I am still getting "Login is currently incompatible with git bash/Cygwin/MinGW" when entering 'heroku login', even when using the Windows CMD as an Administrator. I am using WIndows 10 Pro. Perhaps I should uninstall heroku and reinstall using 32-bit. Anyone else experiencing this, too? |
@protrudamus try running |
Jeff, thanks for the suggestion. Unfortunately, my system does not recognize ‘winpty’ as a valid command. I don’t have the required libraries to support winpty.
I have tried the ‘heroku login’ using Windows command line, PowerShell, Git CMD, and GitBash but no luck.
Is there a way to get more logging of the error? Is there a dump file created?
Thanks, again.
Regards,
Bill Long
From: Jeff Dickey [mailto:notifications@github.com]
Sent: Wednesday, July 26, 2017 5:53 PM
To: heroku/cli
Cc: Bill Long; Mention
Subject: Re: [heroku/cli] heroku login does not work with cygwin or git bash (#84)
@protrudamus <https://github.com/protrudamus> try running winpty heroku login
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#84 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AFSzkJfRtDrUKXplL57qwhSPd-89Nbz9ks5sR7UpgaJpZM4GFQ14> . <https://github.com/notifications/beacon/AFSzkA1APz2BwptKx2XABg_SfYmUHFQwks5sR7UpgaJpZM4GFQ14.gif>
|
use cmd.exe to login then |
Have tried cmd.exe as an Administrator several times and several ways. Initially after installation, and after uninstalling heroku and then reinstalling heroku. Have also tried PowerShell, Git CMD, and Git Bash. "Login is currently incompatible with git bash/Cygwin/MinGW". |
This error shows up because it's not a tty. It should be a tty in cmd.exe as long as you're calling it normally. It isn't a tty in git bash or cygwin. Somehow you'll have to make it a tty just for the login. If nothing else you could set |
Jeff, you assume more experience to me than I have. I apologize for taking so much of your time, but I have chosen to close this ticket. I am not a developer and this troubleshooting exercise has exceeded my grasp.
Thank you again for your help.
Regards,
Bill Long
From: Jeff Dickey [mailto:notifications@github.com]
Sent: Thursday, July 27, 2017 1:02 PM
To: heroku/cli
Cc: Bill Long; Mention
Subject: Re: [heroku/cli] heroku login does not work with cygwin or git bash (#84)
This error shows up because it's not a tty. It shouldn't be a tty in cmdexe as long as you're calling it normally. Somehow you'll have to make it a tty just for the login. If nothing else you could set HEROKU_API_KEY to a valid API key and you won't need to login.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#84 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AFSzkAH_PzRC0lI48fBVMCRBsv6B04EPks5sSMKIgaJpZM4GFQ14> . <https://github.com/notifications/beacon/AFSzkAtSTUQFpdVFq3m5bwQ2flfU8Mrmks5sSMKIgaJpZM4GFQ14.gif>
|
@eappleby solution works. I am using Windows 10. Would be nice to have it fixed in git bash though. |
I am using Windows 10 and installed the 64 bit Windows install and was able to login with @eappleby solution (cmd.exe) and like @weidmaster (& many others) I want to use git bash. I uninstalled the 64 bit Windows install and used Chocolately to install Heroku-cli and it works with git bash. |
@whindes After trying so many different configurations, this solution worked perfectly for me. Thank you! https://chocolatey.org/packages/heroku-cli/6.13.5 |
@eappleby solution worked for me too. I'm using CMDER, so I opened up a CMD tab and did |
Nice tricks - now work well - but the core should work anyway (This is a very weird + unclear error) - I hope in the future will be build-in solution (Most users install Git without changing preferences) |
For windows, on git bash, `heroku login` don't work, hence use `winpty heroku login`. Refer heroku/cli#84.
For windows, on git bash, `heroku login` don't work, hence use `winpty heroku login`. Refer heroku/cli#84.
For windows, on git bash, heroku login don't work, hence use winpty heroku login. Refer heroku/cli#84. Similar PR raised in badgeyay fossasia/badgeyay#531 .
For windows, on git bash, heroku login don't work, hence use winpty heroku login. Refer heroku/cli#84. Similar PR raised in badgeyay fossasia/badgeyay#531 .
For windows, on git bash, `heroku login` don't work, hence use `winpty heroku login`. Refer heroku/cli#84.
I had the same issue. For me it didn't work in the Git Bash, so I just used the standard Windows CMD. |
for git-bash I prefer alias for herok cmd like this one: |
* add overview to topic * fix failing test * remove newline
the new login will not have this issue as it does not prompt for a password. It should be GA in a few weeks, but for now you can switch to it with |
fatal: 'heroku' does not appear to be a git repository Please make sure you have the correct access rights |
It's been a long time... This issue is still there, right? For me, what worked was to create In my case, I installed heroku using windows installation of NPM (not cygwin's NPM or node client). But I called the non-cygwin NPM install from a cygwin shell, like this: $ npm install --global heroku Currently, and in my Node.JS install, there's some error report during install, related to finding Visual Studio (I do have community 2022 installed, so figures), but in the end the Then, proceed with:
Create
It seems older versions of heroku used to create this file (7.60.2 at least?), so at some point between 2020 and now, the heroku client should have worked in cygwin. With that, the git push/fetch worked without asking for credentials. Important: You need to update the token in |
This is now fixed. Just update your CLI.
Just run the following
Or use cmd.exe instead
The text was updated successfully, but these errors were encountered: