Stash does not start - No such file or directory

Troubleshooting Installation

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The following appears in catalina.out without any other errors:

/opt/atlassian/stash/3.0.4/bin/catalina.sh: line 385: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.51.x86_64/jre/bin/java: No such file or directory

Cause

Stash was installed with automated installer which creates a file called permgen.sh. This file is responsible for setting the JAVA_HOME environment variable so any updates to JAVA_HOME outside of this file will not be recognized.

Workaround

Comment out the JAVA_HOME definition in <Stash installation directory>/bin/permgen.sh and restart Stash.

Resolution

Update <Stash installation directory>/bin/permgen.sh to reflect the new Java location.

Last modified on Mar 30, 2016

Was this helpful?

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