Stash Fails to Start Up with Exception

Troubleshooting Installation

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community


The following exception is reported when starting up Stash:

2012-10-02 00:19:15,294 ERROR [main]  o.s.web.context.ContextLoader Context initialization failed
java.lang.RuntimeException: server.localdomain: <Host_Name>: Name or service not known
Caused by: server.localdomain: server.localdomain: Name or service not known
	at ~[na:1.7.0_07]
	at ~[atlassian-trusted-apps-core-2.5.2.jar:na]
	... 51 common frames omitted
Caused by: <Host_Name>: Name or service not known


  1. Check if the application is accessible directly on the machine hosting the Stash server, using localhost - http://localhost:7990
  2. Check what is the IP address that the host name resolves to and use that IP address directly to access the application.


Stash is unable to identify the host name being used to access the application.


  1. Add the host name to your hosts file. Usually adding the <hostname> exposed on the log above to the /etc/hosts of Stash server, associating it to followed by a Stash restart will solve the problem. The entry in /etc/hosts should resemble the following:    hostname
  2. If using a DNS server ensure that the service resolves the queries for the hostname into the correct IP address.
Last modified on Mar 30, 2016

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.