Jira server throws Your account was suspended error when refresh GitHub repository list
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
要約
症状
atlassian-jira.log に次のエラーが返される。
2014-07-14 14:24:56,089 http-bio-8081-exec-8482 ERROR npetrovic 864x102465x95 a5qbvb 74.121.196.166,0:0:0:0:0:0:0:1 /rest/bitbucket/1.0/organization/1/syncRepoList [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service
com.atlassian.jira.plugins.dvcs.exception.SourceControlException: Error retrieving list of repositories
at com.atlassian.jira.plugins.dvcs.spi.github.GithubCommunicator.getRepositories(GithubCommunicator.java:164)
at com.atlassian.jira.plugins.dvcs.service.remote.CachingCommunicator.getRepositories(CachingCommunicator.java:169)
Caused by: org.eclipse.egit.github.core.client.RequestException: Sorry. Your account was suspended. Please contact enterprise@github.com (403)
at org.eclipse.egit.github.core.client.GitHubClient.createException(GitHubClient.java:516)
at org.eclipse.egit.github.core.client.GitHubClient.get(GitHubClient.java:662)
at org.eclipse.egit.github.core.client.PageIterator.next(PageIterator.java:173)
診断
First, check if the account is not really suspended (see here). If not, then this knowledge base article is probably what you need to do in order to get it working again.
原因
The culprit is the OAuth key in the DVCS setup. The account that was suspended was the user who's OAuth key was used to setup the DVCS connection in the first place.
ソリューション
ソリューション
Verify if the user set in your configuration has access to GitHub, and if not, try to create this connection again using a user with access there and see how it goes.
This will remove the information in the issues, but as soon as the sync is working, the data will be back to JIRA.
注意
When adding a new Organization account, the repositories from this Organization will be added by the sync following a sequential order.
この内容はお役に立ちましたか?