Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Not able to install Stash on Dell R 720

Srijiv Dimri July 20, 2014

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.

4 answers

0 votes
Srijiv Dimri July 21, 2014

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.

jcurleyWR
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2014

Look in $STASH_HOME/log.

atlassian-stash.log is the main one.

FYI: atlassian-stash-access.log may also contain useful info.

0 votes
Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2014

Somebody already had this problem, take a look here.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 21, 2014

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

Srijiv Dimri July 21, 2014

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:

http://localhost:7990/

Appreciate all your help.

Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2014

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

0 votes
jcurleyWR
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2014

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

Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2014

It is running linux.

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 20, 2014

What does the log file say?

Srijiv Dimri July 21, 2014

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]

... 20 common frames omitted
2014-07-22 06:15:13,897 WARN [localhost-startStop-1] com.jolbox.bonecp.BoneCPConfig JDBC password not set in driver properties, copying it from pool config
2014-07-22 06:15:22,435 INFO [localhost-startStop-1] c.a.s.i.hook.DefaultHookService Hook callback socket listening on 127.0.0.1:56024
2014-07-22 06:15:23,585 ERROR [localhost-startStop-1] o.s.web.context.ContextLoader Context initialization failed
java.lang.RuntimeException: java.net.UnknownHostException: Gauss: Gauss: unknown error
2014-07-22 06:15:40,040 ERROR [localhost-startStop-1] c.a.j.s.w.s.JohnsonDispatcherServlet Bypassing SpringMVC dispatcher [spring-mvc] initialisation; Spring initialisation failed: The Spring WebApplicationContext could not be started
2014-07-22 06:15:40,041 ERROR [localhost-startStop-1] c.a.j.s.w.c.s.JohnsonHttpRequestHandlerServlet Bypassing HttpRequestHandlerServlet [streamsEmptyActivityServlet] initialisation; Spring initialisation failed: The Spring WebApplicationContext could not be started
2014-07-22 06:15:40,041 ERROR [localhost-startStop-1] c.a.j.s.w.c.s.JohnsonHttpRequestHandlerServlet Bypassing HttpRequestHandlerServlet [scmServlet] initialisation; Spring initialisation failed: The Spring WebApplicationContext could not be started
2014-07-22 06:15:40,042 ERROR [localhost-startStop-1] c.a.j.s.w.c.s.JohnsonHttpRequestHandlerServlet Bypassing HttpRequestHandlerServlet [fileServerServlet] initialisation; Spring initialisation failed: The Spring WebApplicationContext could not be started
2014-07-22 06:15:40,173 WARN [http-bio-7990-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
ler$1.create(AutoDetectingCompatibilityPluginScheduler.java:48) ~[atlassian-universal-plugin-manager-plugin-2.16.5_1402891246000.jar:na]
at com.atlassian.scheduler.compat.AutoDetectingCompatibilityPluginScheduler$1.create(AutoDetectingCompatibilityPluginScheduler.java:43) ~[atlassian-universal-plugin-manager-plugin-2.16.5_1402891246000.jar:na]
at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:326) ~[atlassian-universal-plugin-manager-plugin-2.16.5_1402891246000.jar:na]
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:146) ~[atlassian-universal-plugin-manager-plugin-2.16.5_1402891246000.jar:na]
... 13 common frames omitted
2014-07-22 10:55:23,200 INFO [localhost-startStop-1] c.a.s.internal.home.HomeLockAcquirer Releasing lock on /home/stash
2014-07-22 10:55:23,202 INFO [localhost-startStop-1] c.a.s.i.server.BuildInfoLogger Stash 3.1.3 has shut down
Please let me know if that points to something. Appreciate all your help.
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 22, 2014

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.

Srijiv Dimri July 22, 2014

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

I am not sure what else to check.
Appreciate all your help.
Srijiv Dimri July 22, 2014

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 '^]'.

But when I try from some other machine via vpn, it does not connect.
Any idea as to why this is happening.
Appreciate all your help in advance.
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 22, 2014

What happens when you try "ping gauss"?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events