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 votes

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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

657 views 0 4
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot