Bitbucket Server hangs right after it starts
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
Bitbucket Server hangs right after it starts.
The following information is logged to atlassian-bitbucket.log:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
2014-09-09 11:37:24,473 INFO [spring-startup] c.a.s.i.server.BuildInfoLogger Starting Bitbucket Server 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/bitbucket-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/bitbucket-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.bitbucket.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.bitbucket.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.bitbucket.internal.jira.index.ao.AoJiraIndexDao$$anonfun$getIndexedResults$1.apply(AoJiraIndexDao.scala:40) ~[na:na]
at com.atlassian.bitbucket.internal.jira.index.ao.AoJiraIndexDao$$anonfun$getIndexedResults$1.apply(AoJiraIndexDao.scala:38) ~[na:na]
at com.atlassian.bitbucket.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.bitbucket.internal.sal.spi.HostContextAccessorImpl.doInTransaction(HostContextAccessorImpl.java:27) ~[bitbucket-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.bitbucket.internal.scalautil.transaction.TransactionalTemplate.apply(TransactionalTemplate.scala:8) ~[na:na]
at com.atlassian.bitbucket.internal.jira.index.ao.AoJiraIndexDao.getIndexedResults(AoJiraIndexDao.scala:38) ~[na:na]
at com.atlassian.bitbucket.internal.jira.index.impl.SecureJiraIndexService.getIndexedResults(SecureJiraIndexService.scala:16) ~[na:na]
at com.atlassian.bitbucket.internal.jira.index.impl.CompositeJiraIndexService.getIndexedResults(CompositeJiraIndexService.scala:30) ~[na:na]
at com.atlassian.bitbucket.internal.jira.summary.impl.BranchDevSummaryService.getBranchesPerIssue(BranchDevSummaryService.scala:13) ~[na:na]
at com.atlassian.bitbucket.internal.jira.summary.impl.BranchDevSummaryService.getSummary(BranchDevSummaryService.scala:25) ~[na:na]
at com.atlassian.bitbucket.internal.jira.summary.impl.CompositeDevSummaryService$$anonfun$getSummary$1.apply(CompositeDevSummaryService.scala:69) ~[na:na]
at com.atlassian.bitbucket.internal.jira.summary.impl.CompositeDevSummaryService$$anonfun$getSummary$1.apply(CompositeDevSummaryService.scala:68) ~[na:na]
at com.atlassian.bitbucket.internal.jira.summary.package$DevSummary.flatMap(package.scala:17) ~[na:na]
at com.atlassian.bitbucket.internal.jira.summary.impl.CompositeDevSummaryService.getSummary(CompositeDevSummaryService.scala:67) ~[na:na]
at com.atlassian.bitbucket.internal.jira.summary.impl.CompositeDevSummaryService.com.atlassian.bitbucket$internal$jira$summary$impl$CompositeDevSummaryService$$getSummaries(CompositeDevSummaryService.scala:61) ~[na:na]
at com.atlassian.bitbucket.internal.jira.summary.impl.CompositeDevSummaryService$$anonfun$aggregateForGlobalIds$1.apply(CompositeDevSummaryService.scala:33) ~[na:na]
at com.atlassian.bitbucket.internal.jira.summary.impl.CompositeDevSummaryService$$anonfun$aggregateForGlobalIds$1.apply(CompositeDevSummaryService.scala:33) ~[na:na]
at com.atlassian.bitbucket.internal.scalautil.operation.package$$anon$1.perform(package.scala:8) ~[na:na]
at com.atlassian.bitbucket.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:60) ~[bitbucket-service-impl-3.2.4.jar:na]
at com.atlassian.bitbucket.internal.user.DefaultSecurityService.doWithPermission(DefaultSecurityService.java:74) ~[bitbucket-service-impl-3.2.4.jar:na]
at com.atlassian.bitbucket.internal.jira.summary.impl.CompositeDevSummaryService.runSecureIfVerified(CompositeDevSummaryService.scala:77) ~[na:na]
at com.atlassian.bitbucket.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.bitbucket.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
Shut Bitbucket Server down.
Backup and remove the following directories. They will be rebuilt when Bitbucket Server starts again.
$BITBUCKET_HOME
/plugins/.bundled-plugins/
$BITBUCKET_HOME
/plugins/.osgi-cache/
Restart Bitbucket Server.
Upon starting up, Bitbucket Server will re-extract the required plugins from <Bitbucket Server installation directory>
/atlassian-bitbucket/WEB-INF/classes/bundled-plugins.zip
and rebuild those plugin directories.
Was this helpful?