System hangs before starting up after upgrade to Bitbucket 7.x

お困りですか?

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

コミュニティに質問


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

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.

*Fisheye および Crucible は除く

要約

Upgrade from Bitbucket 6.x version to 7.x, causes a strange behaviour on startup. After starting the SSH server, Bitbucket hangs for about 5 minutes and then it throws the below error message:

INFO  [spring-startup]  c.a.b.internal.ssh.server.SshServer Started SSH server successfully.
ERROR [spring-startup]  c.a.sal.core.upgrade.PluginUpgrader Upgrade failed: service matching filter=[(objectClass=com.atlassian.audit.spi.migration.LegacyAuditEntityMigrator)] unavailable
org.eclipse.gemini.blueprint.service.ServiceUnavailableException: service matching filter=[(objectClass=com.atlassian.audit.spi.migration.LegacyAuditEntityMigrator)] unavailable
ERROR [spring-startup]  c.a.s.c.u.DefaultPluginUpgradeManager Upgrade error: Unexpected exception caught during plugin upgrade: org.eclipse.gemini.blueprint.service.ServiceUnavailableException: service matching filter=[(objectClass=com.atlassian.audit.spi.migration.LegacyAuditEntityMigrator)] unavailable

During the 5 minutes time period, the system is not available, but once it's over, it is up and running.

診断

The application logs suggest the upgrade didn't happen properly because of the plugins and the incompatible home directory:

atlassian-bitbucket.log
ERROR [spring-startup] c.a.s.c.u.DefaultPluginUpgradeManager Upgrade error: Unexpected exception caught during plugin upgrade: org.eclipse.gemini.blueprint.service.ServiceUnavailableException: service matching filter=[(objectClass=com.atlassian.audit.spi.migration.LegacyAuditEntityMigrator)] unavailable
ERROR [spring-startup] c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'homeValidator' defined in class path resource [critical-context.xml]: Invocation of init method failed; nested exception is com.atlassian.stash.internal.home.IncompatibleHomeDirectoryException: The home directory has been updated by Bitbucket 7.6.1 and is no longer compatible with 6.10.5

原因

The auditing feature is implemented in 2 separate bundled plugins:

  1. Bitbucket Server – Audit plugin:

    key: com.atlassian.bitbucket.server.bitbucket-audit
    version: 7.6.1
  2. Atlassian Audit plugin:

    key: com.atlassian.audit.atlassian-audit-plugin
    version: 1.12.1

    After testing with 7.6.2, the problem (long startup time, then the above exception) still occurred, but it was solved as soon as both audit-related plugins were disabled and re-enabled.

ソリューション

  1. Enabling the Bitbucket Server – Audit Plugin OR
  2. Disabling and enabling both the plugins.



Last modified on Mar 25, 2021

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

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