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

1 vote
Accepted answer

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
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

239 views 3 7
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