Cli: heroku cli commands not responding on windows 10

Created on 13 Oct 2017  Â·  19Comments  Â·  Source: heroku/cli

I tried it both by installing heroku-cli installer and npm install -g heroku-cli
In both cases, if i type
heroku --version or heroku login
the window just stucks there. no error. nothing happens
node version installed - 8.7.0
windows 10
image

Most helpful comment

In case anyone stumbles across this issue (I did today), it appears to be related to an auto-updating function of the CLI.

I followed these steps to fix it:

  1. Go to the Heroku AppData directory (%LOCALAPPDATA%\heroku in Windows).
  2. Look for the autoupdate and autoupdate.log files. If they're not there, try running a Heroku command in the CLI.
  3. Delete both these files.
  4. In the command prompt, run heroku update.
  5. See if the issue is fixed by running another command.

If that doesn't work, try deleting any files/folders with lock in them in the heroku folder I mentioned above. I can't recall their exact names.

All 19 comments

Same issue here

Uninstalled with compatibility mode and reinstalled with current downloaded installer and works again.
Auto update broke something.

Does it hang using cmd.exe? What are the contents of C:\Program Files\Heroku\bin (assuming default install location)?

In case anyone stumbles across this issue (I did today), it appears to be related to an auto-updating function of the CLI.

I followed these steps to fix it:

  1. Go to the Heroku AppData directory (%LOCALAPPDATA%\heroku in Windows).
  2. Look for the autoupdate and autoupdate.log files. If they're not there, try running a Heroku command in the CLI.
  3. Delete both these files.
  4. In the command prompt, run heroku update.
  5. See if the issue is fixed by running another command.

If that doesn't work, try deleting any files/folders with lock in them in the heroku folder I mentioned above. I can't recall their exact names.

@Markolie yep it works! Additionally i have removed the update.lock directory which is created when the console hangs . After that i opened a new cmd/powershell window and tried running the heroku cmd and it worked :) .

if you get this can you try running it with DEBUG=*? We're pretty sure that it's an issue with rwlockfile we have a fix almost ready for release for.

not work!! After I delete the autoupdate and autoupdate.log, they appear themselves again?

I am having the same issue too. I am running on windows 10. All other commands work but 'heroku' isn't working. I have tried deleting everything possible. I have also uninstalled and reinstall but it's just stuck without giving me any error.

Please how do we fix this. Please help!!

Okay! So. I got it fixed guys. I think it's due to update issues and sometimes due to some issues with log in credentials. Probably heroku got confused after some login attempts (I'm not sure though).

However, go to the link below and use the fix. I'm sure that will work when other things didn't work.

https://stackoverflow.com/questions/46727771/heroku-cli-commands-not-responding-on-windows-10

There are other thing necessary to read up on the heroku website below.

https://devcenter.heroku.com/articles/heroku-cli#troubleshooting

Best of luck guys!

The more recent comments here are referring to the netrc parsing issue we had. If you delete the netrc file and update the CLI it should not happen again.

I have tried all of the instructions above, but none of them seemed to work. I can't run the pull command in cmd, because it does not recognize env command, but I can't run it in git bash, because the command never finishes. Any help? Because of this issue, I can't push a postgresql database to heroku.

@NeuroAssassin I'm stuck on this stage as well. Read all suggections above. I'm Windows 10, Git bash and heroku version 7.18.10. It hangs after putting in my credentials. See screenshot.
heroku on git bug

I also have the same issue as @NeuroAssassin and @Civmwa
The proposed fixes didn't work, neither did troubleshooting. The very command suggested by the CLI documentation got hung up. https://i.stack.imgur.com/xJ3a3.png

Meanwhile, unlike the author of the stackoverflow question @michaelAdewunmi linked, the --version command works just fine.

In the same boat. Heroku commands work in powershell but if I use bash the commands just hang like @Civmwa screenshot.

does heroku login work? does it show the browser? also, please mention the version of your CLI

Try running the commands on the windows cli instead if using git bash...

On Thu, 20 Dec 2018 21:55 Jeff Dickey <[email protected] wrote:

does heroku login work?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/heroku/cli/issues/623#issuecomment-449099960, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ArZjy0Koy_4YwpJm_k8UAo2H5KhbIYk1ks5u690PgaJpZM4P4QlX
.

@jdxcode heroku login mostly works. The browser opens and I press login but after that, it hangs on the logged in as <email> and doesn't move forward from there. version: heroku/7.19.4 win32-x64 node-v11.3.0

When I run the commands in powershell or cmd they work as expected its only when I run them in bash that I see issues.

Heroku-cli is working very slowly in ubuntu

if you just ctrl-c, then n for no, you can go on with your business, past this hang up

Was this page helpful?
0 / 5 - 0 ratings

Related issues

a3785lex picture a3785lex  Â·  4Comments

noenthu picture noenthu  Â·  7Comments

thegmann picture thegmann  Â·  3Comments

kmulqueen picture kmulqueen  Â·  3Comments

omarcostahamido picture omarcostahamido  Â·  4Comments