Stash hangs right after it starts

Troubleshooting Installation

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Stash hangs right after it starts. The following stack trace comes up in the atlassian-stash.log:

The following information is logged to atlassian-stash.log:

2014-09-09 11:37:24,473 INFO  [spring-startup]  c.a.s.i.server.BuildInfoLogger Starting Stash 3.2.4 (d4e1696 built on Mon Aug 25 00:59:02 NZST 2014)
2014-09-09 11:37:24,477 INFO  [spring-startup]  c.a.s.i.server.BuildInfoLogger JVM: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 1.7.0_25-b15
2014-09-09 11:37:24,489 INFO  [spring-startup]  c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /opt/atlassian/stash-home
2014-09-09 11:37:30,817 INFO  [spring-startup]  c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /opt/atlassian/stash-home/shared
2014-09-09 11:37:31,329 WARN  [spring-startup]  com.hazelcast.instance.Node [10.242.89.26]:5701 [bamboo-agent] [3.3-RC2] No join method is enabled! Starting standalone.
2014-09-09 11:37:42,267 INFO  [spring-startup]  c.a.s.i.hook.DefaultHookService Hook callback socket listening on 127.0.0.1:36152
2014-09-09 11:37:51,863 INFO  [ThreadPoolAsyncTaskExecutor::Thread 35]  c.a.s.i.s.g.t.DefaultTranscodeServer Callback socket listening at 127.0.0.1:39032
2014-09-09 11:37:51,952 WARN  [ThreadPoolAsyncTaskExecutor::Thread 22]  o.s.beans.TypeConverterDelegate PropertyEditor [com.sun.beans.editors.EnumEditor] found through deprecated global PropertyEditorManager fallback - consider using a more isolated form of registration, e.g. on the BeanWrapper/BeanFactory!
2014-09-09 11:37:52,905 WARN  [ThreadPoolAsyncTaskExecutor::Thread 34]  c.a.analytics.client.EventSender Unable to open connection to analytics server. Event transmission disabled. analytics: Name or service not known
2014-09-09 11:38:01,976 WARN  [spring-startup]  c.a.s.i.p.OsgiBundledPathScanner Cannot scan directory /com/atlassian/oauth/shared/servlet/ in bundle com.atlassian.oauth.atlassian-oauth-service-provider-plugin as it does not exist
2014-09-09 11:38:05,281 ERROR [http-bio-7990-exec-3]  c.a.p.r.c.e.j.ThrowableExceptionMapper Uncaught exception thrown by REST service: plugin [{com.atlassian.stash.dev-summary-plugin}] invoking ActiveObjects before <ao> configuration module is enabled or plugin is missing an <ao> configuration module. Note that scanning of entities from the ao.model package is no longer supported.
java.lang.IllegalStateException: plugin [{com.atlassian.stash.dev-summary-plugin}] invoking ActiveObjects before <ao> configuration module is enabled or plugin is missing an <ao> configuration module. Note that scanning of entities from the ao.model package is no longer supported.
	at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects.delegate(TenantAwareActiveObjects.java:175) ~[na:na]
	at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects.find(TenantAwareActiveObjects.java:335) ~[na:na]
	at com.atlassian.activeobjects.scala.TypedActiveObjects.find(TypedActiveObjects.scala:13) ~[na:na]
	at com.atlassian.stash.internal.jira.index.ao.AoJiraIndexDao$$anonfun$getIndexedResults$1.apply(AoJiraIndexDao.scala:40) ~[na:na]
	at com.atlassian.stash.internal.jira.index.ao.AoJiraIndexDao$$anonfun$getIndexedResults$1.apply(AoJiraIndexDao.scala:38) ~[na:na]
	at com.atlassian.stash.internal.scalautil.transaction.package$$anon$1.doInTransaction(package.scala:8) ~[na:na]
	at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:25) ~[sal-core-2.12.1.jar:na]
	at com.atlassian.stash.internal.sal.spi.HostContextAccessorImpl.doInTransaction(HostContextAccessorImpl.java:27) ~[stash-platform-3.2.4.jar:na]
	at com.atlassian.sal.core.transaction.HostContextTransactionTemplate.execute(HostContextTransactionTemplate.java:21) ~[sal-core-2.12.1.jar:na]
	at com.atlassian.stash.internal.scalautil.transaction.TransactionalTemplate.apply(TransactionalTemplate.scala:8) ~[na:na]
	at com.atlassian.stash.internal.jira.index.ao.AoJiraIndexDao.getIndexedResults(AoJiraIndexDao.scala:38) ~[na:na]
	at com.atlassian.stash.internal.jira.index.impl.SecureJiraIndexService.getIndexedResults(SecureJiraIndexService.scala:16) ~[na:na]
	at com.atlassian.stash.internal.jira.index.impl.CompositeJiraIndexService.getIndexedResults(CompositeJiraIndexService.scala:30) ~[na:na]
	at com.atlassian.stash.internal.jira.summary.impl.BranchDevSummaryService.getBranchesPerIssue(BranchDevSummaryService.scala:13) ~[na:na]
	at com.atlassian.stash.internal.jira.summary.impl.BranchDevSummaryService.getSummary(BranchDevSummaryService.scala:25) ~[na:na]
	at com.atlassian.stash.internal.jira.summary.impl.CompositeDevSummaryService$$anonfun$getSummary$1.apply(CompositeDevSummaryService.scala:69) ~[na:na]
	at com.atlassian.stash.internal.jira.summary.impl.CompositeDevSummaryService$$anonfun$getSummary$1.apply(CompositeDevSummaryService.scala:68) ~[na:na]
	at com.atlassian.stash.internal.jira.summary.package$DevSummary.flatMap(package.scala:17) ~[na:na]
	at com.atlassian.stash.internal.jira.summary.impl.CompositeDevSummaryService.getSummary(CompositeDevSummaryService.scala:67) ~[na:na]
	at com.atlassian.stash.internal.jira.summary.impl.CompositeDevSummaryService.com$atlassian$stash$internal$jira$summary$impl$CompositeDevSummaryService$$getSummaries(CompositeDevSummaryService.scala:61) ~[na:na]
	at com.atlassian.stash.internal.jira.summary.impl.CompositeDevSummaryService$$anonfun$aggregateForGlobalIds$1.apply(CompositeDevSummaryService.scala:33) ~[na:na]
	at com.atlassian.stash.internal.jira.summary.impl.CompositeDevSummaryService$$anonfun$aggregateForGlobalIds$1.apply(CompositeDevSummaryService.scala:33) ~[na:na]
	at com.atlassian.stash.internal.scalautil.operation.package$$anon$1.perform(package.scala:8) ~[na:na]
	at com.atlassian.stash.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:60) ~[stash-service-impl-3.2.4.jar:na]
	at com.atlassian.stash.internal.user.DefaultSecurityService.doWithPermission(DefaultSecurityService.java:74) ~[stash-service-impl-3.2.4.jar:na]
	at com.atlassian.stash.internal.jira.summary.impl.CompositeDevSummaryService.runSecureIfVerified(CompositeDevSummaryService.scala:77) ~[na:na]
	at com.atlassian.stash.internal.jira.summary.impl.CompositeDevSummaryService.aggregateForGlobalIds(CompositeDevSummaryService.scala:33) ~[na:na]
	at com.atlassian.linkaggregation.impl.RemoteLinkAggregatorService.aggregateLinksByGlobalId(RemoteLinkAggregatorService.java:126) ~[remote-link-aggregator-plugin-2.0.9_1408565718000.jar:na]
	at com.atlassian.linkaggregation.impl.RemoteLinkAggregatorService.access$000(RemoteLinkAggregatorService.java:35) ~[remote-link-aggregator-plugin-2.0.9_1408565718000.jar:na]
	at com.atlassian.linkaggregation.impl.RemoteLinkAggregatorService$3.apply(RemoteLinkAggregatorService.java:107) ~[remote-link-aggregator-plugin-2.0.9_1408565718000.jar:na]
	at com.atlassian.linkaggregation.impl.RemoteLinkAggregatorService$3.apply(RemoteLinkAggregatorService.java:103) ~[remote-link-aggregator-plugin-2.0.9_1408565718000.jar:na]
	at com.atlassian.linkaggregation.impl.Iterables2$1$1.get(Iterables2.java:39) ~[remote-link-aggregator-plugin-2.0.9_1408565718000.jar:na]
	at com.atlassian.linkaggregation.impl.Iterables2$1$1.get(Iterables2.java:35) ~[remote-link-aggregator-plugin-2.0.9_1408565718000.jar:na]
	at com.atlassian.linkaggregation.impl.Iterables2$2.iterator(Iterables2.java:59) ~[remote-link-aggregator-plugin-2.0.9_1408565718000.jar:na]
	at com.google.common.collect.Iterables$3.next(Iterables.java:508) ~[guava-11.0.2-atlassian-01.jar:na]
	at com.google.common.collect.Iterables$3.next(Iterables.java:501) ~[guava-11.0.2-atlassian-01.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:544) ~[guava-11.0.2-atlassian-01.jar:na]
	at com.atlassian.linkaggregation.rest.RemoteLinkAggregatorResource.outputLinkAggregationToStream(RemoteLinkAggregatorResource.java:106) ~[remote-link-aggregator-plugin-2.0.9_1408565718000.jar:na]
	at com.atlassian.linkaggregation.rest.RemoteLinkAggregatorResource$1.write(RemoteLinkAggregatorResource.java:80) ~[remote-link-aggregator-plugin-2.0.9_1408565718000.jar:na]
	at com.atlassian.stash.internal.rest.filter.StreamingOutputResponseFilter$ExceptionMappingStreamingOutput.write(StreamingOutputResponseFilter.java:46) ~[na:na]
	at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) ~[na:na]
	at com.atlassian.event.remote.impl.CacheControlOverrideFilter.doFilter(CacheControlOverrideFilter.scala:23) ~[na:na]
	at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:69) ~[na:na]
	at com.atlassian.analytics.client.filter.DefaultAnalyticsFilter.doFilter(DefaultAnalyticsFilter.java:33) ~[na:na]
	at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) ~[atlassian-core-4.6.15.jar:na]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_25]
	at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]
	... 265 frames trimmed

Cause

The plugin is not being loaded successfully.

Resolution

  1. Shut Stash down.
  2. Backup and remove the following directories. They will be rebuilt when Stash starts again.
    1. $STASH_HOME/plugins/.bundled-plugins/
    2. $STASH_HOME/plugins/.osgi-cache/
  3. Restart Stash.

Upon starting up, Stash will re-extract the required plugins from <Stash installation directory>/atlassian-stash/WEB-INF/classes/bundled-plugins.zip and rebuild those plugin directories.

Last modified on Feb 26, 2016

Was this helpful?

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