Hi Experts, I am in the process of installing Stash . When I run the stash start-up script, it says that it has succesfully started and we could now access it on port 7990.
When I go to the web-browser and try to access it, it gives me a weird error message :-
A Fatal Error has occured.
The Spring WebApplicationcontext could not be started.
Please help me how to get this fixed.
Appreciate all your help in advance.
Thanks everyone for your precious time.
I checked the logs and there are many log files for Stash as you can see below :-
Gauss atlassian-stash-3.1.3 # vim logs/
catalina.2014-07-21.log localhost.2014-07-21.log
catalina.2014-07-22.log localhost.2014-07-22.log
catalina.out manager.2014-07-21.log
host-manager.2014-07-21.log manager.2014-07-22.log
host-manager.2014-07-22.log
I tried to check the logs under localhost.2014-07-21.log and localhost.2014-07-22.log and found the same messages except the change in date and time :-
Jul 22, 2014 6:15:10 AM org.apache.catalina.core.ApplicationContext log
INFO: Spring WebApplicationInitializers detected on classpath: [com.atlassian.stash.internal.spring.StashWebApplicationInitializer@66115385]
Jul 22, 2014 6:15:10 AM org.apache.catalina.core.ApplicationContext log
INFO: Installing JUL to SLF4J bridge
Jul 22, 2014 6:15:10 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jul 22, 2014 6:15:40 AM org.apache.catalina.core.ApplicationContext log
INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)
Jul 22, 2014 6:15:40 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'spring-mvc'
Please help me in getting this resolved , as I am not sure where the issue lies.
Appreciate all your help in advance.
Look in $STASH_HOME/log.
atlassian-stash.log is the main one.
FYI: atlassian-stash-access.log may also contain useful info.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Somebody already had this problem, take a look here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are dozens of reasons this could be happening. There's little point chasing one particular answer until you have enough evidence to say it might be the right one. For short and non-specific error messages like this one, read the log file before assuming it's any one error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks everyone for the prompt reply. Where could I check the log message for Stash ? When I start the stash service, I get the below message :-
Gauss bin # ./start-stash.sh
To run Stash in the foreground, start the server with start-stash.sh -fg
Starting Atlassian Stash as current user
Detecting JVM PermGen support...
PermGen switch is supported. Setting to 256m\n
Using STASH_HOME: /home/stash
Using CATALINA_BASE: /home/ken/atlassian-stash-3.1.3
Using CATALINA_HOME: /home/ken/atlassian-stash-3.1.3
Using CATALINA_TMPDIR: /home/ken/atlassian-stash-3.1.3/temp
Using JRE_HOME: /etc/java-config-2/current-system-vm
Using CLASSPATH: /home/ken/atlassian-stash-3.1.3/bin/bootstrap.jar:/home/ken/atlassian-stash-3.1.3/bin/tomcat-juli.jar
Using CATALINA_PID: /home/ken/atlassian-stash-3.1.3/work/catalina.pid
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.
Success! You can now use Stash at the following address:
Appreciate all your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
All the log files are in a log folder under STASH_DATA. (On Windows, STASH_DATA is defined by an environment variable, not sure about linux.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just had this problem. Check your disk space and specifically, your temp space. On unix, it is in /tmp. I don't know what it is on windows (assuming your DELL machine is windows).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is running linux.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What does the log file say?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for looking into this. Here are the logs from
2014-07-22 06:15:12,309 INFO [localhost-startStop-1] c.a.s.i.server.BuildInfoLogger Starting Stash 3.1.3 (faa46f8 built on Wed Jul 09 01:29:27 BST 2014)
2014-07-22 06:15:12,316 INFO [localhost-startStop-1] c.a.s.i.server.BuildInfoLogger JVM: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 1.8.0_11-b12
2014-07-22 06:15:12,975 INFO [localhost-startStop-1] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /home/stash for 1235@localhost
2014-07-22 06:15:13,375 ERROR [localhost-startStop-1] net.sf.ehcache.Cache Unable to set localhost. This prevents creation of a GUID. Cause was: Gauss: Gauss: unknown error
java.net.UnknownHostException: Gauss: Gauss: unknown error
at java.net.InetAddress.getLocalHost(InetAddress.java:1484) ~[na:1.8.0_11]
at net.sf.ehcache.Cache.<clinit>(Cache.java:222) ~[ehcache-core-2.8.2.jar:2.8.2]
at net.sf.ehcache.config.ConfigurationHelper.createCache(ConfigurationHelper.java:296) [ehcache-core-2.8.2.jar:2.8.2]
at net.sf.ehcache.config.ConfigurationHelper.createDefaultCache(ConfigurationHelper.java:219) [ehcache-core-2.8.2.jar:2.8.2]
at net.sf.ehcache.CacheManager.configure(CacheManager.java:758) [ehcache-core-2.8.2.jar:2.8.2]
at net.sf.ehcache.CacheManager.doInit(CacheManager.java:463) [ehcache-core-2.8.2.jar:2.8.2]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'd say your networking on that machine is more than a little bit broken.
Gauss: unknown error java.net.UnknownHostException: Gauss: Gauss: unknown error at java.net.InetAddress.getLocalHost
This implies the service can't find "gauss", which also looks like the local machine, so I'd start with a check of the DNS, host and routing files.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is what my /etc/hosts file looks like :-
# IPv4 and IPv6 localhost aliases
#127.0.0.1 localhost
127.0.0.1 hostname
::1 localhost
And this is the o/p for hostname :-
Gauss ~ # hostname
Gauss
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When I start the Stash service on my server and try to connect to it from itself on port 7990, i see the connection to be open
Gauss bin # telnet 10.214.10.51 7990
Trying 10.214.10.51...
Connected to 10.214.10.51.
Escape character is '^]'.
^C
Connection closed by foreign host.
Gauss bin #
Gauss bin #
Gauss bin # telnet localhost 7990
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What happens when you try "ping gauss"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.