LoginSignup
4

More than 5 years have passed since last update.

3日ほどherokuのデプロイに失敗し続けた話

Posted at

毎回ユーザー名とパスワードを聞かれる

前回はこちら。UbuntuでHerokuを使おうと思ったらエラーになった
herokuにログインして、その後。

$ git push heroku master
remote: !       WARNING:
remote: !       Do not authenticate with username and password using git.
remote: !       Run `heroku login` to update your credentials, then retry the git command.
remote: !       See documentation for details: https://devcenter.heroku.com/articles/git#http-git-authentication

何度この文章を見たことか。

様々な記事で紹介されているように、ここでは
・ユーザー名:空のまま
・パスワード:herokuのAPIキー
を入力するとのこと。
参考:Herokuにアプリをpushしたときにエラーが出る場合の対処法

しかし、何度やってもダメ。
丁寧に一文字ずつ入力してみたり、コピペしてみたり、試行錯誤をするのだが、毎回このエラー。

ひょっとしてubuntuの画面にはパスワードを入力している感触がないため、
ひょっとして入力されてないのでは…?と疑心暗鬼になってきてしまっていた。

解決:ユーザー名に何かいれてみよう

そんなこんなで早三日。
LINEbotを作りたいだけなのに…。
と思って嘆いていたそんな時、
ふと「ユーザー名入れてみるか」
と思い立ち、適当に入力。

すると…!

Counting objects: 9, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (9/9), 2.11 KiB | 432.00 KiB/s, done.
Total 9 (delta 1), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
(省略)
remote: Verifying deploy... done.
To https://git.heroku.com/[アプリ名].git
 * [new branch]      master -> master

おおおおお!!

出来ました。

考察

ユーザー名を入力しないと、
パスワード入力を受け付けない?

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4