Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Heroku error after update

gbidev August 16, 2018

I updated SourceTree and now the Terminal can not see Heroku.

I can see that Heroku works with cmd.exe but does not work with GitBash/MINGW32.

 

cmd vs terminal.png

1 answer

0 votes
minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 22, 2018

Hi

I don't use Heroku so apologies if this is stupid question.

You are trying to run a windows .cmd file in Git Bash. I wouldn't expect this to work, but I could be wrong. Has it ever worked? Did you previously use cmd rather than Git Bash as the terminal?

gbidev August 22, 2018

SourceTree opens GitBash and would run heroku cli commands until the most recent update. The cmd version fires the heroku file used by Git Bash, I presume.

It seems like the update has changed either a path or environment variable.

minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 28, 2018

Can you give me an example of the Heroku commands that would be run and what would trigger them?

Sourcetree doesn't know anything about Heroku so are these commands configured against Git?

gbidev August 29, 2018

Hi Michael,

I have opened an issue ticket with Heroku to assist as well.

The first basic test is to check the version of the installed heroku cli toolbelt, which fails.

heroku --version

This has always worked, but after I upgraded from Source Tree 1.9 to the new version, it failed. I rolled back to 1.9 but the damage seems to have been done already and I have done multiple re-installs of Heroku CLI and still no luck, thus me raising the issue here to see if anyone has faced a similar issue.

minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 3, 2018

Thanks for the additional information.

Sourcetree does make changes to the PATH when running Git/Hg commands but these are temporary and do not persist, certainly not between restarts or updates.

Is there any chance its due to a Git change?

gbidev September 4, 2018

From the Heroku logs, it looks like it tried to auto-updated the Heroku CLI and failed.

Not sure if that would make any path change. No Git Change seems to have occurred.

Not sure what to do next as I have been locked out from accessing Heroku at the moment. As mentioned earlier, I have been explaining the same issue to the Heroku support to see if they can assist, but no luck as of yet.

If anything comes to mind, let me know and will give it a try.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events