Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku CLI hangs on Windows 10

I use Heroku CLI on Windows 10. The first day after installing it works just fine, but on the next day (or so) it just hangs after launch:

C:\Users\{User}>heroku

and that's all. No output to console, no logs (no error.log). It lasts forever (not 120 sec like here: Heroku CLI Unresponsive)

I reinstalled CLI on 10.10.2017. Today is 14.10, my folder contains the following files: folder view before cleaning The autoupdate.log contains:

[2017-10-10T13:36:14+03:00] starting `C:\Program Files (x86)\Heroku\bin\\heroku.cmd update --autoupdate` from
heroku-cli: Updating CLI... already on latest version: 6.14.34-1fcf80e
heroku-cli: Updating plugins... done
[2017-10-11T22:36:40+03:00] starting `C:\Program Files (x86)\Heroku\bin\\heroku.cmd update --autoupdate` from logs
heroku-cli: Updating CLI... already on latest version: 6.14.34-1fcf80e
heroku-cli: Updating plugins... Waiting for all commands to finish
heroku-cli: Updating plugins... done
[2017-10-14T01:13:34+03:00] starting `C:\Program Files (x86)\Heroku\bin\\heroku.cmd update --autoupdate` from logs
heroku-cli: Updating CLI... already on latest version: 6.14.34-1fcf80e
heroku-cli: Updating plugins... Waiting for all commands to finish

What have I tried:

  • uninstall and install again - this one works, but I don`t want to do this every day
  • running as administrator
  • waiting all night long
  • using different commands (heroku --version, heroku update etc)
  • delete folder ..\AppData\Local\heroku

After deleting the folder and running command 'heroku update' the following files & folders were created, but console still hangs: folder view after cleaning

The autoupdate.log consists now of 1 line:

[2017-10-14T19:39:02+03:00] starting `C:\Program Files (x86)\Heroku\bin\\heroku.cmd update --autoupdate` from update

I waited for an hour since and now writing this question here. Has anyone faced such an issue? What can be done?

Update Finally I made it work after a few days by reinstalling CLI several times and deleting the autoupdate files, but cannot say precisely which of my actions had true effect. If you face the same issue you can start with the Malik`s answer.

like image 539
Maria Alabyan Avatar asked Oct 14 '17 17:10

Maria Alabyan


People also ask

Is heroku CLI necessary?

The heroku command-line interface (CLI) is an essential part of using Heroku. Use it to perform nearly any Heroku-related task right from your terminal, including: Creating new Heroku apps. Scaling your dyno formation.

Does heroku work on Windows?

Heroku: It is a cloud based application deployment and management service. Heroku works on the container based design system and these smart containers are known as dynos. It runs application inside various dynos and each dyno is separated from each other.

Why is heroku login not working?

Double check that there are no typos in your password as well. Reset your password and try logging in with the new password. Try using a different email address. Try using an email alias with a plus sign if you might have signed up using an alias such as [email protected] instead of just [email protected].

How does heroku CLI login work?

The Heroku CLI only uses your username and password to retrieve your API key, which it stores in your ~/. netrc file ( $HOME\_netrc on Windows). Replace <your-email@address> with the email address registered with Heroku, and <your-api-key> with the API key you copied from Heroku.


2 Answers

I encountered the same problem when I run $ heroku login on GitBash for Windows.

I tried the accepted answer above but to no avail. What solved it was just to use Windows Command Prompt instead of GitBash and all problems were solved.

I'm just adding this answer here in case someone has done the same thing like I did.

like image 140
Dexter Bengil Avatar answered Sep 20 '22 08:09

Dexter Bengil


Using GitCMD instead of GitBash solved the problem for me.

like image 22
M. Chavoshi Avatar answered Sep 19 '22 08:09

M. Chavoshi