500 Error Upon Accessing Any Stash Repository

Git のトラブルシューティング

このページの内容

お困りですか?

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

コミュニティに質問

症状

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

The logs report:

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.stash.exception.ServerException: An error occurred while executing an external process: 1
	at com.atlassian.stash.internal.scm.git.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:116) ~[na:na]
	at com.atlassian.stash.internal.scm.git.GitCommandExitHandler.onError(GitCommandExitHandler.java:159) ~[na:na]
	at com.atlassian.stash.scm.DefaultCommandExitHandler.onExit(DefaultCommandExitHandler.java:35) ~[stash-spi-2.4.0.jar:na]
	at com.atlassian.stash.scm.BaseCommand.callExitHandler(BaseCommand.java:142) ~[stash-spi-2.4.0.jar:na]
	at com.atlassian.stash.scm.BaseCommand$CommandFuture.internalGet(BaseCommand.java:262) ~[stash-spi-2.4.0.jar:na]
	at com.atlassian.stash.scm.BaseCommand$CommandFuture.get(BaseCommand.java:229) ~[stash-spi-2.4.0.jar:na]
	at com.atlassian.stash.scm.BaseCommand.call(BaseCommand.java:79) ~[stash-spi-2.4.0.jar:na]
	at com.atlassian.stash.internal.content.ContentServiceImpl.streamDirectory(ContentServiceImpl.java:148) ~[stash-service-impl-2.4.0.jar:na]
.
.
.
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
	at com.atlassian.stash.internal.scm.git.config.ConfigOutputHandler.processReader(ConfigOutputHandler.java:60) ~[na:na]
	at com.atlassian.stash.io.LineReaderOutputHandler.process(LineReaderOutputHandler.java:26) ~[stash-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.stash.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:68) ~[stash-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: STASH-3411 - Getting issue details... STATUS .

最終更新日: 2016 年 2 月 26 日

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

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