Skip to content
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 push could not read Username for 'https://git.heroku.com' #11

Open
jaikme opened this issue Apr 12, 2016 · 3 comments
Open

Heroku push could not read Username for 'https://git.heroku.com' #11

jaikme opened this issue Apr 12, 2016 · 3 comments

Comments

@jaikme
Copy link

jaikme commented Apr 12, 2016

I'm trying to make continuous deployment to Heroku, but when my Strider app run the task "Deploy", it fails...

deploy:
git push -f https://git.heroku.com/app.git staging:master heroku
fatal: could not read Username for 'https://git.heroku.com': No such device or address

The strider-heroku plugin are up to date, and the client panel are correctly configured ,as expected.
The Strider is running at the Heroku too. I already registered every SSH Keys and registered API Clients correctly.

Does anyone know what can this be?

@SeeTrai
Copy link

SeeTrai commented Apr 23, 2016

I had this issue as well. The problem is that the git_url is set to use http instead of ssh which I'm guessing the default is now. Until there is a code fix, you can change the property in mongodb. The property is in the projects collection project.branches.plugins[id="heroku"].config.app.git_url .

The value could be something like [email protected]:app.git (that's what worked for me)

@SeeTrai
Copy link

SeeTrai commented Apr 23, 2016

I have a PR for this.

@jaikme
Copy link
Author

jaikme commented Apr 25, 2016

Mhhh
Well, I tried use SSH url, but my VM couldn't find the ssh keys to log-in.
So I solved this issue adding the .netrc file at my project root
The .netrc file is a credentials files, so, this option is not good because this file will have heroku API key inside with user email:

machine api.heroku.com
  login [email protected]
  password xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxx
machine git.heroku.com
  login [email protected]
  password xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants