Error creating bean with name 'databaseSupplier'

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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 Failed to start on the initial start after attempting upgrade

The following appears in the atlassian-bitbucket.log

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'databaseSupplier': Invocation of init method failed; nested exception is com.atlassian.stash.internal.db.UnsupportedDatabaseException: The configured database is unsupported
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:160)
... 5 common frames omitted
Caused by: com.atlassian.stash.internal.db.UnsupportedDatabaseException: The configured database is unsupported
at com.atlassian.stash.internal.db.DefaultDatabaseSupplier.validate(DefaultDatabaseSupplier.java:147)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
... 5 common frames omitted

Diagnosis

Diagnostic Steps

Please confirm:

  • The type and version of the database
  • The version of git installed on the Bitbucket Server host machine
  • The exact steps taken during the upgrade process
  • Verify if a backup was taken of the instance prior to the upgrade 

Cause

 issues like this occur when the supported platforms are not updated with respect to the upgrade.


Resolution

The issue is generally resolved by pointing to the correct version of Database.



Description
Product
Last modified on Jun 30, 2021

Was this helpful?

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