前提
昨夜初めてHerokuを使ってPHPで作ったサイトを問題なくデプロイしました。
朝になってDBを接続するためにClearDBのアドオンをいれDB接続の箇所を変更したファイルをpushしようとした際heroku login
でログインした後に間違ってgit initをしてしまいました。そのせいかgit add .
をした際tell me who you areのエラーが出たので再度git --global user.nameとuser.emailを設定しました。設定しなおした後にgit push heroku main
でpushしたのですが急に認証エラーが出るようになり解決することができないのでアドバイスいただけないでしょうか?
発生している問題・エラーメッセージ
下記の写真の通り、認証エラーが発生しています。(メールアドレスやURLなど隠しています)
GitHubのユーザー名、パスワードは合っています。
MFAは利用しておらず、またHerokuのアカウントも昨日作ったのでパスワードの変更はしていません。
gitとherokuの連携もおそらくできています。git remote -vの結果↓
heroku https://git.heroku.com/**************.git (fetch) heroku https://git.heroku.com/**************.git (push) origin https://github.com/******/*******.git (fetch) origin https://github.com/******/*******.git (push)
heroku自体のログインはできていると思います。一応、Heroku CLIにログインできない時の解決策を全て試しましたが問題ありませんでした。
サイト:https://help.heroku.com/GOLWIGSP/why-can-t-i-connect-or-authenticate-with-the-heroku-command-line-cli
Verify that you're on the latest version of the Heroku Command Line by running heroku update.→already on latest version: 7.60.2 Enable debugging during login. Make sure to redact your password from the output before sending it to support! Enable it by running HEROKU_DEBUG=true HEROKU_DEBUG_HEADERS=1 heroku login on Mac/Linux, or set HEROKU_DEBUG=true; set HEROKU_DEBUG_HEADERS=1; heroku login on Windows.→ログインした後何も表示されない。 Check which plugins you have installed by running heroku plugins. Some older plugins may have compatibility issues. For example, the heroku-accounts plugin has compatibility issues with 2FA. This plugin is a common cause of the Authentication failed. error. The heroku-two-factor plugin is also deprecated and can cause problems.→no plugins installedの表示
試したこと
git push heroku mainの後Usernameは空白で、Passwordはheroku auth:tokenで取得できるAPIトークンをコピペしてみましたが同じ認証エラーが出ます。
gitのpersonal access tokenを生成しなおしてみましたが駄目でした。
補足情報(FW/ツールのバージョンなど)
VM virtual box6.1, ホストOS: Windows10, ゲストOS:CentOs7, PHP7.4, Heroku Cli 7.60.2
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。