500 Error Upon Accessing Any Bitbucket Server Repository

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

問題

Bitbucket Server can no longer display the repository and returns 500 error on screen.

The following appears in the atlassian-bitbucket.log:

2013-05-07 12:58:59,958 INFO  [http-bio-7990-exec-7] admin 778x94x1 kexnuf 0:0:0:0:0:0:0:1%0 "POST /projects/PROJ/repos HTTP/1.1" c.a.s.internal.scm.git.CreateCommand Repository PROJ/repo2 (12) has been created and configured successfully
2013-05-07 13:14:33,573 ERROR [http-bio-7990-exec-4] admin 794x115x1 kexnuf 0:0:0:0:0:0:0:1%0 "GET /projects/PROJ/repos/repo/browse HTTP/1.1" c.a.s.i.w.HandlerExceptionResolverImpl An error occurred while executing an external process: 1
com.atlassian.bitbucket.exception.ServerException: An error occurred while executing an external process: 1
	at com.atlassian.bitbucket.internal.scm.git.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:116) ~[na:na]
	at com.atlassian.bitbucket.internal.scm.git.GitCommandExitHandler.onError(GitCommandExitHandler.java:159) ~[na:na]
	at com.atlassian.bitbucket.scm.DefaultCommandExitHandler.onExit(DefaultCommandExitHandler.java:35) ~[bitbucket-spi-2.4.0.jar:na]
	at com.atlassian.bitbucket.scm.BaseCommand.callExitHandler(BaseCommand.java:142) ~[bitbucket-spi-2.4.0.jar:na]
	at com.atlassian.bitbucket.scm.BaseCommand$CommandFuture.internalGet(BaseCommand.java:262) ~[bitbucket-spi-2.4.0.jar:na]
	at com.atlassian.bitbucket.scm.BaseCommand$CommandFuture.get(BaseCommand.java:229) ~[bitbucket-spi-2.4.0.jar:na]
	at com.atlassian.bitbucket.scm.BaseCommand.call(BaseCommand.java:79) ~[bitbucket-spi-2.4.0.jar:na]
	at com.atlassian.bitbucket.internal.content.ContentServiceImpl.streamDirectory(ContentServiceImpl.java:148) ~[bitbucket-service-impl-2.4.0.jar:na]
.
.
.
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
	at com.atlassian.bitbucket.internal.scm.git.config.ConfigOutputHandler.processReader(ConfigOutputHandler.java:60) ~[na:na]
	at com.atlassian.bitbucket.io.LineReaderOutputHandler.process(LineReaderOutputHandler.java:26) ~[bitbucket-scm-common-2.4.0.jar:na]
	at com.atlassian.utils.process.PluggableProcessHandler.processOutput(PluggableProcessHandler.java:127) ~[atlassian-processutils-1.5.9.jar:na]
	at com.atlassian.utils.process.ExternalProcessImpl$3.doTask(ExternalProcessImpl.java:331) ~[atlassian-processutils-1.5.9.jar:na]
	at com.atlassian.utils.process.LatchedRunnable.run(LatchedRunnable.java:36) ~[atlassian-processutils-1.5.9.jar:na]
	at com.atlassian.bitbucket.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:68) ~[bitbucket-platform-2.4.0.jar:na]
	... 3 common frames omitted

原因

原因 1:

The .gitmodules file contains extra lines with space or tab before or after the submodule section:

[submodule "subrepo1"]
	path = subrepo1
	url = http://locahost:7990/scm/sub/subrepo1.git
<SPACE><TAB>

原因 2:

Incompatible plugins.

ソリューション

原因 1:

Checkout the .gitmodules file and edit out the extra spaces/tabs and re-commit.

原因 2:

Disable all user plugins by enabling Safe Mode on your instance and try to reproduce the issue. Uninstall incompatible plugin.

This bug has been reported here: BSERV-3411 - Getting issue details... STATUS .

最終更新日 2018 年 11 月 15 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.