Bitbucket Server failed to Start due to Required plugin failed to start

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server と Data Center のみ - この記事は、サーバーおよびデータセンター プラットフォームのアトラシアン製品にのみ適用されます。

問題

After installing Bitbucket Server the application displays the following error message in the web browser:

A fatal error has occurred
The following problems occurred which prevents Bitbucket Server from starting correctly:
Required plugin com.atlassian.bitbucket.bitbucket-jira-integration has failed to start
Required plugin com.atlassian.crowd.embedded.admin has failed to start
Required plugin com.atlassian.bitbucket.bitbucket-rest-common has failed to start
Required plugin com.atlassian.bitbucket.bitbucket-rest has failed to start
Required plugin com.atlassian.applinks.applinks-plugin has failed to start
Required plugin com.atlassian.upm.atlassian-universal-plugin-manager-plugin has failed to start
Required plugin com.atlassian.bitbucket.bitbucket-stp-integration has failed to start
Required plugin com.atlassian.oauth.serviceprovider has failed to start
Required plugin com.atlassian.bitbucket.bitbucket-scm-git has failed to start
Required plugin com.atlassian.oauth.admin has failed to start
Required plugin com.atlassian.plugins.rest.atlassian-rest-module has failed to start

This usually occurs in the following circumstances:

  • during an upgrade
  • right after the upgrade has been performed

One of the following information is logged to atlassian-bitbucket.log:

Entry #1:

ERROR [localhost-startStop-1]  c.a.p.loaders.ScanningPluginLoader Unable to deploy plugin 'com.atlassian.plugins.rest.atlassian-rest-module' from 'Unit: /opt/bitbucket/bitbucket.norganna.org/plugins/.bundled-plugins/atlassian-rest-module-2.8.0-m7.jar (1374748504000)'.
ERROR [localhost-startStop-1]  c.a.p.loaders.ScanningPluginLoader Because of the following exception:
  java.lang.IllegalArgumentException: File must be a jar: /opt/bitbucket/bitbucket.test.instance.org/plugins/.osgi-cache/transformed-plugins/atlassian-rest-module-2.8.0-m7_1374748504000.jar
  ...
    Caused by: java.util.zip.ZipException: error in opening zip file

Entry #2:

ERROR [FelixDispatchQueue]  c.a.p.o.c.f.FelixOsgiContainerManager Framework error in bundle org.springframework.osgi.extender
  org.osgi.framework.BundleException: Activator start error in bundle org.springframework.osgi.extender [2].
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1889) ~[org.apache.felix.framework-3.0.9.jar:na]
    at java.lang.Thread.run(Thread.java:744) [na:1.8.0]
    ... 3 frames trimmed
  Caused by: java.lang.IllegalStateException: Cannot create ConcurrentHashMap - neither JDK 1.5 nor backport-concurrent available on the classpath
    at org.springframework.core.CollectionFactory.createConcurrentMap(CollectionFactory.java:229) ~[spring-core-4.0.2.RELEASE.jar:4.0.2.RELEASE]
    at java.lang.Class.newInstance(Class.java:433) ~[na:1.8.0]
    ... 2 common frames omitted

Entry #3:

WARN  [Spring DM Context Creation Timer]  o.e.g.b.e.i.d.s.DependencyWaiterApplicationContextExecutor Timeout occurred before finding service dependencies for [NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.applinks.applinks-oauth-plugin, config=osgibundle:/META-INF/spring/*.xml)]
...
ERROR [Spring DM Context Creation Timer]  c.a.plugin.osgi.factory.OsgiPlugin Unable to start the plugin container for plugin 'com.atlassian.applinks.applinks-oauth-plugin'
  org.springframework.context.ApplicationContextException: Application context initialization for 'com.atlassian.applinks.applinks-oauth-plugin' has timed out waiting for (|(objectClass=com.atlassian.applinks.spi.auth.AuthenticationConfigurationManager)(objectClass=com.atlassian.applinks.spi.link.MutatingApplicationLinkService)(objectClass=com.atlassian.applinks.core.InternalTypeAccessor)(objectClass=com.atlassian.applinks.spi.manifest.ManifestRetriever))
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489) ~[na:na]
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54) ~[na:na]
...
ERROR [Spring DM Context Creation Timer]  o.e.g.b.e.i.s.ExtenderConfiguration Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.applinks.applinks-oauth-plugin, config=osgibundle:/META-INF/spring/*.xml))
  org.springframework.context.ApplicationContextException: Application context initialization for 'com.atlassian.applinks.applinks-oauth-plugin' has timed out waiting for (|(objectClass=com.atlassian.applinks.spi.auth.AuthenticationConfigurationManager)(objectClass=com.atlassian.applinks.spi.link.MutatingApplicationLinkService)(objectClass=com.atlassian.applinks.core.InternalTypeAccessor)(objectClass=com.atlassian.applinks.spi.manifest.ManifestRetriever))
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489) [gemini-blueprint-extender-2.0.0.BUILD-atlassian-m002.jar:2.0.0.BUILD-atlassian-m002]
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54) [gemini-blueprint-extender-2.0.0.BUILD-atlassian-m002.jar:2.0.0.BUILD-atlassian-m002]

原因

Entry #1:

Bitbucket Server will intially extract a number of core plugins from <Bitbucket Server installation directory>/atlassian-bitbucket/WEB-INF/classes/bundled-plugins.zip and put them into $BITBUCKET_HOME/plugins/.bundled-plugins/ and <BITBUCKET_HOME>/plugins/.osgi-cache/. If one or more of these extracted plugins has become corrupt Bitbucket Server will fail to start in the manner described above.

Entry #2:

BSERV-4494 - Getting issue details... STATUS  - Bitbucket Server releases older than 3.0 do not Support Java 8.

Entry #3:

The server running Bitbucket Server is not correctly sized.

ソリューション

Entry #1:

  1. Shut Bitbucket Server down.
  2. Backup and remove the following directories. They will be rebuilt when Bitbucket Server starts again.
    1. $BITBUCKET_HOME/plugins/.bundled-plugins/
    2. $BITBUCKET_HOME/plugins/.osgi-cache/
  3. 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.

Entry #2:

Upgrade Bitbucket Server to 3.0 or higher, or use a Java version that is described on Supported platforms.

Entry #3:

Refer to the Supported platforms page for the minimum requirements in term of CPU and Memory, and to the Memory/CPU budgeting page for further details.

最終更新日 2016 年 4 月 5 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.