LoginSignup
1
0

More than 1 year has passed since last update.

Bitbucket に push できなくなった件

Last updated at Posted at 2022-03-12

Bitbucket Push failed

AndroidStudio よりBitbucketへpushしたときに、下記エラーでpushできなくなっていた。

Invocation failed Unexpected end of file from server
java.lang.RuntimeException: Invocation failed Unexpected end of file from server
・・・
・・・
fatal: could not read Password for 'https://username@bitbucket.org': Device not configured

Atlassian ユーザー名/パスワード認証を非サポート

Starting Mar 1, 2022, Bitbucket users will no longer be able to use their Atlassian account password to interact with Bitbucket via Git over https and the Bitbucket API. Users will need to start using Bitbucket app passwords for Git commands, scripts, and integrating tools.

いつの間にかユーザー名とパスワード認証が非サポートとなっていた模様。メールとかでアナウンス来てたっけ?見落としただけ?

対応方法

アプリパスワードを設定する。
スクリーンショット 2022-03-13 0.34.20.png
設定すると、パスワードが発行されるので、その値でアクセスする。
一度しか表示されないため、メモして忘れないようにする。
アプリパスワードは何個でも発行できるようなので、最悪忘れたらもう一度作れば良さそう。

AndroidStudioへの反映方法

AndroidStudio メニューから
Git > Manage Remotes
https://[username]:[発行したパスワード]@bitbucket.org/foo/bar.git

やっとpushできました。
Gitもパスワード認証できなくなったし、その流れでしょう。

1
0
0

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
1
0