500 Error Upon Accessing Any Stash Repository

Troubleshooting Git

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

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

Cause

Cause 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>

Cause 2:

Incompatible plugins.

Resolution

Cause 1:

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

Cause 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 .

Last modified on Feb 26, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.