Stash on Solaris

Although Stash is not officially supported on Solaris, I know there must be people out there using it on Solaris based on some of the troubleshooting tips in the Stash Knowledge Base.

Does anyone have any information or tips on what's required to get it running?

4 answers

1 accepted

I've created a suggestion on JIRA. Hopefully, these two things can be fixed so running out of the box on Solaris doesn't require noodling around in shell scripts.

Specifically, and also because I don't know of any better place to poll the audience, here's my issues so far:

On trying to start Stash on Solaris 10, I get the following error:

To run Stash in the foreground, start the server with start-stash.sh -fg
Starting Atlassian Stash as current user
grep: illegal option -- q
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- q
Usage: grep -hblcnsviw pattern file . . .
Detecting JVM PermGen support...
./catalina.sh: syntax error at line 43: `VERSION_FULL=$' unexpected

Now, I'm assuming this is a SysV grep vs. GNU grep issue, but why is grep necessary to run Stash?

To fix that issue, you need to change 6 places grep is called in {{setenv.sh}} to use {{/usr/sfw/bin/ggrep}} (or possibly change your path and/or set an alias). Next problem is:

To run Stash in the foreground, start the server with start-stash.sh -fg
Starting Atlassian Stash as current user

-------------------------------------------------------------------------------
Stash is being run with a umask that contains potentially unsafe settings.
The following issues were found with the mask "" (0022):
 - access is allowed to 'others'. It is recommended that 'others' be denied
   all access for security reasons.
The recommended umask for Stash is "u=,g=w,o=rwx" (0027) and can be
configured in setenv.sh
-------------------------------------------------------------------------------
Detecting JVM PermGen support...
./catalina.sh: syntax error at line 43: `VERSION_FULL=$' unexpected

Not sure what's causing this. Delving in now.

Solution to the syntax error? Just make sure you're not using IBM Java (which probably would be hard to do on Solaris anyway) and Java > 6, then comment out lines 41-58 of permgen.sh.

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

654 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