Stash doesn't starting

Hi!

I've installed the stash demo on my Windows 7 PC and checked all the requirements:

java -version: 1.7.0_25
git --version: 1.8.3.msysgit.0

When I start Stash with start-stash.bat, the only thing it returns is:

To run STASH in the foreground, start the server with start-bash.bat /fg .

If I start it with the parameter "/fg", it returns nothing.

Thanks for your help!

5 answers

1 accepted

Oh my... it was all my fault. I had the "bin" directory in my JAVA_HOME path aswell.

It's working now. Sorry and thanks for your help.

1 vote

Have you defined JAVA_HOME environment variable?

Yes. I veryfied it in console with "echo %JAVA_HOME%". The path is correct and does not contain any white spaces.

Hi Yves,

Is there anything in either the 'logs' directory or the '%STASH_HOME%/log' directory?If not you could try removing the '@echo off' line at the top of start-stash.bat and see how far the script gets (and post the output).

Cheers,

Charles

Hi Charles,

Thanks for your answer. The "logs" directory and the home directory were both empty. This is the output without "@echo off":

C:\stash\bin>start-stash.bat
C:\stash\bin>set _PRG_DIR=C:\stash\bin\
C:\stash\bin>set _PRGRUNMODE=false
C:\stash\bin>if "" == "/fg" set _PRGRUNMODE=true
C:\stash\bin>if "" == "run" set _PRGRUNMODE=true
C:\stash\bin>if "false" == "true" goto EXECSTART
C:\stash\bin>echo To run STASH in the foreground, start the server with start-st
ash.bat /fg
To run STASH in the foreground, start the server with start-stash.bat /fg
C:\stash\bin>echo .
.
C:\stash\bin>echo.

C:\stash\bin>if "false" == "true" goto EXECRUNMODE
C:\stash\bin>call "C:\stash\bin\\startup.bat"

Hi Yves,

Ok, I guess you'll need to remove the '@echo off' in startup.bat too (and so on).

Charles

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

27,085 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you