How can I make the localhost pages accessible remotely on my linux installation of stash?

I installed stash but can not access the http://localhost:7990page remotely using http://hostname.mycompany.com:7990. I opened the ports on the firewall but still no luck, any ideas? I don't have a gui installed on my linux box to access http://localhost:7990

2 answers

1 accepted

Found the issue, my JAVA_HOME was not correct.

1 vote

Start with a look at what you mean by "cannot access". What's the error message?

I can not access the web page. The stash service starts and says I can access it at http://localhost:7990but when I try to access it using the FQDN:7990 the page says that chrome could not connect to the page. I thought maybe it was a firewall setting and open the ports but that did not work. I then looked at the server.xml settings in the stash/conf/server.xml and changed the <Host Name=localhost to use the FQDN instead and still no luck.

Still doesn't really explain "cannot access".

My best guess is that your browser can't reach the name because you've not got it set up in DNS, but without knowing what "cannot access" really means, I can't be sure.

Could you try the simple network debugging tricks - nslookup to check that your computer resolves the name of the server to the right IP address? Telnet to it on port 7990 to see if it's responding at all on that port?

When I say "can not access" I mean the web page will not display. I can SSH to the host using the FQDN so I know DNS is working. When I try to telnet to the host on port 7990 it response with Connection Refused.

My apologies, I didn't think to ask if you were actually running Stash, and how you knew you were. If your Java_home was wrong, then, of course, it wasn't (although I don't know how you got to the "now running on localhost" message)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

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

1,763 views 1 5
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